@pega/cosmos-react-demos 3.0.0-dev.9.0 → 3.0.0-rc.2
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/build/AppHeader/AppHeader.stories.d.ts +1 -1
- package/jsx/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/jsx/build/AppHeader/AppHeader.stories.jsx +102 -81
- package/jsx/build/AppHeader/AppHeader.stories.jsx.map +1 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +1 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx +22 -1
- package/jsx/build/DynamicContentEditor/DynamicContentEditor.stories.jsx.map +1 -1
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +60 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +523 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +26 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx +339 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.stories.jsx.map +1 -0
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
- package/jsx/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts +4 -2
- package/jsx/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx +118 -33
- package/jsx/build/FlowModeller/FlowModeller.mocks.jsx.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts +7 -2
- package/jsx/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx +246 -63
- package/jsx/build/FlowModeller/FlowModeller.stories.jsx.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
- package/jsx/build/LifeCycle/LifeCycle.mocks.js +40 -0
- package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts +25 -8
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx +129 -68
- package/jsx/build/ObjectSelect/ObjectSelect.mocks.jsx.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx +115 -26
- package/jsx/build/ObjectSelect/ObjectSelect.stories.jsx.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx +4 -4
- package/jsx/build/PageTemplates/PageTemplates.mocks.jsx.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx +3 -3
- package/jsx/build/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.d.ts +1 -0
- package/jsx/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/jsx/build/Workbench/Workbench.stories.jsx +201 -4
- package/jsx/build/Workbench/Workbench.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +3 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +2 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx +47 -16
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.js +132 -31
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx +40 -0
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.jsx.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +181 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +31 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx +25 -0
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.jsx.map +1 -0
- package/jsx/core/AppShell/AppShell.mocks.d.ts +1 -1
- package/jsx/core/AppShell/AppShell.mocks.jsx +5 -5
- package/jsx/core/AppShell/AppShell.mocks.jsx.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +2 -0
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.jsx +47 -13
- package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/core/Banner/Banner.stories.d.ts +0 -1
- package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.stories.jsx +2 -10
- package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +6 -2
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx +26 -7
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +6 -2
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +46 -5
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +4 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx +10 -3
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
- 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 +40 -8
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx +8 -0
- package/jsx/core/CompositeInput/CompositeInput.mocks.jsx.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx +54 -0
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -0
- package/jsx/core/CreditCard/CreditCard.stories.d.ts +4 -1
- package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
- package/jsx/core/CreditCard/CreditCard.stories.jsx +11 -4
- package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
- package/jsx/core/Currency/Currency.stories.d.ts +6 -1
- package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
- package/jsx/core/Currency/Currency.stories.jsx +30 -7
- package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts +41 -10
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.jsx +188 -17
- package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.jsx.map +1 -1
- package/jsx/core/Dialog/Dialog.stories.d.ts +6 -0
- package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -0
- package/jsx/core/Dialog/Dialog.stories.jsx +79 -0
- package/jsx/core/Dialog/Dialog.stories.jsx.map +1 -0
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +2 -0
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx +12 -4
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx +4 -0
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +1 -0
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx +34 -2
- package/jsx/core/FieldValueList/FieldValueList.stories.jsx.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
- package/jsx/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
- package/jsx/core/FieldValueList/FieldValueList.styles.js +8 -0
- package/jsx/core/FieldValueList/FieldValueList.styles.js.map +1 -0
- package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/jsx/core/File/FileDisplay.stories.jsx +10 -5
- package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
- package/jsx/core/Form/Form.mocks.d.ts +6 -0
- package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
- package/jsx/core/Form/Form.mocks.jsx +84 -7
- package/jsx/core/Form/Form.mocks.jsx.map +1 -1
- package/jsx/core/Form/Form.stories.d.ts +1 -0
- package/jsx/core/Form/Form.stories.d.ts.map +1 -1
- package/jsx/core/Form/Form.stories.jsx +4 -1
- package/jsx/core/Form/Form.stories.jsx.map +1 -1
- package/jsx/core/HTML/HTML.stories.jsx +1 -1
- package/jsx/core/HTML/HTML.stories.jsx.map +1 -1
- package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx +6 -9
- package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
- package/jsx/core/Input/Input.stories.d.ts +2 -0
- package/jsx/core/Input/Input.stories.d.ts.map +1 -1
- package/jsx/core/Input/Input.stories.jsx +78 -2
- package/jsx/core/Input/Input.stories.jsx.map +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
- package/jsx/core/Link/Link.stories.d.ts +1 -0
- package/jsx/core/Link/Link.stories.d.ts.map +1 -1
- package/jsx/core/Link/Link.stories.jsx +12 -1
- package/jsx/core/Link/Link.stories.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +7 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx +21 -6
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
- package/jsx/core/Location/Location.stories.d.ts +4 -1
- package/jsx/core/Location/Location.stories.d.ts.map +1 -1
- package/jsx/core/Location/Location.stories.jsx +13 -6
- package/jsx/core/Location/Location.stories.jsx.map +1 -1
- package/jsx/core/Location/locationTestUtils.d.ts +3 -0
- package/jsx/core/Location/locationTestUtils.d.ts.map +1 -0
- package/jsx/core/Location/locationTestUtils.js +29 -0
- package/jsx/core/Location/locationTestUtils.js.map +1 -0
- package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
- package/jsx/core/Menu/Menu.stories.jsx +7 -6
- package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
- package/jsx/core/Modal/Modal.stories.d.ts +10 -1
- package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.stories.jsx +49 -26
- package/jsx/core/Modal/Modal.stories.jsx.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +124 -0
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -0
- package/jsx/core/{MultiStep/MultiStep.stories.d.ts → MultiStepForm/MultiStepForm.stories.d.ts} +2 -2
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx +208 -0
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -0
- package/jsx/core/Number/Number.stories.d.ts +5 -2
- package/jsx/core/Number/Number.stories.d.ts.map +1 -1
- package/jsx/core/Number/Number.stories.jsx +204 -24
- package/jsx/core/Number/Number.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/jsx/core/Phone/Phone.stories.d.ts +4 -1
- package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
- package/jsx/core/Phone/Phone.stories.jsx +10 -3
- package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
- package/jsx/core/Popover/Popover.stories.jsx +6 -6
- package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +6 -2
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx +22 -5
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +6 -2
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +46 -5
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts +12 -0
- package/jsx/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
- package/jsx/core/SearchInput/SearchInput.mocks.js +25 -0
- package/jsx/core/SearchInput/SearchInput.mocks.js.map +1 -0
- package/jsx/core/SearchInput/SearchInput.stories.d.ts +1 -4
- package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx +29 -17
- package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
- package/jsx/core/Select/Select.stories.d.ts +1 -0
- package/jsx/core/Select/Select.stories.d.ts.map +1 -1
- package/jsx/core/Select/Select.stories.jsx +10 -3
- package/jsx/core/Select/Select.stories.jsx.map +1 -1
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +6 -0
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -0
- package/jsx/core/SkipLinks/SkipLinks.stories.jsx +29 -0
- package/jsx/core/SkipLinks/SkipLinks.stories.jsx.map +1 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.d.ts +2 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.d.ts.map +1 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.js +16 -0
- package/jsx/core/SkipLinks/SkipLinks.styles.js.map +1 -0
- package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.jsx +4 -4
- package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.jsx +1 -1
- package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts +4 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.jsx +10 -3
- package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.jsx +3 -3
- package/jsx/core/Toaster/Toaster.stories.jsx.map +1 -1
- package/jsx/core/Tree/Tree.mocks.d.ts +1 -1
- package/jsx/core/Tree/Tree.mocks.d.ts.map +1 -1
- package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
- package/jsx/core/Tree/Tree.stories.jsx +14 -0
- package/jsx/core/Tree/Tree.stories.jsx.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.jsx +1 -1
- package/jsx/cs/ArticleList/ArticleList.stories.jsx.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts +7 -2
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js +151 -9
- package/jsx/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -2
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx +208 -90
- package/jsx/cs/CallControlPanel/CallControlPanel.stories.jsx.map +1 -1
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx +2 -2
- package/jsx/cs/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts +1 -0
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx +6 -6
- package/jsx/cs/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js +5 -5
- package/jsx/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts +1 -0
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx +33 -14
- package/jsx/cs/InteractionTimer/InteractionTimer.stories.jsx.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts +12 -0
- package/jsx/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.mocks.js +86 -0
- package/jsx/cs/TaskManager/TaskManager.mocks.js.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts +2 -1
- package/jsx/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.stories.jsx +103 -25
- package/jsx/cs/TaskManager/TaskManager.stories.jsx.map +1 -1
- package/jsx/cs/TaskManager/TaskManager.styles.js +2 -1
- package/jsx/cs/TaskManager/TaskManager.styles.js.map +1 -1
- package/jsx/dnd/StandardDragDropList/Demo.d.ts +7 -0
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/Demo.jsx +158 -0
- package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx +26 -0
- package/jsx/dnd/StandardDragDropList/GroupConfig.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx +21 -0
- package/jsx/dnd/StandardDragDropList/ItemConfig.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/Popover.d.ts +14 -0
- package/jsx/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/Popover.jsx +51 -0
- package/jsx/dnd/StandardDragDropList/Popover.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx +104 -0
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +15 -0
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -0
- package/jsx/dnd/StandardDragDropList/mockData.d.ts +26 -0
- package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
- package/jsx/dnd/StandardDragDropList/mockData.js +77 -0
- package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -0
- package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.stories.jsx +1 -1
- package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx +11 -4
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx +2 -2
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
- package/jsx/social/Chat/Chat.mocks.d.ts +15 -2
- package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.mocks.js +5 -6
- package/jsx/social/Chat/Chat.mocks.js.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +91 -11
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.mocks.d.ts +70 -9
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.jsx +386 -55
- package/jsx/social/Email/Email.mocks.jsx.map +1 -1
- package/jsx/social/Email/Email.stories.d.ts +50 -11
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx +851 -323
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.styles.d.ts +0 -1
- package/jsx/social/Email/Email.styles.d.ts.map +1 -1
- package/jsx/social/Email/Email.styles.js +0 -3
- package/jsx/social/Email/Email.styles.js.map +1 -1
- package/jsx/social/Feed/Feed.mocks.d.ts +13 -18
- package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.jsx +10 -5
- package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
- package/jsx/social/Feed/Feed.stories.d.ts +3 -2
- package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.stories.jsx +12 -7
- package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedNewPost.stories.jsx +4 -3
- package/jsx/social/Feed/FeedNewPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedPost.stories.jsx +12 -11
- package/jsx/social/Feed/FeedPost.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.d.ts +1 -1
- package/jsx/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReply.stories.jsx +7 -7
- package/jsx/social/Feed/FeedReply.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReplyInput.stories.jsx +4 -3
- package/jsx/social/Feed/FeedReplyInput.stories.jsx.map +1 -1
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx +81 -0
- package/jsx/tools/Clipboard/Clipboard.mocks.jsx.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts +6 -0
- package/jsx/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
- package/jsx/tools/Clipboard/Clipboard.stories.jsx +69 -0
- package/jsx/tools/Clipboard/Clipboard.stories.jsx.map +1 -0
- package/jsx/tools/DevTools/DevTools.mocks.d.ts +3 -0
- package/jsx/tools/DevTools/DevTools.mocks.d.ts.map +1 -0
- package/jsx/tools/DevTools/DevTools.mocks.js +3 -0
- package/jsx/tools/DevTools/DevTools.mocks.js.map +1 -0
- package/jsx/tools/DevTools/DevTools.stories.d.ts +10 -0
- package/jsx/tools/DevTools/DevTools.stories.d.ts.map +1 -0
- package/jsx/tools/DevTools/DevTools.stories.jsx +35 -0
- package/jsx/tools/DevTools/DevTools.stories.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx +58 -0
- package/jsx/tools/PreviewShell/PreviewShell.mocks.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts +16 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx +153 -0
- package/jsx/tools/PreviewShell/PreviewShell.stories.jsx.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.js +7 -0
- package/jsx/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx +5 -4
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Attachments.mocks.jsx +5 -6
- package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +72 -2
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +201 -11
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts +4 -22
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +55 -230
- package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +4 -3
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.jsx +2 -2
- package/jsx/work/CaseView/Pulse.mocks.jsx.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx +1 -0
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.d.ts +3 -0
- package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx +12 -8
- package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
- package/jsx/work/Details/Details.stories.d.ts.map +1 -1
- package/jsx/work/Details/Details.stories.jsx +67 -64
- package/jsx/work/Details/Details.stories.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts +6 -0
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.mocks.jsx +39 -38
- package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts +1 -0
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx +74 -44
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
- package/jsx/work/Stages/Stages.mocks.d.ts +14 -0
- package/jsx/work/Stages/Stages.mocks.d.ts.map +1 -0
- package/jsx/work/Stages/Stages.mocks.jsx +40 -0
- package/jsx/work/Stages/Stages.mocks.jsx.map +1 -0
- package/jsx/work/Stages/Stages.stories.d.ts +1 -1
- package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
- package/jsx/work/Stages/Stages.stories.jsx +12 -46
- package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx +1 -0
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
- package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/TaskList.stories.jsx +3 -1
- package/jsx/work/Tasks/TaskList.stories.jsx.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.d.ts +4 -0
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.jsx +20 -10
- package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.jsx +2 -1
- package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts +35 -0
- package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.mocks.jsx +75 -0
- package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -0
- package/jsx/wss/AppShell/AppShell.stories.d.ts +19 -0
- package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.stories.jsx +68 -0
- package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -0
- package/jsx/wss/AppShell/AppShell.styles.d.ts +2 -0
- package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -0
- package/jsx/wss/AppShell/AppShell.styles.js +5 -0
- package/jsx/wss/AppShell/AppShell.styles.js.map +1 -0
- package/jsx/wss/CaseView/CaseView.mocks.d.ts +13 -0
- package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +1 -0
- package/jsx/wss/CaseView/CaseView.mocks.jsx +34 -0
- package/jsx/wss/CaseView/CaseView.mocks.jsx.map +1 -0
- package/jsx/wss/CaseView/CaseView.stories.d.ts +12 -0
- package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -0
- package/jsx/wss/CaseView/CaseView.stories.jsx +69 -0
- package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx +48 -0
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx +37 -0
- package/jsx/wss/QuickCreate/QuickCreate.stories.jsx.map +1 -0
- package/lib/build/AppHeader/AppHeader.stories.d.ts +1 -1
- package/lib/build/AppHeader/AppHeader.stories.d.ts.map +1 -1
- package/lib/build/AppHeader/AppHeader.stories.js +100 -81
- package/lib/build/AppHeader/AppHeader.stories.js.map +1 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts +1 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js +22 -1
- package/lib/build/DynamicContentEditor/DynamicContentEditor.stories.js.map +1 -1
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +60 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +524 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts +26 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.d.ts.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js +336 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.stories.js.map +1 -0
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts +4 -4
- package/lib/build/FlowModeller/AddNodeUtils.mocks.d.ts.map +1 -1
- package/lib/build/FlowModeller/AddNodeUtils.mocks.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts +4 -2
- package/lib/build/FlowModeller/FlowModeller.mocks.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.mocks.js +117 -31
- package/lib/build/FlowModeller/FlowModeller.mocks.js.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts +7 -2
- package/lib/build/FlowModeller/FlowModeller.stories.d.ts.map +1 -1
- package/lib/build/FlowModeller/FlowModeller.stories.js +244 -64
- package/lib/build/FlowModeller/FlowModeller.stories.js.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -1
- package/lib/build/LifeCycle/LifeCycle.mocks.js +40 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts +25 -8
- package/lib/build/ObjectSelect/ObjectSelect.mocks.d.ts.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js +122 -61
- package/lib/build/ObjectSelect/ObjectSelect.mocks.js.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.d.ts.map +1 -1
- package/lib/build/ObjectSelect/ObjectSelect.stories.js +116 -25
- package/lib/build/ObjectSelect/ObjectSelect.stories.js.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.mocks.js +4 -4
- package/lib/build/PageTemplates/PageTemplates.mocks.js.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/build/PageTemplates/PageTemplates.stories.js +3 -3
- package/lib/build/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/build/Workbench/Workbench.stories.d.ts +1 -0
- package/lib/build/Workbench/Workbench.stories.d.ts.map +1 -1
- package/lib/build/Workbench/Workbench.stories.js +196 -4
- package/lib/build/Workbench/Workbench.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js +3 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.mocks.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +2 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js +29 -15
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.js +132 -31
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +10 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.js +41 -0
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +4 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +181 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +8 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js +24 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +9 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js +35 -0
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.js.map +1 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +9 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.js +16 -0
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.js.map +1 -0
- package/lib/core/AppShell/AppShell.mocks.d.ts +1 -1
- package/lib/core/AppShell/AppShell.mocks.js +5 -5
- package/lib/core/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +2 -0
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.js +47 -13
- package/lib/core/AppShell/AppShell.stories.js.map +1 -1
- package/lib/core/Banner/Banner.stories.d.ts +0 -1
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
- package/lib/core/Banner/Banner.stories.js +2 -13
- package/lib/core/Banner/Banner.stories.js.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts +6 -2
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.js +26 -7
- package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +6 -2
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +40 -4
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +4 -1
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.js +10 -3
- package/lib/core/ColorPicker/ColorPicker.stories.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 +40 -8
- package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +8 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.js +6 -0
- package/lib/core/CompositeInput/CompositeInput.mocks.js.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts +9 -0
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -0
- package/lib/core/CompositeInput/CompositeInput.stories.js +55 -0
- package/lib/core/CompositeInput/CompositeInput.stories.js.map +1 -0
- package/lib/core/CreditCard/CreditCard.stories.d.ts +4 -1
- package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
- package/lib/core/CreditCard/CreditCard.stories.js +11 -4
- package/lib/core/CreditCard/CreditCard.stories.js.map +1 -1
- package/lib/core/Currency/Currency.stories.d.ts +6 -1
- package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
- package/lib/core/Currency/Currency.stories.js +30 -7
- package/lib/core/Currency/Currency.stories.js.map +1 -1
- package/lib/core/DateTime/DateTime.stories.d.ts +41 -10
- package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTime.stories.js +188 -17
- package/lib/core/DateTime/DateTime.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.js +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.js.map +1 -1
- package/lib/core/Dialog/Dialog.stories.d.ts +6 -0
- package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -0
- package/lib/core/Dialog/Dialog.stories.js +47 -0
- package/lib/core/Dialog/Dialog.stories.js.map +1 -0
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +2 -0
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.js +11 -3
- package/lib/core/FieldGroup/FieldGroup.stories.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.js +4 -0
- package/lib/core/FieldGroup/FieldGroupList.stories.js.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +1 -0
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.js +32 -2
- package/lib/core/FieldValueList/FieldValueList.stories.js.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.styles.d.ts +2 -0
- package/lib/core/FieldValueList/FieldValueList.styles.d.ts.map +1 -0
- package/lib/core/FieldValueList/FieldValueList.styles.js +8 -0
- package/lib/core/FieldValueList/FieldValueList.styles.js.map +1 -0
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/lib/core/File/FileDisplay.stories.js +10 -5
- package/lib/core/File/FileDisplay.stories.js.map +1 -1
- package/lib/core/Form/Form.mocks.d.ts +6 -0
- package/lib/core/Form/Form.mocks.d.ts.map +1 -1
- package/lib/core/Form/Form.mocks.js +28 -5
- package/lib/core/Form/Form.mocks.js.map +1 -1
- package/lib/core/Form/Form.stories.d.ts +1 -0
- package/lib/core/Form/Form.stories.d.ts.map +1 -1
- package/lib/core/Form/Form.stories.js +4 -1
- package/lib/core/Form/Form.stories.js.map +1 -1
- package/lib/core/HTML/HTML.stories.js +1 -1
- package/lib/core/HTML/HTML.stories.js.map +1 -1
- package/lib/core/Icon/Icon.stories.js.map +1 -1
- package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/lib/core/IconPicker/IconPicker.stories.js +6 -9
- package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
- package/lib/core/Input/Input.stories.d.ts +2 -0
- package/lib/core/Input/Input.stories.d.ts.map +1 -1
- package/lib/core/Input/Input.stories.js +78 -2
- package/lib/core/Input/Input.stories.js.map +1 -1
- package/lib/core/Lightbox/Lightbox.stories.js +1 -1
- package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
- package/lib/core/Link/Link.stories.d.ts +1 -0
- package/lib/core/Link/Link.stories.d.ts.map +1 -1
- package/lib/core/Link/Link.stories.js +5 -1
- package/lib/core/Link/Link.stories.js.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts +7 -1
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.js +21 -6
- package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
- package/lib/core/Location/Location.stories.d.ts +4 -1
- package/lib/core/Location/Location.stories.d.ts.map +1 -1
- package/lib/core/Location/Location.stories.js +13 -6
- package/lib/core/Location/Location.stories.js.map +1 -1
- package/lib/core/Location/locationTestUtils.d.ts +3 -0
- package/lib/core/Location/locationTestUtils.d.ts.map +1 -0
- package/lib/core/Location/locationTestUtils.js +30 -0
- package/lib/core/Location/locationTestUtils.js.map +1 -0
- package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
- package/lib/core/Menu/Menu.stories.js +7 -6
- package/lib/core/Menu/Menu.stories.js.map +1 -1
- package/lib/core/Modal/Modal.stories.d.ts +10 -1
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
- package/lib/core/Modal/Modal.stories.js +49 -26
- package/lib/core/Modal/Modal.stories.js.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +34 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js +75 -0
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -0
- package/lib/core/{MultiStep/MultiStep.stories.d.ts → MultiStepForm/MultiStepForm.stories.d.ts} +2 -2
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.js +187 -0
- package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -0
- package/lib/core/Number/Number.stories.d.ts +5 -2
- package/lib/core/Number/Number.stories.d.ts.map +1 -1
- package/lib/core/Number/Number.stories.js +204 -24
- package/lib/core/Number/Number.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts.map +1 -1
- package/lib/core/Phone/Phone.stories.d.ts +4 -1
- package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
- package/lib/core/Phone/Phone.stories.js +10 -3
- package/lib/core/Phone/Phone.stories.js.map +1 -1
- package/lib/core/Popover/Popover.stories.js +1 -1
- package/lib/core/Popover/Popover.stories.js.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.d.ts +6 -2
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.js +22 -5
- package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +6 -2
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +40 -4
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
- package/lib/core/SearchInput/SearchInput.mocks.d.ts +12 -0
- package/lib/core/SearchInput/SearchInput.mocks.d.ts.map +1 -0
- package/lib/core/SearchInput/SearchInput.mocks.js +25 -0
- package/lib/core/SearchInput/SearchInput.mocks.js.map +1 -0
- package/lib/core/SearchInput/SearchInput.stories.d.ts +1 -4
- package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/lib/core/SearchInput/SearchInput.stories.js +29 -15
- package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
- package/lib/core/Select/Select.stories.d.ts +1 -0
- package/lib/core/Select/Select.stories.d.ts.map +1 -1
- package/lib/core/Select/Select.stories.js +10 -3
- package/lib/core/Select/Select.stories.js.map +1 -1
- package/lib/core/SkipLinks/SkipLinks.stories.d.ts +6 -0
- package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -0
- package/lib/core/SkipLinks/SkipLinks.stories.js +28 -0
- package/lib/core/SkipLinks/SkipLinks.stories.js.map +1 -0
- package/lib/core/SkipLinks/SkipLinks.styles.d.ts +2 -0
- package/lib/core/SkipLinks/SkipLinks.styles.d.ts.map +1 -0
- package/lib/core/SkipLinks/SkipLinks.styles.js +16 -0
- package/lib/core/SkipLinks/SkipLinks.styles.js.map +1 -0
- package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.js +4 -4
- package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
- package/lib/core/Tabs/Tabs.stories.js +1 -1
- package/lib/core/Tabs/Tabs.stories.js.map +1 -1
- package/lib/core/TextArea/TextArea.stories.d.ts +4 -1
- package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/lib/core/TextArea/TextArea.stories.js +10 -3
- package/lib/core/TextArea/TextArea.stories.js.map +1 -1
- package/lib/core/Toaster/Toaster.stories.js +3 -3
- package/lib/core/Toaster/Toaster.stories.js.map +1 -1
- package/lib/core/Tree/Tree.mocks.d.ts +1 -1
- package/lib/core/Tree/Tree.mocks.d.ts.map +1 -1
- package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
- package/lib/core/Tree/Tree.stories.js +16 -0
- package/lib/core/Tree/Tree.stories.js.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.js +1 -1
- package/lib/cs/ArticleList/ArticleList.stories.js.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts +7 -2
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.d.ts.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js +151 -9
- package/lib/cs/CallControlPanel/CallControlPanel.mocks.js.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts +5 -2
- package/lib/cs/CallControlPanel/CallControlPanel.stories.d.ts.map +1 -1
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js +208 -94
- package/lib/cs/CallControlPanel/CallControlPanel.stories.js.map +1 -1
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js +2 -2
- package/lib/cs/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts +1 -0
- package/lib/cs/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js +24 -22
- package/lib/cs/InteractionNotification/InteractionNotification.stories.js.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js +5 -5
- package/lib/cs/InteractionTimer/InteractionTimer.mocks.js.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts +1 -0
- package/lib/cs/InteractionTimer/InteractionTimer.stories.d.ts.map +1 -1
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js +33 -14
- package/lib/cs/InteractionTimer/InteractionTimer.stories.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts +12 -0
- package/lib/cs/TaskManager/TaskManager.mocks.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.mocks.js +86 -0
- package/lib/cs/TaskManager/TaskManager.mocks.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts +2 -1
- package/lib/cs/TaskManager/TaskManager.stories.d.ts.map +1 -1
- package/lib/cs/TaskManager/TaskManager.stories.js +103 -25
- package/lib/cs/TaskManager/TaskManager.stories.js.map +1 -1
- package/lib/cs/TaskManager/TaskManager.styles.js +2 -1
- package/lib/cs/TaskManager/TaskManager.styles.js.map +1 -1
- package/lib/dnd/StandardDragDropList/Demo.d.ts +7 -0
- package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/Demo.js +151 -0
- package/lib/dnd/StandardDragDropList/Demo.js.map +1 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +10 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.js +18 -0
- package/lib/dnd/StandardDragDropList/GroupConfig.js.map +1 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +12 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.js +20 -0
- package/lib/dnd/StandardDragDropList/ItemConfig.js.map +1 -0
- package/lib/dnd/StandardDragDropList/Popover.d.ts +14 -0
- package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/Popover.js +33 -0
- package/lib/dnd/StandardDragDropList/Popover.js.map +1 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +16 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.js +100 -0
- package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +5 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js +13 -0
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -0
- package/lib/dnd/StandardDragDropList/mockData.d.ts +26 -0
- package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -0
- package/lib/dnd/StandardDragDropList/mockData.js +78 -0
- package/lib/dnd/StandardDragDropList/mockData.js.map +1 -0
- package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.stories.js +1 -1
- package/lib/rte/Editor/Editor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +4 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js +11 -4
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js +2 -2
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
- package/lib/social/Chat/Chat.mocks.d.ts +15 -2
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/lib/social/Chat/Chat.mocks.js +5 -6
- package/lib/social/Chat/Chat.mocks.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +70 -8
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Email/Email.mocks.d.ts +70 -9
- package/lib/social/Email/Email.mocks.d.ts.map +1 -1
- package/lib/social/Email/Email.mocks.js +386 -55
- package/lib/social/Email/Email.mocks.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts +50 -11
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js +822 -348
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/social/Email/Email.styles.d.ts +0 -1
- package/lib/social/Email/Email.styles.d.ts.map +1 -1
- package/lib/social/Email/Email.styles.js +0 -3
- package/lib/social/Email/Email.styles.js.map +1 -1
- package/lib/social/Feed/Feed.mocks.d.ts +13 -18
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/lib/social/Feed/Feed.mocks.js +10 -5
- package/lib/social/Feed/Feed.mocks.js.map +1 -1
- package/lib/social/Feed/Feed.stories.d.ts +3 -2
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
- package/lib/social/Feed/Feed.stories.js +12 -7
- package/lib/social/Feed/Feed.stories.js.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedNewPost.stories.js +4 -3
- package/lib/social/Feed/FeedNewPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedPost.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedPost.stories.js +12 -11
- package/lib/social/Feed/FeedPost.stories.js.map +1 -1
- package/lib/social/Feed/FeedReply.stories.d.ts +1 -1
- package/lib/social/Feed/FeedReply.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReply.stories.js +7 -7
- package/lib/social/Feed/FeedReply.stories.js.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.d.ts.map +1 -1
- package/lib/social/Feed/FeedReplyInput.stories.js +4 -3
- package/lib/social/Feed/FeedReplyInput.stories.js.map +1 -1
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts +6 -0
- package/lib/tools/Clipboard/Clipboard.mocks.d.ts.map +1 -0
- package/lib/tools/Clipboard/Clipboard.mocks.js +75 -0
- package/lib/tools/Clipboard/Clipboard.mocks.js.map +1 -0
- package/lib/tools/Clipboard/Clipboard.stories.d.ts +6 -0
- package/lib/tools/Clipboard/Clipboard.stories.d.ts.map +1 -0
- package/lib/tools/Clipboard/Clipboard.stories.js +78 -0
- package/lib/tools/Clipboard/Clipboard.stories.js.map +1 -0
- package/lib/tools/DevTools/DevTools.mocks.d.ts +3 -0
- package/lib/tools/DevTools/DevTools.mocks.d.ts.map +1 -0
- package/lib/tools/DevTools/DevTools.mocks.js +3 -0
- package/lib/tools/DevTools/DevTools.mocks.js.map +1 -0
- package/lib/tools/DevTools/DevTools.stories.d.ts +10 -0
- package/lib/tools/DevTools/DevTools.stories.d.ts.map +1 -0
- package/lib/tools/DevTools/DevTools.stories.js +31 -0
- package/lib/tools/DevTools/DevTools.stories.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts +9 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.js +57 -0
- package/lib/tools/PreviewShell/PreviewShell.mocks.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts +16 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.js +154 -0
- package/lib/tools/PreviewShell/PreviewShell.stories.js.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts +3 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.d.ts.map +1 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.js +7 -0
- package/lib/tools/PreviewShell/PreviewShell.styles.js.map +1 -0
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js +5 -4
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.js.map +1 -1
- package/lib/work/CaseView/Attachments.mocks.js +5 -6
- package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts +72 -2
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +191 -11
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.stories.d.ts +4 -22
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.stories.js +50 -240
- package/lib/work/CaseView/CaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.d.ts +4 -3
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.js +2 -2
- package/lib/work/CaseView/Pulse.mocks.js.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js +1 -0
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.js.map +1 -1
- package/lib/work/Confirmation/Confirmation.stories.d.ts +3 -0
- package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/lib/work/Confirmation/Confirmation.stories.js +12 -8
- package/lib/work/Confirmation/Confirmation.stories.js.map +1 -1
- package/lib/work/Details/Details.stories.d.ts.map +1 -1
- package/lib/work/Details/Details.stories.js +14 -59
- package/lib/work/Details/Details.stories.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.d.ts +6 -0
- package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.js +39 -38
- package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.d.ts +1 -0
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.js +74 -44
- package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
- package/lib/work/Stages/Stages.mocks.d.ts +14 -0
- package/lib/work/Stages/Stages.mocks.d.ts.map +1 -0
- package/lib/work/Stages/Stages.mocks.js +39 -0
- package/lib/work/Stages/Stages.mocks.js.map +1 -0
- package/lib/work/Stages/Stages.stories.d.ts +1 -1
- package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
- package/lib/work/Stages/Stages.stories.js +12 -44
- package/lib/work/Stages/Stages.stories.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js +1 -0
- package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
- package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/lib/work/Tasks/TaskList.stories.js +3 -1
- package/lib/work/Tasks/TaskList.stories.js.map +1 -1
- package/lib/work/Tasks/Tasks.stories.d.ts +4 -0
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/lib/work/Tasks/Tasks.stories.js +20 -8
- package/lib/work/Tasks/Tasks.stories.js.map +1 -1
- package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/lib/work/Timeline/Timeline.stories.js +2 -1
- package/lib/work/Timeline/Timeline.stories.js.map +1 -1
- package/lib/wss/AppShell/AppShell.mocks.d.ts +35 -0
- package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.mocks.js +70 -0
- package/lib/wss/AppShell/AppShell.mocks.js.map +1 -0
- package/lib/wss/AppShell/AppShell.stories.d.ts +19 -0
- package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.stories.js +70 -0
- package/lib/wss/AppShell/AppShell.stories.js.map +1 -0
- package/lib/wss/AppShell/AppShell.styles.d.ts +2 -0
- package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -0
- package/lib/wss/AppShell/AppShell.styles.js +5 -0
- package/lib/wss/AppShell/AppShell.styles.js.map +1 -0
- package/lib/wss/CaseView/CaseView.mocks.d.ts +13 -0
- package/lib/wss/CaseView/CaseView.mocks.d.ts.map +1 -0
- package/lib/wss/CaseView/CaseView.mocks.js +35 -0
- package/lib/wss/CaseView/CaseView.mocks.js.map +1 -0
- package/lib/wss/CaseView/CaseView.stories.d.ts +12 -0
- package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -0
- package/lib/wss/CaseView/CaseView.stories.js +70 -0
- package/lib/wss/CaseView/CaseView.stories.js.map +1 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +15 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.js +41 -0
- package/lib/wss/PageTemplates/PageTemplates.stories.js.map +1 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +10 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.js +36 -0
- package/lib/wss/QuickCreate/QuickCreate.stories.js.map +1 -0
- package/package.json +11 -12
- package/jsx/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
- package/jsx/core/MultiStep/MultiStep.stories.jsx +0 -56
- package/jsx/core/MultiStep/MultiStep.stories.jsx.map +0 -1
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts +0 -11
- package/jsx/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx +0 -248
- package/jsx/cs/CSCaseView/CSAppShell.stories.jsx.map +0 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -66
- package/jsx/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
- package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx +0 -253
- package/jsx/cs/CSCaseView/CSCaseView.mocks.jsx.map +0 -1
- package/lib/core/MultiStep/MultiStep.stories.d.ts.map +0 -1
- package/lib/core/MultiStep/MultiStep.stories.js +0 -36
- package/lib/core/MultiStep/MultiStep.stories.js.map +0 -1
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts +0 -11
- package/lib/cs/CSCaseView/CSAppShell.stories.d.ts.map +0 -1
- package/lib/cs/CSCaseView/CSAppShell.stories.js +0 -227
- package/lib/cs/CSCaseView/CSAppShell.stories.js.map +0 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts +0 -66
- package/lib/cs/CSCaseView/CSCaseView.mocks.d.ts.map +0 -1
- package/lib/cs/CSCaseView/CSCaseView.mocks.js +0 -240
- package/lib/cs/CSCaseView/CSCaseView.mocks.js.map +0 -1
|
@@ -1,21 +1,63 @@
|
|
|
1
|
-
import { useState, useRef,
|
|
1
|
+
import { useState, useRef, useCallback, useEffect, createRef } from 'react';
|
|
2
2
|
import { action } from '@storybook/addon-actions';
|
|
3
|
-
import { Card, CardContent, createUID, MenuButton, Icon, registerIcon, Flex, Button,
|
|
3
|
+
import { Card, CardContent, createUID, MenuButton, Icon, registerIcon, Flex, Button, menuHelpers, CardHeader, Text, SummaryList, Grid, FieldValueList, StyledLabel, Modal, useModalManager, useModalContext, useToaster, Banner } from '@pega/cosmos-react-core';
|
|
4
4
|
import * as filterIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/filter.icon';
|
|
5
|
-
import { Email as EmailComponent, EmailConversation, EmailComposer, EmailShell, EmailSummaryItem, EmailSummaryList, EntityList } from '@pega/cosmos-react-social';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Email as EmailComponent, EmailConversation, EmailComposer, EmailShell, EmailSummaryItem, EmailSummaryList, EntityList, EmailManager, EmailCaseView } from '@pega/cosmos-react-social';
|
|
6
|
+
import { AppShellDemo } from '../../core/AppShell/AppShell.stories';
|
|
7
|
+
import { bccParticipants, ccParticipants, emailBodyContent, participants, toParticipants, emailAttachments, EntityListMockData, viewAnalysisEmailHeaderMock, topicListMock, generateEmailConversationParticipants, templates, handleExternalEntry, emailDemoActions, LaunchAction, baseComposerProps, sentiment, emailSummaryItems, mockEmails, mockSuggestedReplies, mockEmailBodyTemplates, forwardedContent, getCompositeId, emptyFieldErrorMessage, fieldValidation, emailWorklistItemsMock, contextMenuItemsMock, highlightedEntitiesMock, mockUploadImage, mailDeliverySystemEmail, supportTeamEmail, bodyData } from './Email.mocks';
|
|
8
|
+
import { StyledEmailCardContent } from './Email.styles';
|
|
8
9
|
registerIcon(filterIcon);
|
|
9
10
|
export default {
|
|
10
11
|
title: 'Social/Email',
|
|
11
12
|
component: EmailComponent
|
|
12
13
|
};
|
|
13
14
|
export const Email = (args) => {
|
|
15
|
+
const contextMenuHandle = useRef(null);
|
|
16
|
+
const timeout = useRef(null);
|
|
17
|
+
const handleRightClick = (id, e) => {
|
|
18
|
+
action('onContextMenu')(id, e);
|
|
19
|
+
if (contextMenuHandle.current && args.enableContextMenu) {
|
|
20
|
+
const { setItems, setOpen, setLoading } = contextMenuHandle.current;
|
|
21
|
+
e.preventDefault();
|
|
22
|
+
setLoading(true);
|
|
23
|
+
setItems([]);
|
|
24
|
+
setOpen(true);
|
|
25
|
+
if (timeout.current) {
|
|
26
|
+
clearTimeout(timeout.current);
|
|
27
|
+
}
|
|
28
|
+
timeout.current = window.setTimeout(() => {
|
|
29
|
+
setItems(contextMenuItemsMock);
|
|
30
|
+
setLoading(false);
|
|
31
|
+
}, 1000);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
return () => {
|
|
36
|
+
if (timeout.current) {
|
|
37
|
+
window.clearTimeout(timeout.current);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}, []);
|
|
14
41
|
return (<Card>
|
|
15
42
|
<StyledEmailCardContent>
|
|
16
|
-
<EmailComponent id={createUID()} timeStamp='
|
|
17
|
-
|
|
18
|
-
|
|
43
|
+
<EmailComponent id={createUID()} timeStamp='2021-01-05T09:12' from={mockEmails['Laura Stevens']} cc={[mockEmails['Adam Gillchrist'], mockEmails['John Paul']]} bcc={[mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']]} to={[mockEmails['Sara Davis'], mockEmails['John Brown'], mockEmails['Joe Stevens']]} body='<div>Hi,<br/><p>I am one of the customer of Indian Overseas Bank, <b><i>Nagercoil</i></b> branch, with code <b><a href="www.google.com"><i>3967</i></a></b>. I have a saving bank account here. My account number is <i>6785420965476</i>.</p><br/><p>I have been given a debit cum ATM card from this bank and the same has been lost when I was traveling from Nagercoil to Trichy by Bus on Jan 04, 2021. I remember that my ATM card number was 1920 6746 8653 1256.</p><br/>I hereby request you to block my debit card immediately to prevent misuse of the same by some others. Also I request you to give me an new debit card as early as possible.<br/><br/>Regards,<br/>Laura Stevens</div>' forwardedContent={args.forwardedContent} entityHighlightMapping={args.enableEntityHighlighting ? highlightedEntitiesMock : undefined} subject='I lost my debit card' banner={args.showEmailBanner
|
|
44
|
+
? {
|
|
45
|
+
id: 'banner_1',
|
|
46
|
+
heading: 'Address not found ',
|
|
47
|
+
messages: [
|
|
48
|
+
'550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
: undefined} onReply={args.showDraft ? undefined : action('On reply')} onReplyAll={args.showDraft ? undefined : action('On reply all')} onForward={args.showDraft ? undefined : action('On forward')} onEditDraft={args.showDraft ? action('On forward') : undefined} onDeleteDraft={args.showDraft ? action('On forward') : undefined} onSuggestionClick={action('On Suggested reply clicked')} sentiment={{
|
|
52
|
+
variant: 'neutral'
|
|
53
|
+
}} status={args.showDraft ? 'draft' : undefined} suggestions={mockSuggestedReplies} contextMenu={{
|
|
54
|
+
onItemClick: (selectedValue) => {
|
|
55
|
+
action('onItemClick')(selectedValue);
|
|
56
|
+
contextMenuHandle.current?.setOpen(false);
|
|
57
|
+
},
|
|
58
|
+
onContextMenu: handleRightClick,
|
|
59
|
+
handle: contextMenuHandle
|
|
60
|
+
}} attachments={[
|
|
19
61
|
{
|
|
20
62
|
id: 'attachment_0',
|
|
21
63
|
value: 'https://pega.com/media/document.doc',
|
|
@@ -37,161 +79,194 @@ export const Email = (args) => {
|
|
|
37
79
|
</Card>);
|
|
38
80
|
};
|
|
39
81
|
Email.args = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<div class="pega-email-forward-content">
|
|
46
|
-
<div class="WordSection1">
|
|
47
|
-
<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Hi, </span></p>
|
|
48
|
-
<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black"> </span></p>
|
|
49
|
-
<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">I need to book a flight from Hyderabad to Chennai. </span></p>
|
|
50
|
-
<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Please let me know the fare including taxes per each person. </span></p>
|
|
51
|
-
<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black"> </span></p>
|
|
52
|
-
<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Thanks, </span></p>
|
|
53
|
-
<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:'calibri' , sans-serif"><span style="color:black">Goutham </span></p>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
`
|
|
82
|
+
enableEntityHighlighting: false,
|
|
83
|
+
enableContextMenu: false,
|
|
84
|
+
forwardedContent,
|
|
85
|
+
showEmailBanner: false,
|
|
86
|
+
showDraft: false
|
|
58
87
|
};
|
|
59
88
|
Email.argTypes = {
|
|
60
|
-
|
|
89
|
+
enableEntityHighlighting: { control: { type: 'boolean' } },
|
|
90
|
+
enableContextMenu: { control: { type: 'boolean' } },
|
|
91
|
+
forwardedContent: { control: { type: 'text' } },
|
|
92
|
+
showEmailBanner: { control: { type: 'boolean' } },
|
|
93
|
+
showDraft: { control: { type: 'boolean' } }
|
|
61
94
|
};
|
|
62
|
-
export const
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
95
|
+
export const Composer = (args) => {
|
|
96
|
+
const { enableResponseTypeToggle = true, enableSaveAsDraft = true } = args;
|
|
97
|
+
const [composerProgress, setComposerProgress] = useState(false);
|
|
98
|
+
const composerHandle = useRef(null);
|
|
99
|
+
const [data, setData] = useState({
|
|
100
|
+
to: { value: toParticipants },
|
|
101
|
+
cc: { value: [] },
|
|
102
|
+
bcc: { value: [] },
|
|
103
|
+
subject: { value: 'Request: Pause service' },
|
|
104
|
+
bodyContent: {
|
|
105
|
+
defaultValue: ''
|
|
106
|
+
},
|
|
107
|
+
responseType: 'reply',
|
|
108
|
+
selectedTemplateId: '',
|
|
109
|
+
attachments: emailAttachments,
|
|
110
|
+
bodyContentCurrentValue: ''
|
|
76
111
|
});
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
112
|
+
const handleOnChange = (field, value) => {
|
|
113
|
+
if (field === 'bodyContent') {
|
|
114
|
+
setData(prev => ({
|
|
115
|
+
...prev,
|
|
116
|
+
bodyContentCurrentValue: value
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
else if (['responseType', 'attachments', 'selectedTemplateId'].includes(field)) {
|
|
120
|
+
setData(prev => ({
|
|
121
|
+
...prev,
|
|
122
|
+
[field]: value
|
|
123
|
+
}));
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
setData(prev => {
|
|
127
|
+
return {
|
|
128
|
+
...prev,
|
|
129
|
+
[field]: { error: undefined, value }
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
action('onChange')(field, value);
|
|
134
|
+
};
|
|
135
|
+
useEffect(() => {
|
|
136
|
+
if (data.responseType === 'reply') {
|
|
137
|
+
setData(prev => {
|
|
138
|
+
return {
|
|
139
|
+
...prev,
|
|
140
|
+
to: {
|
|
141
|
+
...prev.to,
|
|
142
|
+
value: [toParticipants[0]]
|
|
143
|
+
},
|
|
144
|
+
cc: {
|
|
145
|
+
...prev.cc,
|
|
146
|
+
value: []
|
|
147
|
+
},
|
|
148
|
+
bcc: {
|
|
149
|
+
...prev.bcc,
|
|
150
|
+
value: []
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
else if (data.responseType === 'replyAll') {
|
|
156
|
+
setData(prev => {
|
|
157
|
+
return {
|
|
158
|
+
...prev,
|
|
159
|
+
to: {
|
|
160
|
+
...prev.to,
|
|
161
|
+
value: toParticipants
|
|
162
|
+
},
|
|
163
|
+
cc: {
|
|
164
|
+
...prev.cc,
|
|
165
|
+
value: ccParticipants
|
|
166
|
+
},
|
|
167
|
+
bcc: {
|
|
168
|
+
...prev.bcc,
|
|
169
|
+
value: bccParticipants
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
else if (data.responseType === 'forward') {
|
|
175
|
+
setData(prev => {
|
|
176
|
+
return {
|
|
177
|
+
...prev,
|
|
178
|
+
to: {
|
|
179
|
+
...prev.to,
|
|
180
|
+
value: []
|
|
181
|
+
},
|
|
182
|
+
cc: {
|
|
183
|
+
...prev.cc,
|
|
184
|
+
value: []
|
|
185
|
+
},
|
|
186
|
+
bcc: {
|
|
187
|
+
...prev.bcc,
|
|
188
|
+
value: []
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}, [data.responseType]);
|
|
194
|
+
const onTemplateChange = (id) => {
|
|
195
|
+
const selectedTemplate = mockEmailBodyTemplates.find(template => template.id === id);
|
|
196
|
+
setComposerProgress({ message: 'Loading template...' });
|
|
197
|
+
setTimeout(() => {
|
|
198
|
+
setComposerProgress(false);
|
|
199
|
+
composerHandle.current?.replaceBodyContent(selectedTemplate?.content || '');
|
|
200
|
+
composerHandle.current?.setCursorLocationToStart?.();
|
|
201
|
+
}, 1000);
|
|
202
|
+
};
|
|
203
|
+
useEffect(() => {
|
|
204
|
+
if (data.selectedTemplateId)
|
|
205
|
+
onTemplateChange(data.selectedTemplateId);
|
|
206
|
+
}, [data.selectedTemplateId]);
|
|
207
|
+
const handleOnSend = () => {
|
|
208
|
+
setData(prev => {
|
|
209
|
+
return {
|
|
210
|
+
...prev,
|
|
211
|
+
to: {
|
|
212
|
+
value: prev.to?.value || [],
|
|
213
|
+
error: data?.to?.value.length === 0 ? emptyFieldErrorMessage : fieldValidation(data?.to?.value)
|
|
121
214
|
},
|
|
122
|
-
{
|
|
123
|
-
value:
|
|
124
|
-
|
|
125
|
-
name: 'Location',
|
|
126
|
-
variant: 2,
|
|
127
|
-
description: 'Location'
|
|
215
|
+
cc: {
|
|
216
|
+
value: prev.cc?.value || [],
|
|
217
|
+
error: data.cc === undefined ? undefined : fieldValidation(data.cc.value)
|
|
128
218
|
},
|
|
129
|
-
{
|
|
130
|
-
value:
|
|
131
|
-
|
|
132
|
-
name: 'AccountNumber',
|
|
133
|
-
variant: 3,
|
|
134
|
-
description: 'Account Number'
|
|
219
|
+
bcc: {
|
|
220
|
+
value: prev.bcc?.value || [],
|
|
221
|
+
error: data.bcc === undefined ? undefined : fieldValidation(data.bcc.value)
|
|
135
222
|
},
|
|
136
|
-
{
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
name: 'CardNumber',
|
|
140
|
-
variant: 4,
|
|
141
|
-
description: 'Card Number'
|
|
223
|
+
subject: {
|
|
224
|
+
...prev.subject,
|
|
225
|
+
error: data.subject?.value === '' ? emptyFieldErrorMessage : undefined
|
|
142
226
|
},
|
|
143
|
-
{
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
name: 'CardType',
|
|
147
|
-
variant: 5,
|
|
148
|
-
description: 'Card Type'
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
value: 'Jan 04, 2021',
|
|
152
|
-
type: 'system',
|
|
153
|
-
name: 'Date',
|
|
154
|
-
variant: 6,
|
|
155
|
-
description: 'Date'
|
|
227
|
+
bodyContent: {
|
|
228
|
+
...prev.bodyContent,
|
|
229
|
+
error: data.bodyContentCurrentValue === '' ? emptyFieldErrorMessage : undefined
|
|
156
230
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
:
|
|
181
|
-
|
|
182
|
-
}} actions={emailActions} suggestions={mockSuggestedReplies}/>
|
|
183
|
-
</StyledEmailCardContent>
|
|
184
|
-
</Card>);
|
|
231
|
+
};
|
|
232
|
+
});
|
|
233
|
+
};
|
|
234
|
+
const onImageAdded = (image, id) => {
|
|
235
|
+
action('On Image added');
|
|
236
|
+
setComposerProgress({ message: 'Uploading image' });
|
|
237
|
+
mockUploadImage(image)
|
|
238
|
+
.then(({ src, alt }) => {
|
|
239
|
+
composerHandle.current?.updateImage({ src, alt }, id);
|
|
240
|
+
setComposerProgress(false);
|
|
241
|
+
})
|
|
242
|
+
.catch(() => {
|
|
243
|
+
setComposerProgress(false);
|
|
244
|
+
});
|
|
245
|
+
};
|
|
246
|
+
useEffect(() => {
|
|
247
|
+
setTimeout(() => {
|
|
248
|
+
composerHandle.current?.replaceBodyContent(bodyData);
|
|
249
|
+
composerHandle.current?.setCursorLocationToStart?.();
|
|
250
|
+
}, 100);
|
|
251
|
+
}, []);
|
|
252
|
+
return (<EmailComposer handle={composerHandle} progress={composerProgress} onSave={enableSaveAsDraft ? action('On save') : undefined} onSend={handleOnSend} onCancel={action('On cancel')} externalValidator={handleExternalEntry} participants={participants} onChange={handleOnChange} data={{
|
|
253
|
+
...data,
|
|
254
|
+
responseType: enableResponseTypeToggle ? data.responseType : undefined
|
|
255
|
+
}} templates={templates} onImageAdded={onImageAdded}/>);
|
|
185
256
|
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
257
|
+
Composer.args = {
|
|
258
|
+
enableResponseTypeToggle: true,
|
|
259
|
+
enableSaveAsDraft: true
|
|
189
260
|
};
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
261
|
+
Composer.argTypes = {
|
|
262
|
+
enableResponseTypeToggle: {
|
|
263
|
+
control: 'boolean'
|
|
264
|
+
},
|
|
265
|
+
enableSaveAsDraft: {
|
|
266
|
+
control: { type: 'boolean' }
|
|
267
|
+
}
|
|
193
268
|
};
|
|
194
|
-
export const
|
|
269
|
+
export const Conversation = () => {
|
|
195
270
|
const emailArr = [
|
|
196
271
|
{
|
|
197
272
|
id: 'item_0',
|
|
@@ -205,7 +280,6 @@ export const emailConversation = () => {
|
|
|
205
280
|
onReply: action('On reply'),
|
|
206
281
|
onForward: action('On forward'),
|
|
207
282
|
onSuggestionClick: action('On Suggested reply clicked'),
|
|
208
|
-
actions: emailActions,
|
|
209
283
|
suggestions: mockSuggestedReplies
|
|
210
284
|
},
|
|
211
285
|
{
|
|
@@ -218,65 +292,251 @@ export const emailConversation = () => {
|
|
|
218
292
|
body: '<div> Hi, <br /> <br /> <div>I’m still at the airport, I need help now!! </div> <br /><br /> Regards, <br /> Sara Davis </div>',
|
|
219
293
|
onReply: action('On reply'),
|
|
220
294
|
onForward: action('On forward'),
|
|
221
|
-
onSuggestionClick: action('On Suggested reply clicked')
|
|
222
|
-
actions: emailActions
|
|
295
|
+
onSuggestionClick: action('On Suggested reply clicked')
|
|
223
296
|
}
|
|
224
297
|
];
|
|
225
298
|
return (<EmailConversation participants={generateEmailConversationParticipants(emailArr)} from={generateEmailConversationParticipants(emailArr, ['from'])[0]} to={generateEmailConversationParticipants(emailArr, ['to'])} id={createUID()} timeStamp={emailArr[0].timeStamp} unReadEmailCount={emailArr.filter(item => item.unRead).length} emails={emailArr}/>);
|
|
226
299
|
};
|
|
227
|
-
export const
|
|
228
|
-
const
|
|
229
|
-
const
|
|
230
|
-
const [
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
300
|
+
export const EmailShellDemo = (args) => {
|
|
301
|
+
const { create } = useModalManager();
|
|
302
|
+
const { push } = useToaster();
|
|
303
|
+
const actions = ['Transfer', 'End conversation'].map(name => ({
|
|
304
|
+
primary: name,
|
|
305
|
+
id: name,
|
|
306
|
+
onClick: action(`Clicked ${name}`)
|
|
307
|
+
}));
|
|
308
|
+
const [composersData, setComposersData] = useState({});
|
|
309
|
+
const [conversationEmails, setConversationEmails] = useState([]);
|
|
310
|
+
const handleResponseTypeChange = (uid, responseType) => {
|
|
311
|
+
if (responseType === 'reply') {
|
|
312
|
+
setComposersData(prev => {
|
|
313
|
+
return {
|
|
314
|
+
...prev,
|
|
315
|
+
[uid]: {
|
|
316
|
+
...prev[uid],
|
|
317
|
+
data: {
|
|
318
|
+
...prev[uid].data,
|
|
319
|
+
to: {
|
|
320
|
+
...prev[uid].data.to,
|
|
321
|
+
value: [toParticipants[0]]
|
|
322
|
+
},
|
|
323
|
+
cc: {
|
|
324
|
+
...prev[uid].data.cc,
|
|
325
|
+
value: []
|
|
326
|
+
},
|
|
327
|
+
bcc: {
|
|
328
|
+
...prev[uid].data.bcc,
|
|
329
|
+
value: []
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
else if (responseType === 'replyAll') {
|
|
337
|
+
setComposersData(prev => {
|
|
338
|
+
return {
|
|
339
|
+
...prev,
|
|
340
|
+
[uid]: {
|
|
341
|
+
...prev[uid],
|
|
342
|
+
data: {
|
|
343
|
+
...prev[uid].data,
|
|
344
|
+
to: {
|
|
345
|
+
...prev[uid].data.to,
|
|
346
|
+
value: toParticipants
|
|
347
|
+
},
|
|
348
|
+
cc: {
|
|
349
|
+
...prev[uid].data.cc,
|
|
350
|
+
value: ccParticipants
|
|
351
|
+
},
|
|
352
|
+
bcc: {
|
|
353
|
+
...prev[uid].data.bcc,
|
|
354
|
+
value: bccParticipants
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
const handleTemplateIdChange = (uid, templateId) => {
|
|
363
|
+
const selectedTemplate = mockEmailBodyTemplates.find(template => template.id === templateId);
|
|
364
|
+
setComposersData(prev => {
|
|
365
|
+
return {
|
|
366
|
+
...prev,
|
|
367
|
+
[uid]: {
|
|
368
|
+
...prev[uid],
|
|
369
|
+
progress: { message: 'Loading template...' }
|
|
370
|
+
}
|
|
371
|
+
};
|
|
239
372
|
});
|
|
373
|
+
setTimeout(() => {
|
|
374
|
+
setComposersData(prev => {
|
|
375
|
+
return {
|
|
376
|
+
...prev,
|
|
377
|
+
[uid]: {
|
|
378
|
+
...prev[uid],
|
|
379
|
+
progress: false
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
});
|
|
383
|
+
let currentData = {};
|
|
384
|
+
setComposersData(prev => {
|
|
385
|
+
currentData = prev;
|
|
386
|
+
return prev;
|
|
387
|
+
});
|
|
388
|
+
if (currentData) {
|
|
389
|
+
currentData[uid]?.handle?.current?.replaceBodyContent(selectedTemplate?.content || '');
|
|
390
|
+
}
|
|
391
|
+
}, 1000);
|
|
240
392
|
};
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
393
|
+
const handleChange = (uid, field, value) => {
|
|
394
|
+
setComposersData(prevData => {
|
|
395
|
+
if (field === 'bodyContent') {
|
|
396
|
+
return {
|
|
397
|
+
...prevData,
|
|
398
|
+
[uid]: {
|
|
399
|
+
...prevData[uid],
|
|
400
|
+
bodyContentCurrentValue: value
|
|
401
|
+
}
|
|
402
|
+
};
|
|
403
|
+
}
|
|
248
404
|
return {
|
|
249
|
-
...
|
|
250
|
-
|
|
251
|
-
|
|
405
|
+
...prevData,
|
|
406
|
+
[uid]: {
|
|
407
|
+
...prevData[uid],
|
|
408
|
+
data: {
|
|
409
|
+
...prevData[uid].data,
|
|
410
|
+
[field]: ['responseType', 'attachments', 'selectedTemplateId'].includes(field)
|
|
411
|
+
? value
|
|
412
|
+
: {
|
|
413
|
+
error: undefined,
|
|
414
|
+
value
|
|
415
|
+
}
|
|
416
|
+
}
|
|
252
417
|
}
|
|
253
418
|
};
|
|
254
|
-
})
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
419
|
+
});
|
|
420
|
+
if (field === 'responseType') {
|
|
421
|
+
handleResponseTypeChange(uid, value);
|
|
422
|
+
}
|
|
423
|
+
else if (field === 'selectedTemplateId') {
|
|
424
|
+
handleTemplateIdChange(uid, value);
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
const MyModal = ({ currentID }) => {
|
|
428
|
+
const { dismiss } = useModalContext();
|
|
429
|
+
return (<Modal heading='Discard unsaved changes?' actions={<>
|
|
430
|
+
<Button onClick={dismiss}>Go back</Button>
|
|
431
|
+
<div>
|
|
432
|
+
<Button onClick={() => {
|
|
433
|
+
dismiss();
|
|
434
|
+
setComposersData(prev => {
|
|
260
435
|
return {
|
|
261
|
-
|
|
436
|
+
...prev,
|
|
437
|
+
[currentID]: {
|
|
438
|
+
...prev[currentID],
|
|
439
|
+
progress: true
|
|
440
|
+
}
|
|
262
441
|
};
|
|
263
|
-
})
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
442
|
+
});
|
|
443
|
+
setTimeout(() => {
|
|
444
|
+
setComposersData(prev => {
|
|
445
|
+
const newComposersData = { ...prev };
|
|
446
|
+
delete newComposersData[currentID];
|
|
447
|
+
return newComposersData;
|
|
448
|
+
});
|
|
449
|
+
push({ content: 'Draft Saved' });
|
|
450
|
+
}, 1000);
|
|
451
|
+
}}>
|
|
452
|
+
Save & close
|
|
453
|
+
</Button>
|
|
454
|
+
<Button variant='primary' onClick={() => {
|
|
455
|
+
dismiss();
|
|
456
|
+
setComposersData(prev => {
|
|
457
|
+
const newComposersData = { ...prev };
|
|
458
|
+
delete newComposersData[currentID];
|
|
459
|
+
return newComposersData;
|
|
460
|
+
});
|
|
461
|
+
}}>
|
|
462
|
+
Discard
|
|
463
|
+
</Button>
|
|
464
|
+
</div>
|
|
465
|
+
</>}>
|
|
466
|
+
<Text variant='primary'>
|
|
467
|
+
You have unsaved changes. You can discard them or go back to keep working.
|
|
468
|
+
</Text>
|
|
469
|
+
</Modal>);
|
|
470
|
+
};
|
|
471
|
+
const handleCancel = (uid) => {
|
|
472
|
+
create(MyModal, { currentID: uid }, { alert: true });
|
|
473
|
+
};
|
|
474
|
+
const handleSend = (uid) => {
|
|
475
|
+
action('Send')();
|
|
476
|
+
setComposersData(prev => {
|
|
477
|
+
return {
|
|
478
|
+
...prev,
|
|
479
|
+
[uid]: {
|
|
480
|
+
...prev[uid],
|
|
481
|
+
progress: true
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
});
|
|
485
|
+
setTimeout(() => {
|
|
486
|
+
setComposersData(prev => {
|
|
487
|
+
const newComposersData = { ...prev };
|
|
488
|
+
delete newComposersData[uid];
|
|
489
|
+
return newComposersData;
|
|
490
|
+
});
|
|
491
|
+
push({ content: 'Email Send' });
|
|
492
|
+
}, 1000);
|
|
493
|
+
};
|
|
494
|
+
const handleSave = (uid) => {
|
|
495
|
+
action('Save')();
|
|
496
|
+
setComposersData(prev => {
|
|
497
|
+
return {
|
|
498
|
+
...prev,
|
|
499
|
+
[uid]: {
|
|
500
|
+
...prev[uid],
|
|
501
|
+
progress: true
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
});
|
|
505
|
+
setTimeout(() => {
|
|
506
|
+
setComposersData(prev => {
|
|
507
|
+
const newComposersData = { ...prev };
|
|
508
|
+
delete newComposersData[uid];
|
|
509
|
+
return newComposersData;
|
|
510
|
+
});
|
|
511
|
+
push({ content: 'Draft Saved' });
|
|
512
|
+
}, 1000);
|
|
513
|
+
};
|
|
514
|
+
const createOrActivateComposer = (id, launchAction, composerProps) => {
|
|
515
|
+
const uid = getCompositeId(id, launchAction);
|
|
516
|
+
if (composersData[uid]) {
|
|
517
|
+
composersData[uid].handle?.current?.activate();
|
|
518
|
+
}
|
|
519
|
+
else {
|
|
520
|
+
setComposersData(prev => {
|
|
521
|
+
const composerHandle = createRef();
|
|
522
|
+
return {
|
|
523
|
+
...prev,
|
|
524
|
+
[uid]: {
|
|
525
|
+
...composerProps,
|
|
526
|
+
bodyContentCurrentValue: composerProps.data.bodyContent.defaultValue,
|
|
527
|
+
handle: composerHandle,
|
|
528
|
+
onChange: (field, value) => handleChange(uid, field, value),
|
|
529
|
+
onCancel: () => handleCancel(uid),
|
|
530
|
+
onSend: () => handleSend(uid),
|
|
531
|
+
onSave: () => handleSave(uid)
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
};
|
|
277
537
|
const emailsData = [
|
|
278
538
|
{
|
|
279
|
-
id: '
|
|
539
|
+
id: 'item0',
|
|
280
540
|
timeStamp: '2021-01-05T09:12',
|
|
281
541
|
from: participants[0],
|
|
282
542
|
to: participants.slice(0, 2),
|
|
@@ -304,7 +564,7 @@ export const EmailDemo = (args) => {
|
|
|
304
564
|
})
|
|
305
565
|
},
|
|
306
566
|
{
|
|
307
|
-
id: '
|
|
567
|
+
id: 'item1',
|
|
308
568
|
timeStamp: '2021-01-02T03:12',
|
|
309
569
|
from: participants[3],
|
|
310
570
|
to: participants.slice(2, 4),
|
|
@@ -313,35 +573,44 @@ export const EmailDemo = (args) => {
|
|
|
313
573
|
subject: 'Pause service'
|
|
314
574
|
}
|
|
315
575
|
].map(emailData => {
|
|
316
|
-
const emailActionItems = emailDemoActions(
|
|
576
|
+
const emailActionItems = emailDemoActions(emailData.id, emailData.subject, createOrActivateComposer, false, emailData.body);
|
|
317
577
|
return {
|
|
318
578
|
...emailData,
|
|
319
|
-
onReply: id => {
|
|
320
|
-
|
|
579
|
+
onReply: (id) => {
|
|
580
|
+
createOrActivateComposer(id, LaunchAction.REPLY, {
|
|
321
581
|
...baseComposerProps,
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
582
|
+
data: {
|
|
583
|
+
...baseComposerProps.data,
|
|
584
|
+
responseType: 'reply',
|
|
585
|
+
subject: { value: `Re-${emailData.subject}` || '' }
|
|
586
|
+
},
|
|
587
|
+
externalValidator: handleExternalEntry
|
|
588
|
+
});
|
|
326
589
|
},
|
|
327
590
|
onForward: id => {
|
|
328
|
-
|
|
591
|
+
createOrActivateComposer(id, LaunchAction.FORWARD, {
|
|
329
592
|
...baseComposerProps,
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
593
|
+
data: {
|
|
594
|
+
...baseComposerProps.data,
|
|
595
|
+
responseType: 'forward',
|
|
596
|
+
subject: { value: `Fw-${emailData.subject}` || '' }
|
|
597
|
+
},
|
|
598
|
+
externalValidator: handleExternalEntry
|
|
599
|
+
});
|
|
334
600
|
},
|
|
335
601
|
onSuggestionClick: (id, suggestionId) => {
|
|
336
602
|
const suggestion = emailData.suggestions?.find(item => item.id === suggestionId);
|
|
337
|
-
|
|
603
|
+
createOrActivateComposer(id, LaunchAction.SUGGESTION, {
|
|
338
604
|
...baseComposerProps,
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
605
|
+
data: {
|
|
606
|
+
...baseComposerProps.data,
|
|
607
|
+
responseType: 'reply',
|
|
608
|
+
subject: { value: suggestion?.title || '' },
|
|
609
|
+
bodyContent: { defaultValue: suggestion ? suggestion.content : '' },
|
|
610
|
+
selectedTemplateId: suggestion?.id
|
|
611
|
+
},
|
|
612
|
+
externalValidator: handleExternalEntry
|
|
613
|
+
});
|
|
345
614
|
},
|
|
346
615
|
actions: emailActionItems,
|
|
347
616
|
tags: args.hideSuggestions
|
|
@@ -354,59 +623,141 @@ export const EmailDemo = (args) => {
|
|
|
354
623
|
}
|
|
355
624
|
};
|
|
356
625
|
});
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
{
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
626
|
+
const DeleteDraft = ({ currentID }) => {
|
|
627
|
+
const { dismiss } = useModalContext();
|
|
628
|
+
return (<Modal heading='Delete draft?' actions={<>
|
|
629
|
+
<Button onClick={dismiss}>Go back</Button>
|
|
630
|
+
|
|
631
|
+
<Button variant='primary' onClick={() => {
|
|
632
|
+
dismiss();
|
|
633
|
+
setConversationEmails(prev => {
|
|
634
|
+
const newEmailConversation = [];
|
|
635
|
+
prev.forEach(arr => {
|
|
636
|
+
const newArr = arr.filter(index => index.id !== currentID);
|
|
637
|
+
if (newArr.length !== 0)
|
|
638
|
+
newEmailConversation.push(newArr);
|
|
639
|
+
});
|
|
640
|
+
return newEmailConversation;
|
|
641
|
+
});
|
|
642
|
+
}}>
|
|
643
|
+
Delete
|
|
644
|
+
</Button>
|
|
645
|
+
</>}>
|
|
646
|
+
<Text>Are you sure that you want to permanently delete the selected message?</Text>
|
|
647
|
+
</Modal>);
|
|
648
|
+
};
|
|
649
|
+
const deleteEmail = (id) => {
|
|
650
|
+
create(DeleteDraft, { currentID: id }, { alert: true });
|
|
651
|
+
};
|
|
652
|
+
useEffect(() => {
|
|
653
|
+
setConversationEmails([
|
|
654
|
+
[
|
|
655
|
+
{
|
|
656
|
+
...emailsData[1],
|
|
657
|
+
id: 'item0',
|
|
658
|
+
from: mailDeliverySystemEmail,
|
|
659
|
+
to: [supportTeamEmail],
|
|
660
|
+
body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Support team </div>',
|
|
661
|
+
banner: {
|
|
662
|
+
id: 'banner_1',
|
|
663
|
+
heading: 'Address not found ',
|
|
664
|
+
messages: [
|
|
665
|
+
'550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
|
|
666
|
+
]
|
|
667
|
+
},
|
|
668
|
+
onReply: undefined,
|
|
669
|
+
onForward: undefined
|
|
670
|
+
},
|
|
671
|
+
{ ...emailsData[1], unRead: false }
|
|
672
|
+
],
|
|
673
|
+
[
|
|
674
|
+
{
|
|
675
|
+
...emailsData[0],
|
|
676
|
+
id: 'item2',
|
|
677
|
+
status: 'draft',
|
|
678
|
+
onEditDraft: (id) => createOrActivateComposer(id, LaunchAction.REPLY, {
|
|
679
|
+
...baseComposerProps,
|
|
680
|
+
data: {
|
|
681
|
+
...baseComposerProps.data,
|
|
682
|
+
responseType: 'reply',
|
|
683
|
+
subject: { value: `Re-${emailsData[0].subject}` || '' },
|
|
684
|
+
bodyContent: { defaultValue: emailsData[0].body || '' }
|
|
685
|
+
}
|
|
686
|
+
}),
|
|
687
|
+
onDeleteDraft: (id) => deleteEmail(id),
|
|
688
|
+
onReply: undefined,
|
|
689
|
+
onForward: undefined,
|
|
690
|
+
suggestions: undefined,
|
|
691
|
+
unRead: false,
|
|
692
|
+
timeStamp: '2021-01-03T17:15',
|
|
693
|
+
from: mockEmails['Hugh Phillips'],
|
|
694
|
+
to: [mockEmails['Mystery Rey'], ...emailsData[0].to],
|
|
695
|
+
cc: [mockEmails['Adam Gillchrist']],
|
|
696
|
+
bcc: [mockEmails['Anton, Randy'], mockEmails['Hugh Phillips']],
|
|
697
|
+
body: '<div>Hi, <br /> <br /><div>Sure, Our executive will come and check your connection in 24hrs. </div> <br />Regards, <br />Hugh Phillips </div>'
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
...emailsData[1],
|
|
701
|
+
id: 'item3',
|
|
702
|
+
status: 'draft',
|
|
703
|
+
onEditDraft: (id) => createOrActivateComposer(id, LaunchAction.REPLY, {
|
|
704
|
+
...baseComposerProps,
|
|
705
|
+
data: {
|
|
706
|
+
...baseComposerProps.data,
|
|
707
|
+
responseType: 'reply',
|
|
708
|
+
subject: { value: `Re-${emailsData[0].subject}` || '' },
|
|
709
|
+
bodyContent: { defaultValue: emailsData[0].body || '' }
|
|
710
|
+
}
|
|
711
|
+
}),
|
|
712
|
+
onDeleteDraft: (id) => deleteEmail(id),
|
|
713
|
+
onReply: undefined,
|
|
714
|
+
onForward: undefined,
|
|
715
|
+
suggestions: undefined,
|
|
716
|
+
unRead: false,
|
|
717
|
+
timeStamp: '2021-01-02T14:16',
|
|
718
|
+
from: mockEmails['Mystery Rey'],
|
|
719
|
+
to: [mockEmails['Hugh Phillips']],
|
|
720
|
+
body: '<div>Hi, <br /> <br /><div>Can you fix my internet connection. </div> <br /> <br />Regards, <br />Rey Mystery </div>'
|
|
388
721
|
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
722
|
+
],
|
|
723
|
+
[
|
|
724
|
+
{
|
|
725
|
+
...emailsData[0],
|
|
726
|
+
id: 'item4',
|
|
727
|
+
unRead: true,
|
|
728
|
+
timeStamp: '2020-12-05T18:18',
|
|
729
|
+
from: mockEmails['Laura Stevens'],
|
|
730
|
+
to: [mockEmails['Sara Davis']],
|
|
731
|
+
body: '<div>Hi, <br /> <br /><div>Sure, Our executive will call you shortly. </div> <br /> <br />Regards, <br />Laura Stevens </div>',
|
|
732
|
+
sentiment: {
|
|
733
|
+
variant: 'positive'
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
...emailsData[1],
|
|
738
|
+
id: 'item5',
|
|
739
|
+
unRead: true,
|
|
740
|
+
timeStamp: '2021-01-04T08:30',
|
|
741
|
+
from: mockEmails['Sara Davis'],
|
|
742
|
+
to: [mockEmails['Laura Stevens']],
|
|
743
|
+
body: '<div>Hi, <br /> <br /><div>Can you show please explain your new mobile plans. </div> <br /> <br />Regards, <br />Sara Davis </div>'
|
|
744
|
+
}
|
|
745
|
+
]
|
|
746
|
+
]);
|
|
747
|
+
}, []);
|
|
748
|
+
const emailConversations = conversationEmails.map((emails, i) => {
|
|
400
749
|
return {
|
|
401
|
-
from: generateEmailConversationParticipants(emails, ['from'])[0],
|
|
402
|
-
to: emails[0].to,
|
|
750
|
+
from: i === 0 ? emails[1].from : generateEmailConversationParticipants(emails, ['from'])[0],
|
|
751
|
+
to: i === 0 ? emails[1].to : emails[0].to,
|
|
403
752
|
id: `item_${i}`,
|
|
404
753
|
timeStamp: emails[0].timeStamp,
|
|
405
754
|
unReadEmailCount: emails.filter(item => item.unRead).length,
|
|
406
755
|
emails,
|
|
407
756
|
sentiment: emails[0].sentiment,
|
|
408
757
|
isForwarded: i !== 2,
|
|
409
|
-
isCollapsed: i !== 0
|
|
758
|
+
isCollapsed: i !== 0,
|
|
759
|
+
drafts: i === 1,
|
|
760
|
+
undelivered: i === 0
|
|
410
761
|
};
|
|
411
762
|
});
|
|
412
763
|
const singleEmailConversation = [
|
|
@@ -415,43 +766,109 @@ export const EmailDemo = (args) => {
|
|
|
415
766
|
to: generateEmailConversationParticipants(emailsData, ['to']),
|
|
416
767
|
id: 'item_0',
|
|
417
768
|
timeStamp: new Date(emailsData[0].timeStamp),
|
|
418
|
-
unReadEmailCount:
|
|
419
|
-
emails:
|
|
769
|
+
unReadEmailCount: 1,
|
|
770
|
+
emails: [
|
|
771
|
+
{
|
|
772
|
+
...emailsData[1],
|
|
773
|
+
id: 'item0',
|
|
774
|
+
from: mailDeliverySystemEmail,
|
|
775
|
+
to: [supportTeamEmail],
|
|
776
|
+
body: '<div>Hi, <br /> <br /><div>Your address change request is approved.</div> <br /> <br />Regards, <br />Support team </div>',
|
|
777
|
+
banner: {
|
|
778
|
+
id: 'banner_1',
|
|
779
|
+
heading: 'Address not found ',
|
|
780
|
+
messages: [
|
|
781
|
+
'550 5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipients email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/?p=NoSuchUser k24-20020aa790d8000000b0050dd7e3b84csor451330pfk.28'
|
|
782
|
+
]
|
|
783
|
+
},
|
|
784
|
+
onReply: undefined,
|
|
785
|
+
onForward: undefined
|
|
786
|
+
},
|
|
787
|
+
{ ...emailsData[1], unRead: false }
|
|
788
|
+
]
|
|
420
789
|
}
|
|
421
790
|
];
|
|
422
|
-
return (
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
791
|
+
return (<>
|
|
792
|
+
<EmailShell headerProps={args.showHeader
|
|
793
|
+
? {
|
|
794
|
+
actions: (<Flex container={{
|
|
795
|
+
alignItems: 'center',
|
|
796
|
+
gap: 0
|
|
797
|
+
}}>
|
|
798
|
+
<Button variant='simple' icon>
|
|
799
|
+
<Icon name='filter'/>
|
|
800
|
+
</Button>
|
|
801
|
+
<MenuButton variant='simple' text='More actions' icon='more' iconOnly portal menu={{ items: actions }}/>
|
|
802
|
+
</Flex>),
|
|
803
|
+
subject: 'Pause service'
|
|
804
|
+
}
|
|
805
|
+
: undefined} autoCollapse={args.autoCollapse} conversations={args.singleConversation ? singleEmailConversation : emailConversations}/>
|
|
806
|
+
<>
|
|
807
|
+
{Object.keys(composersData).map(guid => {
|
|
808
|
+
return <EmailComposer key={guid} {...composersData[guid]}/>;
|
|
809
|
+
})}
|
|
810
|
+
</>
|
|
811
|
+
</>);
|
|
438
812
|
};
|
|
439
|
-
|
|
813
|
+
EmailShellDemo.args = {
|
|
440
814
|
autoCollapse: true,
|
|
441
815
|
hideSuggestions: false,
|
|
442
|
-
singleConversation:
|
|
816
|
+
singleConversation: false,
|
|
817
|
+
showHeader: true
|
|
443
818
|
};
|
|
444
|
-
|
|
819
|
+
EmailShellDemo.argTypes = {
|
|
445
820
|
autoCollapse: { control: { type: 'boolean' } },
|
|
446
821
|
hideSuggestions: { control: { type: 'boolean' } },
|
|
447
|
-
singleConversation: { control: { type: 'boolean' } }
|
|
822
|
+
singleConversation: { control: { type: 'boolean' } },
|
|
823
|
+
showHeader: { control: { type: 'boolean' } }
|
|
448
824
|
};
|
|
449
|
-
|
|
450
|
-
|
|
825
|
+
export const EntityListDemo = (args) => {
|
|
826
|
+
const itemCounter = useRef(3);
|
|
827
|
+
const timeout = useRef(null);
|
|
828
|
+
const contextMenuHandle = useRef(null);
|
|
829
|
+
const headerProps = {
|
|
830
|
+
icon: 'list-number',
|
|
831
|
+
text: 'Entities'
|
|
832
|
+
};
|
|
833
|
+
const handleRightClick = (e) => {
|
|
834
|
+
action('onContextMenu')(e);
|
|
835
|
+
if (contextMenuHandle.current && args.enableContextMenu) {
|
|
836
|
+
itemCounter.current += 1;
|
|
837
|
+
const { setItems, setOpen, setLoading } = contextMenuHandle.current;
|
|
838
|
+
e.preventDefault();
|
|
839
|
+
setLoading(true);
|
|
840
|
+
setItems([]);
|
|
841
|
+
setOpen(true);
|
|
842
|
+
if (timeout.current) {
|
|
843
|
+
window.clearTimeout(timeout.current);
|
|
844
|
+
}
|
|
845
|
+
timeout.current = window.setTimeout(() => {
|
|
846
|
+
setItems(contextMenuItemsMock);
|
|
847
|
+
setLoading(false);
|
|
848
|
+
}, 1000);
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
useEffect(() => {
|
|
852
|
+
return () => {
|
|
853
|
+
if (timeout.current) {
|
|
854
|
+
window.clearTimeout(timeout.current);
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
}, []);
|
|
858
|
+
return (<EntityList header={headerProps} content={EntityListMockData} contextMenu={{
|
|
859
|
+
onItemClick: action('onItemClick'),
|
|
860
|
+
onContextMenu: args.onContextMenu || handleRightClick,
|
|
861
|
+
handle: contextMenuHandle
|
|
862
|
+
}}/>);
|
|
863
|
+
};
|
|
864
|
+
EntityListDemo.args = {
|
|
865
|
+
enableContextMenu: true
|
|
866
|
+
};
|
|
867
|
+
EntityListDemo.argTypes = {
|
|
868
|
+
enableContextMenu: { control: { type: 'boolean' } }
|
|
451
869
|
};
|
|
452
|
-
export const EmailSummaryItemDemo = () => {
|
|
453
|
-
|
|
454
|
-
return (<EmailSummaryItem style={{ width: '25rem' }} id={createUID()} activeParticipants={[
|
|
870
|
+
export const EmailSummaryItemDemo = (args) => {
|
|
871
|
+
return (<EmailSummaryItem id={createUID()} activeParticipants={[
|
|
455
872
|
{
|
|
456
873
|
shortName: 'Robert',
|
|
457
874
|
fullName: 'Robert Downer',
|
|
@@ -462,42 +879,24 @@ export const EmailSummaryItemDemo = () => {
|
|
|
462
879
|
fullName: 'Nathan Swanson',
|
|
463
880
|
emailAddress: 'nathan.swanson@example.com'
|
|
464
881
|
}
|
|
465
|
-
]} message='I have a quick question on traveling to India. How do I reach Hyderabad?' timeStamp={new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24))} topic='Missing Luggage' sentiment={sentiment} urgency={10} unreadEmailCount={
|
|
466
|
-
|
|
882
|
+
]} message='I have a quick question on traveling to India. How do I reach Hyderabad?' timeStamp={new Date(Date.UTC(new Date().getUTCFullYear(), new Date().getUTCMonth(), 24))} topic='Missing Luggage' sentiment={sentiment} urgency={10} unreadEmailCount={args.unreadEmailCount} active={args.isActive} onSelect={(id) => {
|
|
883
|
+
action('onSelect')(id);
|
|
467
884
|
}}/>);
|
|
468
885
|
};
|
|
469
|
-
|
|
886
|
+
EmailSummaryItemDemo.args = {
|
|
887
|
+
unreadEmailCount: 0,
|
|
888
|
+
isActive: false
|
|
889
|
+
};
|
|
890
|
+
EmailSummaryItemDemo.argTypes = {
|
|
891
|
+
unreadEmailCount: { control: { type: 'number' } },
|
|
892
|
+
isActive: { control: { type: 'boolean' } }
|
|
893
|
+
};
|
|
894
|
+
export const EmailSummaryListDemo = (args) => {
|
|
470
895
|
const INITIAL_CHUNK_SIZE = 9;
|
|
471
896
|
const APPEND_CHUNK_SIZE = 1;
|
|
472
|
-
const emailSummaryListRef = useRef(null);
|
|
473
897
|
const [allEmailItems, setAllEmailItems] = useState(emailSummaryItems.slice(0, INITIAL_CHUNK_SIZE));
|
|
474
|
-
const [categories, setCategories] = useState(
|
|
475
|
-
|
|
476
|
-
id: 'item_0',
|
|
477
|
-
primary: 'Default worklist',
|
|
478
|
-
selected: false
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
id: 'item_1',
|
|
482
|
-
primary: 'Authors',
|
|
483
|
-
selected: false
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
id: 'item_2',
|
|
487
|
-
primary: 'Administrators',
|
|
488
|
-
selected: false
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
id: 'item_3',
|
|
492
|
-
primary: 'Managers',
|
|
493
|
-
selected: false
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
id: 'item_4',
|
|
497
|
-
primary: 'Users',
|
|
498
|
-
selected: false
|
|
499
|
-
}
|
|
500
|
-
]);
|
|
898
|
+
const [categories, setCategories] = useState(emailWorklistItemsMock);
|
|
899
|
+
const [currentItemId, setCurrentItemId] = useState(emailSummaryItems[0].id);
|
|
501
900
|
const handleItemClick = (id) => {
|
|
502
901
|
const index = allEmailItems.findIndex(emailItem => {
|
|
503
902
|
return emailItem.id === id;
|
|
@@ -505,6 +904,7 @@ export const EmailSummaryListDemo = () => {
|
|
|
505
904
|
const newEmailItems = [...allEmailItems];
|
|
506
905
|
newEmailItems.splice(index, 1, { ...allEmailItems[index], unreadEmailCount: 0 });
|
|
507
906
|
setAllEmailItems(newEmailItems);
|
|
907
|
+
setCurrentItemId(id);
|
|
508
908
|
};
|
|
509
909
|
const onCategoryClick = (id) => {
|
|
510
910
|
setCategories(cur => menuHelpers.toggleSelected(cur, id, 'single-select'));
|
|
@@ -527,9 +927,137 @@ export const EmailSummaryListDemo = () => {
|
|
|
527
927
|
}, 1500);
|
|
528
928
|
}
|
|
529
929
|
}, [loading]);
|
|
530
|
-
return (<EmailSummaryList
|
|
930
|
+
return (<EmailSummaryList unreadEmailCount={99} categories={categories} items={args.items || allEmailItems} onItemClick={args.onItemClick || handleItemClick} onCategoryClick={onCategoryClick} onLoadMore={args.onLoadMore || (hasMore ? loadMore : undefined)} loading={args.loading || loading} emptyMessage='No emails.' currentItemId={args.currentItemId || currentItemId}/>);
|
|
931
|
+
};
|
|
932
|
+
export const EmailCaseViewDemo = (args) => {
|
|
933
|
+
const content = <EmailShellDemo />;
|
|
934
|
+
const utilities = (<Grid container={{ rowGap: 2 }}>
|
|
935
|
+
<EntityListDemo />
|
|
936
|
+
<Card>
|
|
937
|
+
<CardHeader container={{ alignItems: 'center', gap: 1 }}>
|
|
938
|
+
<Icon name='document-doc'/>
|
|
939
|
+
<Text variant='h3'>Email header</Text>
|
|
940
|
+
</CardHeader>
|
|
941
|
+
<CardContent>
|
|
942
|
+
<FieldValueList fields={viewAnalysisEmailHeaderMock} variant='stacked'/>
|
|
943
|
+
</CardContent>
|
|
944
|
+
</Card>
|
|
945
|
+
<SummaryList name='Topics' icon='headline' items={topicListMock.map(items => ({
|
|
946
|
+
...items,
|
|
947
|
+
primary: <StyledLabel>{items.primary}</StyledLabel>,
|
|
948
|
+
secondary: (<Flex container={{ direction: 'row', justify: 'between' }}>
|
|
949
|
+
<Text variant='primary'>{items.secondary.indicator}</Text>
|
|
950
|
+
<StyledLabel>{items.secondary.value}</StyledLabel>
|
|
951
|
+
</Flex>)
|
|
952
|
+
}))} noItemsText='No items'/>
|
|
953
|
+
</Grid>);
|
|
954
|
+
return (<AppShellDemo appHeader main={<EmailCaseView header={args.showHeader
|
|
955
|
+
? {
|
|
956
|
+
icon: 'mail',
|
|
957
|
+
title: 'ET-5432'
|
|
958
|
+
}
|
|
959
|
+
: undefined} banners={args.showBanners && (<Banner id='error' variant='urgent' heading='Error' messages={['Your email could not be delivered due to poor network connection.']}/>)} content={content} utilities={!args.noUtilityView && utilities} utilitiesSummaryItems={!args.noUtilityView
|
|
960
|
+
? [
|
|
961
|
+
{ iconName: 'list-number', count: 7 },
|
|
962
|
+
{ iconName: 'document-doc', count: 1 },
|
|
963
|
+
{ iconName: 'headline', count: 4 }
|
|
964
|
+
]
|
|
965
|
+
: undefined} defaultUtilitiesExpanded/>}/>);
|
|
966
|
+
};
|
|
967
|
+
EmailCaseViewDemo.args = {
|
|
968
|
+
showBanners: false,
|
|
969
|
+
noUtilityView: false,
|
|
970
|
+
showHeader: true
|
|
971
|
+
};
|
|
972
|
+
EmailCaseViewDemo.argTypes = {
|
|
973
|
+
showBanners: { control: { type: 'boolean' } },
|
|
974
|
+
noUtilityView: { control: { type: 'boolean' } },
|
|
975
|
+
showHeader: { control: { type: 'boolean' } }
|
|
976
|
+
};
|
|
977
|
+
EmailCaseViewDemo.parameters = {
|
|
978
|
+
layout: 'fullscreen'
|
|
979
|
+
};
|
|
980
|
+
export const EmailManagerAppShell = (args) => {
|
|
981
|
+
const INITIAL_CHUNK_SIZE = 9;
|
|
982
|
+
const APPEND_CHUNK_SIZE = 1;
|
|
983
|
+
const [emailList, setEmailList] = useState(emailSummaryItems.slice(0, INITIAL_CHUNK_SIZE));
|
|
984
|
+
const [loading, setLoading] = useState(false);
|
|
985
|
+
const [hasMore, setHasMore] = useState(true);
|
|
986
|
+
const handleEmailItemClick = (id) => {
|
|
987
|
+
const index = emailList.findIndex(emailItem => {
|
|
988
|
+
return emailItem.id === id;
|
|
989
|
+
});
|
|
990
|
+
const newEmailList = [...emailList];
|
|
991
|
+
newEmailList.splice(index, 1, { ...emailList[index], unreadEmailCount: 0 });
|
|
992
|
+
setEmailList(newEmailList);
|
|
993
|
+
};
|
|
994
|
+
const onLoadMore = useCallback(() => {
|
|
995
|
+
if (!loading) {
|
|
996
|
+
setLoading(true);
|
|
997
|
+
setTimeout(() => {
|
|
998
|
+
setLoading(false);
|
|
999
|
+
setEmailList(prevItems => {
|
|
1000
|
+
const previousItemsLength = prevItems.length;
|
|
1001
|
+
const newItems = emailSummaryItems.slice(previousItemsLength, previousItemsLength + APPEND_CHUNK_SIZE);
|
|
1002
|
+
if (newItems.length === 0) {
|
|
1003
|
+
setHasMore(false);
|
|
1004
|
+
}
|
|
1005
|
+
return [...prevItems, ...newItems];
|
|
1006
|
+
});
|
|
1007
|
+
}, 1500);
|
|
1008
|
+
}
|
|
1009
|
+
}, [loading]);
|
|
1010
|
+
const utilities = (<Grid container={{ rowGap: 2 }}>
|
|
1011
|
+
<EntityListDemo />
|
|
1012
|
+
<Card>
|
|
1013
|
+
<CardHeader container={{ alignItems: 'center', gap: 1 }}>
|
|
1014
|
+
<Icon name='document-doc'/>
|
|
1015
|
+
<Text variant='h3'>Email header</Text>
|
|
1016
|
+
</CardHeader>
|
|
1017
|
+
<CardContent>
|
|
1018
|
+
<FieldValueList fields={viewAnalysisEmailHeaderMock} variant='stacked'/>
|
|
1019
|
+
</CardContent>
|
|
1020
|
+
</Card>
|
|
1021
|
+
<SummaryList name='Topics' icon='headline' items={topicListMock.map(items => ({
|
|
1022
|
+
...items,
|
|
1023
|
+
primary: <StyledLabel>{items.primary}</StyledLabel>,
|
|
1024
|
+
secondary: (<Flex container={{ direction: 'row', justify: 'between' }}>
|
|
1025
|
+
<Text variant='primary'>{items.secondary.indicator}</Text>
|
|
1026
|
+
<StyledLabel>{items.secondary.value}</StyledLabel>
|
|
1027
|
+
</Flex>)
|
|
1028
|
+
}))} noItemsText='No items'/>
|
|
1029
|
+
</Grid>);
|
|
1030
|
+
const content = <EmailShellDemo showHeader={false}/>;
|
|
1031
|
+
return (<AppShellDemo appHeader main={<EmailManager header={args.showHeader
|
|
1032
|
+
? {
|
|
1033
|
+
icon: 'mail',
|
|
1034
|
+
title: 'Inbox'
|
|
1035
|
+
}
|
|
1036
|
+
: undefined} list={<EmailSummaryListDemo onItemClick={handleEmailItemClick} items={emailList} onLoadMore={hasMore ? onLoadMore : undefined} loading={loading}/>} emailCaseDetails={!args.showEmptyView && (<EmailCaseView banners={args.showCaseViewBanners && (<Banner id='error' variant='urgent' heading='Error' messages={[
|
|
1037
|
+
'Your email could not be delivered due to poor network connection.'
|
|
1038
|
+
]}/>)} content={content} utilities={args.showUtilities && utilities} utilitiesSummaryItems={args.showUtilities
|
|
1039
|
+
? [
|
|
1040
|
+
{ iconName: 'list-number', count: 7 },
|
|
1041
|
+
{ iconName: 'document-doc', count: 1 },
|
|
1042
|
+
{ iconName: 'headline', count: 4 }
|
|
1043
|
+
]
|
|
1044
|
+
: undefined} defaultUtilitiesExpanded={false}/>)}/>}/>);
|
|
1045
|
+
};
|
|
1046
|
+
EmailManagerAppShell.args = {
|
|
1047
|
+
enableContextMenu: true,
|
|
1048
|
+
showEmptyView: false,
|
|
1049
|
+
showHeader: true,
|
|
1050
|
+
showCaseViewBanners: false,
|
|
1051
|
+
showUtilities: true
|
|
1052
|
+
};
|
|
1053
|
+
EmailManagerAppShell.argTypes = {
|
|
1054
|
+
enableContextMenu: { control: { type: 'boolean' } },
|
|
1055
|
+
showEmptyView: { control: { type: 'boolean' } },
|
|
1056
|
+
showHeader: { control: { type: 'boolean' } },
|
|
1057
|
+
showCaseViewBanners: { control: { type: 'boolean' } },
|
|
1058
|
+
showUtilities: { control: { type: 'boolean' } }
|
|
531
1059
|
};
|
|
532
|
-
|
|
1060
|
+
EmailManagerAppShell.parameters = {
|
|
533
1061
|
layout: 'fullscreen'
|
|
534
1062
|
};
|
|
535
1063
|
//# sourceMappingURL=Email.stories.jsx.map
|