@pega/cosmos-react-demos 5.0.0-dev.2.0 → 5.0.0-dev.3.0
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/jsx/core/AppShell/AppShell.mocks.d.ts +2 -2
- package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/jsx/core/Avatar/Avatar.stories.jsx +1 -2
- package/jsx/core/Avatar/Avatar.stories.jsx.map +1 -1
- package/jsx/core/Banner/Banner.mocks.d.ts +1 -1
- package/jsx/core/Banner/Banner.mocks.d.ts.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +2 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +1 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js +8 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.mocks.js.map +1 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -0
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx +39 -11
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -1
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts +2 -0
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
- package/jsx/core/ComboBox/{ComboBox.mocks.js → ComboBox.mocks.jsx} +5 -1
- package/jsx/core/ComboBox/ComboBox.mocks.jsx.map +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx +15 -7
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +1 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -1
- package/jsx/core/Configuration/Configuration.mocks.d.ts +1 -1
- package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -1
- package/jsx/core/Dialog/FormDialog.mocks.d.ts +2 -2
- package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +1 -1
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts +2 -2
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +3 -3
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +1 -1
- package/jsx/core/Form/Form.mocks.d.ts +2 -2
- package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.mocks.d.ts +23 -0
- package/jsx/core/Icon/Icon.mocks.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.mocks.jsx +23 -0
- package/jsx/core/Icon/Icon.mocks.jsx.map +1 -1
- package/jsx/core/Icon/Icon.stories.d.ts +11 -1
- package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.stories.jsx +41 -7
- package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts +2 -2
- package/jsx/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts +1 -1
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.mocks.d.ts +1 -1
- package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +5 -5
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/Popover/Popover.mocks.d.ts +1 -1
- package/jsx/core/Popover/Popover.mocks.d.ts.map +1 -1
- package/jsx/core/Table/Table.mocks.d.ts +1 -1
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +2 -2
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/Popover.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +1 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.mocks.d.ts +7 -0
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.d.ts +1 -1
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.d.ts +2 -2
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts +1 -1
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts +1 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReply.mocks.d.ts +1 -1
- package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts +1 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +9 -9
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +3 -3
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/Details.mocks.d.ts +1 -1
- package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +6 -6
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx +2 -252
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
- package/jsx/work/Predictions/Predictions.mocks.d.ts +1 -1
- package/jsx/work/Predictions/Predictions.mocks.d.ts.map +1 -1
- package/jsx/work/Stages/Stages.mocks.d.ts +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts +3 -3
- package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/wss/CaseView/CaseView.mocks.d.ts +1 -1
- package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/lib/core/Avatar/Avatar.stories.js +1 -2
- package/lib/core/Avatar/Avatar.stories.js.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.d.ts +2 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.d.ts.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.js +8 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.mocks.js.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js +39 -11
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.js.map +1 -1
- package/lib/core/ComboBox/ComboBox.mocks.d.ts +2 -0
- package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.mocks.js +3 -0
- package/lib/core/ComboBox/ComboBox.mocks.js.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.d.ts +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.js +15 -7
- package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
- package/lib/core/Icon/Icon.mocks.d.ts +23 -0
- package/lib/core/Icon/Icon.mocks.d.ts.map +1 -1
- package/lib/core/Icon/Icon.mocks.js +23 -0
- package/lib/core/Icon/Icon.mocks.js.map +1 -1
- package/lib/core/Icon/Icon.stories.d.ts +11 -1
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
- package/lib/core/Icon/Icon.stories.js +41 -7
- package/lib/core/Icon/Icon.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/rte/Editor/Editor.mocks.d.ts +7 -0
- package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +3 -3
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +0 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js +3 -235
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
- package/package.json +12 -14
- package/jsx/build/AppShell/AppShell.mocks.d.ts +0 -44
- package/jsx/build/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/jsx/build/AppShell/AppShell.mocks.jsx +0 -419
- package/jsx/build/AppShell/AppShell.mocks.jsx.map +0 -1
- package/jsx/build/AppShell/AppShell.stories.d.ts +0 -20
- package/jsx/build/AppShell/AppShell.stories.d.ts.map +0 -1
- package/jsx/build/AppShell/AppShell.stories.jsx +0 -201
- package/jsx/build/AppShell/AppShell.stories.jsx.map +0 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +0 -101
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +0 -1
- package/jsx/build/DynamicContentEditor/FieldSelector.d.ts +0 -11
- package/jsx/build/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
- package/jsx/build/DynamicContentEditor/FieldSelector.jsx +0 -80
- package/jsx/build/DynamicContentEditor/FieldSelector.jsx.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +0 -64
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +0 -599
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +0 -29
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +0 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +0 -344
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +0 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +0 -45
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +0 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js +0 -291
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +0 -28
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +0 -559
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +0 -11
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx +0 -501
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts +0 -2
- package/jsx/build/FlowModeller/FlowModeller.styles.d.ts.map +0 -1
- package/jsx/build/FlowModeller/FlowModeller.styles.js +0 -8
- package/jsx/build/FlowModeller/FlowModeller.styles.js.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +0 -3
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +0 -45
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +0 -5
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +0 -1
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +0 -44
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +0 -204
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.js +0 -1256
- package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +0 -11
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +0 -1
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx +0 -873
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +0 -1
- package/jsx/build/LifeCycle/utils.d.ts +0 -123
- package/jsx/build/LifeCycle/utils.d.ts.map +0 -1
- package/jsx/build/LifeCycle/utils.js +0 -302
- package/jsx/build/LifeCycle/utils.js.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +0 -10
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js +0 -20
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +0 -8
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +0 -1
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx +0 -38
- package/jsx/build/MobileBuildSummary/MobileBuildSummary.stories.jsx.map +0 -1
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.d.ts +0 -7
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.d.ts.map +0 -1
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.jsx +0 -78
- package/jsx/build/ObjectPreview/ObjectPreview.mocks.jsx.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +0 -64
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +0 -397
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts +0 -8
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +0 -258
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts +0 -4
- package/jsx/build/ObjectSelect/ObjectSelect.styles.d.ts.map +0 -1
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js +0 -27
- package/jsx/build/ObjectSelect/ObjectSelect.styles.js.map +0 -1
- package/jsx/build/PageBanner/PageBanner.stories.d.ts +0 -15
- package/jsx/build/PageBanner/PageBanner.stories.d.ts.map +0 -1
- package/jsx/build/PageBanner/PageBanner.stories.jsx +0 -41
- package/jsx/build/PageBanner/PageBanner.stories.jsx.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts +0 -21
- package/jsx/build/PageTemplates/GalleryPage.mocks.d.ts.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx +0 -24
- package/jsx/build/PageTemplates/GalleryPage.mocks.jsx.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts +0 -16
- package/jsx/build/PageTemplates/GalleryPage.stories.d.ts.map +0 -1
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx +0 -49
- package/jsx/build/PageTemplates/GalleryPage.stories.jsx.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts +0 -17
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +0 -144
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts +0 -21
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx +0 -255
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +0 -1
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts +0 -17
- package/jsx/build/PageTemplates/ShowcasePage.stories.d.ts.map +0 -1
- package/jsx/build/PageTemplates/ShowcasePage.stories.jsx +0 -42
- package/jsx/build/PageTemplates/ShowcasePage.stories.jsx.map +0 -1
- package/jsx/build/Workbench/Workbench.mocks.d.ts +0 -9
- package/jsx/build/Workbench/Workbench.mocks.d.ts.map +0 -1
- package/jsx/build/Workbench/Workbench.mocks.js +0 -67
- package/jsx/build/Workbench/Workbench.mocks.js.map +0 -1
- package/jsx/build/Workbench/Workbench.stories.d.ts +0 -11
- package/jsx/build/Workbench/Workbench.stories.d.ts.map +0 -1
- package/jsx/build/Workbench/Workbench.stories.jsx +0 -288
- package/jsx/build/Workbench/Workbench.stories.jsx.map +0 -1
- package/jsx/core/ComboBox/ComboBox.mocks.js.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts +0 -90
- package/jsx/cs/CSAppShell/CSAppShell.mocks.d.ts.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx +0 -432
- package/jsx/cs/CSAppShell/CSAppShell.mocks.jsx.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts +0 -13
- package/jsx/cs/CSAppShell/CSAppShell.stories.d.ts.map +0 -1
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx +0 -173
- package/jsx/cs/CSAppShell/CSAppShell.stories.jsx.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +0 -21
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +0 -252
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +0 -17
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +0 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +0 -330
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +0 -1
- package/jsx/cs/DialPad/DialPad.stories.d.ts +0 -9
- package/jsx/cs/DialPad/DialPad.stories.d.ts.map +0 -1
- package/jsx/cs/DialPad/DialPad.stories.jsx +0 -20
- package/jsx/cs/DialPad/DialPad.stories.jsx.map +0 -1
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts +0 -11
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +0 -1
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.js +0 -20
- package/jsx/cs/DialPad/DialPadKeyboardData.mock.js.map +0 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +0 -12
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +0 -54
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts +0 -11
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +0 -29
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +0 -11
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +0 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +0 -87
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +0 -1
- package/jsx/cs/Picker/Picker.stories.d.ts +0 -11
- package/jsx/cs/Picker/Picker.stories.d.ts.map +0 -1
- package/jsx/cs/Picker/Picker.stories.jsx +0 -64
- package/jsx/cs/Picker/Picker.stories.jsx.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +0 -30
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.js +0 -228
- package/jsx/cs/TaskManager/TaskManager.mocks.js.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts +0 -15
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.stories.jsx +0 -419
- package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts +0 -3
- package/jsx/cs/TaskManager/TaskManager.styles.d.ts.map +0 -1
- package/jsx/cs/TaskManager/TaskManager.styles.js +0 -9
- package/jsx/cs/TaskManager/TaskManager.styles.js.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +0 -6
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx +0 -81
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts +0 -6
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +0 -1
- package/jsx/tools/Clipboard/Clipboard.stories.jsx +0 -67
- package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +0 -1
- package/jsx/tools/DevTools/DevTools.mocks.d.ts +0 -3
- package/jsx/tools/DevTools/DevTools.mocks.d.ts.map +0 -1
- package/jsx/tools/DevTools/DevTools.mocks.js +0 -3
- package/jsx/tools/DevTools/DevTools.mocks.js.map +0 -1
- package/jsx/tools/DevTools/DevTools.stories.d.ts +0 -10
- package/jsx/tools/DevTools/DevTools.stories.d.ts.map +0 -1
- package/jsx/tools/DevTools/DevTools.stories.jsx +0 -33
- package/jsx/tools/DevTools/DevTools.stories.jsx.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -20
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +0 -80
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +0 -20
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +0 -184
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +0 -2
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +0 -1
- package/jsx/tools/PreviewShell/PreviewShell.styles.js +0 -6
- package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +0 -1
- package/lib/build/AppShell/AppShell.mocks.d.ts +0 -44
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +0 -1
- package/lib/build/AppShell/AppShell.mocks.js +0 -419
- package/lib/build/AppShell/AppShell.mocks.js.map +0 -1
- package/lib/build/AppShell/AppShell.stories.d.ts +0 -20
- package/lib/build/AppShell/AppShell.stories.d.ts.map +0 -1
- package/lib/build/AppShell/AppShell.stories.js +0 -200
- package/lib/build/AppShell/AppShell.stories.js.map +0 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +0 -8
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +0 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +0 -85
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +0 -1
- package/lib/build/DynamicContentEditor/FieldSelector.d.ts +0 -14
- package/lib/build/DynamicContentEditor/FieldSelector.d.ts.map +0 -1
- package/lib/build/DynamicContentEditor/FieldSelector.js +0 -81
- package/lib/build/DynamicContentEditor/FieldSelector.js.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +0 -64
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +0 -599
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +0 -29
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +0 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +0 -339
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +0 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +0 -45
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +0 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js +0 -291
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +0 -28
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.js +0 -536
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +0 -11
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.stories.js +0 -481
- package/lib/build/FlowModeller/FlowModeller.stories.js.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts +0 -2
- package/lib/build/FlowModeller/FlowModeller.styles.d.ts.map +0 -1
- package/lib/build/FlowModeller/FlowModeller.styles.js +0 -8
- package/lib/build/FlowModeller/FlowModeller.styles.js.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +0 -3
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js +0 -45
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +0 -5
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +0 -1
- package/lib/build/ItemLibrary/LibraryPicker.stories.js +0 -39
- package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +0 -204
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.js +0 -1256
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +0 -11
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +0 -1
- package/lib/build/LifeCycle/LifeCycle.stories.js +0 -870
- package/lib/build/LifeCycle/LifeCycle.stories.js.map +0 -1
- package/lib/build/LifeCycle/utils.d.ts +0 -123
- package/lib/build/LifeCycle/utils.d.ts.map +0 -1
- package/lib/build/LifeCycle/utils.js +0 -302
- package/lib/build/LifeCycle/utils.js.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts +0 -10
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.d.ts.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js +0 -20
- package/lib/build/MobileBuildSummary/MobileBuildSummary.mocks.js.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts +0 -8
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.d.ts.map +0 -1
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js +0 -39
- package/lib/build/MobileBuildSummary/MobileBuildSummary.stories.js.map +0 -1
- package/lib/build/ObjectPreview/ObjectPreview.mocks.d.ts +0 -7
- package/lib/build/ObjectPreview/ObjectPreview.mocks.d.ts.map +0 -1
- package/lib/build/ObjectPreview/ObjectPreview.mocks.js +0 -74
- package/lib/build/ObjectPreview/ObjectPreview.mocks.js.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +0 -64
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js +0 -370
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts +0 -8
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.js +0 -240
- package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts +0 -4
- package/lib/build/ObjectSelect/ObjectSelect.styles.d.ts.map +0 -1
- package/lib/build/ObjectSelect/ObjectSelect.styles.js +0 -27
- package/lib/build/ObjectSelect/ObjectSelect.styles.js.map +0 -1
- package/lib/build/PageBanner/PageBanner.stories.d.ts +0 -15
- package/lib/build/PageBanner/PageBanner.stories.d.ts.map +0 -1
- package/lib/build/PageBanner/PageBanner.stories.js +0 -42
- package/lib/build/PageBanner/PageBanner.stories.js.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts +0 -21
- package/lib/build/PageTemplates/GalleryPage.mocks.d.ts.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.mocks.js +0 -25
- package/lib/build/PageTemplates/GalleryPage.mocks.js.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts +0 -16
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +0 -1
- package/lib/build/PageTemplates/GalleryPage.stories.js +0 -50
- package/lib/build/PageTemplates/GalleryPage.stories.js.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts +0 -17
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.js +0 -107
- package/lib/build/PageTemplates/PageTemplates.mocks.js.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +0 -21
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +0 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js +0 -246
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +0 -1
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts +0 -17
- package/lib/build/PageTemplates/ShowcasePage.stories.d.ts.map +0 -1
- package/lib/build/PageTemplates/ShowcasePage.stories.js +0 -43
- package/lib/build/PageTemplates/ShowcasePage.stories.js.map +0 -1
- package/lib/build/Workbench/Workbench.mocks.d.ts +0 -9
- package/lib/build/Workbench/Workbench.mocks.d.ts.map +0 -1
- package/lib/build/Workbench/Workbench.mocks.js +0 -67
- package/lib/build/Workbench/Workbench.mocks.js.map +0 -1
- package/lib/build/Workbench/Workbench.stories.d.ts +0 -11
- package/lib/build/Workbench/Workbench.stories.d.ts.map +0 -1
- package/lib/build/Workbench/Workbench.stories.js +0 -273
- package/lib/build/Workbench/Workbench.stories.js.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts +0 -90
- package/lib/cs/CSAppShell/CSAppShell.mocks.d.ts.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.mocks.js +0 -385
- package/lib/cs/CSAppShell/CSAppShell.mocks.js.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.d.ts +0 -13
- package/lib/cs/CSAppShell/CSAppShell.stories.d.ts.map +0 -1
- package/lib/cs/CSAppShell/CSAppShell.stories.js +0 -172
- package/lib/cs/CSAppShell/CSAppShell.stories.js.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +0 -21
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +0 -252
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +0 -17
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +0 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js +0 -331
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +0 -1
- package/lib/cs/DialPad/DialPad.stories.d.ts +0 -9
- package/lib/cs/DialPad/DialPad.stories.d.ts.map +0 -1
- package/lib/cs/DialPad/DialPad.stories.js +0 -19
- package/lib/cs/DialPad/DialPad.stories.js.map +0 -1
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts +0 -11
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +0 -1
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js +0 -20
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js.map +0 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +0 -12
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +0 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js +0 -55
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts +0 -11
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.d.ts.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +0 -29
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +0 -11
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +0 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js +0 -88
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +0 -1
- package/lib/cs/Picker/Picker.stories.d.ts +0 -11
- package/lib/cs/Picker/Picker.stories.d.ts.map +0 -1
- package/lib/cs/Picker/Picker.stories.js +0 -56
- package/lib/cs/Picker/Picker.stories.js.map +0 -1
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +0 -30
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +0 -1
- package/lib/cs/TaskManager/TaskManager.mocks.js +0 -228
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +0 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +0 -15
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +0 -1
- package/lib/cs/TaskManager/TaskManager.stories.js +0 -395
- package/lib/cs/TaskManager/TaskManager.stories.js.map +0 -1
- package/lib/cs/TaskManager/TaskManager.styles.d.ts +0 -3
- package/lib/cs/TaskManager/TaskManager.styles.d.ts.map +0 -1
- package/lib/cs/TaskManager/TaskManager.styles.js +0 -9
- package/lib/cs/TaskManager/TaskManager.styles.js.map +0 -1
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts +0 -6
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +0 -1
- package/lib/tools/Clipboard/Clipboard.mocks.js +0 -74
- package/lib/tools/Clipboard/Clipboard.mocks.js.map +0 -1
- package/lib/tools/Clipboard/Clipboard.stories.d.ts +0 -6
- package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +0 -1
- package/lib/tools/Clipboard/Clipboard.stories.js +0 -74
- package/lib/tools/Clipboard/Clipboard.stories.js.map +0 -1
- package/lib/tools/DevTools/DevTools.mocks.d.ts +0 -3
- package/lib/tools/DevTools/DevTools.mocks.d.ts.map +0 -1
- package/lib/tools/DevTools/DevTools.mocks.js +0 -3
- package/lib/tools/DevTools/DevTools.mocks.js.map +0 -1
- package/lib/tools/DevTools/DevTools.stories.d.ts +0 -10
- package/lib/tools/DevTools/DevTools.stories.d.ts.map +0 -1
- package/lib/tools/DevTools/DevTools.stories.js +0 -29
- package/lib/tools/DevTools/DevTools.stories.js.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +0 -20
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.mocks.js +0 -77
- package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +0 -20
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.stories.js +0 -181
- package/lib/tools/PreviewShell/PreviewShell.stories.js.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +0 -2
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +0 -1
- package/lib/tools/PreviewShell/PreviewShell.styles.js +0 -6
- package/lib/tools/PreviewShell/PreviewShell.styles.js.map +0 -1
|
@@ -1,536 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useEffect, forwardRef } from 'react';
|
|
3
|
-
import { Table, Text, Button, Icon, Flex, createUID, Card, CardContent, CardHeader, useI18n, Popover, CardFooter } from '@pega/cosmos-react-core';
|
|
4
|
-
import { FlowModellerHelper, START_NODETYPE, STOP_NODETYPE } from '@pega/cosmos-react-build';
|
|
5
|
-
export const DecisionTable = forwardRef(function DecisionTable({ updatedData, connectors, onDeleteRow, onAddRow, node, readOnly }, ref) {
|
|
6
|
-
const [tableData, setTableData] = useState(connectors);
|
|
7
|
-
const t = useI18n();
|
|
8
|
-
const onAddCondition = () => {
|
|
9
|
-
const label = 'Otherwise';
|
|
10
|
-
const updatedGraphData = FlowModellerHelper.addConnector(updatedData, node.id, label).graphData;
|
|
11
|
-
// Add a label to the base connector when the number of connectors are more than one
|
|
12
|
-
if (tableData.length === 1) {
|
|
13
|
-
const defaultConnector = tableData[0];
|
|
14
|
-
if (defaultConnector?.label === '') {
|
|
15
|
-
defaultConnector.label = 'Default';
|
|
16
|
-
}
|
|
17
|
-
for (let i = 0; i < updatedGraphData.connectors.length; i += 1) {
|
|
18
|
-
const connector = updatedGraphData.connectors[i];
|
|
19
|
-
if (connector.id === defaultConnector.id) {
|
|
20
|
-
connector.label = defaultConnector.label;
|
|
21
|
-
break;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (updatedGraphData)
|
|
26
|
-
onAddRow(updatedGraphData);
|
|
27
|
-
};
|
|
28
|
-
const onDeleteCondition = (connector, e) => {
|
|
29
|
-
const updatedGraphData = FlowModellerHelper.deleteConnector(updatedData, connector);
|
|
30
|
-
if (updatedGraphData.error) {
|
|
31
|
-
onDeleteRow(updatedGraphData.graphData, connector, t('delete_connector_error'), updatedGraphData.deletes, e);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
onDeleteRow(updatedGraphData.graphData, connector, '', updatedGraphData.deletes, e);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
const columns = [
|
|
38
|
-
{
|
|
39
|
-
renderer: ({ label }) => _jsx(Text, { children: label }),
|
|
40
|
-
label: 'Label'
|
|
41
|
-
},
|
|
42
|
-
{ renderer: () => _jsx(Text, { children: "No value" }), label: 'Value' },
|
|
43
|
-
{
|
|
44
|
-
renderer: connector => {
|
|
45
|
-
return (_jsx(Button, { variant: 'simple', ref: ref, disabled: readOnly ||
|
|
46
|
-
(node.type.name === 'Decision' && connectors.length < 3) ||
|
|
47
|
-
(node.type.name === 'Assignment' && connectors.length < 2), id: connector.id, icon: true, onClick: (e) => onDeleteCondition(connector, e), label: t('delete'), children: _jsx(Icon, { name: 'trash' }) }));
|
|
48
|
-
},
|
|
49
|
-
label: 'Action'
|
|
50
|
-
}
|
|
51
|
-
];
|
|
52
|
-
useEffect(() => {
|
|
53
|
-
setTableData(connectors);
|
|
54
|
-
}, [connectors]);
|
|
55
|
-
return (_jsxs(_Fragment, { children: [_jsx(Table, { title: 'Outcomes', hoverHighlight: true, data: tableData, columns: columns }), _jsx(Flex, { container: { pad: [1, 0] }, children: _jsx(Button, { disabled: readOnly, variant: 'simple', onClick: onAddCondition, children: "Add condition" }) })] }));
|
|
56
|
-
});
|
|
57
|
-
export const DeletePopover = forwardRef(function DeletePopover({ targetId, showPopover, onCancel, onDelete }, ref) {
|
|
58
|
-
const [elementTarget, setElementTarget] = useState();
|
|
59
|
-
const t = useI18n();
|
|
60
|
-
useEffect(() => {
|
|
61
|
-
const element = document.querySelector(`button[id='${targetId}']`);
|
|
62
|
-
if (element) {
|
|
63
|
-
setElementTarget(element);
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
return elementTarget && showPopover ? (_jsx(Popover, { target: elementTarget, ref: ref, show: showPopover, children: _jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(Text, { variant: 'h4', children: "Delete Outcome" }), _jsx(Button, { variant: 'simple', icon: true, label: t('close'), onClick: onCancel, children: _jsx(Icon, { name: 'times' }) })] }), _jsx(CardContent, { children: "Are you sure you want to delete this outcome and all its steps?" }), _jsxs(CardFooter, { container: { justify: 'between' }, children: [_jsx(Button, { onClick: onCancel, children: "Cancel" }), _jsx(Button, { variant: 'primary', onClick: onDelete, children: "Delete" })] })] }) })) : null;
|
|
67
|
-
});
|
|
68
|
-
export const FlowShapeType = Object.freeze({
|
|
69
|
-
START: START_NODETYPE,
|
|
70
|
-
STOP: STOP_NODETYPE,
|
|
71
|
-
DECISION: {
|
|
72
|
-
id: 'decision',
|
|
73
|
-
name: 'Decision',
|
|
74
|
-
color: 'darkYellow',
|
|
75
|
-
icon: 'diamond',
|
|
76
|
-
minConnectors: 2,
|
|
77
|
-
defaults: {
|
|
78
|
-
node: {
|
|
79
|
-
label: 'Decision',
|
|
80
|
-
description: 'Adjust the conditions using the property panel'
|
|
81
|
-
},
|
|
82
|
-
connector: [
|
|
83
|
-
{
|
|
84
|
-
label: 'Default'
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
label: 'Otherwise'
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
QUESTION: {
|
|
93
|
-
id: 'question',
|
|
94
|
-
name: 'Question',
|
|
95
|
-
color: 'japaneseLaurel',
|
|
96
|
-
icon: 'chat-help',
|
|
97
|
-
minConnectors: 3,
|
|
98
|
-
defaults: {
|
|
99
|
-
node: {
|
|
100
|
-
label: 'Question'
|
|
101
|
-
},
|
|
102
|
-
connector: [
|
|
103
|
-
{
|
|
104
|
-
label: 'Question 1'
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
label: 'Question 2'
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
label: 'Question 3'
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
ASSIGNMENT: {
|
|
116
|
-
id: 'assignment',
|
|
117
|
-
name: 'Assignment',
|
|
118
|
-
color: 'japaneseLaurel',
|
|
119
|
-
icon: 'clipboard-data',
|
|
120
|
-
minConnectors: 1,
|
|
121
|
-
defaults: {
|
|
122
|
-
node: {
|
|
123
|
-
label: 'Assignment'
|
|
124
|
-
},
|
|
125
|
-
connector: [{ label: '' }]
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
MESSAGE: {
|
|
129
|
-
id: 'message',
|
|
130
|
-
name: 'Message',
|
|
131
|
-
color: 'orange',
|
|
132
|
-
icon: 'chat',
|
|
133
|
-
minConnectors: 1,
|
|
134
|
-
defaults: {
|
|
135
|
-
node: {
|
|
136
|
-
label: 'Message'
|
|
137
|
-
},
|
|
138
|
-
connector: [{ label: '' }]
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
SEND_EMAIL: {
|
|
142
|
-
id: 'send_email',
|
|
143
|
-
name: 'Send email',
|
|
144
|
-
color: 'yellow',
|
|
145
|
-
icon: 'mail',
|
|
146
|
-
minConnectors: 1,
|
|
147
|
-
defaults: {
|
|
148
|
-
node: {
|
|
149
|
-
label: 'Send email'
|
|
150
|
-
},
|
|
151
|
-
connector: [{ label: '' }]
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
GENERATE_PDF: {
|
|
155
|
-
id: 'generate_pdf',
|
|
156
|
-
name: 'Generate PDF',
|
|
157
|
-
color: 'congressBlue',
|
|
158
|
-
icon: 'polaris',
|
|
159
|
-
minConnectors: 1,
|
|
160
|
-
defaults: {
|
|
161
|
-
node: {
|
|
162
|
-
label: 'Generate PDF'
|
|
163
|
-
},
|
|
164
|
-
connector: [{ label: '' }]
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
GOTO: {
|
|
168
|
-
id: 'goto',
|
|
169
|
-
name: 'Go to',
|
|
170
|
-
color: 'red',
|
|
171
|
-
icon: 'arrow-left-right',
|
|
172
|
-
minConnectors: 0,
|
|
173
|
-
defaults: {
|
|
174
|
-
node: {
|
|
175
|
-
label: 'Go to',
|
|
176
|
-
description: ''
|
|
177
|
-
},
|
|
178
|
-
connector: []
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
export const exampleCRMNodesData = [
|
|
183
|
-
{
|
|
184
|
-
id: '100',
|
|
185
|
-
label: 'START',
|
|
186
|
-
type: FlowShapeType.START
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
id: '101',
|
|
190
|
-
label: 'Is B2B',
|
|
191
|
-
description: '',
|
|
192
|
-
reference: '',
|
|
193
|
-
type: FlowShapeType.DECISION,
|
|
194
|
-
additionalData: [],
|
|
195
|
-
error: ''
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
id: '102',
|
|
199
|
-
label: 'Update Org Domains',
|
|
200
|
-
description: '',
|
|
201
|
-
reference: '',
|
|
202
|
-
type: FlowShapeType.ASSIGNMENT,
|
|
203
|
-
additionalData: [],
|
|
204
|
-
error: ''
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
id: '127',
|
|
208
|
-
label: 'Goto',
|
|
209
|
-
description: '',
|
|
210
|
-
reference: '',
|
|
211
|
-
type: FlowShapeType.GOTO,
|
|
212
|
-
additionalData: [],
|
|
213
|
-
error: ''
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
id: '103',
|
|
217
|
-
label: 'CreateC2OFromContact',
|
|
218
|
-
description: '',
|
|
219
|
-
reference: '',
|
|
220
|
-
type: FlowShapeType.ASSIGNMENT,
|
|
221
|
-
additionalData: [],
|
|
222
|
-
error: ''
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
id: '104',
|
|
226
|
-
label: 'CreateC2AFromContact',
|
|
227
|
-
description: '',
|
|
228
|
-
reference: '',
|
|
229
|
-
type: FlowShapeType.ASSIGNMENT,
|
|
230
|
-
additionalData: [],
|
|
231
|
-
error: ''
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
id: '105',
|
|
235
|
-
label: 'Is B2C',
|
|
236
|
-
description: '',
|
|
237
|
-
reference: '',
|
|
238
|
-
type: FlowShapeType.DECISION,
|
|
239
|
-
additionalData: [],
|
|
240
|
-
error: ''
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
id: '106',
|
|
244
|
-
label: 'CreatePrimaryIndividualAccount',
|
|
245
|
-
description: '',
|
|
246
|
-
reference: '',
|
|
247
|
-
type: FlowShapeType.ASSIGNMENT,
|
|
248
|
-
additionalData: [],
|
|
249
|
-
error: ''
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
id: '107',
|
|
253
|
-
label: 'Capture Event',
|
|
254
|
-
description: '',
|
|
255
|
-
reference: '',
|
|
256
|
-
type: FlowShapeType.ASSIGNMENT,
|
|
257
|
-
additionalData: [],
|
|
258
|
-
error: ''
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
id: '108',
|
|
262
|
-
label: 'Update Private Data',
|
|
263
|
-
description: '',
|
|
264
|
-
reference: '',
|
|
265
|
-
type: FlowShapeType.ASSIGNMENT,
|
|
266
|
-
additionalData: [],
|
|
267
|
-
error: ''
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
id: '109',
|
|
271
|
-
label: 'Attach Business Card',
|
|
272
|
-
description: '',
|
|
273
|
-
reference: '',
|
|
274
|
-
type: FlowShapeType.ASSIGNMENT,
|
|
275
|
-
additionalData: [],
|
|
276
|
-
error: ''
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
id: '110',
|
|
280
|
-
label: 'Has Address',
|
|
281
|
-
description: '',
|
|
282
|
-
reference: '',
|
|
283
|
-
type: FlowShapeType.DECISION,
|
|
284
|
-
additionalData: [],
|
|
285
|
-
error: ''
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
id: '111',
|
|
289
|
-
label: 'Remove WO Related NBA',
|
|
290
|
-
description: '',
|
|
291
|
-
reference: '',
|
|
292
|
-
type: FlowShapeType.ASSIGNMENT,
|
|
293
|
-
additionalData: [],
|
|
294
|
-
error: ''
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
id: '112',
|
|
298
|
-
label: 'Bulk Processing',
|
|
299
|
-
description: '',
|
|
300
|
-
reference: '',
|
|
301
|
-
type: FlowShapeType.DECISION,
|
|
302
|
-
additionalData: [],
|
|
303
|
-
error: ''
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
id: '113',
|
|
307
|
-
label: 'Queue For Agent',
|
|
308
|
-
description: '',
|
|
309
|
-
reference: '',
|
|
310
|
-
type: FlowShapeType.ASSIGNMENT,
|
|
311
|
-
additionalData: [],
|
|
312
|
-
error: ''
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
id: '114',
|
|
316
|
-
label: 'Retrieve Lat Long',
|
|
317
|
-
description: '',
|
|
318
|
-
reference: '',
|
|
319
|
-
type: FlowShapeType.ASSIGNMENT,
|
|
320
|
-
additionalData: [],
|
|
321
|
-
error: ''
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
id: '115',
|
|
325
|
-
label: 'Remove WO Related NBA',
|
|
326
|
-
description: '',
|
|
327
|
-
reference: '',
|
|
328
|
-
type: FlowShapeType.ASSIGNMENT,
|
|
329
|
-
additionalData: [],
|
|
330
|
-
error: ''
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
id: '121',
|
|
334
|
-
label: 'END',
|
|
335
|
-
type: FlowShapeType.STOP
|
|
336
|
-
}
|
|
337
|
-
];
|
|
338
|
-
export const exampleCRMConnectorsData = [
|
|
339
|
-
{
|
|
340
|
-
id: '100-101',
|
|
341
|
-
label: '',
|
|
342
|
-
fromNodeId: '100',
|
|
343
|
-
toNodeId: '101'
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
id: '101-102',
|
|
347
|
-
label: 'isSellingModeB2BOrB2BB2C',
|
|
348
|
-
fromNodeId: '101',
|
|
349
|
-
toNodeId: '102'
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
id: '102-103',
|
|
353
|
-
label: '',
|
|
354
|
-
fromNodeId: '102',
|
|
355
|
-
toNodeId: '103'
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
id: '103-104',
|
|
359
|
-
label: '',
|
|
360
|
-
fromNodeId: '103',
|
|
361
|
-
toNodeId: '104'
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
id: '104-105',
|
|
365
|
-
label: '',
|
|
366
|
-
fromNodeId: '104',
|
|
367
|
-
toNodeId: '105'
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
id: '101-127',
|
|
371
|
-
label: 'Else',
|
|
372
|
-
fromNodeId: '101',
|
|
373
|
-
toNodeId: '127'
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
id: '127-105',
|
|
377
|
-
label: '',
|
|
378
|
-
fromNodeId: '127',
|
|
379
|
-
toNodeId: '105'
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
id: '105-106',
|
|
383
|
-
label: 'isSellingModeB2COrB2BB2C',
|
|
384
|
-
fromNodeId: '105',
|
|
385
|
-
toNodeId: '106'
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
id: '106-107',
|
|
389
|
-
label: '',
|
|
390
|
-
fromNodeId: '106',
|
|
391
|
-
toNodeId: '107'
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
id: '105-107',
|
|
395
|
-
label: 'Else',
|
|
396
|
-
fromNodeId: '105',
|
|
397
|
-
toNodeId: '107'
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
id: '107-108',
|
|
401
|
-
label: '',
|
|
402
|
-
fromNodeId: '107',
|
|
403
|
-
toNodeId: '108'
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
id: '108-109',
|
|
407
|
-
label: '',
|
|
408
|
-
fromNodeId: '108',
|
|
409
|
-
toNodeId: '109'
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
id: '109-110',
|
|
413
|
-
label: '',
|
|
414
|
-
fromNodeId: '109',
|
|
415
|
-
toNodeId: '110'
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
id: '110-112',
|
|
419
|
-
label: 'crmHasAddress',
|
|
420
|
-
fromNodeId: '110',
|
|
421
|
-
toNodeId: '112'
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
id: '112-113',
|
|
425
|
-
label: 'Bulk Processing',
|
|
426
|
-
fromNodeId: '112',
|
|
427
|
-
toNodeId: '113'
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
id: '112-114',
|
|
431
|
-
label: 'Manual',
|
|
432
|
-
fromNodeId: '112',
|
|
433
|
-
toNodeId: '114'
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
id: '114-115',
|
|
437
|
-
label: '',
|
|
438
|
-
fromNodeId: '114',
|
|
439
|
-
toNodeId: '115'
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
id: '115-121',
|
|
443
|
-
label: '',
|
|
444
|
-
fromNodeId: '115',
|
|
445
|
-
toNodeId: '121'
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
id: '113-121',
|
|
449
|
-
label: '',
|
|
450
|
-
fromNodeId: '113',
|
|
451
|
-
toNodeId: '121'
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
id: '110-111',
|
|
455
|
-
label: 'Else',
|
|
456
|
-
fromNodeId: '110',
|
|
457
|
-
toNodeId: '111'
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
id: '111-121',
|
|
461
|
-
label: '',
|
|
462
|
-
fromNodeId: '111',
|
|
463
|
-
toNodeId: '121'
|
|
464
|
-
}
|
|
465
|
-
];
|
|
466
|
-
export const emptyNodesData = [
|
|
467
|
-
{
|
|
468
|
-
id: '100',
|
|
469
|
-
label: 'START',
|
|
470
|
-
type: FlowShapeType.START
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
id: '120',
|
|
474
|
-
label: 'STOP',
|
|
475
|
-
type: FlowShapeType.STOP
|
|
476
|
-
}
|
|
477
|
-
];
|
|
478
|
-
export const emptyConnectorsData = [
|
|
479
|
-
{
|
|
480
|
-
id: '100-120',
|
|
481
|
-
label: 'happy path',
|
|
482
|
-
fromNodeId: '100',
|
|
483
|
-
toNodeId: '120'
|
|
484
|
-
}
|
|
485
|
-
];
|
|
486
|
-
export const nodeActions = [
|
|
487
|
-
{
|
|
488
|
-
id: 'action-2',
|
|
489
|
-
text: 'Reassign'
|
|
490
|
-
}
|
|
491
|
-
];
|
|
492
|
-
export const nodeLibrary = [
|
|
493
|
-
{
|
|
494
|
-
id: createUID(),
|
|
495
|
-
primary: 'Assignment',
|
|
496
|
-
type: FlowShapeType.ASSIGNMENT
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
id: createUID(),
|
|
500
|
-
primary: 'Decision',
|
|
501
|
-
type: FlowShapeType.DECISION
|
|
502
|
-
},
|
|
503
|
-
{
|
|
504
|
-
id: createUID(),
|
|
505
|
-
primary: 'Send a message',
|
|
506
|
-
type: FlowShapeType.MESSAGE
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
id: createUID(),
|
|
510
|
-
primary: 'Ask a question',
|
|
511
|
-
type: FlowShapeType.QUESTION
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
id: createUID(),
|
|
515
|
-
primary: 'Go to',
|
|
516
|
-
type: FlowShapeType.GOTO
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
id: createUID(),
|
|
520
|
-
primary: 'Automations',
|
|
521
|
-
type: FlowShapeType.AUTOMATION,
|
|
522
|
-
items: [
|
|
523
|
-
{
|
|
524
|
-
id: createUID(),
|
|
525
|
-
primary: 'Send email',
|
|
526
|
-
type: FlowShapeType.SEND_EMAIL
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
id: createUID(),
|
|
530
|
-
primary: 'Generate PDF',
|
|
531
|
-
type: FlowShapeType.GENERATE_PDF
|
|
532
|
-
}
|
|
533
|
-
]
|
|
534
|
-
}
|
|
535
|
-
];
|
|
536
|
-
//# sourceMappingURL=FlowModeller.mocks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,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AC,YAAY;aACjC;SACF;KACF;CACF,CAAC","sourcesContent":["import { useState, useEffect, Ref, forwardRef, FC } from 'react';\n\nimport {\n Table,\n ColumnProps,\n Text,\n Button,\n Icon,\n Flex,\n createUID,\n Action,\n ForwardProps,\n Card,\n CardContent,\n CardHeader,\n useI18n,\n Popover,\n CardFooter\n} from '@pega/cosmos-react-core';\nimport {\n NodeProps,\n ConnectorProps,\n FlowModellerHelper,\n NodeType,\n NodeLibraryItem,\n DeleteNodeOutcome,\n START_NODETYPE,\n STOP_NODETYPE,\n GraphData\n} from '@pega/cosmos-react-build';\n\ninterface DecisionTableProps {\n updatedData: GraphData<NodeProps, ConnectorProps>;\n connectors: ConnectorProps[];\n node: NodeProps;\n onDeleteRow: (\n data: GraphData<NodeProps, ConnectorProps>,\n connector: ConnectorProps,\n error: string,\n deleteItems?: DeleteNodeOutcome['deletes'],\n e?: MouseEvent\n ) => void;\n onAddRow: (data: GraphData<NodeProps, ConnectorProps>) => void;\n readOnly?: boolean;\n}\ninterface DeletePopoverProps {\n targetId: string | null;\n showPopover: boolean;\n onCancel: () => void;\n onDelete: () => void;\n}\n\nexport const DecisionTable: FC<DecisionTableProps & ForwardProps> = forwardRef(\n function DecisionTable(\n { updatedData, connectors, onDeleteRow, onAddRow, node, readOnly }: DecisionTableProps,\n ref: Ref<HTMLButtonElement>\n ) {\n const [tableData, setTableData] = useState<ConnectorProps[]>(connectors);\n const t = useI18n();\n\n const onAddCondition = () => {\n const label = 'Otherwise';\n const updatedGraphData = FlowModellerHelper.addConnector(\n updatedData,\n node.id,\n label\n ).graphData;\n\n // Add a label to the base connector when the number of connectors are more than one\n if (tableData.length === 1) {\n const defaultConnector: ConnectorProps = tableData[0];\n if (defaultConnector?.label === '') {\n defaultConnector.label = 'Default';\n }\n for (let i = 0; i < updatedGraphData.connectors.length; i += 1) {\n const connector: ConnectorProps = updatedGraphData.connectors[i];\n if (connector.id === defaultConnector.id) {\n connector.label = defaultConnector.label;\n break;\n }\n }\n }\n\n if (updatedGraphData) onAddRow(updatedGraphData);\n };\n\n const onDeleteCondition = (connector: ConnectorProps, e: MouseEvent) => {\n const updatedGraphData = FlowModellerHelper.deleteConnector(updatedData, connector);\n if (updatedGraphData.error) {\n onDeleteRow(\n updatedGraphData!.graphData,\n connector,\n t('delete_connector_error'),\n updatedGraphData!.deletes,\n e\n );\n } else {\n onDeleteRow(updatedGraphData!.graphData, connector, '', updatedGraphData!.deletes, e);\n }\n };\n\n const columns: ColumnProps<ConnectorProps>[] = [\n {\n renderer: ({ label }) => <Text>{label}</Text>,\n label: 'Label'\n },\n { renderer: () => <Text>No value</Text>, label: 'Value' },\n {\n renderer: connector => {\n return (\n <Button\n variant='simple'\n ref={ref}\n disabled={\n readOnly ||\n (node.type.name === 'Decision' && connectors.length < 3) ||\n (node.type.name === 'Assignment' && connectors.length < 2)\n }\n id={connector.id}\n icon\n onClick={(e: MouseEvent) => onDeleteCondition(connector, e)}\n label={t('delete')}\n >\n <Icon name='trash' />\n </Button>\n );\n },\n label: 'Action'\n }\n ];\n\n useEffect(() => {\n setTableData(connectors);\n }, [connectors]);\n\n return (\n <>\n <Table title='Outcomes' hoverHighlight data={tableData} columns={columns} />\n <Flex container={{ pad: [1, 0] }}>\n <Button disabled={readOnly} variant='simple' onClick={onAddCondition}>\n Add condition\n </Button>\n </Flex>\n </>\n );\n }\n);\n\nexport const DeletePopover: FC<DeletePopoverProps & ForwardProps> = forwardRef(\n function DeletePopover({ targetId, showPopover, onCancel, onDelete }, ref: Ref<HTMLDivElement>) {\n const [elementTarget, setElementTarget] = useState<Element>();\n const t = useI18n();\n\n useEffect(() => {\n const element = document.querySelector(`button[id='${targetId}']`);\n if (element) {\n setElementTarget(element);\n }\n });\n\n return elementTarget && showPopover ? (\n <Popover target={elementTarget} ref={ref} show={showPopover}>\n <Card>\n <CardHeader>\n <Text variant='h4'>Delete Outcome</Text>\n <Button variant='simple' icon label={t('close')} onClick={onCancel}>\n <Icon name='times' />\n </Button>\n </CardHeader>\n <CardContent>Are you sure you want to delete this outcome and all its steps?</CardContent>\n <CardFooter container={{ justify: 'between' }}>\n <Button onClick={onCancel}>Cancel</Button>\n <Button variant='primary' onClick={onDelete}>\n Delete\n </Button>\n </CardFooter>\n </Card>\n </Popover>\n ) : null;\n }\n);\n\nexport const FlowShapeType: Record<string, NodeType> = Object.freeze({\n START: START_NODETYPE,\n STOP: STOP_NODETYPE,\n DECISION: {\n id: 'decision',\n name: 'Decision',\n color: 'darkYellow',\n icon: 'diamond',\n minConnectors: 2,\n defaults: {\n node: {\n label: 'Decision',\n description: 'Adjust the conditions using the property panel'\n },\n connector: [\n {\n label: 'Default'\n },\n {\n label: 'Otherwise'\n }\n ]\n }\n },\n QUESTION: {\n id: 'question',\n name: 'Question',\n color: 'japaneseLaurel',\n icon: 'chat-help',\n minConnectors: 3,\n defaults: {\n node: {\n label: 'Question'\n },\n connector: [\n {\n label: 'Question 1'\n },\n {\n label: 'Question 2'\n },\n {\n label: 'Question 3'\n }\n ]\n }\n },\n ASSIGNMENT: {\n id: 'assignment',\n name: 'Assignment',\n color: 'japaneseLaurel',\n icon: 'clipboard-data',\n minConnectors: 1,\n defaults: {\n node: {\n label: 'Assignment'\n },\n connector: [{ label: '' }]\n }\n },\n MESSAGE: {\n id: 'message',\n name: 'Message',\n color: 'orange',\n icon: 'chat',\n minConnectors: 1,\n defaults: {\n node: {\n label: 'Message'\n },\n connector: [{ label: '' }]\n }\n },\n SEND_EMAIL: {\n id: 'send_email',\n name: 'Send email',\n color: 'yellow',\n icon: 'mail',\n minConnectors: 1,\n defaults: {\n node: {\n label: 'Send email'\n },\n connector: [{ label: '' }]\n }\n },\n GENERATE_PDF: {\n id: 'generate_pdf',\n name: 'Generate PDF',\n color: 'congressBlue',\n icon: 'polaris',\n minConnectors: 1,\n defaults: {\n node: {\n label: 'Generate PDF'\n },\n connector: [{ label: '' }]\n }\n },\n GOTO: {\n id: 'goto',\n name: 'Go to',\n color: 'red',\n icon: 'arrow-left-right',\n minConnectors: 0,\n defaults: {\n node: {\n label: 'Go to',\n description: ''\n },\n connector: []\n }\n }\n});\n\nexport const exampleCRMNodesData: NodeProps[] = [\n {\n id: '100',\n label: 'START',\n type: FlowShapeType.START\n },\n {\n id: '101',\n label: 'Is B2B',\n description: '',\n reference: '',\n type: FlowShapeType.DECISION,\n additionalData: [],\n error: ''\n },\n {\n id: '102',\n label: 'Update Org Domains',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '127',\n label: 'Goto',\n description: '',\n reference: '',\n type: FlowShapeType.GOTO,\n additionalData: [],\n error: ''\n },\n {\n id: '103',\n label: 'CreateC2OFromContact',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '104',\n label: 'CreateC2AFromContact',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '105',\n label: 'Is B2C',\n description: '',\n reference: '',\n type: FlowShapeType.DECISION,\n additionalData: [],\n error: ''\n },\n {\n id: '106',\n label: 'CreatePrimaryIndividualAccount',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '107',\n label: 'Capture Event',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '108',\n label: 'Update Private Data',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '109',\n label: 'Attach Business Card',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '110',\n label: 'Has Address',\n description: '',\n reference: '',\n type: FlowShapeType.DECISION,\n additionalData: [],\n error: ''\n },\n {\n id: '111',\n label: 'Remove WO Related NBA',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '112',\n label: 'Bulk Processing',\n description: '',\n reference: '',\n type: FlowShapeType.DECISION,\n additionalData: [],\n error: ''\n },\n {\n id: '113',\n label: 'Queue For Agent',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '114',\n label: 'Retrieve Lat Long',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '115',\n label: 'Remove WO Related NBA',\n description: '',\n reference: '',\n type: FlowShapeType.ASSIGNMENT,\n additionalData: [],\n error: ''\n },\n {\n id: '121',\n label: 'END',\n type: FlowShapeType.STOP\n }\n];\n\nexport const exampleCRMConnectorsData: ConnectorProps[] = [\n {\n id: '100-101',\n label: '',\n fromNodeId: '100',\n toNodeId: '101'\n },\n {\n id: '101-102',\n label: 'isSellingModeB2BOrB2BB2C',\n fromNodeId: '101',\n toNodeId: '102'\n },\n {\n id: '102-103',\n label: '',\n fromNodeId: '102',\n toNodeId: '103'\n },\n {\n id: '103-104',\n label: '',\n fromNodeId: '103',\n toNodeId: '104'\n },\n {\n id: '104-105',\n label: '',\n fromNodeId: '104',\n toNodeId: '105'\n },\n {\n id: '101-127',\n label: 'Else',\n fromNodeId: '101',\n toNodeId: '127'\n },\n {\n id: '127-105',\n label: '',\n fromNodeId: '127',\n toNodeId: '105'\n },\n {\n id: '105-106',\n label: 'isSellingModeB2COrB2BB2C',\n fromNodeId: '105',\n toNodeId: '106'\n },\n {\n id: '106-107',\n label: '',\n fromNodeId: '106',\n toNodeId: '107'\n },\n {\n id: '105-107',\n label: 'Else',\n fromNodeId: '105',\n toNodeId: '107'\n },\n {\n id: '107-108',\n label: '',\n fromNodeId: '107',\n toNodeId: '108'\n },\n {\n id: '108-109',\n label: '',\n fromNodeId: '108',\n toNodeId: '109'\n },\n {\n id: '109-110',\n label: '',\n fromNodeId: '109',\n toNodeId: '110'\n },\n {\n id: '110-112',\n label: 'crmHasAddress',\n fromNodeId: '110',\n toNodeId: '112'\n },\n {\n id: '112-113',\n label: 'Bulk Processing',\n fromNodeId: '112',\n toNodeId: '113'\n },\n {\n id: '112-114',\n label: 'Manual',\n fromNodeId: '112',\n toNodeId: '114'\n },\n {\n id: '114-115',\n label: '',\n fromNodeId: '114',\n toNodeId: '115'\n },\n {\n id: '115-121',\n label: '',\n fromNodeId: '115',\n toNodeId: '121'\n },\n {\n id: '113-121',\n label: '',\n fromNodeId: '113',\n toNodeId: '121'\n },\n {\n id: '110-111',\n label: 'Else',\n fromNodeId: '110',\n toNodeId: '111'\n },\n {\n id: '111-121',\n label: '',\n fromNodeId: '111',\n toNodeId: '121'\n }\n];\n\nexport const emptyNodesData: NodeProps[] = [\n {\n id: '100',\n label: 'START',\n type: FlowShapeType.START\n },\n {\n id: '120',\n label: 'STOP',\n type: FlowShapeType.STOP\n }\n];\n\nexport const emptyConnectorsData: ConnectorProps[] = [\n {\n id: '100-120',\n label: 'happy path',\n fromNodeId: '100',\n toNodeId: '120'\n }\n];\n\nexport const nodeActions: Action[] = [\n {\n id: 'action-2',\n text: 'Reassign'\n }\n];\n\nexport const nodeLibrary: NodeLibraryItem[] = [\n {\n id: createUID(),\n primary: 'Assignment',\n type: FlowShapeType.ASSIGNMENT\n },\n {\n id: createUID(),\n primary: 'Decision',\n type: FlowShapeType.DECISION\n },\n {\n id: createUID(),\n primary: 'Send a message',\n type: FlowShapeType.MESSAGE\n },\n {\n id: createUID(),\n primary: 'Ask a question',\n type: FlowShapeType.QUESTION\n },\n {\n id: createUID(),\n primary: 'Go to',\n type: FlowShapeType.GOTO\n },\n {\n id: createUID(),\n primary: 'Automations',\n type: FlowShapeType.AUTOMATION,\n items: [\n {\n id: createUID(),\n primary: 'Send email',\n type: FlowShapeType.SEND_EMAIL\n },\n {\n id: createUID(),\n primary: 'Generate PDF',\n type: FlowShapeType.GENERATE_PDF\n }\n ]\n }\n];\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { StoryFn } from '@storybook/react';
|
|
2
|
-
import type { FlowModellerProps } from '@pega/cosmos-react-build';
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
|
-
export default _default;
|
|
5
|
-
interface FlowChartDemoProps extends Partial<FlowModellerProps> {
|
|
6
|
-
showErrorState?: boolean;
|
|
7
|
-
readOnly?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const EmptyFlowChartView: StoryFn<FlowChartDemoProps>;
|
|
10
|
-
export declare const CRMFlowChartView: StoryFn<FlowChartDemoProps>;
|
|
11
|
-
//# sourceMappingURL=FlowModeller.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FlowModeller.stories.d.ts","sourceRoot":"","sources":["../../../src/build/FlowModeller/FlowModeller.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EASV,iBAAiB,EAElB,MAAM,0BAA0B,CAAC;;AA2BlC,wBAMU;AACV,UAAU,kBAAmB,SAAQ,OAAO,CAAC,iBAAiB,CAAC;IAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,CAuT1D,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,kBAAkB,CA8UxD,CAAC"}
|