@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,5 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
3
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
|
-
import { configProps, stateProps } from './mock
|
|
5
|
+
import { configProps, stateProps } from './mock';
|
|
3
6
|
import {{COMPONENT_CLASS_NAME}} from './index.jsx';
|
|
4
7
|
|
|
5
8
|
export default {
|
|
@@ -20,7 +23,7 @@ window.PCore.getEnvironmentInfo = () => {
|
|
|
20
23
|
};
|
|
21
24
|
};
|
|
22
25
|
|
|
23
|
-
export const
|
|
26
|
+
export const Base{{COMPONENT_CLASS_NAME}} = () => {
|
|
24
27
|
const props = {
|
|
25
28
|
getPConnect: () => {
|
|
26
29
|
return {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
1
|
import { useEffect, useState } from 'react';
|
|
3
2
|
import { DateInput, FieldValueList, DateTimeDisplay, Text, } from '@pega/cosmos-react-core';
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import FormattedText from "./FormattedText.jsx";
|
|
6
5
|
|
|
6
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
7
|
+
|
|
7
8
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
8
9
|
|
|
9
10
|
// includes in bundle
|
|
@@ -17,12 +18,42 @@ import {
|
|
|
17
18
|
getDateFormat
|
|
18
19
|
} from "./date.js";
|
|
19
20
|
import { suggestionsHandler } from './suggestions-handler';
|
|
21
|
+
import type { DateTimeFormat, DateTimeVariant } from '@pega/cosmos-react-core/lib/components/DateTime/DateTime.types.js';
|
|
22
|
+
|
|
23
|
+
// interface for props
|
|
24
|
+
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
25
|
+
// If any, enter additional props that only exist on TextInput here
|
|
26
|
+
displayAsStatus?: boolean;
|
|
27
|
+
isTableFormatter?: boolean;
|
|
28
|
+
hasSuggestions?: boolean;
|
|
29
|
+
variant?: any;
|
|
30
|
+
formatter?: string;
|
|
31
|
+
withSeconds: boolean;
|
|
32
|
+
nextYearRange: string;
|
|
33
|
+
previousYearRange: string;
|
|
34
|
+
showWeekNumber: boolean;
|
|
35
|
+
showAsFormattedText: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// interface for StateProps object
|
|
39
|
+
interface StateProps {
|
|
40
|
+
value: string;
|
|
41
|
+
hasSuggestions: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface ConfigProps {
|
|
45
|
+
formatter?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface ActionsProps {
|
|
49
|
+
onFocus: any;
|
|
50
|
+
}
|
|
20
51
|
|
|
21
52
|
// Duplicated runtime code from Constellation Design System Component
|
|
22
53
|
|
|
23
54
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
24
55
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
25
|
-
|
|
56
|
+
export default function {{COMPONENT_CLASS_NAME}} (props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
26
57
|
const {
|
|
27
58
|
getPConnect,
|
|
28
59
|
value,
|
|
@@ -44,7 +75,9 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
44
75
|
let {formatter} = props;
|
|
45
76
|
const pConn = getPConnect();
|
|
46
77
|
const actions = pConn.getActionsApi();
|
|
47
|
-
const
|
|
78
|
+
const actionsProps = pConn.getActionsApi() as unknown as ActionsProps;
|
|
79
|
+
const stateProps = pConn.getStateProps() as StateProps;
|
|
80
|
+
const propName: string = stateProps.value;
|
|
48
81
|
|
|
49
82
|
let { readOnly, required, disabled } = props;
|
|
50
83
|
[readOnly, required, disabled] = [readOnly, required, disabled].map(
|
|
@@ -53,19 +86,26 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
53
86
|
|
|
54
87
|
const [status, setStatus] = useState(hasSuggestions ? 'pending' : '');
|
|
55
88
|
|
|
89
|
+
// cast status
|
|
90
|
+
let myStatus: 'success' | 'warning' | 'error' | 'pending';
|
|
91
|
+
myStatus = status as 'success' | 'warning' | 'error' | 'pending';
|
|
92
|
+
|
|
56
93
|
useEffect(() => {
|
|
57
94
|
if (validatemessage !== '') {
|
|
58
95
|
setStatus('error');
|
|
59
96
|
}
|
|
60
97
|
if (hasSuggestions) {
|
|
61
98
|
setStatus('pending');
|
|
62
|
-
} else if (!hasSuggestions &&
|
|
99
|
+
} else if (!hasSuggestions && myStatus !== 'success') {
|
|
100
|
+
// @ts-ignore
|
|
63
101
|
setStatus(validatemessage !== '' ? 'error' : undefined);
|
|
64
102
|
}
|
|
65
|
-
}, [validatemessage, hasSuggestions]);
|
|
103
|
+
}, [validatemessage, hasSuggestions, myStatus]);
|
|
66
104
|
|
|
67
105
|
// calculate min and max range of calendar
|
|
106
|
+
// @ts-ignore
|
|
68
107
|
const currentYear = getFullYear();
|
|
108
|
+
|
|
69
109
|
const yearFromValue = getFullYear(value);
|
|
70
110
|
const maxDate = getMaxDate(
|
|
71
111
|
parseInt(nextYearRange, 10),
|
|
@@ -78,51 +118,57 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
78
118
|
yearFromValue
|
|
79
119
|
);
|
|
80
120
|
|
|
81
|
-
const onResolveSuggestionHandler = (accepted) => {
|
|
121
|
+
const onResolveSuggestionHandler = (accepted: boolean) => {
|
|
82
122
|
suggestionsHandler(accepted, pConn, setStatus);
|
|
83
123
|
};
|
|
84
124
|
|
|
85
125
|
|
|
86
126
|
|
|
87
|
-
function handleBlur(onBlurValue) {
|
|
127
|
+
function handleBlur(onBlurValue: any) {
|
|
88
128
|
const { valueAsISOString: date, state: errorState } = onBlurValue;
|
|
89
129
|
const trimmedDate = date ? date.substring(0, date.indexOf('T')) : date;
|
|
90
130
|
datetimeFireChangeBlurEvents(errorState, value, trimmedDate, actions, propName, pConn);
|
|
91
131
|
const isValueChanged = !(value === undefined && trimmedDate === '') && value !== trimmedDate;
|
|
92
132
|
if (hasSuggestions && isValueChanged) {
|
|
93
|
-
pConn.ignoreSuggestion();
|
|
133
|
+
pConn.ignoreSuggestion("");
|
|
94
134
|
}
|
|
95
135
|
}
|
|
96
136
|
|
|
97
|
-
function handleChange(onChangeValue) {
|
|
137
|
+
function handleChange(onChangeValue: any) {
|
|
98
138
|
const { valueAsISOString: date } = onChangeValue;
|
|
99
139
|
const trimmedDate = date ? date.substring(0, date.indexOf('T')) : date;
|
|
100
140
|
if (hasSuggestions && value !== trimmedDate) {
|
|
101
|
-
setStatus(
|
|
141
|
+
setStatus("");
|
|
102
142
|
}
|
|
103
143
|
pConn.clearErrorMessages({
|
|
104
|
-
|
|
144
|
+
category: "",
|
|
145
|
+
property: propName,
|
|
146
|
+
context: ""
|
|
105
147
|
})
|
|
106
148
|
}
|
|
107
149
|
|
|
108
150
|
if (displayMode === 'LABELS_LEFT' || displayMode === 'STACKED_LARGE_VAL' || displayMode === 'DISPLAY_ONLY') {
|
|
109
|
-
|
|
151
|
+
let variantValue = "date";
|
|
110
152
|
let formatValue = "long";
|
|
111
|
-
if(pConn && pConn.getConfigProps()){
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
153
|
+
if (pConn && pConn.getConfigProps()){
|
|
154
|
+
const configProps = pConn.getConfigProps() as ConfigProps;
|
|
155
|
+
const runtimeformatter = configProps?.formatter;
|
|
156
|
+
|
|
157
|
+
if (formatter !== runtimeformatter) {
|
|
158
|
+
formatter = runtimeformatter;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
if (formatter !== "" && formatExists(formatter)){
|
|
164
|
+
const {variantVal,formatVal} = datetimedisplayformatter(formatter);
|
|
165
|
+
variantValue = variantVal;
|
|
166
|
+
formatValue = formatVal;
|
|
121
167
|
}
|
|
122
168
|
const displayComp = (
|
|
123
169
|
<DateTimeDisplay
|
|
124
|
-
|
|
125
|
-
|
|
170
|
+
variant={variantValue as DateTimeVariant}
|
|
171
|
+
format={formatValue as DateTimeFormat}
|
|
126
172
|
value={value}
|
|
127
173
|
/>
|
|
128
174
|
);
|
|
@@ -165,20 +211,21 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
165
211
|
const environmentInfo = PCore.getEnvironmentInfo();
|
|
166
212
|
const locale = environmentInfo && environmentInfo.getLocale();
|
|
167
213
|
const textAdditionalProps = {
|
|
168
|
-
format: getDateFormat(locale),
|
|
214
|
+
format: getDateFormat(locale as string, {}),
|
|
169
215
|
fieldType: 'Date'
|
|
170
216
|
};
|
|
171
217
|
dateComponent = (
|
|
172
218
|
<Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
219
|
+
<FormattedText
|
|
220
|
+
formatType='date'
|
|
221
|
+
value={value}
|
|
222
|
+
label={label}
|
|
223
|
+
hideLabel={hideLabel}
|
|
224
|
+
testId={testId}
|
|
225
|
+
additionalProps={textAdditionalProps}
|
|
226
|
+
// @ts-ignore
|
|
227
|
+
customFormat={getDateFormat(locale)}
|
|
228
|
+
/>
|
|
182
229
|
</Styled{{COMPONENT_CLASS_NAME}}Wrapper>
|
|
183
230
|
);
|
|
184
231
|
} else {
|
|
@@ -199,7 +246,7 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
199
246
|
min={minDate}
|
|
200
247
|
max={maxDate}
|
|
201
248
|
data-testid={testId}
|
|
202
|
-
onFocus={
|
|
249
|
+
onFocus={actionsProps.onFocus}
|
|
203
250
|
onChange={handleChange}
|
|
204
251
|
onBlur={handleBlur}
|
|
205
252
|
onResolveSuggestion={onResolveSuggestionHandler}
|
|
@@ -253,5 +300,3 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
253
300
|
formatter: PropTypes.string,
|
|
254
301
|
hasSuggestions: PropTypes.bool
|
|
255
302
|
};
|
|
256
|
-
|
|
257
|
-
export default {{COMPONENT_CLASS_NAME}};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {PConnect } from '@pega/pcore-pconnect-typedefs';
|
|
2
|
+
|
|
3
|
+
// PConnProps.d.ts
|
|
4
|
+
// This gives us a place to have each component (which is most DX Components) that is
|
|
5
|
+
// expected to have a getPConnect extend its props (from BaseProps)
|
|
6
|
+
// such that every component will be expected to have a getPConnect() function
|
|
7
|
+
// that returns a PConnect object. (new/better way of doing .propTypes).
|
|
8
|
+
// This PConnProps can be extended to include other props that we know are in every component
|
|
9
|
+
export interface PConnProps {
|
|
10
|
+
// getPConnect should exist for every C11n component. (add @ts-ignore in special cases where it isn't)
|
|
11
|
+
getPConnect: () => typeof PConnect;
|
|
12
|
+
|
|
13
|
+
// Allow any/all other key/value pairs in the BaseProps for now
|
|
14
|
+
// TODO: refine which other props are always expected for various component
|
|
15
|
+
// types and consider further interface "subclassing". For example, we may
|
|
16
|
+
// want to create a "BasePropsForm" that gives guidance on required, readonly, etc.
|
|
17
|
+
// and any other props that every Form component expects.
|
|
18
|
+
// For example, see the PConnFieldProps below.
|
|
19
|
+
// NOTE: if you uncomment the line below, the PConnProps type will allow
|
|
20
|
+
// otherwise undefined types to appear. This can be helpful for debugging
|
|
21
|
+
// or when adding new components whose types aren't yet known.
|
|
22
|
+
// [key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// PConnFieldProps extends PConnProps to bring in the common properties that are
|
|
27
|
+
// associated with most field components (ex: Dropdown, TextInput, etc.) in the
|
|
28
|
+
// components/field directory
|
|
29
|
+
export interface PConnFieldProps extends PConnProps {
|
|
30
|
+
label: string,
|
|
31
|
+
required: boolean,
|
|
32
|
+
disabled: boolean,
|
|
33
|
+
value: any,
|
|
34
|
+
validatemessage: string,
|
|
35
|
+
status?: string,
|
|
36
|
+
onChange?: any,
|
|
37
|
+
onBlur?: any,
|
|
38
|
+
readOnly: boolean,
|
|
39
|
+
testId: string,
|
|
40
|
+
helperText: string,
|
|
41
|
+
displayMode?: string,
|
|
42
|
+
hideLabel: boolean,
|
|
43
|
+
placeholder?: string,
|
|
44
|
+
fieldMetadata?: any,
|
|
45
|
+
additionalProps?: any
|
|
46
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
3
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
|
-
import { configProps, stateProps } from './mock
|
|
5
|
+
import { configProps, stateProps } from './mock';
|
|
3
6
|
import {{COMPONENT_CLASS_NAME}} from './index.jsx';
|
|
4
7
|
|
|
5
8
|
export default {
|
|
@@ -20,7 +23,7 @@ window.PCore.getEnvironmentInfo = () => {
|
|
|
20
23
|
};
|
|
21
24
|
};
|
|
22
25
|
|
|
23
|
-
export const
|
|
26
|
+
export const Base{{COMPONENT_CLASS_NAME}} = () => {
|
|
24
27
|
const props = {
|
|
25
28
|
getPConnect: () => {
|
|
26
29
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
1
|
import { useEffect, useState } from 'react';
|
|
3
2
|
import { DateTimeInput, FieldValueList, DateTimeDisplay, Text } from "@pega/cosmos-react-core";
|
|
4
3
|
import PropTypes from "prop-types";
|
|
4
|
+
import type { PConnFieldProps } from './PConnProps';
|
|
5
5
|
|
|
6
6
|
// includes in bundle
|
|
7
7
|
import DateTimeFormatter from "./date-time";
|
|
@@ -18,12 +18,45 @@ import { suggestionsHandler } from './suggestions-handler';
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
|
|
21
|
+
import type { DateTimeFormat, DateTimeVariant } from '@pega/cosmos-react-core/lib/components/DateTime/DateTime.types';
|
|
22
|
+
import type { ClockFormat } from '@pega/cosmos-react-core/lib/components/DateTime/Input/utils';
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
// interface for props
|
|
26
|
+
interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
|
|
27
|
+
// If any, enter additional props that only exist on TextInput here
|
|
28
|
+
displayAsStatus?: boolean;
|
|
29
|
+
isTableFormatter?: boolean;
|
|
30
|
+
hasSuggestions?: boolean;
|
|
31
|
+
variant?: any;
|
|
32
|
+
formatter?: string;
|
|
33
|
+
withSeconds: boolean;
|
|
34
|
+
nextYearRange: string;
|
|
35
|
+
previousYearRange: string;
|
|
36
|
+
showWeekNumber: boolean;
|
|
37
|
+
pickerInterval: string;
|
|
38
|
+
clockFormat: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// interface for StateProps object
|
|
42
|
+
interface StateProps {
|
|
43
|
+
value: string;
|
|
44
|
+
hasSuggestions: boolean;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface ConfigProps {
|
|
48
|
+
formatter?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface ActionsProps {
|
|
52
|
+
onFocus: any;
|
|
53
|
+
}
|
|
21
54
|
|
|
22
55
|
// Duplicated runtime code from Constellation Design System Component
|
|
23
56
|
|
|
24
57
|
// props passed in combination of props from property panel (config.json) and run time props from Constellation
|
|
25
58
|
// any default values in config.pros should be set in defaultProps at bottom of this file
|
|
26
|
-
|
|
59
|
+
export default function {{COMPONENT_CLASS_NAME}} (props: {{COMPONENT_CLASS_NAME}}Props) {
|
|
27
60
|
const {
|
|
28
61
|
getPConnect,
|
|
29
62
|
value,
|
|
@@ -45,7 +78,9 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
45
78
|
let { formatter } = props;
|
|
46
79
|
const pConn = getPConnect();
|
|
47
80
|
const actions = pConn.getActionsApi();
|
|
48
|
-
const
|
|
81
|
+
const actionsProps = pConn.getActionsApi() as unknown as ActionsProps;
|
|
82
|
+
const stateProps = pConn.getStateProps() as StateProps;
|
|
83
|
+
let propName: string = stateProps.value;
|
|
49
84
|
|
|
50
85
|
const environmentInfo = PCore.getEnvironmentInfo();
|
|
51
86
|
const timezone = environmentInfo && environmentInfo.getTimeZone();
|
|
@@ -55,7 +90,11 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
55
90
|
(prop) => prop === true || (typeof prop === 'string' && prop === 'true')
|
|
56
91
|
);
|
|
57
92
|
|
|
58
|
-
const [status, setStatus] = useState(hasSuggestions ? 'pending' :
|
|
93
|
+
const [status, setStatus] = useState(hasSuggestions ? 'pending' : undefined);
|
|
94
|
+
|
|
95
|
+
// cast status
|
|
96
|
+
let myStatus: 'success' | 'warning' | 'error' | 'pending';
|
|
97
|
+
myStatus = status as 'success' | 'warning' | 'error' | 'pending';
|
|
59
98
|
|
|
60
99
|
useEffect(() => {
|
|
61
100
|
if (validatemessage !== '') {
|
|
@@ -63,25 +102,25 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
63
102
|
}
|
|
64
103
|
if (hasSuggestions) {
|
|
65
104
|
setStatus('pending');
|
|
66
|
-
} else if (!hasSuggestions &&
|
|
105
|
+
} else if (!hasSuggestions && myStatus !== 'success') {
|
|
67
106
|
setStatus(validatemessage !== '' ? 'error' : undefined);
|
|
68
107
|
}
|
|
69
|
-
}, [validatemessage, hasSuggestions]);
|
|
108
|
+
}, [validatemessage, hasSuggestions, myStatus]);
|
|
70
109
|
|
|
71
110
|
let { clockFormat } = props;
|
|
72
111
|
clockFormat = parseClockFormat(clockFormat);
|
|
73
112
|
|
|
74
113
|
// calculate min and max range of calendar
|
|
75
|
-
const currentYear = getFullYear();
|
|
114
|
+
const currentYear = getFullYear("");
|
|
76
115
|
const yearFromValue = getFullYear(value);
|
|
77
116
|
const maxDate = getMaxDate(parseInt(nextYearRange, 10), currentYear, yearFromValue);
|
|
78
117
|
const minDate = getMinDate(parseInt(previousYearRange, 10), currentYear, yearFromValue);
|
|
79
118
|
|
|
80
|
-
const onResolveSuggestionHandler = (accepted) => {
|
|
119
|
+
const onResolveSuggestionHandler = (accepted: boolean) => {
|
|
81
120
|
suggestionsHandler(accepted, pConn, setStatus);
|
|
82
121
|
};
|
|
83
122
|
|
|
84
|
-
function handleBlur(onBlurValue) {
|
|
123
|
+
function handleBlur(onBlurValue: any) {
|
|
85
124
|
const { valueAsISOString: datetimeTZ, state: errorState } = onBlurValue;
|
|
86
125
|
const datetimeGMT = DateTimeFormatter.convertFromTimezone(datetimeTZ, timezone);
|
|
87
126
|
|
|
@@ -93,11 +132,11 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
93
132
|
const isValueChanged =
|
|
94
133
|
!(value === undefined && datetimeGMTCorrectedToSeconds === '') && value !== datetimeGMTCorrectedToSeconds;
|
|
95
134
|
if (hasSuggestions && isValueChanged) {
|
|
96
|
-
pConn.ignoreSuggestion();
|
|
135
|
+
pConn.ignoreSuggestion("");
|
|
97
136
|
}
|
|
98
137
|
}
|
|
99
138
|
|
|
100
|
-
function handleChange(onChangeValue) {
|
|
139
|
+
function handleChange(onChangeValue: any) {
|
|
101
140
|
const { valueAsISOString: datetimeTZ } = onChangeValue;
|
|
102
141
|
const datetimeGMT = DateTimeFormatter.convertFromTimezone(datetimeTZ, timezone);
|
|
103
142
|
const datetimeGMTCorrectedToSeconds = datetimeGMT
|
|
@@ -107,21 +146,27 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
107
146
|
setStatus(undefined);
|
|
108
147
|
}
|
|
109
148
|
pConn.clearErrorMessages({
|
|
110
|
-
|
|
149
|
+
category: "",
|
|
150
|
+
property: propName,
|
|
151
|
+
context: ""
|
|
111
152
|
});
|
|
112
153
|
}
|
|
113
154
|
|
|
114
155
|
if (displayMode === 'LABELS_LEFT' || displayMode === 'STACKED_LARGE_VAL' || displayMode === 'DISPLAY_ONLY') {
|
|
115
|
-
let variantValue = 'datetime';
|
|
116
|
-
let formatValue = withSeconds ? 'long' : 'short';
|
|
117
|
-
|
|
156
|
+
let variantValue = 'datetime' as DateTimeVariant;
|
|
157
|
+
let formatValue = withSeconds ? 'long' : 'short' as DateTimeFormat;
|
|
158
|
+
|
|
159
|
+
const configProps = pConn.getConfigProps() as ConfigProps;
|
|
160
|
+
|
|
161
|
+
const runtimeformatter = configProps?.formatter;
|
|
162
|
+
|
|
118
163
|
if (formatter !== runtimeformatter) {
|
|
119
164
|
formatter = runtimeformatter;
|
|
120
165
|
}
|
|
121
166
|
if (formatExists(formatter)) {
|
|
122
167
|
const { variantVal, formatVal } = datetimedisplayformatter(formatter);
|
|
123
|
-
variantValue = variantVal;
|
|
124
|
-
formatValue = withSeconds && formatter === 'Time-Only' ? 'long' : formatVal;
|
|
168
|
+
variantValue = variantVal as DateTimeVariant;
|
|
169
|
+
formatValue = withSeconds && formatter === 'Time-Only' ? 'long' : formatVal as DateTimeFormat;
|
|
125
170
|
}
|
|
126
171
|
const displayComp = (
|
|
127
172
|
<DateTimeDisplay
|
|
@@ -130,7 +175,7 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
130
175
|
value={
|
|
131
176
|
formatter === 'DateTime-Since' ? value : DateTimeFormatter.convertToTimezone(value, { timezone }) || undefined
|
|
132
177
|
}
|
|
133
|
-
clockFormat={clockFormat || undefined}
|
|
178
|
+
clockFormat={clockFormat as ClockFormat || undefined}
|
|
134
179
|
/>
|
|
135
180
|
);
|
|
136
181
|
switch (displayMode) {
|
|
@@ -193,7 +238,7 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
193
238
|
min={minDate}
|
|
194
239
|
max={maxDate}
|
|
195
240
|
data-testid={testId}
|
|
196
|
-
onFocus={
|
|
241
|
+
onFocus={actionsProps.onFocus}
|
|
197
242
|
onChange={handleChange}
|
|
198
243
|
onBlur={handleBlur}
|
|
199
244
|
onResolveSuggestion={onResolveSuggestionHandler}
|
|
@@ -250,5 +295,3 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
250
295
|
Format: PropTypes.string,
|
|
251
296
|
hasSuggestions: PropTypes.bool
|
|
252
297
|
};
|
|
253
|
-
|
|
254
|
-
export default {{COMPONENT_CLASS_NAME}};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {PConnect } from '@pega/pcore-pconnect-typedefs';
|
|
2
|
+
|
|
3
|
+
// PConnProps.d.ts
|
|
4
|
+
// This gives us a place to have each component (which is most DX Components) that is
|
|
5
|
+
// expected to have a getPConnect extend its props (from BaseProps)
|
|
6
|
+
// such that every component will be expected to have a getPConnect() function
|
|
7
|
+
// that returns a PConnect object. (new/better way of doing .propTypes).
|
|
8
|
+
// This PConnProps can be extended to include other props that we know are in every component
|
|
9
|
+
export interface PConnProps {
|
|
10
|
+
// getPConnect should exist for every C11n component. (add @ts-ignore in special cases where it isn't)
|
|
11
|
+
getPConnect: () => typeof PConnect;
|
|
12
|
+
|
|
13
|
+
// Allow any/all other key/value pairs in the BaseProps for now
|
|
14
|
+
// TODO: refine which other props are always expected for various component
|
|
15
|
+
// types and consider further interface "subclassing". For example, we may
|
|
16
|
+
// want to create a "BasePropsForm" that gives guidance on required, readonly, etc.
|
|
17
|
+
// and any other props that every Form component expects.
|
|
18
|
+
// For example, see the PConnFieldProps below.
|
|
19
|
+
// NOTE: if you uncomment the line below, the PConnProps type will allow
|
|
20
|
+
// otherwise undefined types to appear. This can be helpful for debugging
|
|
21
|
+
// or when adding new components whose types aren't yet known.
|
|
22
|
+
// [key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// PConnFieldProps extends PConnProps to bring in the common properties that are
|
|
27
|
+
// associated with most field components (ex: Dropdown, TextInput, etc.) in the
|
|
28
|
+
// components/field directory
|
|
29
|
+
export interface PConnFieldProps extends PConnProps {
|
|
30
|
+
label: string,
|
|
31
|
+
required: boolean,
|
|
32
|
+
disabled: boolean,
|
|
33
|
+
value: any,
|
|
34
|
+
validatemessage: string,
|
|
35
|
+
status?: string,
|
|
36
|
+
onChange?: any,
|
|
37
|
+
onBlur?: any,
|
|
38
|
+
readOnly: boolean,
|
|
39
|
+
testId: string,
|
|
40
|
+
helperText: string,
|
|
41
|
+
displayMode?: string,
|
|
42
|
+
hideLabel: boolean,
|
|
43
|
+
placeholder?: string,
|
|
44
|
+
fieldMetadata?: any,
|
|
45
|
+
additionalProps?: any
|
|
46
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
3
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
5
|
|
|
3
|
-
import { configProps, fieldMetadata, stateProps } from './mock.
|
|
6
|
+
import { configProps, fieldMetadata, stateProps } from './mock.js';
|
|
4
7
|
|
|
5
8
|
import {{COMPONENT_CLASS_NAME}} from './index.jsx';
|
|
6
9
|
|
|
@@ -10,7 +13,7 @@ export default {
|
|
|
10
13
|
component: {{COMPONENT_CLASS_NAME}}
|
|
11
14
|
};
|
|
12
15
|
|
|
13
|
-
export const
|
|
16
|
+
export const Base{{COMPONENT_CLASS_NAME}} = () => {
|
|
14
17
|
|
|
15
18
|
const props = {
|
|
16
19
|
value: configProps.value,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const handleEvent = (actions: any, eventType: string, propName: string, value: string) => {
|
|
2
|
+
switch (eventType) {
|
|
3
|
+
case 'change':
|
|
4
|
+
actions.updateFieldValue(propName, value);
|
|
5
|
+
break;
|
|
6
|
+
case 'blur':
|
|
7
|
+
actions.triggerFieldChange(propName, value);
|
|
8
|
+
break;
|
|
9
|
+
case 'changeNblur':
|
|
10
|
+
actions.updateFieldValue(propName, value);
|
|
11
|
+
actions.triggerFieldChange(propName, value);
|
|
12
|
+
break;
|
|
13
|
+
default:
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default handleEvent;
|