@pega/cosmos-react-demos 2.0.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/LICENSE +185 -0
- package/lib/build/AppHeader/AppHeader.stories.d.ts +8 -0
- package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -0
- package/lib/build/AppHeader/AppHeader.stories.jsx +65 -0
- package/lib/build/AppHeader/AppHeader.stories.jsx.map +1 -0
- package/lib/build/AppShell/AppShell.mocks.d.ts +50 -0
- package/lib/build/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/lib/build/AppShell/AppShell.mocks.js +503 -0
- package/lib/build/AppShell/AppShell.mocks.js.map +1 -0
- package/lib/build/AppShell/AppShell.stories.d.ts +12 -0
- package/lib/build/AppShell/AppShell.stories.d.ts.map +1 -0
- package/lib/build/AppShell/AppShell.stories.jsx +194 -0
- package/lib/build/AppShell/AppShell.stories.jsx.map +1 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +45 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js +291 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +9 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.js +411 -0
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +12 -0
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -0
- package/lib/build/FlowModeller/FlowModeller.stories.jsx +214 -0
- package/lib/build/FlowModeller/FlowModeller.stories.jsx.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +201 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.js +1128 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +11 -0
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.stories.jsx +491 -0
- package/lib/build/LifeCycle/LifeCycle.stories.jsx.map +1 -0
- package/lib/build/LifeCycle/utils.d.ts +65 -0
- package/lib/build/LifeCycle/utils.d.ts.map +1 -0
- package/lib/build/LifeCycle/utils.js +218 -0
- package/lib/build/LifeCycle/utils.js.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts +12 -0
- package/lib/build/PageTemplates/GalleryPage.stories.d.ts.map +1 -0
- package/lib/build/PageTemplates/GalleryPage.stories.jsx +126 -0
- package/lib/build/PageTemplates/GalleryPage.stories.jsx.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts +26 -0
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/lib/build/PageTemplates/PageTemplates.stories.jsx +434 -0
- package/lib/build/PageTemplates/PageTemplates.stories.jsx.map +1 -0
- package/lib/build/Workbench/Workbench.mocks.d.ts +9 -0
- package/lib/build/Workbench/Workbench.mocks.d.ts.map +1 -0
- package/lib/build/Workbench/Workbench.mocks.js +67 -0
- package/lib/build/Workbench/Workbench.mocks.js.map +1 -0
- package/lib/build/Workbench/Workbench.stories.d.ts +10 -0
- package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -0
- package/lib/build/Workbench/Workbench.stories.jsx +124 -0
- package/lib/build/Workbench/Workbench.stories.jsx.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +10 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +263 -0
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts +6 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.js +113 -0
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -0
- package/lib/core/AppShell/AppShell.mocks.d.ts +15 -0
- package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/lib/core/AppShell/AppShell.mocks.jsx +147 -0
- package/lib/core/AppShell/AppShell.mocks.jsx.map +1 -0
- package/lib/core/AppShell/AppShell.stories.d.ts +31 -0
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -0
- package/lib/core/AppShell/AppShell.stories.jsx +222 -0
- package/lib/core/AppShell/AppShell.stories.jsx.map +1 -0
- package/lib/core/AppShell/AppShell.styles.d.ts +2 -0
- package/lib/core/AppShell/AppShell.styles.d.ts.map +1 -0
- package/lib/core/AppShell/AppShell.styles.js +5 -0
- package/lib/core/AppShell/AppShell.styles.js.map +1 -0
- package/lib/core/Avatar/Avatar.stories.d.ts +10 -0
- package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -0
- package/lib/core/Avatar/Avatar.stories.jsx +50 -0
- package/lib/core/Avatar/Avatar.stories.jsx.map +1 -0
- package/lib/core/Backdrop/Backdrop.stories.d.ts +7 -0
- package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -0
- package/lib/core/Backdrop/Backdrop.stories.jsx +43 -0
- package/lib/core/Backdrop/Backdrop.stories.jsx.map +1 -0
- package/lib/core/Badges/Alert.stories.d.ts +6 -0
- package/lib/core/Badges/Alert.stories.d.ts.map +1 -0
- package/lib/core/Badges/Alert.stories.jsx +15 -0
- package/lib/core/Badges/Alert.stories.jsx.map +1 -0
- package/lib/core/Badges/Count.stories.d.ts +6 -0
- package/lib/core/Badges/Count.stories.d.ts.map +1 -0
- package/lib/core/Badges/Count.stories.jsx +20 -0
- package/lib/core/Badges/Count.stories.jsx.map +1 -0
- package/lib/core/Badges/Selection.stories.d.ts +6 -0
- package/lib/core/Badges/Selection.stories.d.ts.map +1 -0
- package/lib/core/Badges/Selection.stories.jsx +9 -0
- package/lib/core/Badges/Selection.stories.jsx.map +1 -0
- package/lib/core/Badges/Status.stories.d.ts +6 -0
- package/lib/core/Badges/Status.stories.d.ts.map +1 -0
- package/lib/core/Badges/Status.stories.jsx +18 -0
- package/lib/core/Badges/Status.stories.jsx.map +1 -0
- package/lib/core/Badges/Tag.stories.d.ts +6 -0
- package/lib/core/Badges/Tag.stories.d.ts.map +1 -0
- package/lib/core/Badges/Tag.stories.jsx +9 -0
- package/lib/core/Badges/Tag.stories.jsx.map +1 -0
- package/lib/core/Banner/Banner.stories.d.ts +22 -0
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -0
- package/lib/core/Banner/Banner.stories.jsx +125 -0
- package/lib/core/Banner/Banner.stories.jsx.map +1 -0
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts +6 -0
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -0
- package/lib/core/Boolean/BooleanDisplay.stories.jsx +19 -0
- package/lib/core/Boolean/BooleanDisplay.stories.jsx.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +7 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.jsx +29 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.jsx.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.d.ts +2 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.js +12 -0
- package/lib/core/Breadcrumbs/Breadcrumbs.styles.js.map +1 -0
- package/lib/core/Button/Button.stories.d.ts +12 -0
- package/lib/core/Button/Button.stories.d.ts.map +1 -0
- package/lib/core/Button/Button.stories.jsx +103 -0
- package/lib/core/Button/Button.stories.jsx.map +1 -0
- package/lib/core/Card/Card.stories.d.ts +8 -0
- package/lib/core/Card/Card.stories.d.ts.map +1 -0
- package/lib/core/Card/Card.stories.jsx +55 -0
- package/lib/core/Card/Card.stories.jsx.map +1 -0
- package/lib/core/Card/Card.styles.d.ts +2 -0
- package/lib/core/Card/Card.styles.d.ts.map +1 -0
- package/lib/core/Card/Card.styles.js +5 -0
- package/lib/core/Card/Card.styles.js.map +1 -0
- package/lib/core/Checkbox/Checkbox.stories.d.ts +7 -0
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -0
- package/lib/core/Checkbox/Checkbox.stories.jsx +28 -0
- package/lib/core/Checkbox/Checkbox.stories.jsx.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.jsx +60 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts +4 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.js +9 -0
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.js.map +1 -0
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +8 -0
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -0
- package/lib/core/ColorPicker/ColorPicker.stories.jsx +91 -0
- package/lib/core/ColorPicker/ColorPicker.stories.jsx.map +1 -0
- package/lib/core/ComboBox/ComboBox.mocks.d.ts +24 -0
- package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +1 -0
- package/lib/core/ComboBox/ComboBox.mocks.js +54 -0
- package/lib/core/ComboBox/ComboBox.mocks.js.map +1 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts +21 -0
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -0
- package/lib/core/ComboBox/ComboBox.stories.jsx +323 -0
- package/lib/core/ComboBox/ComboBox.stories.jsx.map +1 -0
- package/lib/core/Configuration/Configuration.stories.d.ts +10 -0
- package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -0
- package/lib/core/Configuration/Configuration.stories.jsx +125 -0
- package/lib/core/Configuration/Configuration.stories.jsx.map +1 -0
- package/lib/core/Currency/Currency.stories.d.ts +11 -0
- package/lib/core/Currency/Currency.stories.d.ts.map +1 -0
- package/lib/core/Currency/Currency.stories.jsx +65 -0
- package/lib/core/Currency/Currency.stories.jsx.map +1 -0
- package/lib/core/DateTime/DateTime.stories.d.ts +20 -0
- package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -0
- package/lib/core/DateTime/DateTime.stories.jsx +127 -0
- package/lib/core/DateTime/DateTime.stories.jsx.map +1 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +7 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.jsx +46 -0
- package/lib/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -0
- package/lib/core/DateTime/DateTimePicker.stories.d.ts +7 -0
- package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -0
- package/lib/core/DateTime/DateTimePicker.stories.jsx +34 -0
- package/lib/core/DateTime/DateTimePicker.stories.jsx.map +1 -0
- package/lib/core/Drawer/Drawer.stories.d.ts +7 -0
- package/lib/core/Drawer/Drawer.stories.d.ts.map +1 -0
- package/lib/core/Drawer/Drawer.stories.jsx +98 -0
- package/lib/core/Drawer/Drawer.stories.jsx.map +1 -0
- package/lib/core/Drawer/Drawer.styles.d.ts +2 -0
- package/lib/core/Drawer/Drawer.styles.d.ts.map +1 -0
- package/lib/core/Drawer/Drawer.styles.js +11 -0
- package/lib/core/Drawer/Drawer.styles.js.map +1 -0
- package/lib/core/Email/EmailDisplay.stories.d.ts +6 -0
- package/lib/core/Email/EmailDisplay.stories.d.ts.map +1 -0
- package/lib/core/Email/EmailDisplay.stories.jsx +19 -0
- package/lib/core/Email/EmailDisplay.stories.jsx.map +1 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +8 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.jsx +52 -0
- package/lib/core/EmojiPicker/EmojiPicker.stories.jsx.map +1 -0
- package/lib/core/EmptyState/EmptyState.stories.d.ts +6 -0
- package/lib/core/EmptyState/EmptyState.stories.d.ts.map +1 -0
- package/lib/core/EmptyState/EmptyState.stories.jsx +18 -0
- package/lib/core/EmptyState/EmptyState.stories.jsx.map +1 -0
- package/lib/core/ErrorState/ErrorState.stories.d.ts +9 -0
- package/lib/core/ErrorState/ErrorState.stories.d.ts.map +1 -0
- package/lib/core/ErrorState/ErrorState.stories.jsx +20 -0
- package/lib/core/ErrorState/ErrorState.stories.jsx.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +7 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.jsx +73 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.jsx.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts +4 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +1 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.js +12 -0
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.js.map +1 -0
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +11 -0
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -0
- package/lib/core/FieldGroup/FieldGroup.stories.jsx +52 -0
- package/lib/core/FieldGroup/FieldGroup.stories.jsx.map +1 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +10 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.jsx +183 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -0
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +10 -0
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -0
- package/lib/core/FieldValueList/FieldValueList.stories.jsx +54 -0
- package/lib/core/FieldValueList/FieldValueList.stories.jsx.map +1 -0
- package/lib/core/File/FileDisplay.stories.d.ts +13 -0
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -0
- package/lib/core/File/FileDisplay.stories.jsx +100 -0
- package/lib/core/File/FileDisplay.stories.jsx.map +1 -0
- package/lib/core/File/FileInput.stories.d.ts +9 -0
- package/lib/core/File/FileInput.stories.d.ts.map +1 -0
- package/lib/core/File/FileInput.stories.jsx +76 -0
- package/lib/core/File/FileInput.stories.jsx.map +1 -0
- package/lib/core/Flex/Flex.styles.d.ts +10 -0
- package/lib/core/Flex/Flex.styles.d.ts.map +1 -0
- package/lib/core/Flex/Flex.styles.js +41 -0
- package/lib/core/Flex/Flex.styles.js.map +1 -0
- package/lib/core/Flex/FlexContainer.stories.d.ts +20 -0
- package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -0
- package/lib/core/Flex/FlexContainer.stories.jsx +151 -0
- package/lib/core/Flex/FlexContainer.stories.jsx.map +1 -0
- package/lib/core/Flex/FlexItem.stories.d.ts +13 -0
- package/lib/core/Flex/FlexItem.stories.d.ts.map +1 -0
- package/lib/core/Flex/FlexItem.stories.jsx +71 -0
- package/lib/core/Flex/FlexItem.stories.jsx.map +1 -0
- package/lib/core/Form/Form.stories.d.ts +21 -0
- package/lib/core/Form/Form.stories.d.ts.map +1 -0
- package/lib/core/Form/Form.stories.jsx +196 -0
- package/lib/core/Form/Form.stories.jsx.map +1 -0
- package/lib/core/Grid/Grid.styles.d.ts +6 -0
- package/lib/core/Grid/Grid.styles.d.ts.map +1 -0
- package/lib/core/Grid/Grid.styles.js +36 -0
- package/lib/core/Grid/Grid.styles.js.map +1 -0
- package/lib/core/Grid/GridContainer.stories.d.ts +23 -0
- package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -0
- package/lib/core/Grid/GridContainer.stories.jsx +161 -0
- package/lib/core/Grid/GridContainer.stories.jsx.map +1 -0
- package/lib/core/Grid/GridItem.stories.d.ts +13 -0
- package/lib/core/Grid/GridItem.stories.d.ts.map +1 -0
- package/lib/core/Grid/GridItem.stories.jsx +74 -0
- package/lib/core/Grid/GridItem.stories.jsx.map +1 -0
- package/lib/core/Icon/Icon.stories.d.ts +8 -0
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -0
- package/lib/core/Icon/Icon.stories.jsx +84 -0
- package/lib/core/Icon/Icon.stories.jsx.map +1 -0
- package/lib/core/IconPicker/IconPicker.stories.d.ts +6 -0
- package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -0
- package/lib/core/IconPicker/IconPicker.stories.jsx +39 -0
- package/lib/core/IconPicker/IconPicker.stories.jsx.map +1 -0
- package/lib/core/Image/Image.stories.d.ts +6 -0
- package/lib/core/Image/Image.stories.d.ts.map +1 -0
- package/lib/core/Image/Image.stories.jsx +9 -0
- package/lib/core/Image/Image.stories.jsx.map +1 -0
- package/lib/core/Input/Input.stories.d.ts +9 -0
- package/lib/core/Input/Input.stories.d.ts.map +1 -0
- package/lib/core/Input/Input.stories.jsx +44 -0
- package/lib/core/Input/Input.stories.jsx.map +1 -0
- package/lib/core/Label/Label.stories.d.ts +6 -0
- package/lib/core/Label/Label.stories.d.ts.map +1 -0
- package/lib/core/Label/Label.stories.jsx +15 -0
- package/lib/core/Label/Label.stories.jsx.map +1 -0
- package/lib/core/Lightbox/Lightbox.stories.d.ts +9 -0
- package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -0
- package/lib/core/Lightbox/Lightbox.stories.jsx +106 -0
- package/lib/core/Lightbox/Lightbox.stories.jsx.map +1 -0
- package/lib/core/Link/Link.stories.d.ts +8 -0
- package/lib/core/Link/Link.stories.d.ts.map +1 -0
- package/lib/core/Link/Link.stories.jsx +32 -0
- package/lib/core/Link/Link.stories.jsx.map +1 -0
- package/lib/core/List/CommaSeparatedList.stories.d.ts +6 -0
- package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -0
- package/lib/core/List/CommaSeparatedList.stories.jsx +33 -0
- package/lib/core/List/CommaSeparatedList.stories.jsx.map +1 -0
- package/lib/core/List/OrderedList.stories.d.ts +10 -0
- package/lib/core/List/OrderedList.stories.d.ts.map +1 -0
- package/lib/core/List/OrderedList.stories.jsx +38 -0
- package/lib/core/List/OrderedList.stories.jsx.map +1 -0
- package/lib/core/List/UnorderedList.stories.d.ts +10 -0
- package/lib/core/List/UnorderedList.stories.d.ts.map +1 -0
- package/lib/core/List/UnorderedList.stories.jsx +38 -0
- package/lib/core/List/UnorderedList.stories.jsx.map +1 -0
- package/lib/core/Location/Location.stories.d.ts +12 -0
- package/lib/core/Location/Location.stories.d.ts.map +1 -0
- package/lib/core/Location/Location.stories.jsx +130 -0
- package/lib/core/Location/Location.stories.jsx.map +1 -0
- package/lib/core/Menu/Menu.mocks.d.ts +4 -0
- package/lib/core/Menu/Menu.mocks.d.ts.map +1 -0
- package/lib/core/Menu/Menu.mocks.js +179 -0
- package/lib/core/Menu/Menu.mocks.js.map +1 -0
- package/lib/core/Menu/Menu.stories.d.ts +17 -0
- package/lib/core/Menu/Menu.stories.d.ts.map +1 -0
- package/lib/core/Menu/Menu.stories.jsx +166 -0
- package/lib/core/Menu/Menu.stories.jsx.map +1 -0
- package/lib/core/Menu/Menu.styles.d.ts +2 -0
- package/lib/core/Menu/Menu.styles.d.ts.map +1 -0
- package/lib/core/Menu/Menu.styles.js +6 -0
- package/lib/core/Menu/Menu.styles.js.map +1 -0
- package/lib/core/MenuButton/MenuButton.stories.d.ts +15 -0
- package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -0
- package/lib/core/MenuButton/MenuButton.stories.jsx +188 -0
- package/lib/core/MenuButton/MenuButton.stories.jsx.map +1 -0
- package/lib/core/MetaList/MetaList.stories.d.ts +9 -0
- package/lib/core/MetaList/MetaList.stories.d.ts.map +1 -0
- package/lib/core/MetaList/MetaList.stories.jsx +24 -0
- package/lib/core/MetaList/MetaList.stories.jsx.map +1 -0
- package/lib/core/Modal/Modal.mocks.d.ts +4 -0
- package/lib/core/Modal/Modal.mocks.d.ts.map +1 -0
- package/lib/core/Modal/Modal.mocks.jsx +44 -0
- package/lib/core/Modal/Modal.mocks.jsx.map +1 -0
- package/lib/core/Modal/Modal.stories.d.ts +20 -0
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -0
- package/lib/core/Modal/Modal.stories.jsx +305 -0
- package/lib/core/Modal/Modal.stories.jsx.map +1 -0
- package/lib/core/MultiStep/MultiStep.stories.d.ts +6 -0
- package/lib/core/MultiStep/MultiStep.stories.d.ts.map +1 -0
- package/lib/core/MultiStep/MultiStep.stories.jsx +56 -0
- package/lib/core/MultiStep/MultiStep.stories.jsx.map +1 -0
- package/lib/core/Number/Number.stories.d.ts +13 -0
- package/lib/core/Number/Number.stories.d.ts.map +1 -0
- package/lib/core/Number/Number.stories.jsx +110 -0
- package/lib/core/Number/Number.stories.jsx.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +3 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.js +10 -0
- package/lib/core/PageTemplates/PageTemplates.mocks.js.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts +28 -0
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.stories.jsx +233 -0
- package/lib/core/PageTemplates/PageTemplates.stories.jsx.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts +4 -0
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.styles.js +31 -0
- package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -0
- package/lib/core/Pagination/Pagination.stories.d.ts +6 -0
- package/lib/core/Pagination/Pagination.stories.d.ts.map +1 -0
- package/lib/core/Pagination/Pagination.stories.jsx +19 -0
- package/lib/core/Pagination/Pagination.stories.jsx.map +1 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +6 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.jsx +12 -0
- package/lib/core/Paragraph/ParagraphDisplay.stories.jsx.map +1 -0
- package/lib/core/Phone/Phone.stories.d.ts +7 -0
- package/lib/core/Phone/Phone.stories.d.ts.map +1 -0
- package/lib/core/Phone/Phone.stories.jsx +42 -0
- package/lib/core/Phone/Phone.stories.jsx.map +1 -0
- package/lib/core/Popover/Popover.stories.d.ts +8 -0
- package/lib/core/Popover/Popover.stories.d.ts.map +1 -0
- package/lib/core/Popover/Popover.stories.jsx +184 -0
- package/lib/core/Popover/Popover.stories.jsx.map +1 -0
- package/lib/core/Progress/Progress.stories.d.ts +7 -0
- package/lib/core/Progress/Progress.stories.d.ts.map +1 -0
- package/lib/core/Progress/Progress.stories.jsx +71 -0
- package/lib/core/Progress/Progress.stories.jsx.map +1 -0
- package/lib/core/Progress/Progress.styles.d.ts +2 -0
- package/lib/core/Progress/Progress.styles.d.ts.map +1 -0
- package/lib/core/Progress/Progress.styles.js +13 -0
- package/lib/core/Progress/Progress.styles.js.map +1 -0
- package/lib/core/RadioButton/RadioButton.stories.d.ts +7 -0
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -0
- package/lib/core/RadioButton/RadioButton.stories.jsx +26 -0
- package/lib/core/RadioButton/RadioButton.stories.jsx.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +7 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +62 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +4 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.js +9 -0
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.js.map +1 -0
- package/lib/core/Rating/Rating.stories.d.ts +6 -0
- package/lib/core/Rating/Rating.stories.d.ts.map +1 -0
- package/lib/core/Rating/Rating.stories.jsx +21 -0
- package/lib/core/Rating/Rating.stories.jsx.map +1 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts +6 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -0
- package/lib/core/SearchInput/SearchInput.stories.jsx +15 -0
- package/lib/core/SearchInput/SearchInput.stories.jsx.map +1 -0
- package/lib/core/Select/Select.stories.d.ts +9 -0
- package/lib/core/Select/Select.stories.d.ts.map +1 -0
- package/lib/core/Select/Select.stories.jsx +42 -0
- package/lib/core/Select/Select.stories.jsx.map +1 -0
- package/lib/core/Sentiment/Sentiment.stories.d.ts +14 -0
- package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -0
- package/lib/core/Sentiment/Sentiment.stories.jsx +39 -0
- package/lib/core/Sentiment/Sentiment.stories.jsx.map +1 -0
- package/lib/core/Slider/Slider.stories.d.ts +11 -0
- package/lib/core/Slider/Slider.stories.d.ts.map +1 -0
- package/lib/core/Slider/Slider.stories.jsx +58 -0
- package/lib/core/Slider/Slider.stories.jsx.map +1 -0
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts +11 -0
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -0
- package/lib/core/SummaryItem/SummaryItem.stories.jsx +36 -0
- package/lib/core/SummaryItem/SummaryItem.stories.jsx.map +1 -0
- package/lib/core/SummaryList/SummaryList.mocks.d.ts +32 -0
- package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +1 -0
- package/lib/core/SummaryList/SummaryList.mocks.jsx +35 -0
- package/lib/core/SummaryList/SummaryList.mocks.jsx.map +1 -0
- package/lib/core/SummaryList/SummaryList.stories.d.ts +13 -0
- package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -0
- package/lib/core/SummaryList/SummaryList.stories.jsx +131 -0
- package/lib/core/SummaryList/SummaryList.stories.jsx.map +1 -0
- package/lib/core/Switch/Switch.stories.d.ts +7 -0
- package/lib/core/Switch/Switch.stories.d.ts.map +1 -0
- package/lib/core/Switch/Switch.stories.jsx +26 -0
- package/lib/core/Switch/Switch.stories.jsx.map +1 -0
- package/lib/core/Switch/Switch.styles.d.ts +2 -0
- package/lib/core/Switch/Switch.styles.d.ts.map +1 -0
- package/lib/core/Switch/Switch.styles.js +13 -0
- package/lib/core/Switch/Switch.styles.js.map +1 -0
- package/lib/core/Table/Table.mocks.d.ts +19 -0
- package/lib/core/Table/Table.mocks.d.ts.map +1 -0
- package/lib/core/Table/Table.mocks.jsx +32 -0
- package/lib/core/Table/Table.mocks.jsx.map +1 -0
- package/lib/core/Table/Table.stories.d.ts +14 -0
- package/lib/core/Table/Table.stories.d.ts.map +1 -0
- package/lib/core/Table/Table.stories.jsx +58 -0
- package/lib/core/Table/Table.stories.jsx.map +1 -0
- package/lib/core/Table/Table.styles.d.ts +4 -0
- package/lib/core/Table/Table.styles.d.ts.map +1 -0
- package/lib/core/Table/Table.styles.js +9 -0
- package/lib/core/Table/Table.styles.js.map +1 -0
- package/lib/core/Tabs/Tabs.stories.d.ts +7 -0
- package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -0
- package/lib/core/Tabs/Tabs.stories.jsx +59 -0
- package/lib/core/Tabs/Tabs.stories.jsx.map +1 -0
- package/lib/core/Text/Text.stories.d.ts +6 -0
- package/lib/core/Text/Text.stories.d.ts.map +1 -0
- package/lib/core/Text/Text.stories.jsx +22 -0
- package/lib/core/Text/Text.stories.jsx.map +1 -0
- package/lib/core/TextArea/TextArea.stories.d.ts +6 -0
- package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -0
- package/lib/core/TextArea/TextArea.stories.jsx +43 -0
- package/lib/core/TextArea/TextArea.stories.jsx.map +1 -0
- package/lib/core/Toaster/Toaster.stories.d.ts +6 -0
- package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -0
- package/lib/core/Toaster/Toaster.stories.jsx +17 -0
- package/lib/core/Toaster/Toaster.stories.jsx.map +1 -0
- package/lib/core/Tooltip/Tooltip.stories.d.ts +8 -0
- package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/lib/core/Tooltip/Tooltip.stories.jsx +18 -0
- package/lib/core/Tooltip/Tooltip.stories.jsx.map +1 -0
- package/lib/core/Tree/Tree.mocks.d.ts +2 -0
- package/lib/core/Tree/Tree.mocks.d.ts.map +1 -0
- package/lib/core/Tree/Tree.mocks.js +20 -0
- package/lib/core/Tree/Tree.mocks.js.map +1 -0
- package/lib/core/Tree/Tree.stories.d.ts +8 -0
- package/lib/core/Tree/Tree.stories.d.ts.map +1 -0
- package/lib/core/Tree/Tree.stories.jsx +89 -0
- package/lib/core/Tree/Tree.stories.jsx.map +1 -0
- package/lib/core/Tree/Tree.styles.d.ts +3 -0
- package/lib/core/Tree/Tree.styles.d.ts.map +1 -0
- package/lib/core/Tree/Tree.styles.js +10 -0
- package/lib/core/Tree/Tree.styles.js.map +1 -0
- package/lib/core/URL/URL.stories.d.ts +6 -0
- package/lib/core/URL/URL.stories.d.ts.map +1 -0
- package/lib/core/URL/URL.stories.jsx +17 -0
- package/lib/core/URL/URL.stories.jsx.map +1 -0
- package/lib/cs/Article/Article.mocks.d.ts +14 -0
- package/lib/cs/Article/Article.mocks.d.ts.map +1 -0
- package/lib/cs/Article/Article.mocks.js +14 -0
- package/lib/cs/Article/Article.mocks.js.map +1 -0
- package/lib/cs/Article/Article.stories.d.ts +15 -0
- package/lib/cs/Article/Article.stories.d.ts.map +1 -0
- package/lib/cs/Article/Article.stories.jsx +126 -0
- package/lib/cs/Article/Article.stories.jsx.map +1 -0
- package/lib/cs/ArticleList/ArticleList.mocks.d.ts +21 -0
- package/lib/cs/ArticleList/ArticleList.mocks.d.ts.map +1 -0
- package/lib/cs/ArticleList/ArticleList.mocks.js +102 -0
- package/lib/cs/ArticleList/ArticleList.mocks.js.map +1 -0
- package/lib/cs/ArticleList/ArticleList.stories.d.ts +16 -0
- package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -0
- package/lib/cs/ArticleList/ArticleList.stories.jsx +110 -0
- package/lib/cs/ArticleList/ArticleList.stories.jsx.map +1 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +45 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +1 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.jsx +275 -0
- package/lib/cs/CSCaseView/CSAppShell.stories.jsx.map +1 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +57 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +1 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.js +224 -0
- package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +16 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +110 -0
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +13 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.jsx +188 -0
- package/lib/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -0
- package/lib/cs/DialPad/DialPad.stories.d.ts +9 -0
- package/lib/cs/DialPad/DialPad.stories.d.ts.map +1 -0
- package/lib/cs/DialPad/DialPad.stories.jsx +18 -0
- package/lib/cs/DialPad/DialPad.stories.jsx.map +1 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts +11 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.d.ts.map +1 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js +20 -0
- package/lib/cs/DialPad/DialPadKeyboardData.mock.js.map +1 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts +13 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +356 -0
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +8 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.jsx +32 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +14 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.jsx +85 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -0
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +13 -0
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -0
- package/lib/cs/TaskManager/TaskManager.mocks.js +140 -0
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -0
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +8 -0
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -0
- package/lib/cs/TaskManager/TaskManager.stories.jsx +314 -0
- package/lib/cs/TaskManager/TaskManager.stories.jsx.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts +11 -0
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -0
- package/lib/dnd/DragDropList/DragDropList.stories.jsx +119 -0
- package/lib/dnd/DragDropList/DragDropList.stories.jsx.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.d.ts +3 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.d.ts.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.jsx +34 -0
- package/lib/rte/RichTextEditor/RichTextEditor.mocks.jsx.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +10 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.jsx +145 -0
- package/lib/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +7 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.jsx +62 -0
- package/lib/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -0
- package/lib/social/Chat/Chat.mocks.d.ts +385 -0
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -0
- package/lib/social/Chat/Chat.mocks.js +648 -0
- package/lib/social/Chat/Chat.mocks.js.map +1 -0
- package/lib/social/Chat/Chat.stories.d.ts +25 -0
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -0
- package/lib/social/Chat/Chat.stories.jsx +537 -0
- package/lib/social/Chat/Chat.stories.jsx.map +1 -0
- package/lib/social/Chat/RepeatingView.stories.d.ts +20 -0
- package/lib/social/Chat/RepeatingView.stories.d.ts.map +1 -0
- package/lib/social/Chat/RepeatingView.stories.jsx +90 -0
- package/lib/social/Chat/RepeatingView.stories.jsx.map +1 -0
- package/lib/social/Email/Email.mocks.d.ts +87 -0
- package/lib/social/Email/Email.mocks.d.ts.map +1 -0
- package/lib/social/Email/Email.mocks.jsx +349 -0
- package/lib/social/Email/Email.mocks.jsx.map +1 -0
- package/lib/social/Email/Email.stories.d.ts +28 -0
- package/lib/social/Email/Email.stories.d.ts.map +1 -0
- package/lib/social/Email/Email.stories.jsx +798 -0
- package/lib/social/Email/Email.stories.jsx.map +1 -0
- package/lib/social/Feed/Feed.mocks.d.ts +52 -0
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -0
- package/lib/social/Feed/Feed.mocks.jsx +315 -0
- package/lib/social/Feed/Feed.mocks.jsx.map +1 -0
- package/lib/social/Feed/Feed.stories.d.ts +15 -0
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -0
- package/lib/social/Feed/Feed.stories.jsx +146 -0
- package/lib/social/Feed/Feed.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedNewPost.stories.d.ts +17 -0
- package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedNewPost.stories.jsx +80 -0
- package/lib/social/Feed/FeedNewPost.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedPost.stories.d.ts +9 -0
- package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedPost.stories.jsx +248 -0
- package/lib/social/Feed/FeedPost.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedReply.stories.d.ts +16 -0
- package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedReply.stories.jsx +99 -0
- package/lib/social/Feed/FeedReply.stories.jsx.map +1 -0
- package/lib/social/Feed/FeedReplyInput.stories.d.ts +15 -0
- package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -0
- package/lib/social/Feed/FeedReplyInput.stories.jsx +59 -0
- package/lib/social/Feed/FeedReplyInput.stories.jsx.map +1 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +6 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.jsx +30 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -0
- package/lib/work/CaseView/Attachments.mocks.d.ts +3 -0
- package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/Attachments.mocks.jsx +388 -0
- package/lib/work/CaseView/Attachments.mocks.jsx.map +1 -0
- package/lib/work/CaseView/CaseView.mocks.d.ts +11 -0
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/CaseView.mocks.jsx +126 -0
- package/lib/work/CaseView/CaseView.mocks.jsx.map +1 -0
- package/lib/work/CaseView/CaseView.stories.d.ts +34 -0
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -0
- package/lib/work/CaseView/CaseView.stories.jsx +264 -0
- package/lib/work/CaseView/CaseView.stories.jsx.map +1 -0
- package/lib/work/CaseView/Details.mocks.d.ts +3 -0
- package/lib/work/CaseView/Details.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/Details.mocks.jsx +21 -0
- package/lib/work/CaseView/Details.mocks.jsx.map +1 -0
- package/lib/work/CaseView/FileService.mock.d.ts +28 -0
- package/lib/work/CaseView/FileService.mock.d.ts.map +1 -0
- package/lib/work/CaseView/FileService.mock.jsx +139 -0
- package/lib/work/CaseView/FileService.mock.jsx.map +1 -0
- package/lib/work/CaseView/MobileCaseView.stories.d.ts +11 -0
- package/lib/work/CaseView/MobileCaseView.stories.d.ts.map +1 -0
- package/lib/work/CaseView/MobileCaseView.stories.jsx +27 -0
- package/lib/work/CaseView/MobileCaseView.stories.jsx.map +1 -0
- package/lib/work/CaseView/Pulse.mocks.d.ts +6 -0
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -0
- package/lib/work/CaseView/Pulse.mocks.jsx +35 -0
- package/lib/work/CaseView/Pulse.mocks.jsx.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +10 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +195 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts +9 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -0
- package/lib/work/Confirmation/Confirmation.stories.jsx +17 -0
- package/lib/work/Confirmation/Confirmation.stories.jsx.map +1 -0
- package/lib/work/Details/Details.stories.d.ts +5 -0
- package/lib/work/Details/Details.stories.d.ts.map +1 -0
- package/lib/work/Details/Details.stories.jsx +65 -0
- package/lib/work/Details/Details.stories.jsx.map +1 -0
- package/lib/work/Glimpse/Glimpse.stories.d.ts +10 -0
- package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -0
- package/lib/work/Glimpse/Glimpse.stories.jsx +39 -0
- package/lib/work/Glimpse/Glimpse.stories.jsx.map +1 -0
- package/lib/work/SearchResults/SearchResults.mocks.d.ts +8 -0
- package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -0
- package/lib/work/SearchResults/SearchResults.mocks.jsx +96 -0
- package/lib/work/SearchResults/SearchResults.mocks.jsx.map +1 -0
- package/lib/work/SearchResults/SearchResults.stories.d.ts +8 -0
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -0
- package/lib/work/SearchResults/SearchResults.stories.jsx +205 -0
- package/lib/work/SearchResults/SearchResults.stories.jsx.map +1 -0
- package/lib/work/Stages/Stages.stories.d.ts +11 -0
- package/lib/work/Stages/Stages.stories.d.ts.map +1 -0
- package/lib/work/Stages/Stages.stories.jsx +65 -0
- package/lib/work/Stages/Stages.stories.jsx.map +1 -0
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +9 -0
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -0
- package/lib/work/Stakeholders/Stakeholders.stories.jsx +118 -0
- package/lib/work/Stakeholders/Stakeholders.stories.jsx.map +1 -0
- package/lib/work/Tags/Tags.mocks.d.ts +3 -0
- package/lib/work/Tags/Tags.mocks.d.ts.map +1 -0
- package/lib/work/Tags/Tags.mocks.js +76 -0
- package/lib/work/Tags/Tags.mocks.js.map +1 -0
- package/lib/work/Tags/Tags.stories.d.ts +10 -0
- package/lib/work/Tags/Tags.stories.d.ts.map +1 -0
- package/lib/work/Tags/Tags.stories.jsx +61 -0
- package/lib/work/Tags/Tags.stories.jsx.map +1 -0
- package/lib/work/Tasks/TaskList.stories.d.ts +5 -0
- package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -0
- package/lib/work/Tasks/TaskList.stories.jsx +17 -0
- package/lib/work/Tasks/TaskList.stories.jsx.map +1 -0
- package/lib/work/Tasks/Tasks.stories.d.ts +9 -0
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -0
- package/lib/work/Tasks/Tasks.stories.jsx +101 -0
- package/lib/work/Tasks/Tasks.stories.jsx.map +1 -0
- package/lib/work/Timeline/Timeline.mocks.d.ts +3 -0
- package/lib/work/Timeline/Timeline.mocks.d.ts.map +1 -0
- package/lib/work/Timeline/Timeline.mocks.jsx +129 -0
- package/lib/work/Timeline/Timeline.mocks.jsx.map +1 -0
- package/lib/work/Timeline/Timeline.stories.d.ts +7 -0
- package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -0
- package/lib/work/Timeline/Timeline.stories.jsx +43 -0
- package/lib/work/Timeline/Timeline.stories.jsx.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { action } from '@storybook/addon-actions';
|
|
3
|
+
import { Text, treeHelpers, TabbedPage as TabbedPageComp } from '@pega/cosmos-react-core';
|
|
4
|
+
import { AppShell } from '@pega/cosmos-react-build';
|
|
5
|
+
import { appExplorerMenuList, branchesMenuList, contents, recordMenuList, treeList } from './AppShell.mocks';
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Build/AppShell',
|
|
8
|
+
component: AppShell,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'fullscreen'
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const getPath = (args) => {
|
|
14
|
+
const { showBreadcrumbs, pageContent: { data: { pageTitle, breadcrumbsPath } } } = args;
|
|
15
|
+
if (showBreadcrumbs) {
|
|
16
|
+
const path = pageTitle === 'Overview' ? 'Home' : breadcrumbsPath;
|
|
17
|
+
return path
|
|
18
|
+
? path.split(',').map((crumb, i) => {
|
|
19
|
+
return {
|
|
20
|
+
id: crumb,
|
|
21
|
+
primary: crumb,
|
|
22
|
+
href: i < 3 ? `#${crumb.replace(/\s/g, '-')}` : undefined
|
|
23
|
+
};
|
|
24
|
+
})
|
|
25
|
+
: [];
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const TabbedPage = (args) => {
|
|
29
|
+
const [currentTabId, setCurrentTabId] = useState('1');
|
|
30
|
+
const [content, setContent] = useState('Tab 1 content');
|
|
31
|
+
const { pageContent, showBreadcrumbs } = args;
|
|
32
|
+
return (<TabbedPageComp a={<Text variant='h1' as='div'>
|
|
33
|
+
{content}
|
|
34
|
+
</Text>} path={getPath({ showBreadcrumbs, pageContent })} title={pageContent.data.pageTitle} tabs={{
|
|
35
|
+
tabs: pageContent.data.tabs.map((name, i) => {
|
|
36
|
+
const id = `${i + 1}`;
|
|
37
|
+
return { id, name };
|
|
38
|
+
}),
|
|
39
|
+
type: 'horizontal',
|
|
40
|
+
currentTabId,
|
|
41
|
+
onTabClick: id => {
|
|
42
|
+
setCurrentTabId(id);
|
|
43
|
+
setContent(`Tab ${id} content`);
|
|
44
|
+
}
|
|
45
|
+
}}/>);
|
|
46
|
+
};
|
|
47
|
+
export const AppShellDemo = (args) => {
|
|
48
|
+
const [currentNodeId, setCurrentNodeId] = useState('1');
|
|
49
|
+
const [allNodes, setAllNodes] = useState(treeList);
|
|
50
|
+
const [currentDrawer, setCurrentDrawer] = useState('');
|
|
51
|
+
const [currentUtil, setCurrentUtil] = useState('');
|
|
52
|
+
const [pageContent, setPageContent] = useState(contents[0]);
|
|
53
|
+
const onNodeClick = (nodeId, activeDrawerId) => {
|
|
54
|
+
const clickedNode = treeHelpers.getNode(allNodes, nodeId);
|
|
55
|
+
if (!clickedNode?.nodes) {
|
|
56
|
+
setCurrentUtil(activeDrawerId);
|
|
57
|
+
setCurrentNodeId(nodeId);
|
|
58
|
+
setPageContent(contents.find(content => content.id === clickedNode?.id));
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
setAllNodes(tree => treeHelpers.mapNode(tree, nodeId, node => {
|
|
62
|
+
return {
|
|
63
|
+
...node,
|
|
64
|
+
expanded: !node.expanded
|
|
65
|
+
};
|
|
66
|
+
}));
|
|
67
|
+
};
|
|
68
|
+
const appHeader = {
|
|
69
|
+
brand: {
|
|
70
|
+
name: 'AppStudioX'
|
|
71
|
+
},
|
|
72
|
+
utils: {
|
|
73
|
+
avatar: { name: 'Alan' },
|
|
74
|
+
search: {
|
|
75
|
+
placeholder: 'Search anything, anywhere…'
|
|
76
|
+
},
|
|
77
|
+
branchName: 'test',
|
|
78
|
+
actions: [
|
|
79
|
+
{
|
|
80
|
+
primary: 'Switch branch',
|
|
81
|
+
id: 'switchbranch',
|
|
82
|
+
onClick: () => action('Clicked switchbranch')()
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
primary: 'Create branch',
|
|
86
|
+
id: 'createbranch',
|
|
87
|
+
onClick: () => action('Clicked createbranch')()
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
onPreviewClick: args.showPreview ? args.onPreviewClick : undefined
|
|
91
|
+
},
|
|
92
|
+
links: [
|
|
93
|
+
{
|
|
94
|
+
id: '1',
|
|
95
|
+
name: 'Applications',
|
|
96
|
+
onClick: () => action('Clicked Applications')()
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: '2',
|
|
100
|
+
name: 'Shared resources',
|
|
101
|
+
onClick: () => action('Clicked Shared resources')()
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: '3',
|
|
105
|
+
name: 'Teams',
|
|
106
|
+
onClick: () => action('Clicked Teams')()
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: '4',
|
|
110
|
+
name: 'AI & Analytics',
|
|
111
|
+
onClick: () => action('Clicked AI & Analytics')()
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: '5',
|
|
115
|
+
name: 'Deploy',
|
|
116
|
+
onClick: () => action('Clicked Deploy')()
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
};
|
|
120
|
+
return (<>
|
|
121
|
+
<AppShell main={<TabbedPage {...{ ...args, pageContent }}/>} appHeader={appHeader} hideNav={args.hideNavigation} appInfo={{
|
|
122
|
+
text: 'U+ Desk',
|
|
123
|
+
visual: {
|
|
124
|
+
icon: {
|
|
125
|
+
name: 'phone-in-solid',
|
|
126
|
+
bgColor: '#0ac7c8'
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}} navigation={{
|
|
130
|
+
nodes: allNodes,
|
|
131
|
+
currentNodeId,
|
|
132
|
+
onNodeClick: id => {
|
|
133
|
+
onNodeClick(id, currentDrawer);
|
|
134
|
+
}
|
|
135
|
+
}} utils={{
|
|
136
|
+
onItemClick: id => {
|
|
137
|
+
setCurrentDrawer(id);
|
|
138
|
+
if (id === 'explorer') {
|
|
139
|
+
const appExploreTree = currentNodeId
|
|
140
|
+
? treeHelpers.expandTo(appExplorerMenuList, currentNodeId)
|
|
141
|
+
: appExplorerMenuList;
|
|
142
|
+
setAllNodes(appExploreTree);
|
|
143
|
+
}
|
|
144
|
+
if (id === 'branches') {
|
|
145
|
+
const branchTree = currentNodeId
|
|
146
|
+
? treeHelpers.expandTo(branchesMenuList, currentNodeId)
|
|
147
|
+
: branchesMenuList;
|
|
148
|
+
setAllNodes(branchTree);
|
|
149
|
+
}
|
|
150
|
+
if (id === 'records') {
|
|
151
|
+
const recordTree = currentNodeId
|
|
152
|
+
? treeHelpers.expandTo(recordMenuList, currentNodeId)
|
|
153
|
+
: recordMenuList;
|
|
154
|
+
setAllNodes(recordTree);
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
currentItemId: currentUtil,
|
|
158
|
+
items: [
|
|
159
|
+
{
|
|
160
|
+
label: 'App Explorer',
|
|
161
|
+
id: 'explorer'
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
label: 'Branches',
|
|
165
|
+
id: 'branches'
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
label: 'Records',
|
|
169
|
+
id: 'records'
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
drawer: {
|
|
173
|
+
onBeforeClose: () => {
|
|
174
|
+
setCurrentDrawer('');
|
|
175
|
+
setAllNodes(currentNodeId ? treeHelpers.expandTo(treeList, currentNodeId) : treeList);
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
devMode: true
|
|
179
|
+
}}/>
|
|
180
|
+
</>);
|
|
181
|
+
};
|
|
182
|
+
AppShellDemo.args = {
|
|
183
|
+
hideNavigation: false,
|
|
184
|
+
showBreadcrumbs: true,
|
|
185
|
+
showPreview: true,
|
|
186
|
+
onPreviewClick: action('Clicked preview button')
|
|
187
|
+
};
|
|
188
|
+
AppShellDemo.argTypes = {
|
|
189
|
+
hideNavigation: { control: { type: 'boolean' } },
|
|
190
|
+
showBreadcrumbs: { control: { type: 'boolean' } },
|
|
191
|
+
showPreview: { control: { type: 'boolean' } },
|
|
192
|
+
onPreviewClick: { table: { disable: true } }
|
|
193
|
+
};
|
|
194
|
+
//# sourceMappingURL=AppShell.stories.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppShell.stories.jsx","sourceRoot":"","sources":["../../../src/build/AppShell/AppShell.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAc,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EACL,IAAI,EAEJ,WAAW,EACX,UAAU,IAAI,cAAc,EAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,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CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,YAAY,CAAC,IAAI,GAAG;IAClB,cAAc,EAAE,KAAK;IACrB,eAAe,EAAE,IAAI;IACrB,WAAW,EAAE,IAAI;IACjB,cAAc,EAAE,MAAM,CAAC,wBAAwB,CAAC;CACjD,CAAC;AAEF,YAAY,CAAC,QAAQ,GAAG;IACtB,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAChD,eAAe,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACjD,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC7C,cAAc,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CAC7C,CAAC","sourcesContent":["import { useState, MouseEvent } from 'react';\nimport { Meta, Story } from '@storybook/react';\nimport { action } from '@storybook/addon-actions';\n\nimport {\n Text,\n StandardTreeProps,\n treeHelpers,\n TabbedPage as TabbedPageComp\n} from '@pega/cosmos-react-core';\nimport { AppShell } from '@pega/cosmos-react-build';\n\nimport {\n appExplorerMenuList,\n branchesMenuList,\n contents,\n recordMenuList,\n treeList\n} from './AppShell.mocks';\n\nexport default {\n title: 'Build/AppShell',\n component: AppShell,\n parameters: {\n layout: 'fullscreen'\n }\n} as Meta;\n\nexport interface AppShellStoryProps {\n hideNavigation: boolean;\n showBreadcrumbs: boolean;\n showPreview: boolean;\n onPreviewClick: (e: MouseEvent<HTMLButtonElement>) => void;\n}\n\ninterface PageContentProps {\n id: string;\n data: {\n pageTitle: string;\n breadcrumbsPath: string;\n tabs: string[];\n };\n}\n\nconst getPath = (\n args: Pick<AppShellStoryProps, 'showBreadcrumbs'> & { pageContent: PageContentProps }\n) => {\n const {\n showBreadcrumbs,\n pageContent: {\n data: { pageTitle, breadcrumbsPath }\n }\n } = args;\n\n if (showBreadcrumbs) {\n const path = pageTitle === 'Overview' ? 'Home' : breadcrumbsPath;\n return path\n ? path.split(',').map((crumb: string, i) => {\n // FIXME: https://stackoverflow.com/questions/63616486/property-replaceall-does-not-exist-on-type-string\n return {\n id: crumb,\n primary: crumb,\n href: i < 3 ? `#${(crumb as any).replace(/\\s/g, '-')}` : undefined\n };\n })\n : [];\n }\n};\n\nconst TabbedPage: Story<AppShellStoryProps & { pageContent: PageContentProps }> = (\n args: AppShellStoryProps & { pageContent: PageContentProps }\n) => {\n const [currentTabId, setCurrentTabId] = useState('1');\n const [content, setContent] = useState('Tab 1 content');\n const { pageContent, showBreadcrumbs } = args;\n\n return (\n <TabbedPageComp\n a={\n <Text variant='h1' as='div'>\n {content}\n </Text>\n }\n path={getPath({ showBreadcrumbs, pageContent })}\n title={pageContent.data.pageTitle}\n tabs={{\n tabs: pageContent.data.tabs.map((name, i) => {\n const id = `${i + 1}`;\n return { id, name };\n }),\n type: 'horizontal',\n currentTabId,\n onTabClick: id => {\n setCurrentTabId(id);\n setContent(`Tab ${id} content`);\n }\n }}\n />\n );\n};\n\nexport const AppShellDemo: Story<AppShellStoryProps> = (args: AppShellStoryProps) => {\n const [currentNodeId, setCurrentNodeId] = useState<string | undefined>('1');\n const [allNodes, setAllNodes] = useState<StandardTreeProps['nodes']>(treeList);\n const [currentDrawer, setCurrentDrawer] = useState('');\n const [currentUtil, setCurrentUtil] = useState('');\n const [pageContent, setPageContent] = useState<PageContentProps>(contents[0]);\n\n const onNodeClick = (nodeId: string, activeDrawerId: string) => {\n const clickedNode = treeHelpers.getNode(allNodes, nodeId);\n\n if (!clickedNode?.nodes) {\n setCurrentUtil(activeDrawerId);\n setCurrentNodeId(nodeId);\n setPageContent(contents.find(content => content.id === clickedNode?.id)!);\n return;\n }\n\n setAllNodes(tree =>\n treeHelpers.mapNode(tree, nodeId, node => {\n return {\n ...node,\n expanded: !node.expanded\n };\n })\n );\n };\n\n const appHeader = {\n brand: {\n name: 'AppStudioX'\n },\n utils: {\n avatar: { name: 'Alan' },\n search: {\n placeholder: 'Search anything, anywhere…'\n },\n branchName: 'test',\n actions: [\n {\n primary: 'Switch branch',\n id: 'switchbranch',\n onClick: () => action('Clicked switchbranch')()\n },\n {\n primary: 'Create branch',\n id: 'createbranch',\n onClick: () => action('Clicked createbranch')()\n }\n ],\n onPreviewClick: args.showPreview ? args.onPreviewClick : undefined\n },\n links: [\n {\n id: '1',\n name: 'Applications',\n onClick: () => action('Clicked Applications')()\n },\n {\n id: '2',\n name: 'Shared resources',\n onClick: () => action('Clicked Shared resources')()\n },\n {\n id: '3',\n name: 'Teams',\n onClick: () => action('Clicked Teams')()\n },\n {\n id: '4',\n name: 'AI & Analytics',\n onClick: () => action('Clicked AI & Analytics')()\n },\n {\n id: '5',\n name: 'Deploy',\n onClick: () => action('Clicked Deploy')()\n }\n ]\n };\n\n return (\n <>\n <AppShell\n main={<TabbedPage {...{ ...args, pageContent }} />}\n appHeader={appHeader}\n hideNav={args.hideNavigation}\n appInfo={{\n text: 'U+ Desk',\n visual: {\n icon: {\n name: 'phone-in-solid',\n bgColor: '#0ac7c8'\n }\n }\n }}\n navigation={{\n nodes: allNodes,\n currentNodeId,\n onNodeClick: id => {\n onNodeClick(id, currentDrawer);\n }\n }}\n utils={{\n onItemClick: id => {\n setCurrentDrawer(id);\n if (id === 'explorer') {\n const appExploreTree = currentNodeId\n ? treeHelpers.expandTo(appExplorerMenuList, currentNodeId)\n : appExplorerMenuList;\n setAllNodes(appExploreTree);\n }\n\n if (id === 'branches') {\n const branchTree = currentNodeId\n ? treeHelpers.expandTo(branchesMenuList, currentNodeId)\n : branchesMenuList;\n setAllNodes(branchTree);\n }\n\n if (id === 'records') {\n const recordTree = currentNodeId\n ? treeHelpers.expandTo(recordMenuList, currentNodeId)\n : recordMenuList;\n setAllNodes(recordTree);\n }\n },\n currentItemId: currentUtil,\n items: [\n {\n label: 'App Explorer',\n id: 'explorer'\n },\n {\n label: 'Branches',\n id: 'branches'\n },\n {\n label: 'Records',\n id: 'records'\n }\n ],\n drawer: {\n onBeforeClose: () => {\n setCurrentDrawer('');\n setAllNodes(currentNodeId ? treeHelpers.expandTo(treeList, currentNodeId) : treeList);\n }\n },\n devMode: true\n }}\n />\n </>\n );\n};\n\nAppShellDemo.args = {\n hideNavigation: false,\n showBreadcrumbs: true,\n showPreview: true,\n onPreviewClick: action('Clicked preview button')\n};\n\nAppShellDemo.argTypes = {\n hideNavigation: { control: { type: 'boolean' } },\n showBreadcrumbs: { control: { type: 'boolean' } },\n showPreview: { control: { type: 'boolean' } },\n onPreviewClick: { table: { disable: true } }\n};\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AddNodeHandlerParams, RendererConnectorProps, RendererNodeProps, GraphData } from '@pega/cosmos-react-build';
|
|
2
|
+
declare const AddNodeUtilsMocks: {
|
|
3
|
+
graphData1: GraphData<RendererNodeProps, RendererConnectorProps>;
|
|
4
|
+
onGetNewNode: (metaData: AddNodeHandlerParams) => RendererNodeProps;
|
|
5
|
+
onGetNewConnector: (fromNodeId: string, toNodeId: string, metaData: AddNodeHandlerParams) => RendererConnectorProps;
|
|
6
|
+
result: {
|
|
7
|
+
nodes: ({
|
|
8
|
+
id: string;
|
|
9
|
+
position: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
dimensions: {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
} | {
|
|
18
|
+
id: string;
|
|
19
|
+
realConnectors: string[];
|
|
20
|
+
position: {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
};
|
|
24
|
+
dimensions: {
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
};
|
|
28
|
+
})[];
|
|
29
|
+
connectors: ({
|
|
30
|
+
points: never[];
|
|
31
|
+
id: string;
|
|
32
|
+
fromNodeId: string;
|
|
33
|
+
toNodeId: string;
|
|
34
|
+
realConnectors?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
points: never[];
|
|
37
|
+
id: string;
|
|
38
|
+
fromNodeId: string;
|
|
39
|
+
toNodeId: string;
|
|
40
|
+
realConnectors: string[];
|
|
41
|
+
})[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export default AddNodeUtilsMocks;
|
|
45
|
+
//# sourceMappingURL=AddNodeUtils.mocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddNodeUtils.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/FlowModeller/AddNodeUtils.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,SAAS,EACV,MAAM,0BAA0B,CAAC;AAuSlC,QAAA,MAAM,iBAAiB;;6BArIQ,oBAAoB,KAAK,iBAAiB;oCAQ3D,MAAM,YACR,MAAM,YACN,oBAAoB,KAC3B,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+H1B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
const nodeDefaults = {
|
|
2
|
+
position: { x: 0, y: 0 },
|
|
3
|
+
dimensions: { width: 20, height: 20 }
|
|
4
|
+
};
|
|
5
|
+
const connectorDefaults = {
|
|
6
|
+
points: []
|
|
7
|
+
};
|
|
8
|
+
const graphData1 = {
|
|
9
|
+
nodes: [
|
|
10
|
+
{
|
|
11
|
+
...nodeDefaults,
|
|
12
|
+
id: '100'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
...nodeDefaults,
|
|
16
|
+
id: '101'
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
...nodeDefaults,
|
|
20
|
+
id: '102'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
...nodeDefaults,
|
|
24
|
+
id: '103'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
...nodeDefaults,
|
|
28
|
+
id: '104'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
...nodeDefaults,
|
|
32
|
+
id: '105'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
...nodeDefaults,
|
|
36
|
+
id: '106'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
...nodeDefaults,
|
|
40
|
+
id: '107'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
...nodeDefaults,
|
|
44
|
+
id: '108'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
...nodeDefaults,
|
|
48
|
+
id: '109'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
...nodeDefaults,
|
|
52
|
+
id: '110'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
...nodeDefaults,
|
|
56
|
+
id: '111'
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
connectors: [
|
|
60
|
+
{
|
|
61
|
+
...connectorDefaults,
|
|
62
|
+
id: '100-101',
|
|
63
|
+
fromNodeId: '100',
|
|
64
|
+
toNodeId: '101'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
...connectorDefaults,
|
|
68
|
+
id: '101-102',
|
|
69
|
+
fromNodeId: '101',
|
|
70
|
+
toNodeId: '102'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
...connectorDefaults,
|
|
74
|
+
id: '101-103',
|
|
75
|
+
fromNodeId: '101',
|
|
76
|
+
toNodeId: '103'
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
...connectorDefaults,
|
|
80
|
+
id: '102-104',
|
|
81
|
+
fromNodeId: '102',
|
|
82
|
+
toNodeId: '104'
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
...connectorDefaults,
|
|
86
|
+
id: '102-105',
|
|
87
|
+
fromNodeId: '102',
|
|
88
|
+
toNodeId: '105'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
...connectorDefaults,
|
|
92
|
+
id: '102-106',
|
|
93
|
+
fromNodeId: '102',
|
|
94
|
+
toNodeId: '106'
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
...connectorDefaults,
|
|
98
|
+
id: '103-107',
|
|
99
|
+
fromNodeId: '103',
|
|
100
|
+
toNodeId: '107'
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
...connectorDefaults,
|
|
104
|
+
id: '103-108',
|
|
105
|
+
fromNodeId: '103',
|
|
106
|
+
toNodeId: '108'
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
...connectorDefaults,
|
|
110
|
+
id: '104-109',
|
|
111
|
+
fromNodeId: '104',
|
|
112
|
+
toNodeId: '109'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
...connectorDefaults,
|
|
116
|
+
id: '104-110',
|
|
117
|
+
fromNodeId: '104',
|
|
118
|
+
toNodeId: '110'
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
...connectorDefaults,
|
|
122
|
+
id: '105-111',
|
|
123
|
+
fromNodeId: '105',
|
|
124
|
+
toNodeId: '111'
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
...connectorDefaults,
|
|
128
|
+
id: '106-111',
|
|
129
|
+
fromNodeId: '106',
|
|
130
|
+
toNodeId: '111'
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
...connectorDefaults,
|
|
134
|
+
id: '107-111',
|
|
135
|
+
fromNodeId: '107',
|
|
136
|
+
toNodeId: '111'
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
...connectorDefaults,
|
|
140
|
+
id: '108-111',
|
|
141
|
+
fromNodeId: '108',
|
|
142
|
+
toNodeId: '111'
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
...connectorDefaults,
|
|
146
|
+
id: '109-111',
|
|
147
|
+
fromNodeId: '109',
|
|
148
|
+
toNodeId: '111'
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
...connectorDefaults,
|
|
152
|
+
id: '110-111',
|
|
153
|
+
fromNodeId: '110',
|
|
154
|
+
toNodeId: '111'
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
};
|
|
158
|
+
const onGetNewNode = metaData => {
|
|
159
|
+
return {
|
|
160
|
+
...nodeDefaults,
|
|
161
|
+
id: `ph-n-${metaData.refId.join('_')}`
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
const onGetNewConnector = (fromNodeId, toNodeId, metaData) => {
|
|
165
|
+
return {
|
|
166
|
+
...connectorDefaults,
|
|
167
|
+
id: `ph-c-${metaData.refId.join('_')}`,
|
|
168
|
+
fromNodeId,
|
|
169
|
+
toNodeId
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
const result = {
|
|
173
|
+
nodes: [
|
|
174
|
+
{ ...nodeDefaults, id: '100' },
|
|
175
|
+
{ ...nodeDefaults, id: '101' },
|
|
176
|
+
{ ...nodeDefaults, id: '102' },
|
|
177
|
+
{ ...nodeDefaults, id: '103' },
|
|
178
|
+
{ ...nodeDefaults, id: '104' },
|
|
179
|
+
{ ...nodeDefaults, id: '105' },
|
|
180
|
+
{ ...nodeDefaults, id: '106' },
|
|
181
|
+
{ ...nodeDefaults, id: '107' },
|
|
182
|
+
{ ...nodeDefaults, id: '108' },
|
|
183
|
+
{ ...nodeDefaults, id: '109' },
|
|
184
|
+
{ ...nodeDefaults, id: '110' },
|
|
185
|
+
{ ...nodeDefaults, id: '111' },
|
|
186
|
+
{
|
|
187
|
+
...nodeDefaults,
|
|
188
|
+
id: 'ph-n-109-111_110-111',
|
|
189
|
+
realConnectors: ['109-111', '110-111']
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
...nodeDefaults,
|
|
193
|
+
id: 'ph-n-109-111_110-111_105-111_106-111',
|
|
194
|
+
realConnectors: ['109-111', '110-111', '105-111', '106-111']
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
...nodeDefaults,
|
|
198
|
+
id: 'ph-n-107-111_108-111',
|
|
199
|
+
realConnectors: ['107-111', '108-111']
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
...nodeDefaults,
|
|
203
|
+
id: 'ph-n-109-111_110-111_105-111_106-111_107-111_108-111',
|
|
204
|
+
realConnectors: ['109-111', '110-111', '105-111', '106-111', '107-111', '108-111']
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
connectors: [
|
|
208
|
+
{ points: [], id: '100-101', fromNodeId: '100', toNodeId: '101' },
|
|
209
|
+
{ points: [], id: '101-102', fromNodeId: '101', toNodeId: '102' },
|
|
210
|
+
{ points: [], id: '101-103', fromNodeId: '101', toNodeId: '103' },
|
|
211
|
+
{ points: [], id: '102-104', fromNodeId: '102', toNodeId: '104' },
|
|
212
|
+
{ points: [], id: '102-105', fromNodeId: '102', toNodeId: '105' },
|
|
213
|
+
{ points: [], id: '102-106', fromNodeId: '102', toNodeId: '106' },
|
|
214
|
+
{ points: [], id: '103-107', fromNodeId: '103', toNodeId: '107' },
|
|
215
|
+
{ points: [], id: '103-108', fromNodeId: '103', toNodeId: '108' },
|
|
216
|
+
{ points: [], id: '104-109', fromNodeId: '104', toNodeId: '109' },
|
|
217
|
+
{ points: [], id: '104-110', fromNodeId: '104', toNodeId: '110' },
|
|
218
|
+
{
|
|
219
|
+
points: [],
|
|
220
|
+
id: '105-111',
|
|
221
|
+
fromNodeId: '105',
|
|
222
|
+
toNodeId: 'ph-n-109-111_110-111_105-111_106-111'
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
points: [],
|
|
226
|
+
id: '106-111',
|
|
227
|
+
fromNodeId: '106',
|
|
228
|
+
toNodeId: 'ph-n-109-111_110-111_105-111_106-111'
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
points: [],
|
|
232
|
+
id: '107-111',
|
|
233
|
+
fromNodeId: '107',
|
|
234
|
+
toNodeId: 'ph-n-107-111_108-111'
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
points: [],
|
|
238
|
+
id: '108-111',
|
|
239
|
+
fromNodeId: '108',
|
|
240
|
+
toNodeId: 'ph-n-107-111_108-111'
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
points: [],
|
|
244
|
+
id: '109-111',
|
|
245
|
+
fromNodeId: '109',
|
|
246
|
+
toNodeId: 'ph-n-109-111_110-111'
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
points: [],
|
|
250
|
+
id: '110-111',
|
|
251
|
+
fromNodeId: '110',
|
|
252
|
+
toNodeId: 'ph-n-109-111_110-111'
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
points: [],
|
|
256
|
+
id: 'ph-c-109-111_110-111',
|
|
257
|
+
fromNodeId: 'ph-n-109-111_110-111',
|
|
258
|
+
toNodeId: 'ph-n-109-111_110-111_105-111_106-111',
|
|
259
|
+
realConnectors: ['109-111', '110-111']
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
points: [],
|
|
263
|
+
id: 'ph-c-109-111_110-111_105-111_106-111',
|
|
264
|
+
fromNodeId: 'ph-n-109-111_110-111_105-111_106-111',
|
|
265
|
+
toNodeId: 'ph-n-109-111_110-111_105-111_106-111_107-111_108-111',
|
|
266
|
+
realConnectors: ['109-111', '110-111', '105-111', '106-111']
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
points: [],
|
|
270
|
+
id: 'ph-c-107-111_108-111',
|
|
271
|
+
fromNodeId: 'ph-n-107-111_108-111',
|
|
272
|
+
toNodeId: 'ph-n-109-111_110-111_105-111_106-111_107-111_108-111',
|
|
273
|
+
realConnectors: ['107-111', '108-111']
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
points: [],
|
|
277
|
+
id: 'ph-c-109-111_110-111_105-111_106-111_107-111_108-111',
|
|
278
|
+
fromNodeId: 'ph-n-109-111_110-111_105-111_106-111_107-111_108-111',
|
|
279
|
+
toNodeId: '111',
|
|
280
|
+
realConnectors: ['109-111', '110-111', '105-111', '106-111', '107-111', '108-111']
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
};
|
|
284
|
+
const AddNodeUtilsMocks = {
|
|
285
|
+
graphData1,
|
|
286
|
+
onGetNewNode,
|
|
287
|
+
onGetNewConnector,
|
|
288
|
+
result
|
|
289
|
+
};
|
|
290
|
+
export default AddNodeUtilsMocks;
|
|
291
|
+
//# sourceMappingURL=AddNodeUtils.mocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddNodeUtils.mocks.js","sourceRoot":"","sources":["../../../src/build/FlowModeller/AddNodeUtils.mocks.ts"],"names":[],"mappings":"AAOA,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;IACxB,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;CACtC,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACxB,MAAM,EAAE,EAAE;CACX,CAAC;AAEF,MAAM,UAAU,GAAyD;IACvE,KAAK,EAAE;QACL;YACE,GAAG,YAAY;YACf,EAAE,EAAE,KAAK;SACV;QACD;YACE,GAAG,YAAY;YACf,EAAE,EAAE,KAAK;SACV;QACD;YACE,GAAG,YAAY;YACf,EAAE,EAAE,KAAK;SACV;QACD;YACE,GAAG,YAAY;YACf,EAAE,EAAE,KAAK;SACV;QACD;YACE,GAAG,YAAY;YACf,EAAE,EAAE,KAAK;SACV;QACD;YACE,GAAG,YAAY;YACf,EAAE,EAAE,KAAK;SACV;QACD;YACE,GAAG,YAAY;YACf,EAAE,EAAE,KAAK;SACV;QACD;YACE,GAAG,YAAY;YACf,EAAE,EAAE,KAAK;SACV;QACD;YACE,GAAG,YAAY;YACf,EAAE,EAAE,KAAK;SACV;QACD;YACE,GAAG,YAAY;YACf,EAAE,EAAE,KAAK;SACV;QACD;YACE,GAAG,YAAY;YACf,EAAE,EAAE,KAAK;SACV;QACD;YACE,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AAU,EAAE,KAAK;YACjB,QAAQ,EAAE,sBAAsB;SACjC;QACD;YACE,MAAM,EAAE,EAAE;YACV,EAAE,EAAE,SAAS;YACb,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,sBAAsB;SACjC;QACD;YACE,MAAM,EAAE,EAAE;YACV,EAAE,EAAE,sBAAsB;YAC1B,UAAU,EAAE,sBAAsB;YAClC,QAAQ,EAAE,sCAAsC;YAChD,cAAc,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;SACvC;QACD;YACE,MAAM,EAAE,EAAE;YACV,EAAE,EAAE,sCAAsC;YAC1C,UAAU,EAAE,sCAAsC;YAClD,QAAQ,EAAE,sDAAsD;YAChE,cAAc,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;SAC7D;QACD;YACE,MAAM,EAAE,EAAE;YACV,EAAE,EAAE,sBAAsB;YAC1B,UAAU,EAAE,sBAAsB;YAClC,QAAQ,EAAE,sDAAsD;YAChE,cAAc,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;SACvC;QACD;YACE,MAAM,EAAE,EAAE;YACV,EAAE,EAAE,sDAAsD;YAC1D,UAAU,EAAE,sDAAsD;YAClE,QAAQ,EAAE,KAAK;YACf,cAAc,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;SACnF;KACF;CACF,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACxB,UAAU;IACV,YAAY;IACZ,iBAAiB;IACjB,MAAM;CACP,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import {\n AddNodeHandlerParams,\n RendererConnectorProps,\n RendererNodeProps,\n GraphData\n} from '@pega/cosmos-react-build';\n\nconst nodeDefaults = {\n position: { x: 0, y: 0 },\n dimensions: { width: 20, height: 20 }\n};\n\nconst connectorDefaults = {\n points: []\n};\n\nconst graphData1: GraphData<RendererNodeProps, RendererConnectorProps> = {\n nodes: [\n {\n ...nodeDefaults,\n id: '100'\n },\n {\n ...nodeDefaults,\n id: '101'\n },\n {\n ...nodeDefaults,\n id: '102'\n },\n {\n ...nodeDefaults,\n id: '103'\n },\n {\n ...nodeDefaults,\n id: '104'\n },\n {\n ...nodeDefaults,\n id: '105'\n },\n {\n ...nodeDefaults,\n id: '106'\n },\n {\n ...nodeDefaults,\n id: '107'\n },\n {\n ...nodeDefaults,\n id: '108'\n },\n {\n ...nodeDefaults,\n id: '109'\n },\n {\n ...nodeDefaults,\n id: '110'\n },\n {\n ...nodeDefaults,\n id: '111'\n }\n ],\n connectors: [\n {\n ...connectorDefaults,\n id: '100-101',\n fromNodeId: '100',\n toNodeId: '101'\n },\n {\n ...connectorDefaults,\n id: '101-102',\n fromNodeId: '101',\n toNodeId: '102'\n },\n {\n ...connectorDefaults,\n id: '101-103',\n fromNodeId: '101',\n toNodeId: '103'\n },\n {\n ...connectorDefaults,\n id: '102-104',\n fromNodeId: '102',\n toNodeId: '104'\n },\n {\n ...connectorDefaults,\n id: '102-105',\n fromNodeId: '102',\n toNodeId: '105'\n },\n {\n ...connectorDefaults,\n id: '102-106',\n fromNodeId: '102',\n toNodeId: '106'\n },\n {\n ...connectorDefaults,\n id: '103-107',\n fromNodeId: '103',\n toNodeId: '107'\n },\n {\n ...connectorDefaults,\n id: '103-108',\n fromNodeId: '103',\n toNodeId: '108'\n },\n {\n ...connectorDefaults,\n id: '104-109',\n fromNodeId: '104',\n toNodeId: '109'\n },\n {\n ...connectorDefaults,\n id: '104-110',\n fromNodeId: '104',\n toNodeId: '110'\n },\n {\n ...connectorDefaults,\n id: '105-111',\n fromNodeId: '105',\n toNodeId: '111'\n },\n {\n ...connectorDefaults,\n id: '106-111',\n fromNodeId: '106',\n toNodeId: '111'\n },\n {\n ...connectorDefaults,\n id: '107-111',\n fromNodeId: '107',\n toNodeId: '111'\n },\n {\n ...connectorDefaults,\n id: '108-111',\n fromNodeId: '108',\n toNodeId: '111'\n },\n {\n ...connectorDefaults,\n id: '109-111',\n fromNodeId: '109',\n toNodeId: '111'\n },\n {\n ...connectorDefaults,\n id: '110-111',\n fromNodeId: '110',\n toNodeId: '111'\n }\n ]\n};\n\nconst onGetNewNode: (metaData: AddNodeHandlerParams) => RendererNodeProps = metaData => {\n return {\n ...nodeDefaults,\n id: `ph-n-${(metaData.refId as string[]).join('_')}` // ${createUID()}`\n };\n};\n\nconst onGetNewConnector: (\n fromNodeId: string,\n toNodeId: string,\n metaData: AddNodeHandlerParams\n) => RendererConnectorProps = (fromNodeId, toNodeId, metaData) => {\n return {\n ...connectorDefaults,\n id: `ph-c-${(metaData.refId as string[]).join('_')}`, // ${createUID()}`\n fromNodeId,\n toNodeId\n };\n};\n\nconst result = {\n nodes: [\n { ...nodeDefaults, id: '100' },\n { ...nodeDefaults, id: '101' },\n { ...nodeDefaults, id: '102' },\n { ...nodeDefaults, id: '103' },\n { ...nodeDefaults, id: '104' },\n { ...nodeDefaults, id: '105' },\n { ...nodeDefaults, id: '106' },\n { ...nodeDefaults, id: '107' },\n { ...nodeDefaults, id: '108' },\n { ...nodeDefaults, id: '109' },\n { ...nodeDefaults, id: '110' },\n { ...nodeDefaults, id: '111' },\n {\n ...nodeDefaults,\n id: 'ph-n-109-111_110-111',\n realConnectors: ['109-111', '110-111']\n },\n {\n ...nodeDefaults,\n id: 'ph-n-109-111_110-111_105-111_106-111',\n realConnectors: ['109-111', '110-111', '105-111', '106-111']\n },\n {\n ...nodeDefaults,\n id: 'ph-n-107-111_108-111',\n realConnectors: ['107-111', '108-111']\n },\n {\n ...nodeDefaults,\n id: 'ph-n-109-111_110-111_105-111_106-111_107-111_108-111',\n realConnectors: ['109-111', '110-111', '105-111', '106-111', '107-111', '108-111']\n }\n ],\n connectors: [\n { points: [], id: '100-101', fromNodeId: '100', toNodeId: '101' },\n { points: [], id: '101-102', fromNodeId: '101', toNodeId: '102' },\n { points: [], id: '101-103', fromNodeId: '101', toNodeId: '103' },\n { points: [], id: '102-104', fromNodeId: '102', toNodeId: '104' },\n { points: [], id: '102-105', fromNodeId: '102', toNodeId: '105' },\n { points: [], id: '102-106', fromNodeId: '102', toNodeId: '106' },\n { points: [], id: '103-107', fromNodeId: '103', toNodeId: '107' },\n { points: [], id: '103-108', fromNodeId: '103', toNodeId: '108' },\n { points: [], id: '104-109', fromNodeId: '104', toNodeId: '109' },\n { points: [], id: '104-110', fromNodeId: '104', toNodeId: '110' },\n {\n points: [],\n id: '105-111',\n fromNodeId: '105',\n toNodeId: 'ph-n-109-111_110-111_105-111_106-111'\n },\n {\n points: [],\n id: '106-111',\n fromNodeId: '106',\n toNodeId: 'ph-n-109-111_110-111_105-111_106-111'\n },\n {\n points: [],\n id: '107-111',\n fromNodeId: '107',\n toNodeId: 'ph-n-107-111_108-111'\n },\n {\n points: [],\n id: '108-111',\n fromNodeId: '108',\n toNodeId: 'ph-n-107-111_108-111'\n },\n {\n points: [],\n id: '109-111',\n fromNodeId: '109',\n toNodeId: 'ph-n-109-111_110-111'\n },\n {\n points: [],\n id: '110-111',\n fromNodeId: '110',\n toNodeId: 'ph-n-109-111_110-111'\n },\n {\n points: [],\n id: 'ph-c-109-111_110-111',\n fromNodeId: 'ph-n-109-111_110-111',\n toNodeId: 'ph-n-109-111_110-111_105-111_106-111',\n realConnectors: ['109-111', '110-111']\n },\n {\n points: [],\n id: 'ph-c-109-111_110-111_105-111_106-111',\n fromNodeId: 'ph-n-109-111_110-111_105-111_106-111',\n toNodeId: 'ph-n-109-111_110-111_105-111_106-111_107-111_108-111',\n realConnectors: ['109-111', '110-111', '105-111', '106-111']\n },\n {\n points: [],\n id: 'ph-c-107-111_108-111',\n fromNodeId: 'ph-n-107-111_108-111',\n toNodeId: 'ph-n-109-111_110-111_105-111_106-111_107-111_108-111',\n realConnectors: ['107-111', '108-111']\n },\n {\n points: [],\n id: 'ph-c-109-111_110-111_105-111_106-111_107-111_108-111',\n fromNodeId: 'ph-n-109-111_110-111_105-111_106-111_107-111_108-111',\n toNodeId: '111',\n realConnectors: ['109-111', '110-111', '105-111', '106-111', '107-111', '108-111']\n }\n ]\n};\n\nconst AddNodeUtilsMocks = {\n graphData1,\n onGetNewNode,\n onGetNewConnector,\n result\n};\n\nexport default AddNodeUtilsMocks;\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Action } from '@pega/cosmos-react-core';
|
|
2
|
+
import { ConnectorProps, NodeProps, NodeLibraryItem } from '@pega/cosmos-react-build';
|
|
3
|
+
export declare const exampleCRMNodesData: NodeProps[];
|
|
4
|
+
export declare const exampleCRMConnectorsData: ConnectorProps[];
|
|
5
|
+
export declare const emptyNodesData: NodeProps[];
|
|
6
|
+
export declare const emptyConnectorsData: ConnectorProps[];
|
|
7
|
+
export declare const nodeActions: Action[];
|
|
8
|
+
export declare const nodeLibrary: NodeLibraryItem[];
|
|
9
|
+
//# sourceMappingURL=FlowModeller.mocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlowModeller.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/FlowModeller/FlowModeller.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EACL,cAAc,EACd,SAAS,EAET,eAAe,EAGhB,MAAM,0BAA0B,CAAC;AAuGlC,eAAO,MAAM,mBAAmB,EAAE,SAAS,EAoH1C,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,cAAc,EAyHpD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAAS,EAWrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,EAO/C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,MAAM,EAS/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,EAsCxC,CAAC"}
|