@pega/cosmos-react-demos 8.0.0-build.9.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsx/build/BackgroundPicker/BackgroundPicker.stories.d.ts +9 -0
- package/jsx/build/BackgroundPicker/BackgroundPicker.stories.d.ts.map +1 -0
- package/jsx/build/BackgroundPicker/BackgroundPicker.stories.jsx +42 -0
- package/jsx/build/BackgroundPicker/BackgroundPicker.stories.jsx.map +1 -0
- package/jsx/build/DynamicInput/DynamicInput.stories.d.ts +2 -2
- package/jsx/build/DynamicInput/DynamicInput.stories.d.ts.map +1 -1
- package/jsx/build/DynamicInput/DynamicInput.stories.jsx +37 -13
- package/jsx/build/DynamicInput/DynamicInput.stories.jsx.map +1 -1
- package/jsx/build/Expression/Expression.mocks.d.ts +11 -0
- package/jsx/build/Expression/Expression.mocks.d.ts.map +1 -0
- package/jsx/build/Expression/Expression.mocks.js +41 -0
- package/jsx/build/Expression/Expression.mocks.js.map +1 -0
- package/jsx/build/Expression/Expression.stories.d.ts +18 -0
- package/jsx/build/Expression/Expression.stories.d.ts.map +1 -0
- package/jsx/build/Expression/Expression.stories.jsx +57 -0
- package/jsx/build/Expression/Expression.stories.jsx.map +1 -0
- package/jsx/build/Expression/useMockExpression.d.ts +96 -0
- package/jsx/build/Expression/useMockExpression.d.ts.map +1 -0
- package/jsx/build/Expression/useMockExpression.js +321 -0
- package/jsx/build/Expression/useMockExpression.js.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +59 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js +568 -0
- package/jsx/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
- package/jsx/build/FieldReference/FieldReference.mocks.d.ts.map +1 -1
- package/jsx/build/FieldReference/FieldReference.mocks.js +7 -2
- package/jsx/build/FieldReference/FieldReference.mocks.js.map +1 -1
- package/jsx/build/IconTile/IconTile.mocks.d.ts +8 -0
- package/jsx/build/IconTile/IconTile.mocks.d.ts.map +1 -0
- package/jsx/build/IconTile/IconTile.mocks.js +247 -0
- package/jsx/build/IconTile/IconTile.mocks.js.map +1 -0
- package/jsx/build/IconTile/IconTile.stories.d.ts +11 -0
- package/jsx/build/IconTile/IconTile.stories.d.ts.map +1 -0
- package/jsx/build/IconTile/IconTile.stories.jsx +29 -0
- package/jsx/build/IconTile/IconTile.stories.jsx.map +1 -0
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts +3 -0
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -0
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js +40 -0
- package/jsx/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -0
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts +5 -0
- package/jsx/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -0
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx +32 -0
- package/jsx/build/ItemLibrary/LibraryPicker.stories.jsx.map +1 -0
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts +382 -0
- package/jsx/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -0
- package/jsx/build/LifeCycle/LifeCycle.mocks.js +1652 -0
- package/jsx/build/LifeCycle/LifeCycle.mocks.js.map +1 -0
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts +23 -0
- package/jsx/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -0
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx +1115 -0
- package/jsx/build/LifeCycle/LifeCycle.stories.jsx.map +1 -0
- package/jsx/build/LifeCycle/LifeCycle.styles.d.ts +5 -0
- package/jsx/build/LifeCycle/LifeCycle.styles.d.ts.map +1 -0
- package/jsx/build/LifeCycle/LifeCycle.styles.js +9 -0
- package/jsx/build/LifeCycle/LifeCycle.styles.js.map +1 -0
- package/jsx/build/LifeCycle/LifeCycleTest.mocks.d.ts +18 -0
- package/jsx/build/LifeCycle/LifeCycleTest.mocks.d.ts.map +1 -0
- package/jsx/build/LifeCycle/LifeCycleTest.mocks.js +5998 -0
- package/jsx/build/LifeCycle/LifeCycleTest.mocks.js.map +1 -0
- package/jsx/build/LifeCycle/utils.d.ts +123 -0
- package/jsx/build/LifeCycle/utils.d.ts.map +1 -0
- package/jsx/build/LifeCycle/utils.js +304 -0
- package/jsx/build/LifeCycle/utils.js.map +1 -0
- 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 +9 -1
- package/jsx/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +2 -2
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js +50 -5
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +2 -2
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +3 -3
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/core/Banner/Banner.mocks.d.ts +4 -1
- package/jsx/core/Banner/Banner.mocks.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.mocks.jsx.map +1 -1
- package/jsx/core/Banner/Banner.stories.d.ts +1 -1
- package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.stories.jsx +20 -7
- package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
- package/jsx/core/Button/Button.stories.d.ts +0 -1
- package/jsx/core/Button/Button.stories.d.ts.map +1 -1
- package/jsx/core/Button/Button.stories.jsx +0 -13
- package/jsx/core/Button/Button.stories.jsx.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +11 -2
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx +68 -8
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +10 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx +91 -38
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +2 -2
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.jsx +1 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.jsx.map +1 -1
- package/jsx/core/File/FileDisplay.stories.d.ts +1 -0
- package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/jsx/core/File/FileDisplay.stories.jsx +5 -3
- package/jsx/core/File/FileDisplay.stories.jsx.map +1 -1
- package/jsx/core/Fullscreen/Fullscreen.styles.d.ts +1 -1
- package/jsx/core/Fullscreen/Fullscreen.styles.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.stories.jsx +4 -4
- package/jsx/core/Icon/Icon.stories.jsx.map +1 -1
- package/jsx/core/IconPicker/IconPicker.mocks.d.ts +1 -1
- package/jsx/core/IconPicker/IconPicker.mocks.d.ts.map +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx +1 -1
- package/jsx/core/IconPicker/IconPicker.stories.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +1 -0
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx +20 -2
- package/jsx/core/ListToolbar/ListToolbar.stories.jsx.map +1 -1
- package/jsx/core/Location/locationTestUtils.d.ts.map +1 -1
- package/jsx/core/Location/locationTestUtils.js +1 -0
- package/jsx/core/Location/locationTestUtils.js.map +1 -1
- package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
- package/jsx/core/Menu/Menu.stories.jsx +10 -1
- package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +15 -16
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx +5 -7
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -1
- package/jsx/core/PageTemplates/GridLayout.mocks.d.ts +42 -0
- package/jsx/core/PageTemplates/GridLayout.mocks.d.ts.map +1 -0
- package/jsx/core/PageTemplates/GridLayout.mocks.jsx +152 -0
- package/jsx/core/PageTemplates/GridLayout.mocks.jsx.map +1 -0
- package/jsx/core/PageTemplates/GridLayout.stories.d.ts +6 -0
- package/jsx/core/PageTemplates/GridLayout.stories.d.ts.map +1 -0
- package/jsx/core/PageTemplates/GridLayout.stories.jsx +81 -0
- package/jsx/core/PageTemplates/GridLayout.stories.jsx.map +1 -0
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +2 -0
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx +48 -2
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +2 -0
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.js +9 -0
- package/jsx/core/PageTemplates/PageTemplates.styles.js.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +11 -2
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx +61 -4
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +11 -2
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx +203 -48
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +2 -2
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -1
- package/jsx/core/Select/Select.stories.jsx +8 -8
- package/jsx/core/Select/Select.stories.jsx.map +1 -1
- package/jsx/core/SelectionCard/SelectionCard.stories.d.ts +15 -0
- package/jsx/core/SelectionCard/SelectionCard.stories.d.ts.map +1 -0
- package/jsx/core/SelectionCard/SelectionCard.stories.jsx +76 -0
- package/jsx/core/SelectionCard/SelectionCard.stories.jsx.map +1 -0
- package/jsx/core/Tabs/Tabs.stories.d.ts +1 -0
- package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.jsx +20 -11
- package/jsx/core/Tabs/Tabs.stories.jsx.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts +1 -1
- package/jsx/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.styles.js.map +1 -1
- package/jsx/dnd/StandardDragDropList/Demo.d.ts +5 -1
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/Demo.jsx +21 -3
- package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -1
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -2
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx +8 -4
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.jsx.map +1 -1
- package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/mockData.js +1 -0
- package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -1
- package/jsx/rte/Editor/Editor.stories.d.ts +1 -0
- package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.stories.jsx +10 -0
- package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
- package/jsx/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.mocks.js +12 -2
- package/jsx/social/Chat/Chat.mocks.js.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +2 -0
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx +11 -5
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.jsx +7 -0
- package/jsx/social/Email/Email.mocks.jsx.map +1 -1
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx +123 -11
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/social/Feed/Feed.mocks.d.ts +40 -18
- package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.jsx +132 -42
- package/jsx/social/Feed/Feed.mocks.jsx.map +1 -1
- package/jsx/social/Feed/Feed.stories.d.ts +6 -1
- package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.stories.jsx +82 -19
- package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts +7 -3
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedNewPost.mocks.jsx +154 -23
- package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +1 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts +1 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedPost.mocks.jsx +248 -43
- package/jsx/social/Feed/FeedPost.mocks.jsx.map +1 -1
- package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReply.mocks.jsx +45 -9
- package/jsx/social/Feed/FeedReply.mocks.jsx.map +1 -1
- package/jsx/social/Feed/LogActivityPostType.mocks.d.ts +21 -0
- package/jsx/social/Feed/LogActivityPostType.mocks.d.ts.map +1 -0
- package/jsx/social/Feed/LogActivityPostType.mocks.jsx +145 -0
- package/jsx/social/Feed/LogActivityPostType.mocks.jsx.map +1 -0
- package/jsx/social/OpenGraphPreview/OpenGraphPreview.mocks.d.ts +28 -0
- package/jsx/social/OpenGraphPreview/OpenGraphPreview.mocks.d.ts.map +1 -0
- package/jsx/social/OpenGraphPreview/OpenGraphPreview.mocks.js +28 -0
- package/jsx/social/OpenGraphPreview/OpenGraphPreview.mocks.js.map +1 -0
- package/jsx/social/OpenGraphPreview/OpenGraphPreview.stories.d.ts +9 -0
- package/jsx/social/OpenGraphPreview/OpenGraphPreview.stories.d.ts.map +1 -0
- package/jsx/social/OpenGraphPreview/OpenGraphPreview.stories.jsx +27 -0
- package/jsx/social/OpenGraphPreview/OpenGraphPreview.stories.jsx.map +1 -0
- package/jsx/work/Article/Article.stories.d.ts.map +1 -1
- package/jsx/work/Article/Article.stories.jsx +15 -12
- package/jsx/work/Article/Article.stories.jsx.map +1 -1
- package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts.map +1 -1
- package/jsx/work/ArticleList/ArticleBuddy.stories.jsx +31 -7
- package/jsx/work/ArticleList/ArticleBuddy.stories.jsx.map +1 -1
- package/jsx/work/ArticleList/ArticleList.mocks.d.ts +6 -4
- package/jsx/work/ArticleList/ArticleList.mocks.d.ts.map +1 -1
- package/jsx/work/ArticleList/ArticleList.mocks.js +75 -53
- package/jsx/work/ArticleList/ArticleList.mocks.js.map +1 -1
- package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/jsx/work/ArticleList/ArticleList.stories.jsx +62 -38
- package/jsx/work/ArticleList/ArticleList.stories.jsx.map +1 -1
- package/jsx/work/CaseHierarchy/CaseHierarchy.stories.d.ts +14 -0
- package/jsx/work/CaseHierarchy/CaseHierarchy.stories.d.ts.map +1 -0
- package/jsx/work/CaseHierarchy/CaseHierarchy.stories.jsx +123 -0
- package/jsx/work/CaseHierarchy/CaseHierarchy.stories.jsx.map +1 -0
- package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +34 -6
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +107 -28
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +11 -5
- package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/work/Details/Details.stories.d.ts +1 -0
- package/jsx/work/Details/Details.stories.d.ts.map +1 -1
- package/jsx/work/Details/Details.stories.jsx +6 -4
- package/jsx/work/Details/Details.stories.jsx.map +1 -1
- package/jsx/work/GenAICoach/GenAICoach.mocks.d.ts +16 -4
- package/jsx/work/GenAICoach/GenAICoach.mocks.d.ts.map +1 -1
- package/jsx/work/GenAICoach/GenAICoach.mocks.js +142 -13
- package/jsx/work/GenAICoach/GenAICoach.mocks.js.map +1 -1
- package/jsx/work/GenAICoach/GenAICoach.stories.d.ts +10 -1
- package/jsx/work/GenAICoach/GenAICoach.stories.d.ts.map +1 -1
- package/jsx/work/GenAICoach/GenAICoach.stories.jsx +260 -51
- package/jsx/work/GenAICoach/GenAICoach.stories.jsx.map +1 -1
- package/jsx/work/GenAICoach/useGenAICoach.d.ts.map +1 -1
- package/jsx/work/GenAICoach/useGenAICoach.js +103 -34
- package/jsx/work/GenAICoach/useGenAICoach.js.map +1 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts.map +1 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.jsx +39 -16
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.jsx.map +1 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts +1 -0
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts.map +1 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.jsx +4 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts +6 -2
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.mocks.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
- package/jsx/work/Stages/Stages.mocks.jsx +1 -1
- package/jsx/work/Stages/Stages.mocks.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx +3 -3
- package/jsx/work/Stakeholders/Stakeholders.mocks.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +1 -0
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx +31 -7
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
- package/jsx/work/Timeline/Timeline.mocks.d.ts.map +1 -1
- package/jsx/work/Timeline/Timeline.mocks.jsx +1 -0
- package/jsx/work/Timeline/Timeline.mocks.jsx.map +1 -1
- package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts +0 -1
- package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts.map +1 -1
- package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.jsx +0 -3
- package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.jsx.map +1 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts +2 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/wss/AppShell/AppShell.mocks.jsx +1 -1
- package/jsx/wss/AppShell/AppShell.mocks.jsx.map +1 -1
- package/jsx/wss/AppShell/AppShell.stories.d.ts +1 -0
- package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/wss/AppShell/AppShell.stories.jsx +5 -3
- package/jsx/wss/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/wss/AppShell/AppShell.styles.d.ts +3 -1
- package/jsx/wss/AppShell/AppShell.styles.d.ts.map +1 -1
- package/jsx/wss/AppShell/AppShell.styles.js +11 -4
- package/jsx/wss/AppShell/AppShell.styles.js.map +1 -1
- package/jsx/wss/CaseView/CaseView.mocks.d.ts +5 -0
- package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/wss/CaseView/CaseView.mocks.jsx +55 -1
- package/jsx/wss/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/wss/CaseView/CaseView.stories.d.ts +1 -0
- package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/wss/CaseView/CaseView.stories.jsx +6 -3
- package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
- package/lib/build/BackgroundPicker/BackgroundPicker.stories.d.ts +9 -0
- package/lib/build/BackgroundPicker/BackgroundPicker.stories.d.ts.map +1 -0
- package/lib/build/BackgroundPicker/BackgroundPicker.stories.js +43 -0
- package/lib/build/BackgroundPicker/BackgroundPicker.stories.js.map +1 -0
- package/lib/build/DynamicInput/DynamicInput.stories.d.ts +2 -2
- package/lib/build/DynamicInput/DynamicInput.stories.d.ts.map +1 -1
- package/lib/build/DynamicInput/DynamicInput.stories.js +37 -14
- package/lib/build/DynamicInput/DynamicInput.stories.js.map +1 -1
- package/lib/build/Expression/Expression.mocks.d.ts +11 -0
- package/lib/build/Expression/Expression.mocks.d.ts.map +1 -0
- package/lib/build/Expression/Expression.mocks.js +41 -0
- package/lib/build/Expression/Expression.mocks.js.map +1 -0
- package/lib/build/Expression/Expression.stories.d.ts +18 -0
- package/lib/build/Expression/Expression.stories.d.ts.map +1 -0
- package/lib/build/Expression/Expression.stories.js +58 -0
- package/lib/build/Expression/Expression.stories.js.map +1 -0
- package/lib/build/Expression/useMockExpression.d.ts +96 -0
- package/lib/build/Expression/useMockExpression.d.ts.map +1 -0
- package/lib/build/Expression/useMockExpression.js +321 -0
- package/lib/build/Expression/useMockExpression.js.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts +59 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.d.ts.map +1 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js +568 -0
- package/lib/build/ExpressionBuilder/ExpressionBuilder.mocks.js.map +1 -0
- package/lib/build/FieldReference/FieldReference.mocks.d.ts.map +1 -1
- package/lib/build/FieldReference/FieldReference.mocks.js +7 -2
- package/lib/build/FieldReference/FieldReference.mocks.js.map +1 -1
- package/lib/build/IconTile/IconTile.mocks.d.ts +8 -0
- package/lib/build/IconTile/IconTile.mocks.d.ts.map +1 -0
- package/lib/build/IconTile/IconTile.mocks.js +247 -0
- package/lib/build/IconTile/IconTile.mocks.js.map +1 -0
- package/lib/build/IconTile/IconTile.stories.d.ts +11 -0
- package/lib/build/IconTile/IconTile.stories.d.ts.map +1 -0
- package/lib/build/IconTile/IconTile.stories.js +30 -0
- package/lib/build/IconTile/IconTile.stories.js.map +1 -0
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts +3 -0
- package/lib/build/ItemLibrary/LibraryPicker.mocks.d.ts.map +1 -0
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js +40 -0
- package/lib/build/ItemLibrary/LibraryPicker.mocks.js.map +1 -0
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts +5 -0
- package/lib/build/ItemLibrary/LibraryPicker.stories.d.ts.map +1 -0
- package/lib/build/ItemLibrary/LibraryPicker.stories.js +29 -0
- package/lib/build/ItemLibrary/LibraryPicker.stories.js.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts +382 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.d.ts.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.js +1653 -0
- package/lib/build/LifeCycle/LifeCycle.mocks.js.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts +23 -0
- package/lib/build/LifeCycle/LifeCycle.stories.d.ts.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.stories.js +1307 -0
- package/lib/build/LifeCycle/LifeCycle.stories.js.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.styles.d.ts +5 -0
- package/lib/build/LifeCycle/LifeCycle.styles.d.ts.map +1 -0
- package/lib/build/LifeCycle/LifeCycle.styles.js +9 -0
- package/lib/build/LifeCycle/LifeCycle.styles.js.map +1 -0
- package/lib/build/LifeCycle/LifeCycleTest.mocks.d.ts +18 -0
- package/lib/build/LifeCycle/LifeCycleTest.mocks.d.ts.map +1 -0
- package/lib/build/LifeCycle/LifeCycleTest.mocks.js +5998 -0
- package/lib/build/LifeCycle/LifeCycleTest.mocks.js.map +1 -0
- package/lib/build/LifeCycle/utils.d.ts +123 -0
- package/lib/build/LifeCycle/utils.d.ts.map +1 -0
- package/lib/build/LifeCycle/utils.js +304 -0
- package/lib/build/LifeCycle/utils.js.map +1 -0
- 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 +9 -1
- package/lib/condition-builder/ConditionBuilder/props.mock.js.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts +2 -2
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.d.ts.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js +50 -5
- package/lib/condition-builder/PromotedFilters/PromotedFilters.mocks.js.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +2 -2
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.mocks.d.ts +2 -2
- package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +3 -3
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.js.map +1 -1
- package/lib/core/Banner/Banner.mocks.d.ts +5 -2
- package/lib/core/Banner/Banner.mocks.d.ts.map +1 -1
- package/lib/core/Banner/Banner.mocks.js.map +1 -1
- package/lib/core/Banner/Banner.stories.d.ts +1 -1
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
- package/lib/core/Banner/Banner.stories.js +20 -7
- package/lib/core/Banner/Banner.stories.js.map +1 -1
- package/lib/core/Button/Button.stories.d.ts +0 -1
- package/lib/core/Button/Button.stories.d.ts.map +1 -1
- package/lib/core/Button/Button.stories.js +0 -11
- package/lib/core/Button/Button.stories.js.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts +11 -2
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.js +68 -10
- package/lib/core/Checkbox/Checkbox.stories.js.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +10 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js +89 -18
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts +2 -2
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.mocks.d.ts +1 -1
- package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts +1 -1
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -1
- package/lib/core/Configuration/Configuration.mocks.d.ts +1 -1
- package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.js +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.js.map +1 -1
- package/lib/core/Dialog/FormDialog.mocks.d.ts +2 -2
- package/lib/core/Dialog/FormDialog.mocks.d.ts.map +1 -1
- package/lib/core/Dialog/InfoDialog.mocks.d.ts +2 -2
- package/lib/core/Dialog/InfoDialog.mocks.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +3 -3
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.mocks.d.ts +1 -1
- package/lib/core/File/FileDisplay.stories.d.ts +1 -0
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/lib/core/File/FileDisplay.stories.js +5 -3
- package/lib/core/File/FileDisplay.stories.js.map +1 -1
- package/lib/core/Form/Form.mocks.d.ts +2 -2
- package/lib/core/Form/Form.mocks.d.ts.map +1 -1
- package/lib/core/Fullscreen/Fullscreen.styles.d.ts +1 -1
- package/lib/core/Fullscreen/Fullscreen.styles.d.ts.map +1 -1
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
- package/lib/core/Icon/Icon.stories.js +4 -4
- package/lib/core/Icon/Icon.stories.js.map +1 -1
- package/lib/core/IconPicker/IconPicker.mocks.d.ts +1 -1
- package/lib/core/IconPicker/IconPicker.mocks.d.ts.map +1 -1
- package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/lib/core/IconPicker/IconPicker.stories.js +1 -1
- package/lib/core/IconPicker/IconPicker.stories.js.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts +2 -2
- package/lib/core/ListToolbar/ListToolbar.mocks.d.ts.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts +1 -0
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.js +10 -2
- package/lib/core/ListToolbar/ListToolbar.stories.js.map +1 -1
- package/lib/core/LiveLog/LiveLog.mocks.d.ts +1 -1
- package/lib/core/LiveLog/LiveLog.mocks.d.ts.map +1 -1
- package/lib/core/Location/Location.mocks.d.ts +1 -1
- package/lib/core/Location/Location.mocks.d.ts.map +1 -1
- package/lib/core/Location/locationTestUtils.d.ts.map +1 -1
- package/lib/core/Location/locationTestUtils.js +1 -0
- package/lib/core/Location/locationTestUtils.js.map +1 -1
- package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
- package/lib/core/Menu/Menu.stories.js +10 -1
- package/lib/core/Menu/Menu.stories.js.map +1 -1
- package/lib/core/Modal/Modal.mocks.d.ts +8 -8
- package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +20 -21
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js +5 -7
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -1
- package/lib/core/PageTemplates/GridLayout.mocks.d.ts +42 -0
- package/lib/core/PageTemplates/GridLayout.mocks.d.ts.map +1 -0
- package/lib/core/PageTemplates/GridLayout.mocks.js +131 -0
- package/lib/core/PageTemplates/GridLayout.mocks.js.map +1 -0
- package/lib/core/PageTemplates/GridLayout.stories.d.ts +6 -0
- package/lib/core/PageTemplates/GridLayout.stories.d.ts.map +1 -0
- package/lib/core/PageTemplates/GridLayout.stories.js +54 -0
- package/lib/core/PageTemplates/GridLayout.stories.js.map +1 -0
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts +2 -0
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js +41 -2
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts +2 -0
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.js +9 -0
- package/lib/core/PageTemplates/PageTemplates.styles.js.map +1 -1
- package/lib/core/Popover/Popover.mocks.d.ts +1 -1
- package/lib/core/Popover/Popover.mocks.d.ts.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.d.ts +11 -2
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.js +61 -4
- package/lib/core/RadioButton/RadioButton.stories.js.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +11 -2
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js +196 -21
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.js.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +2 -2
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -1
- package/lib/core/Select/Select.stories.js +2 -2
- package/lib/core/Select/Select.stories.js.map +1 -1
- package/lib/core/SelectionCard/SelectionCard.stories.d.ts +15 -0
- package/lib/core/SelectionCard/SelectionCard.stories.d.ts.map +1 -0
- package/lib/core/SelectionCard/SelectionCard.stories.js +77 -0
- package/lib/core/SelectionCard/SelectionCard.stories.js.map +1 -0
- package/lib/core/Table/Table.mocks.d.ts +1 -1
- package/lib/core/Tabs/Tabs.mocks.d.ts +1 -1
- package/lib/core/Tabs/Tabs.mocks.d.ts.map +1 -1
- package/lib/core/Tabs/Tabs.stories.d.ts +1 -0
- package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/lib/core/Tabs/Tabs.stories.js +12 -6
- package/lib/core/Tabs/Tabs.stories.js.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +2 -2
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.styles.d.ts +1 -1
- package/lib/dnd/DragDropList/DragDropList.styles.d.ts.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.styles.js.map +1 -1
- package/lib/dnd/StandardDragDropList/Demo.d.ts +5 -1
- package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/Demo.js +21 -3
- package/lib/dnd/StandardDragDropList/Demo.js.map +1 -1
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +1 -1
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +1 -1
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/Popover.d.ts +1 -1
- package/lib/dnd/StandardDragDropList/Popover.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +1 -1
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +3 -2
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js +7 -3
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.js.map +1 -1
- package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/mockData.js +1 -0
- package/lib/dnd/StandardDragDropList/mockData.js.map +1 -1
- package/lib/rte/Editor/Editor.stories.d.ts +1 -0
- package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.stories.js +8 -1
- package/lib/rte/Editor/Editor.stories.js.map +1 -1
- package/lib/social/Chat/Chat.mocks.d.ts.map +1 -1
- package/lib/social/Chat/Chat.mocks.js +12 -2
- package/lib/social/Chat/Chat.mocks.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +2 -0
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js +11 -5
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Email/Email.mocks.d.ts +1 -1
- package/lib/social/Email/Email.mocks.d.ts.map +1 -1
- package/lib/social/Email/Email.mocks.js +7 -0
- package/lib/social/Email/Email.mocks.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js +123 -11
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/social/Feed/Feed.mocks.d.ts +42 -20
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/lib/social/Feed/Feed.mocks.js +125 -38
- package/lib/social/Feed/Feed.mocks.js.map +1 -1
- package/lib/social/Feed/Feed.stories.d.ts +6 -1
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
- package/lib/social/Feed/Feed.stories.js +81 -18
- package/lib/social/Feed/Feed.stories.js.map +1 -1
- package/lib/social/Feed/FeedNewPost.mocks.d.ts +7 -3
- package/lib/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
- package/lib/social/Feed/FeedNewPost.mocks.js +156 -24
- package/lib/social/Feed/FeedNewPost.mocks.js.map +1 -1
- package/lib/social/Feed/FeedPost.mocks.d.ts +1 -1
- package/lib/social/Feed/FeedPost.mocks.d.ts.map +1 -1
- package/lib/social/Feed/FeedPost.mocks.js +247 -42
- package/lib/social/Feed/FeedPost.mocks.js.map +1 -1
- package/lib/social/Feed/FeedReply.mocks.d.ts +1 -1
- package/lib/social/Feed/FeedReply.mocks.d.ts.map +1 -1
- package/lib/social/Feed/FeedReply.mocks.js +45 -9
- package/lib/social/Feed/FeedReply.mocks.js.map +1 -1
- package/lib/social/Feed/LogActivityPostType.mocks.d.ts +21 -0
- package/lib/social/Feed/LogActivityPostType.mocks.d.ts.map +1 -0
- package/lib/social/Feed/LogActivityPostType.mocks.js +133 -0
- package/lib/social/Feed/LogActivityPostType.mocks.js.map +1 -0
- package/lib/social/OpenGraphPreview/OpenGraphPreview.mocks.d.ts +28 -0
- package/lib/social/OpenGraphPreview/OpenGraphPreview.mocks.d.ts.map +1 -0
- package/lib/social/OpenGraphPreview/OpenGraphPreview.mocks.js +28 -0
- package/lib/social/OpenGraphPreview/OpenGraphPreview.mocks.js.map +1 -0
- package/lib/social/OpenGraphPreview/OpenGraphPreview.stories.d.ts +9 -0
- package/lib/social/OpenGraphPreview/OpenGraphPreview.stories.d.ts.map +1 -0
- package/lib/social/OpenGraphPreview/OpenGraphPreview.stories.js +22 -0
- package/lib/social/OpenGraphPreview/OpenGraphPreview.stories.js.map +1 -0
- package/lib/work/Article/Article.stories.d.ts.map +1 -1
- package/lib/work/Article/Article.stories.js +15 -12
- package/lib/work/Article/Article.stories.js.map +1 -1
- package/lib/work/ArticleList/ArticleBuddy.stories.d.ts.map +1 -1
- package/lib/work/ArticleList/ArticleBuddy.stories.js +31 -7
- package/lib/work/ArticleList/ArticleBuddy.stories.js.map +1 -1
- package/lib/work/ArticleList/ArticleList.mocks.d.ts +6 -4
- package/lib/work/ArticleList/ArticleList.mocks.d.ts.map +1 -1
- package/lib/work/ArticleList/ArticleList.mocks.js +75 -53
- package/lib/work/ArticleList/ArticleList.mocks.js.map +1 -1
- package/lib/work/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/lib/work/ArticleList/ArticleList.stories.js +62 -38
- package/lib/work/ArticleList/ArticleList.stories.js.map +1 -1
- package/lib/work/CaseHierarchy/CaseHierarchy.stories.d.ts +14 -0
- package/lib/work/CaseHierarchy/CaseHierarchy.stories.d.ts.map +1 -0
- package/lib/work/CaseHierarchy/CaseHierarchy.stories.js +126 -0
- package/lib/work/CaseHierarchy/CaseHierarchy.stories.js.map +1 -0
- package/lib/work/CaseView/Attachments.mocks.d.ts +1 -1
- package/lib/work/CaseView/Attachments.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Attachments.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.d.ts +40 -12
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +107 -29
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.stories.js +11 -5
- package/lib/work/CaseView/CaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Details.mocks.d.ts +1 -1
- package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.d.ts +1 -1
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +6 -6
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -1
- package/lib/work/Details/Details.stories.d.ts +1 -0
- package/lib/work/Details/Details.stories.d.ts.map +1 -1
- package/lib/work/Details/Details.stories.js +6 -4
- package/lib/work/Details/Details.stories.js.map +1 -1
- package/lib/work/GenAICoach/GenAICoach.mocks.d.ts +16 -4
- package/lib/work/GenAICoach/GenAICoach.mocks.d.ts.map +1 -1
- package/lib/work/GenAICoach/GenAICoach.mocks.js +142 -13
- package/lib/work/GenAICoach/GenAICoach.mocks.js.map +1 -1
- package/lib/work/GenAICoach/GenAICoach.stories.d.ts +10 -1
- package/lib/work/GenAICoach/GenAICoach.stories.d.ts.map +1 -1
- package/lib/work/GenAICoach/GenAICoach.stories.js +259 -50
- package/lib/work/GenAICoach/GenAICoach.stories.js.map +1 -1
- package/lib/work/GenAICoach/useGenAICoach.d.ts.map +1 -1
- package/lib/work/GenAICoach/useGenAICoach.js +103 -34
- package/lib/work/GenAICoach/useGenAICoach.js.map +1 -1
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts +4 -4
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts.map +1 -1
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.js +39 -16
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.js.map +1 -1
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts +1 -0
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts.map +1 -1
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.js +4 -1
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.js.map +1 -1
- package/lib/work/Predictions/Predictions.mocks.d.ts +1 -1
- package/lib/work/Predictions/Predictions.mocks.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.d.ts +6 -2
- package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
- package/lib/work/Stages/Stages.mocks.d.ts +1 -1
- package/lib/work/Stages/Stages.mocks.js +1 -1
- package/lib/work/Stages/Stages.mocks.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.d.ts +2 -2
- package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.js +3 -3
- package/lib/work/Stakeholders/Stakeholders.mocks.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +1 -0
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js +32 -7
- package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
- package/lib/work/Timeline/Timeline.mocks.d.ts.map +1 -1
- package/lib/work/Timeline/Timeline.mocks.js +1 -0
- package/lib/work/Timeline/Timeline.mocks.js.map +1 -1
- package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts +0 -1
- package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts.map +1 -1
- package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.js +0 -3
- package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.js.map +1 -1
- package/lib/wss/AppShell/AppShell.mocks.d.ts +5 -4
- package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/lib/wss/AppShell/AppShell.mocks.js +1 -1
- package/lib/wss/AppShell/AppShell.mocks.js.map +1 -1
- package/lib/wss/AppShell/AppShell.stories.d.ts +1 -0
- package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/wss/AppShell/AppShell.stories.js +5 -3
- package/lib/wss/AppShell/AppShell.stories.js.map +1 -1
- package/lib/wss/AppShell/AppShell.styles.d.ts +3 -1
- package/lib/wss/AppShell/AppShell.styles.d.ts.map +1 -1
- package/lib/wss/AppShell/AppShell.styles.js +11 -4
- package/lib/wss/AppShell/AppShell.styles.js.map +1 -1
- package/lib/wss/CaseView/CaseView.mocks.d.ts +6 -1
- package/lib/wss/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/wss/CaseView/CaseView.mocks.js +55 -1
- package/lib/wss/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/wss/CaseView/CaseView.stories.d.ts +1 -0
- package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
- package/lib/wss/CaseView/CaseView.stories.js +6 -3
- package/lib/wss/CaseView/CaseView.stories.js.map +1 -1
- package/package.json +13 -13
- package/jsx/work/Timeline/Timeline.stories.d.ts +0 -11
- package/jsx/work/Timeline/Timeline.stories.d.ts.map +0 -1
- package/jsx/work/Timeline/Timeline.stories.jsx +0 -85
- package/jsx/work/Timeline/Timeline.stories.jsx.map +0 -1
- package/lib/work/Timeline/Timeline.stories.d.ts +0 -11
- package/lib/work/Timeline/Timeline.stories.d.ts.map +0 -1
- package/lib/work/Timeline/Timeline.stories.js +0 -79
- package/lib/work/Timeline/Timeline.stories.js.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
2
|
+
import { type BackgroundPickerProps } from '@pega/cosmos-react-build';
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
interface BackgroundPickerStoryProps extends BackgroundPickerProps {
|
|
6
|
+
showAdditionalInfo?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const BackgroundPickerDemo: StoryFn<BackgroundPickerStoryProps>;
|
|
9
|
+
//# sourceMappingURL=BackgroundPicker.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackgroundPicker.stories.d.ts","sourceRoot":"","sources":["../../../src/build/BackgroundPicker/BackgroundPicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,EAAoB,KAAK,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;wBAKnF,IAAI;AAHT,wBAGU;AAEV,UAAU,0BAA2B,SAAQ,qBAAqB;IAChE,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,0BAA0B,CAgCpE,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { BackgroundPicker } from '@pega/cosmos-react-build';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Build/BackgroundPicker',
|
|
5
|
+
component: BackgroundPicker
|
|
6
|
+
};
|
|
7
|
+
export const BackgroundPickerDemo = (args) => {
|
|
8
|
+
const [value, setValue] = useState('#10a5acdb');
|
|
9
|
+
const onSubmit = (updatedValue) => {
|
|
10
|
+
setValue(updatedValue);
|
|
11
|
+
};
|
|
12
|
+
return (<BackgroundPicker additionalInfo={args.showAdditionalInfo
|
|
13
|
+
? {
|
|
14
|
+
content: 'Select a background from the list.'
|
|
15
|
+
}
|
|
16
|
+
: undefined} label={args.label} labelHidden={args.labelHidden} info={args.info} status={args.status} swatchOnly={args.swatchOnly} inline={args.inline} required={args.required} disabled={args.disabled} readOnly={args.readOnly} value={value} onBeforeClose={args.onBeforeClose} onSubmit={onSubmit}/>);
|
|
17
|
+
};
|
|
18
|
+
BackgroundPickerDemo.args = {
|
|
19
|
+
label: 'Background',
|
|
20
|
+
labelHidden: false,
|
|
21
|
+
info: 'Pick a background',
|
|
22
|
+
status: undefined,
|
|
23
|
+
swatchOnly: false,
|
|
24
|
+
inline: false,
|
|
25
|
+
required: false,
|
|
26
|
+
disabled: false,
|
|
27
|
+
readOnly: false,
|
|
28
|
+
showAdditionalInfo: false
|
|
29
|
+
};
|
|
30
|
+
BackgroundPickerDemo.argTypes = {
|
|
31
|
+
label: { control: { type: 'text' } },
|
|
32
|
+
labelHidden: { control: { type: 'boolean' } },
|
|
33
|
+
info: { control: { type: 'text', label: 'Helper text' } },
|
|
34
|
+
status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },
|
|
35
|
+
swatchOnly: { control: { type: 'boolean' } },
|
|
36
|
+
inline: { control: { type: 'boolean' } },
|
|
37
|
+
required: { control: { type: 'boolean' } },
|
|
38
|
+
disabled: { control: { type: 'boolean' } },
|
|
39
|
+
readOnly: { control: { type: 'boolean' } },
|
|
40
|
+
showAdditionalInfo: { control: { type: 'boolean' } }
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=BackgroundPicker.stories.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackgroundPicker.stories.jsx","sourceRoot":"","sources":["../../../src/build/BackgroundPicker/BackgroundPicker.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAA8B,MAAM,0BAA0B,CAAC;AAExF,eAAe;IACb,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,gBAAgB;CACpB,CAAC;AAMV,MAAM,CAAC,MAAM,oBAAoB,GAAwC,CACvE,IAAgC,EAChC,EAAE;IACF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAS,WAAW,CAAC,CAAC;IAExD,MAAM,QAAQ,GAAG,CAAC,YAAoB,EAAE,EAAE;QACxC,QAAQ,CAAC,YAAY,CAAC,CAAC;IACzB,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,gBAAgB,CACf,cAAc,CAAC,CACb,IAAI,CAAC,kBAAkB;YACrB,CAAC,CAAC;gBACE,OAAO,EAAE,oCAAoC;aAC9C;YACH,CAAC,CAAC,SACN,CAAC,CACD,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAClB,WAAW,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAC9B,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAChB,MAAM,CAAC,CAAC,IAAI,CAAC,M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O,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACrD,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { BackgroundPicker, type BackgroundPickerProps } from '@pega/cosmos-react-build';\n\nexport default {\n title: 'Build/BackgroundPicker',\n component: BackgroundPicker\n} as Meta;\n\ninterface BackgroundPickerStoryProps extends BackgroundPickerProps {\n showAdditionalInfo?: boolean;\n}\n\nexport const BackgroundPickerDemo: StoryFn<BackgroundPickerStoryProps> = (\n args: BackgroundPickerStoryProps\n) => {\n const [value, setValue] = useState<string>('#10a5acdb');\n\n const onSubmit = (updatedValue: string) => {\n setValue(updatedValue);\n };\n\n return (\n <BackgroundPicker\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: 'Select a background from the list.'\n }\n : undefined\n }\n label={args.label}\n labelHidden={args.labelHidden}\n info={args.info}\n status={args.status}\n swatchOnly={args.swatchOnly}\n inline={args.inline}\n required={args.required}\n disabled={args.disabled}\n readOnly={args.readOnly}\n value={value}\n onBeforeClose={args.onBeforeClose}\n onSubmit={onSubmit}\n />\n );\n};\n\nBackgroundPickerDemo.args = {\n label: 'Background',\n labelHidden: false,\n info: 'Pick a background',\n status: undefined,\n swatchOnly: false,\n inline: false,\n required: false,\n disabled: false,\n readOnly: false,\n showAdditionalInfo: false\n};\n\nBackgroundPickerDemo.argTypes = {\n label: { control: { type: 'text' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text', label: 'Helper text' } },\n status: { options: [undefined, 'success', 'warning', 'error'], control: { type: 'select' } },\n swatchOnly: { control: { type: 'boolean' } },\n inline: { control: { type: 'boolean' } },\n required: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n showAdditionalInfo: { control: { type: 'boolean' } }\n};\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Meta, StoryFn } from '@storybook/react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ConstantControlConfig, Source } from '@pega/cosmos-react-build';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
5
|
interface DynamicInputStoryProps {
|
|
6
|
-
constantFormat?:
|
|
6
|
+
constantFormat?: ConstantControlConfig['format'];
|
|
7
7
|
required?: boolean;
|
|
8
8
|
defaultSource?: Source;
|
|
9
9
|
timeout?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicInput.stories.d.ts","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"DynamicInput.stories.d.ts","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAMtD,OAAO,KAAK,EAGV,qBAAqB,EACrB,MAAM,EAEP,MAAM,0BAA0B,CAAC;wBAuC7B,IAAI;AAjCT,wBAiCU;AAIV,UAAU,sBAAsB;IAC9B,cAAc,CAAC,EAAE,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,sBAAsB,CA2Y5D,CAAC"}
|
|
@@ -80,20 +80,44 @@ export const DynamicInputDemo = (args) => {
|
|
|
80
80
|
]);
|
|
81
81
|
}, [defaultSource]);
|
|
82
82
|
const [constantValue, setConstantValue] = useState('');
|
|
83
|
-
const constant = useMemo(() =>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
const constant = useMemo(() => {
|
|
84
|
+
if (constantFormat === 'Boolean') {
|
|
85
|
+
return {
|
|
86
|
+
format: 'Boolean',
|
|
87
|
+
props: {
|
|
88
|
+
value: constantValue === true,
|
|
89
|
+
onChange: value => {
|
|
90
|
+
setConstantValue(value);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
90
94
|
}
|
|
91
|
-
|
|
95
|
+
if (constantFormat === 'Date' || constantFormat === 'DateTime' || constantFormat === 'Time') {
|
|
96
|
+
return {
|
|
97
|
+
format: constantFormat,
|
|
98
|
+
props: {
|
|
99
|
+
value: constantValue,
|
|
100
|
+
onChange: (value) => {
|
|
101
|
+
setConstantValue(value.valueAsISOString);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
format: constantFormat,
|
|
108
|
+
props: {
|
|
109
|
+
value: String(constantValue),
|
|
110
|
+
onChange: (value) => {
|
|
111
|
+
setConstantValue(value);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
}, [constantValue, constantFormat]);
|
|
92
116
|
const [ruleState, setRuleState] = useState({
|
|
93
117
|
props: defaultRuleState
|
|
94
118
|
});
|
|
95
119
|
const [ruleConfigDialogTarget, setRuleConfigDialogTarget] = useState();
|
|
96
|
-
const onRuleExpand = useCallback(itemId => {
|
|
120
|
+
const onRuleExpand = useCallback((itemId) => {
|
|
97
121
|
const expandedItem = ruleState.props.ruleTypes?.find(item => item.id === itemId);
|
|
98
122
|
if (expandedItem?.rules.length === 0) {
|
|
99
123
|
const { promise } = fetchRules({ ruleType: expandedItem.type, delay: timeout ? 1000 : 0 });
|
|
@@ -117,7 +141,7 @@ export const DynamicInputDemo = (args) => {
|
|
|
117
141
|
});
|
|
118
142
|
}
|
|
119
143
|
}, [ruleState]);
|
|
120
|
-
const onRuleFilter = useCallback(filterValue => {
|
|
144
|
+
const onRuleFilter = useCallback((filterValue) => {
|
|
121
145
|
if (ruleState.pendingFetch) {
|
|
122
146
|
ruleState.pendingFetch.abort();
|
|
123
147
|
}
|
|
@@ -156,7 +180,7 @@ export const DynamicInputDemo = (args) => {
|
|
|
156
180
|
}
|
|
157
181
|
});
|
|
158
182
|
}, [ruleState]);
|
|
159
|
-
const ruleLoadMore = useCallback(itemId => {
|
|
183
|
+
const ruleLoadMore = useCallback((itemId) => {
|
|
160
184
|
const ruleStateProps = ruleState.props;
|
|
161
185
|
const ruleItems = ruleStateProps.items;
|
|
162
186
|
const directList = !!ruleState.props.items;
|
|
@@ -215,7 +239,7 @@ export const DynamicInputDemo = (args) => {
|
|
|
215
239
|
}
|
|
216
240
|
});
|
|
217
241
|
}, [ruleState]);
|
|
218
|
-
const onRuleSelect = useCallback(selectedRule => {
|
|
242
|
+
const onRuleSelect = useCallback((selectedRule) => {
|
|
219
243
|
setRuleState({
|
|
220
244
|
...ruleState,
|
|
221
245
|
props: {
|
|
@@ -230,7 +254,7 @@ export const DynamicInputDemo = (args) => {
|
|
|
230
254
|
onLinkClick: () => {
|
|
231
255
|
alert('Link clicked');
|
|
232
256
|
},
|
|
233
|
-
onConfig:
|
|
257
|
+
onConfig: configTarget => {
|
|
234
258
|
setRuleConfigDialogTarget(configTarget);
|
|
235
259
|
},
|
|
236
260
|
onClear: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicInput.stories.jsx","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.stories.tsx"],"names":[],"mappings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AAC;YACvC,CAAC,CAAC,CACF,QAAQ,CAAC,CAAC,GAAG,EAAE;gBACb,yBAAyB,CAAC,SAAS,CAAC,CAAC;YACvC,CAAC,CAAC,CAEF;UAAA,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAC/C;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC7B;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC7B;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC/B;UAAA,EAAE,IAAI,CACR;QAAA,EAAE,UAAU,CAAC,CACd,CACH;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useState, useMemo, useCallback, useEffect } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\n\nimport { BuildTheme, ThemeOverride, Flex, FormDialog, Input } from '@pega/cosmos-react-core';\nimport { CodeEditor, DynamicInput } from '@pega/cosmos-react-build';\nimport type {\n ConstantFormat,\n RuleSelectProps,\n SourceConfig,\n ConstantControlConfig,\n Source\n} from '@pega/cosmos-react-build';\n\nimport { useFieldReferenceMock } from '../FieldReference/FieldReference.mocks';\n\nimport { baseRuleTypes, defaultRuleState, fetchRules } from './DynamicInput.mocks';\n\nexport default {\n title: 'Build/DynamicInput',\n component: DynamicInput,\n args: {\n constantFormat: 'Text',\n defaultSource: 'Rule',\n required: true\n },\n argTypes: {\n constantFormat: {\n control: { type: 'select' },\n options: [\n 'Text',\n 'Text (paragraph)',\n 'Boolean',\n 'Currency',\n 'Percentage',\n 'Integer',\n 'Decimal',\n 'Phone',\n 'DateTime',\n 'Date',\n 'Time'\n ]\n },\n defaultSource: {\n control: { type: 'select' },\n options: ['Rule', 'Constant', 'FieldReference', 'Expression']\n },\n required: {\n control: { type: 'boolean' }\n }\n }\n} as Meta;\n\ntype RuleType = 'Automation' | 'Decision' | 'Field' | 'Paragraph';\n\ninterface DynamicInputStoryProps {\n constantFormat?: ConstantFormat;\n required?: boolean;\n defaultSource?: Source;\n timeout?: boolean;\n}\n\nexport const DynamicInputDemo: StoryFn<DynamicInputStoryProps> = (args: DynamicInputStoryProps) => {\n const defaultSource = args.defaultSource || 'Rule';\n const constantFormat = args.constantFormat || 'Text';\n const timeout = args.timeout || true;\n\n const [sources, setSources] = useState<SourceConfig[]>([\n {\n type: 'Constant',\n selected: defaultSource === 'Constant'\n },\n {\n type: 'Rule',\n selected: defaultSource === 'Rule'\n },\n {\n type: 'FieldReference',\n selected: defaultSource === 'FieldReference'\n },\n {\n type: 'Expression',\n selected: defaultSource === 'Expression'\n }\n ]);\n\n useEffect(() => {\n setSources([\n {\n type: 'Constant',\n selected: defaultSource === 'Constant'\n },\n {\n type: 'Rule',\n selected: defaultSource === 'Rule'\n },\n {\n type: 'FieldReference',\n selected: defaultSource === 'FieldReference'\n },\n {\n type: 'Expression',\n selected: defaultSource === 'Expression'\n }\n ]);\n }, [defaultSource]);\n\n /**\n * Constant Input\n */\n const [constantValue, setConstantValue] = useState<ConstantControlConfig['props']['value']>('');\n const constant = useMemo<ConstantControlConfig>(\n () => ({\n format: constantFormat,\n props: {\n value: '',\n onChange: value => {\n setConstantValue(value);\n }\n }\n }),\n [constantValue, constantFormat]\n );\n\n /**\n * Rule input\n */\n const [ruleState, setRuleState] = useState<{\n props: typeof defaultRuleState;\n pendingFetch?: ReturnType<typeof fetchRules>;\n }>({\n props: defaultRuleState\n });\n // todo-lc: type this\n const [ruleConfigDialogTarget, setRuleConfigDialogTarget] = useState();\n\n const onRuleExpand = useCallback<(id: string) => void>(\n itemId => {\n const expandedItem = ruleState.props.ruleTypes?.find(item => item.id === itemId);\n\n // Demos lazy loading rules.\n if (expandedItem?.rules.length === 0) {\n const { promise } = fetchRules({ ruleType: expandedItem.type, delay: timeout ? 1000 : 0 });\n\n promise\n .then(res => {\n const newItems = ruleState.props.ruleTypes?.map(item => {\n if (item.id === expandedItem.id) {\n return { ...item, rules: res.results };\n }\n\n return item;\n });\n\n setRuleState({\n ...ruleState,\n props: { ...ruleState.props, loading: false, ruleTypes: newItems }\n });\n })\n .catch(() => {});\n\n // Set loading while rules are fetched initially.\n setRuleState({\n ...ruleState,\n props: { ...ruleState.props, loading: true }\n });\n }\n },\n [ruleState]\n );\n\n const onRuleFilter = useCallback(\n filterValue => {\n // Abort requests before reissuing if necessary.\n if (ruleState.pendingFetch) {\n ruleState.pendingFetch.abort();\n }\n\n // If the filterValue is an empty string from backspace both remove any selection and reset the menu to its default.\n if (!filterValue) {\n setRuleState({\n ...ruleState,\n props: {\n ...defaultRuleState\n }\n });\n return;\n }\n\n const fetch = fetchRules({ filter: filterValue, delay: timeout ? 1000 : 0 });\n\n fetch.promise.then(fetchedRules => {\n if (!ruleState.props) {\n return undefined;\n }\n\n setRuleState({\n pendingFetch: undefined,\n props: {\n ...ruleState.props,\n filterValue,\n loading: false,\n items: fetchedRules.results\n }\n });\n });\n\n // Place the menu into a loading state while rules are fetched.\n // Additionally, set a reference to the pending fetch to conditionally abort if onFilter is retriggered before fetch resolves.\n setRuleState({\n pendingFetch: fetch,\n props: {\n ...ruleState.props,\n loading: true,\n filterValue,\n ruleTypes: [],\n items: undefined\n }\n });\n },\n [ruleState]\n );\n\n const ruleLoadMore = useCallback(\n itemId => {\n const ruleStateProps = ruleState.props as RuleSelectProps;\n const ruleItems = ruleStateProps.items;\n\n const directList = !!ruleState.props.items;\n\n // No rule type expanded and no items provided directly.\n if (!itemId && !directList) {\n return ruleStateProps;\n }\n\n const expandedItem = ruleState.props.ruleTypes?.find(item => item.id === itemId);\n\n // Apply based on if an expanded rule or a list of items provided directly.\n let fetchParams = {};\n\n // Expanded rule type's list.\n if (!directList && expandedItem) {\n const currentLength = expandedItem?.rules.length;\n\n // The demo is assuming a total count in known upfront.\n // (If that is not the case an empty response can be used to determine all rules are fetched)\n const totalCount = baseRuleTypes.find(item => item.id === itemId)!.count!;\n\n if (currentLength >= totalCount) {\n return ruleStateProps;\n }\n\n fetchParams = {\n ruleType: itemId as RuleType,\n start: currentLength,\n delay: timeout ? 1000 : 0\n };\n }\n\n // Abort requests before reissuing if necessary.\n if (ruleState.pendingFetch) {\n ruleState.pendingFetch.abort();\n }\n\n const fetch = fetchRules(fetchParams);\n\n fetch.promise.then(res => {\n setRuleState({\n pendingFetch: undefined,\n props: {\n ...ruleState.props,\n loading: false,\n items: ruleItems\n ? {\n ...ruleItems,\n ...res.results\n }\n : undefined,\n ruleTypes: expandedItem\n ? ruleState.props.ruleTypes?.map(item => {\n if (item.id === expandedItem.id) {\n return {\n ...item,\n rules: [...item.rules, ...res.results]\n };\n }\n\n return item;\n })\n : defaultRuleState.ruleTypes\n }\n });\n });\n\n setRuleState({\n pendingFetch: fetch,\n props: {\n ...ruleState.props,\n loading: true\n }\n });\n },\n [ruleState]\n );\n\n const onRuleSelect = useCallback(\n selectedRule => {\n setRuleState({\n ...ruleState,\n props: {\n ...ruleState.props,\n filterValue: undefined,\n selectedRule: {\n ...selectedRule,\n href: `/rules/${selectedRule.id}`,\n onPreview: () => {\n // eslint-disable-next-line no-alert\n alert('Link previewed');\n },\n onLinkClick: () => {\n // eslint-disable-next-line no-alert\n alert('Link clicked');\n },\n onConfig: (configTarget: any) => {\n setRuleConfigDialogTarget(configTarget);\n },\n onClear: () => {\n setRuleConfigDialogTarget(undefined);\n setRuleState({\n props: defaultRuleState\n });\n }\n }\n }\n });\n },\n [ruleState]\n );\n\n /**\n * Field reference input\n */\n const fieldReferenceMock = useFieldReferenceMock('static');\n\n return (\n <ThemeOverride theme={BuildTheme}>\n <DynamicInput\n required={args.required}\n sources={sources}\n onSourceChange={selectedSource => {\n const updatedSources = sources.map(source => ({\n ...source,\n selected: source.type === selectedSource\n }));\n setSources(updatedSources);\n }}\n controls={{\n constant,\n rule: {\n props: {\n ...ruleState.props,\n onExpand: onRuleExpand,\n onFilter: onRuleFilter,\n loadMore: ruleLoadMore,\n onSelect: onRuleSelect,\n onCreateNew: () => {}\n }\n },\n fieldReference: {\n props: {\n placeholder: 'Choose a field...',\n onSelectedChange: fieldReferenceMock.handleSelectedChange,\n menu: {\n items: fieldReferenceMock.itemsToRender,\n altContexts: fieldReferenceMock.altContexts,\n currentContext: fieldReferenceMock.currentContext,\n parentItem: fieldReferenceMock.parentItem,\n loading: fieldReferenceMock.menuLoading\n },\n selected: fieldReferenceMock.selected,\n filterValue: fieldReferenceMock.filterValue,\n onFilterChange: fieldReferenceMock.setFilterValue,\n onBlur: () => {\n fieldReferenceMock.setFilterValue('');\n }\n }\n },\n expression: {\n component: CodeEditor,\n props: {\n list: {\n onItemAdd: () => {},\n details: {}\n },\n search: {\n filters: [],\n onFilterChange: () => {},\n onSearchChange: () => {},\n value: ''\n },\n codeEditorHandle: {\n current: {\n getValue: () => {\n return undefined;\n },\n insertText: (text: string) => {\n // eslint-disable-next-line no-console\n console.log(text);\n }\n }\n }\n }\n }\n }}\n />\n\n {/* Mock demoing rule config by way of a dialog but, any pattern could be used: modal, panel, etc... */}\n {ruleConfigDialogTarget && ruleState && ruleState.props?.selectedRule && (\n <FormDialog\n target={ruleConfigDialogTarget}\n heading={ruleState.props?.selectedRule.name}\n onCancel={() => {\n setRuleConfigDialogTarget(undefined);\n }}\n onSubmit={() => {\n setRuleConfigDialogTarget(undefined);\n }}\n >\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Input label='Config field 1' />\n <Input label='Config field 2' />\n <Input label='Config field 3' />\n </Flex>\n </FormDialog>\n )}\n </ThemeOverride>\n );\n};\n"]}
|
|
1
|
+
{"version":3,"file":"DynamicInput.stories.jsx","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,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AQ,EAAE,GAAG,EAAE;gCACb,OAAO,SAAS,CAAC;4BACnB,CAAC;4BACD,UAAU,EAAE,CAAC,IAAY,EAAE,EAAE;gCAE3B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;4BACpB,CAAC;yBACF;qBACF;iBACF;aACF;SACF,CAAC,EAGJ;;MACA;MAAA,CAAC,sBAAsB,IAAI,SAAS,IAAI,SAAS,CAAC,KAAK,EAAE,YAAY,IAAI,CACvE,CAAC,UAAU,CACT,MAAM,CAAC,CAAC,sBAAsB,CAAC,CAC/B,OAAO,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,CAC5C,QAAQ,CAAC,CAAC,GAAG,EAAE;gBACb,yBAAyB,CAAC,SAAS,CAAC,CAAC;YACvC,CAAC,CAAC,CACF,QAAQ,CAAC,CAAC,GAAG,EAAE;gBACb,yBAAyB,CAAC,SAAS,CAAC,CAAC;YACvC,CAAC,CAAC,CAEF;UAAA,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAC/C;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC7B;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC7B;YAAA,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAC/B;UAAA,EAAE,IAAI,CACR;QAAA,EAAE,UAAU,CAAC,CACd,CACH;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useState, useMemo, useCallback, useEffect } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\n\nimport type DateTimeProps from '@pega/cosmos-react-core/lib/components/DateTime/DateTime.types';\nimport type { DateTimeCallbackParameter } from '@pega/cosmos-react-core/lib/components/DateTime/DateTime.types';\nimport { BuildTheme, ThemeOverride, Flex, FormDialog, Input } from '@pega/cosmos-react-core';\nimport { CodeEditor, DynamicInput } from '@pega/cosmos-react-build';\nimport type {\n RuleSelectProps,\n SourceConfig,\n ConstantControlConfig,\n Source,\n RuleSelectItem\n} from '@pega/cosmos-react-build';\n\nimport { useFieldReferenceMock } from '../FieldReference/FieldReference.mocks';\n\nimport { baseRuleTypes, defaultRuleState, fetchRules } from './DynamicInput.mocks';\n\nexport default {\n title: 'Build/DynamicInput',\n component: DynamicInput,\n args: {\n constantFormat: 'Text',\n defaultSource: 'Rule',\n required: true\n },\n argTypes: {\n constantFormat: {\n control: { type: 'select' },\n options: [\n 'Text',\n 'Text (paragraph)',\n 'Boolean',\n 'Currency',\n 'Percentage',\n 'Integer',\n 'Decimal',\n 'Phone',\n 'DateTime',\n 'Date',\n 'Time'\n ]\n },\n defaultSource: {\n control: { type: 'select' },\n options: ['Rule', 'Constant', 'FieldReference', 'Expression']\n },\n required: {\n control: { type: 'boolean' }\n }\n }\n} as Meta;\n\ntype RuleType = 'Automation' | 'Decision' | 'Field' | 'Paragraph';\n\ninterface DynamicInputStoryProps {\n constantFormat?: ConstantControlConfig['format'];\n required?: boolean;\n defaultSource?: Source;\n timeout?: boolean;\n}\n\nexport const DynamicInputDemo: StoryFn<DynamicInputStoryProps> = (args: DynamicInputStoryProps) => {\n const defaultSource = args.defaultSource || 'Rule';\n const constantFormat = args.constantFormat || 'Text';\n const timeout = args.timeout || true;\n\n const [sources, setSources] = useState<SourceConfig[]>([\n {\n type: 'Constant',\n selected: defaultSource === 'Constant'\n },\n {\n type: 'Rule',\n selected: defaultSource === 'Rule'\n },\n {\n type: 'FieldReference',\n selected: defaultSource === 'FieldReference'\n },\n {\n type: 'Expression',\n selected: defaultSource === 'Expression'\n }\n ]);\n\n useEffect(() => {\n setSources([\n {\n type: 'Constant',\n selected: defaultSource === 'Constant'\n },\n {\n type: 'Rule',\n selected: defaultSource === 'Rule'\n },\n {\n type: 'FieldReference',\n selected: defaultSource === 'FieldReference'\n },\n {\n type: 'Expression',\n selected: defaultSource === 'Expression'\n }\n ]);\n }, [defaultSource]);\n\n /**\n * Constant Input\n */\n const [constantValue, setConstantValue] = useState<ConstantControlConfig['props']['value']>('');\n const constant = useMemo<ConstantControlConfig>(() => {\n if (constantFormat === 'Boolean') {\n return {\n format: 'Boolean',\n props: {\n value: constantValue === true,\n onChange: value => {\n setConstantValue(value);\n }\n }\n };\n }\n if (constantFormat === 'Date' || constantFormat === 'DateTime' || constantFormat === 'Time') {\n return {\n format: constantFormat,\n props: {\n value: constantValue as DateTimeProps['value'],\n onChange: (value: DateTimeCallbackParameter) => {\n setConstantValue(value.valueAsISOString);\n }\n }\n };\n }\n return {\n format: constantFormat,\n props: {\n value: String(constantValue),\n onChange: (value: ConstantControlConfig['props']['value']) => {\n setConstantValue(value);\n }\n }\n };\n }, [constantValue, constantFormat]);\n\n /**\n * Rule input\n */\n const [ruleState, setRuleState] = useState<{\n props: typeof defaultRuleState;\n pendingFetch?: ReturnType<typeof fetchRules>;\n }>({\n props: defaultRuleState\n });\n const [ruleConfigDialogTarget, setRuleConfigDialogTarget] = useState<HTMLElement>();\n\n const onRuleExpand = useCallback(\n (itemId: string) => {\n const expandedItem = ruleState.props.ruleTypes?.find(item => item.id === itemId);\n\n // Demos lazy loading rules.\n if (expandedItem?.rules.length === 0) {\n const { promise } = fetchRules({ ruleType: expandedItem.type, delay: timeout ? 1000 : 0 });\n\n promise\n .then(res => {\n const newItems = ruleState.props.ruleTypes?.map(item => {\n if (item.id === expandedItem.id) {\n return { ...item, rules: res.results };\n }\n\n return item;\n });\n\n setRuleState({\n ...ruleState,\n props: { ...ruleState.props, loading: false, ruleTypes: newItems }\n });\n })\n .catch(() => {});\n\n // Set loading while rules are fetched initially.\n setRuleState({\n ...ruleState,\n props: { ...ruleState.props, loading: true }\n });\n }\n },\n [ruleState]\n );\n\n const onRuleFilter = useCallback(\n (filterValue: string) => {\n // Abort requests before reissuing if necessary.\n if (ruleState.pendingFetch) {\n ruleState.pendingFetch.abort();\n }\n\n // If the filterValue is an empty string from backspace both remove any selection and reset the menu to its default.\n if (!filterValue) {\n setRuleState({\n ...ruleState,\n props: {\n ...defaultRuleState\n }\n });\n return;\n }\n\n const fetch = fetchRules({ filter: filterValue, delay: timeout ? 1000 : 0 });\n\n fetch.promise.then(fetchedRules => {\n if (!ruleState.props) {\n return undefined;\n }\n\n setRuleState({\n pendingFetch: undefined,\n props: {\n ...ruleState.props,\n filterValue,\n loading: false,\n items: fetchedRules.results\n }\n });\n });\n\n // Place the menu into a loading state while rules are fetched.\n // Additionally, set a reference to the pending fetch to conditionally abort if onFilter is retriggered before fetch resolves.\n setRuleState({\n pendingFetch: fetch,\n props: {\n ...ruleState.props,\n loading: true,\n filterValue,\n ruleTypes: [],\n items: undefined\n }\n });\n },\n [ruleState]\n );\n\n const ruleLoadMore = useCallback(\n (itemId: string | undefined) => {\n const ruleStateProps = ruleState.props as RuleSelectProps;\n const ruleItems = ruleStateProps.items;\n\n const directList = !!ruleState.props.items;\n\n // No rule type expanded and no items provided directly.\n if (!itemId && !directList) {\n return ruleStateProps;\n }\n\n const expandedItem = ruleState.props.ruleTypes?.find(item => item.id === itemId);\n\n // Apply based on if an expanded rule or a list of items provided directly.\n let fetchParams = {};\n\n // Expanded rule type's list.\n if (!directList && expandedItem) {\n const currentLength = expandedItem?.rules.length;\n\n // The demo is assuming a total count in known upfront.\n // (If that is not the case an empty response can be used to determine all rules are fetched)\n const totalCount = baseRuleTypes.find(item => item.id === itemId)!.count!;\n\n if (currentLength >= totalCount) {\n return ruleStateProps;\n }\n\n fetchParams = {\n ruleType: itemId as RuleType,\n start: currentLength,\n delay: timeout ? 1000 : 0\n };\n }\n\n // Abort requests before reissuing if necessary.\n if (ruleState.pendingFetch) {\n ruleState.pendingFetch.abort();\n }\n\n const fetch = fetchRules(fetchParams);\n\n fetch.promise.then(res => {\n setRuleState({\n pendingFetch: undefined,\n props: {\n ...ruleState.props,\n loading: false,\n items: ruleItems\n ? {\n ...ruleItems,\n ...res.results\n }\n : undefined,\n ruleTypes: expandedItem\n ? ruleState.props.ruleTypes?.map(item => {\n if (item.id === expandedItem.id) {\n return {\n ...item,\n rules: [...item.rules, ...res.results]\n };\n }\n\n return item;\n })\n : defaultRuleState.ruleTypes\n }\n });\n });\n\n setRuleState({\n pendingFetch: fetch,\n props: {\n ...ruleState.props,\n loading: true\n }\n });\n },\n [ruleState]\n );\n\n const onRuleSelect = useCallback(\n (selectedRule: RuleSelectItem) => {\n setRuleState({\n ...ruleState,\n props: {\n ...ruleState.props,\n filterValue: undefined,\n selectedRule: {\n ...selectedRule,\n href: `/rules/${selectedRule.id}`,\n onPreview: () => {\n // eslint-disable-next-line no-alert\n alert('Link previewed');\n },\n onLinkClick: () => {\n // eslint-disable-next-line no-alert\n alert('Link clicked');\n },\n onConfig: configTarget => {\n setRuleConfigDialogTarget(configTarget);\n },\n onClear: () => {\n setRuleConfigDialogTarget(undefined);\n setRuleState({\n props: defaultRuleState\n });\n }\n }\n }\n });\n },\n [ruleState]\n );\n\n /**\n * Field reference input\n */\n const fieldReferenceMock = useFieldReferenceMock('static');\n\n return (\n <ThemeOverride theme={BuildTheme}>\n <DynamicInput\n required={args.required}\n sources={sources}\n onSourceChange={selectedSource => {\n const updatedSources = sources.map(source => ({\n ...source,\n selected: source.type === selectedSource\n }));\n setSources(updatedSources);\n }}\n controls={{\n constant,\n rule: {\n props: {\n ...ruleState.props,\n onExpand: onRuleExpand,\n onFilter: onRuleFilter,\n loadMore: ruleLoadMore,\n onSelect: onRuleSelect,\n onCreateNew: () => {}\n }\n },\n fieldReference: {\n props: {\n placeholder: 'Choose a field...',\n onSelectedChange: fieldReferenceMock.handleSelectedChange,\n menu: {\n items: fieldReferenceMock.itemsToRender,\n altContexts: fieldReferenceMock.altContexts,\n currentContext: fieldReferenceMock.currentContext,\n parentItem: fieldReferenceMock.parentItem,\n loading: fieldReferenceMock.menuLoading\n },\n selected: fieldReferenceMock.selected,\n filterValue: fieldReferenceMock.filterValue,\n onFilterChange: fieldReferenceMock.setFilterValue,\n onBlur: () => {\n fieldReferenceMock.setFilterValue('');\n }\n }\n },\n expression: {\n component: CodeEditor,\n props: {\n list: {\n onItemAdd: () => {},\n details: {}\n },\n search: {\n filters: [],\n onFilterChange: () => {},\n onSearchChange: () => {},\n value: ''\n },\n codeEditorHandle: {\n current: {\n getValue: () => {\n return undefined;\n },\n insertText: (text: string) => {\n // eslint-disable-next-line no-console\n console.log(text);\n }\n }\n }\n }\n }\n }}\n />\n\n {/* Mock demoing rule config by way of a dialog but, any pattern could be used: modal, panel, etc... */}\n {ruleConfigDialogTarget && ruleState && ruleState.props?.selectedRule && (\n <FormDialog\n target={ruleConfigDialogTarget}\n heading={ruleState.props?.selectedRule.name}\n onCancel={() => {\n setRuleConfigDialogTarget(undefined);\n }}\n onSubmit={() => {\n setRuleConfigDialogTarget(undefined);\n }}\n >\n <Flex container={{ direction: 'column', gap: 2 }}>\n <Input label='Config field 1' />\n <Input label='Config field 2' />\n <Input label='Config field 3' />\n </Flex>\n </FormDialog>\n )}\n </ThemeOverride>\n );\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const mockSuggestionList: {
|
|
2
|
+
id: string;
|
|
3
|
+
key: string;
|
|
4
|
+
primary: string;
|
|
5
|
+
type: string;
|
|
6
|
+
secondary: string[];
|
|
7
|
+
cursorPos: number;
|
|
8
|
+
testId: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const additionalContentInfo = "Some additional info";
|
|
11
|
+
//# sourceMappingURL=Expression.mocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Expression.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/Expression/Expression.mocks.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;;;;;GAqC9B,CAAC;AAEF,eAAO,MAAM,qBAAqB,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const mortgageRequest = 'CCompass-Work-MortgageRequest';
|
|
2
|
+
export const mockSuggestionList = [
|
|
3
|
+
{
|
|
4
|
+
id: '1',
|
|
5
|
+
key: 'Property',
|
|
6
|
+
primary: 'Property',
|
|
7
|
+
type: 'SingleRecord',
|
|
8
|
+
secondary: [mortgageRequest, 'Private'],
|
|
9
|
+
cursorPos: 0,
|
|
10
|
+
testId: 'valueinput-Property'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: '2',
|
|
14
|
+
key: 'mayOverrideField',
|
|
15
|
+
primary: 'may override field',
|
|
16
|
+
type: 'Text',
|
|
17
|
+
secondary: [mortgageRequest, 'Private'],
|
|
18
|
+
cursorPos: 0,
|
|
19
|
+
testId: 'valueinput-mayOverrideField'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: '3',
|
|
23
|
+
key: 'pxCommitDateTime',
|
|
24
|
+
primary: 'pxCommitDateTime',
|
|
25
|
+
type: 'DateTime',
|
|
26
|
+
secondary: [mortgageRequest, 'Private'],
|
|
27
|
+
cursorPos: 0,
|
|
28
|
+
testId: 'valueinput-pxCommitDateTime'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: '4',
|
|
32
|
+
key: 'MortgageProduct',
|
|
33
|
+
primary: 'Mortgage product',
|
|
34
|
+
type: 'Text',
|
|
35
|
+
secondary: [mortgageRequest, 'Private'],
|
|
36
|
+
cursorPos: 0,
|
|
37
|
+
testId: 'valueinput-MortgageProduct'
|
|
38
|
+
}
|
|
39
|
+
];
|
|
40
|
+
export const additionalContentInfo = 'Some additional info';
|
|
41
|
+
//# sourceMappingURL=Expression.mocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Expression.mocks.js","sourceRoot":"","sources":["../../../src/build/Expression/Expression.mocks.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,+BAA+B,CAAC;AAExD,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC;QACE,EAAE,EAAE,GAAG;QACP,GAAG,EAAE,UAAU;QACf,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,cAAc;QACpB,SAAS,EAAE,CAAC,eAAe,EAAE,SAAS,CAAC;QACvC,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,qBAAqB;KAC9B;IACD;QACE,EAAE,EAAE,GAAG;QACP,GAAG,EAAE,kBAAkB;QACvB,OAAO,EAAE,oBAAoB;QAC7B,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,CAAC,eAAe,EAAE,SAAS,CAAC;QACvC,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,6BAA6B;KACtC;IACD;QACE,EAAE,EAAE,GAAG;QACP,GAAG,EAAE,kBAAkB;QACvB,OAAO,EAAE,kBAAkB;QAC3B,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,CAAC,eAAe,EAAE,SAAS,CAAC;QACvC,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,6BAA6B;KACtC;IACD;QACE,EAAE,EAAE,GAAG;QACP,GAAG,EAAE,iBAAiB;QACtB,OAAO,EAAE,kBAAkB;QAC3B,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,CAAC,eAAe,EAAE,SAAS,CAAC;QACvC,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,4BAA4B;KACrC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,sBAAsB,CAAC","sourcesContent":["const mortgageRequest = 'CCompass-Work-MortgageRequest';\n\nexport const mockSuggestionList = [\n {\n id: '1',\n key: 'Property',\n primary: 'Property',\n type: 'SingleRecord',\n secondary: [mortgageRequest, 'Private'],\n cursorPos: 0,\n testId: 'valueinput-Property'\n },\n {\n id: '2',\n key: 'mayOverrideField',\n primary: 'may override field',\n type: 'Text',\n secondary: [mortgageRequest, 'Private'],\n cursorPos: 0,\n testId: 'valueinput-mayOverrideField'\n },\n {\n id: '3',\n key: 'pxCommitDateTime',\n primary: 'pxCommitDateTime',\n type: 'DateTime',\n secondary: [mortgageRequest, 'Private'],\n cursorPos: 0,\n testId: 'valueinput-pxCommitDateTime'\n },\n {\n id: '4',\n key: 'MortgageProduct',\n primary: 'Mortgage product',\n type: 'Text',\n secondary: [mortgageRequest, 'Private'],\n cursorPos: 0,\n testId: 'valueinput-MortgageProduct'\n }\n];\n\nexport const additionalContentInfo = 'Some additional info';\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
2
|
+
import type { InputProps } from '@pega/cosmos-react-core';
|
|
3
|
+
import type { ExpressionProps } from '@pega/cosmos-react-build';
|
|
4
|
+
declare const _default: Meta;
|
|
5
|
+
export default _default;
|
|
6
|
+
interface ExpressionDemoProps extends Pick<InputProps, 'info' | 'readOnly' | 'disabled' | 'required' | 'labelHidden'> {
|
|
7
|
+
showErrors?: boolean;
|
|
8
|
+
inLineError?: 'single' | 'multiple';
|
|
9
|
+
showExpressionBuilderErrorBanner?: boolean;
|
|
10
|
+
expressionSubmitHandler?: () => void;
|
|
11
|
+
expressionCancelHandler?: () => void;
|
|
12
|
+
showAdditionalInfo?: boolean;
|
|
13
|
+
label?: ExpressionProps['label'];
|
|
14
|
+
placeholder?: ExpressionProps['placeholder'];
|
|
15
|
+
showExpressionGenerationUI?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const ExpressionDemo: StoryFn<ExpressionDemoProps>;
|
|
18
|
+
//# sourceMappingURL=Expression.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Expression.stories.d.ts","sourceRoot":"","sources":["../../../src/build/Expression/Expression.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;wBAQ3D,IAAI;AAHT,wBAGU;AAEV,UAAU,mBACR,SAAQ,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,CAAC;IACvF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IACpC,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAC3C,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;IACrC,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;IACrC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACjC,WAAW,CAAC,EAAE,eAAe,CAAC,aAAa,CAAC,CAAC;IAC7C,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,mBAAmB,CAmDvD,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useUID } from '@pega/cosmos-react-core';
|
|
2
|
+
import { Expression } from '@pega/cosmos-react-build';
|
|
3
|
+
import useMockExpression from './useMockExpression';
|
|
4
|
+
import { additionalContentInfo } from './Expression.mocks';
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Build/Expression',
|
|
7
|
+
component: Expression
|
|
8
|
+
};
|
|
9
|
+
export const ExpressionDemo = (args) => {
|
|
10
|
+
const { inputValue, showExpBuilderModal, openExpBuilderModal, errors, handle, inLineErrors, expressionRef } = useMockExpression({
|
|
11
|
+
inLineError: args.inLineError,
|
|
12
|
+
showExpressionBuilderErrorBanner: args.showExpressionBuilderErrorBanner,
|
|
13
|
+
expShowErrors: args.showErrors
|
|
14
|
+
});
|
|
15
|
+
const { fetchSuggestions: inputFetchSuggestions, loading: inputLoading } = useMockExpression({
|
|
16
|
+
inLineError: args.inLineError,
|
|
17
|
+
showExpressionBuilderErrorBanner: args.showExpressionBuilderErrorBanner,
|
|
18
|
+
expShowErrors: args.showErrors
|
|
19
|
+
});
|
|
20
|
+
return (<Expression value={inputValue} label={args.label} editorInput={{
|
|
21
|
+
fetchSuggestions: inputFetchSuggestions,
|
|
22
|
+
loading: inputLoading,
|
|
23
|
+
handle,
|
|
24
|
+
inLineErrors
|
|
25
|
+
}} showExpressionBuilder={showExpBuilderModal} onExpBuilderShowHandler={openExpBuilderModal} readOnly={args.readOnly} ref={expressionRef} disabled={args.disabled} status={args?.showErrors ? 'error' : undefined} required={args.required} info={args?.showErrors ? errors : args.info} additionalInfo={args.showAdditionalInfo
|
|
26
|
+
? {
|
|
27
|
+
content: additionalContentInfo
|
|
28
|
+
}
|
|
29
|
+
: undefined} labelHidden={args.labelHidden} placeholder={args.placeholder} id={useUID()}/>);
|
|
30
|
+
};
|
|
31
|
+
ExpressionDemo.args = {
|
|
32
|
+
showErrors: false,
|
|
33
|
+
readOnly: false,
|
|
34
|
+
disabled: false,
|
|
35
|
+
inLineError: 'single',
|
|
36
|
+
showExpressionBuilderErrorBanner: false,
|
|
37
|
+
showAdditionalInfo: false,
|
|
38
|
+
info: 'Type in the value',
|
|
39
|
+
required: false,
|
|
40
|
+
labelHidden: false,
|
|
41
|
+
label: 'Expression',
|
|
42
|
+
placeholder: 'Writing expressions'
|
|
43
|
+
};
|
|
44
|
+
ExpressionDemo.argTypes = {
|
|
45
|
+
showErrors: { control: { type: 'boolean' } },
|
|
46
|
+
readOnly: { control: { type: 'boolean' } },
|
|
47
|
+
disabled: { control: { type: 'boolean' } },
|
|
48
|
+
showExpressionBuilderErrorBanner: { control: { type: 'boolean' } },
|
|
49
|
+
inLineError: { options: ['single', 'multiple'], control: { type: 'select' } },
|
|
50
|
+
showAdditionalInfo: { control: { type: 'boolean' } },
|
|
51
|
+
labelHidden: { control: { type: 'boolean' } },
|
|
52
|
+
info: { control: { type: 'text' } },
|
|
53
|
+
required: { control: { type: 'boolean' } },
|
|
54
|
+
label: { control: { type: 'text' } },
|
|
55
|
+
placeholder: { control: { type: 'text' } }
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=Expression.stories.jsx.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Expression.stories.jsx","sourceRoot":"","sources":["../../../src/build/Expression/Expression.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGtD,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,SAAS,EAAE,UAAU;CACd,CAAC;AAeV,MAAM,CAAC,MAAM,cAAc,GAAiC,CAAC,IAAyB,EAAE,EAAE;IACxF,MAAM,EACJ,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACd,GAAG,iBAAiB,CAAC;QACpB,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,gCAAgC,EAAE,IAAI,CAAC,gCAAgC;QACvE,aAAa,EAAE,IAAI,CAAC,UAAU;KAC/B,CAAC,CAAC;IAEH,MAAM,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,iBAAiB,CAAC;QAC3F,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,gCAAgC,EAAE,IAAI,CAAC,gCAAgC;QACvE,aAAa,EAAE,IAAI,CAAC,UAAU;KAC/B,CAAC,CAAC;IAEH,OAAO,CACL,CAAC,UAAU,CACT,KAAK,CAAC,CAAC,UAAU,CAAC,CAClB,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAClB,WAAW,CAAC,CAAC;YACX,gBAAgB,EAAE,qBAAqB;YACvC,OAAO,EAAE,YAAY;YACrB,MAAM;YACN,YAAY;SACb,CAAC,CACF,qBAAqB,CAAC,CAAC,mBAAmB,C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E;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,gCAAgC,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAClE,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC7E,kBAAkB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IACpD,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC7C,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACnC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACpC,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;CAC3C,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\n\nimport { useUID } from '@pega/cosmos-react-core';\nimport type { InputProps } from '@pega/cosmos-react-core';\nimport { Expression } from '@pega/cosmos-react-build';\nimport type { ExpressionProps } from '@pega/cosmos-react-build';\n\nimport useMockExpression from './useMockExpression';\nimport { additionalContentInfo } from './Expression.mocks';\n\nexport default {\n title: 'Build/Expression',\n component: Expression\n} as Meta;\n\ninterface ExpressionDemoProps\n extends Pick<InputProps, 'info' | 'readOnly' | 'disabled' | 'required' | 'labelHidden'> {\n showErrors?: boolean;\n inLineError?: 'single' | 'multiple';\n showExpressionBuilderErrorBanner?: boolean;\n expressionSubmitHandler?: () => void;\n expressionCancelHandler?: () => void;\n showAdditionalInfo?: boolean;\n label?: ExpressionProps['label'];\n placeholder?: ExpressionProps['placeholder'];\n showExpressionGenerationUI?: boolean;\n}\n\nexport const ExpressionDemo: StoryFn<ExpressionDemoProps> = (args: ExpressionDemoProps) => {\n const {\n inputValue,\n showExpBuilderModal,\n openExpBuilderModal,\n errors,\n handle,\n inLineErrors,\n expressionRef\n } = useMockExpression({\n inLineError: args.inLineError,\n showExpressionBuilderErrorBanner: args.showExpressionBuilderErrorBanner,\n expShowErrors: args.showErrors\n });\n\n const { fetchSuggestions: inputFetchSuggestions, loading: inputLoading } = useMockExpression({\n inLineError: args.inLineError,\n showExpressionBuilderErrorBanner: args.showExpressionBuilderErrorBanner,\n expShowErrors: args.showErrors\n });\n\n return (\n <Expression\n value={inputValue}\n label={args.label}\n editorInput={{\n fetchSuggestions: inputFetchSuggestions,\n loading: inputLoading,\n handle,\n inLineErrors\n }}\n showExpressionBuilder={showExpBuilderModal}\n onExpBuilderShowHandler={openExpBuilderModal}\n readOnly={args.readOnly}\n ref={expressionRef}\n disabled={args.disabled}\n status={args?.showErrors ? 'error' : undefined}\n required={args.required}\n info={args?.showErrors ? errors : args.info}\n additionalInfo={\n args.showAdditionalInfo\n ? {\n content: additionalContentInfo\n }\n : undefined\n }\n labelHidden={args.labelHidden}\n placeholder={args.placeholder}\n id={useUID()}\n />\n );\n};\n\nExpressionDemo.args = {\n showErrors: false,\n readOnly: false,\n disabled: false,\n inLineError: 'single',\n showExpressionBuilderErrorBanner: false,\n showAdditionalInfo: false,\n info: 'Type in the value',\n required: false,\n labelHidden: false,\n label: 'Expression',\n placeholder: 'Writing expressions'\n};\n\nExpressionDemo.argTypes = {\n showErrors: { control: { type: 'boolean' } },\n readOnly: { control: { type: 'boolean' } },\n disabled: { control: { type: 'boolean' } },\n showExpressionBuilderErrorBanner: { control: { type: 'boolean' } },\n inLineError: { options: ['single', 'multiple'], control: { type: 'select' } },\n showAdditionalInfo: { control: { type: 'boolean' } },\n labelHidden: { control: { type: 'boolean' } },\n info: { control: { type: 'text' } },\n required: { control: { type: 'boolean' } },\n label: { control: { type: 'text' } },\n placeholder: { control: { type: 'text' } }\n};\n"]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { MenuItemProps } from '@pega/cosmos-react-core';
|
|
2
|
+
import type { ExpressionRefInterface, ExpressionItemProps, HandleValue, AutoCompleteTriggerChar, CursorPosition } from '@pega/cosmos-react-build';
|
|
3
|
+
export default function useMockExpression({ inLineError, showExpressionBuilderErrorBanner, expShowErrors }: {
|
|
4
|
+
inLineError?: string;
|
|
5
|
+
showExpressionBuilderErrorBanner?: boolean;
|
|
6
|
+
expShowErrors?: boolean;
|
|
7
|
+
}): {
|
|
8
|
+
showExpBuilderModal: boolean;
|
|
9
|
+
setShowExpBuilderModal: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
+
openExpBuilderModal: () => Promise<void>;
|
|
11
|
+
showSuggestions: boolean;
|
|
12
|
+
suggestionList: (MenuItemProps & {
|
|
13
|
+
key?: string;
|
|
14
|
+
})[];
|
|
15
|
+
inputValue: string;
|
|
16
|
+
expBuilderInputValue: string;
|
|
17
|
+
expressionItems: ({
|
|
18
|
+
id: string;
|
|
19
|
+
testId: string;
|
|
20
|
+
primary: string;
|
|
21
|
+
type: string;
|
|
22
|
+
expression: string;
|
|
23
|
+
details: {
|
|
24
|
+
primary: {
|
|
25
|
+
field: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}[];
|
|
28
|
+
output: {
|
|
29
|
+
field: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}[];
|
|
32
|
+
input: {
|
|
33
|
+
id: string;
|
|
34
|
+
field: string;
|
|
35
|
+
type: string;
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
id: string;
|
|
40
|
+
testId: string;
|
|
41
|
+
primary: string;
|
|
42
|
+
type: string;
|
|
43
|
+
expression: string;
|
|
44
|
+
details: {
|
|
45
|
+
primary: {
|
|
46
|
+
field: string;
|
|
47
|
+
value: string;
|
|
48
|
+
}[];
|
|
49
|
+
output: {
|
|
50
|
+
field: string;
|
|
51
|
+
value: string;
|
|
52
|
+
}[];
|
|
53
|
+
input?: undefined;
|
|
54
|
+
};
|
|
55
|
+
})[];
|
|
56
|
+
expressionDetails: {
|
|
57
|
+
[id: string]: import("@pega/cosmos-react-build/lib/components/ExpressionBuilder/ExpressionBuilder.types").ExpressionDetailsProps;
|
|
58
|
+
};
|
|
59
|
+
isExpBuilderLoading: boolean;
|
|
60
|
+
searchFilter: string;
|
|
61
|
+
setSearchFilter: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
62
|
+
filterRegex: RegExp;
|
|
63
|
+
searchValue: string;
|
|
64
|
+
setSearchValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
65
|
+
errors: string;
|
|
66
|
+
handle: import("react").RefObject<HandleValue>;
|
|
67
|
+
expressionRef: import("react").RefObject<ExpressionRefInterface>;
|
|
68
|
+
loading: boolean;
|
|
69
|
+
inLineErrors: {
|
|
70
|
+
start: import("@pega/cosmos-react-build/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types").ErrorRange;
|
|
71
|
+
end: import("@pega/cosmos-react-build/lib/components/ExpressionBuilder/CodeEditor/CodeEditor.types").ErrorRange;
|
|
72
|
+
messages: string[];
|
|
73
|
+
}[] | undefined;
|
|
74
|
+
expBuilderErrorBanner: Pick<import("@pega/cosmos-react-core").BannerProps, "variant" | "onDismiss" | "messages"> | undefined;
|
|
75
|
+
expressionSubmitHandler: ({ close }: {
|
|
76
|
+
close: () => void;
|
|
77
|
+
}) => void;
|
|
78
|
+
expressionCancelHandler: ({ close }: {
|
|
79
|
+
close?: () => void;
|
|
80
|
+
}) => void;
|
|
81
|
+
onItemAdd: (id: ExpressionItemProps["id"], addExpression: (expression: string) => void) => void;
|
|
82
|
+
onItemExpand: (id: string) => void;
|
|
83
|
+
onItemCollapse: (id: string) => void;
|
|
84
|
+
expressionChangeHandler: (expression: any) => void;
|
|
85
|
+
fetchSuggestions: (autoCompleteTrigger: AutoCompleteTriggerChar, cursorPosition: CursorPosition) => Promise<import("@pega/cosmos-react-build").SuggestionType[] | undefined>;
|
|
86
|
+
suggestionItemsToRender: (MenuItemProps & {
|
|
87
|
+
key?: string;
|
|
88
|
+
})[];
|
|
89
|
+
inputKeydownHandler: (e: React.KeyboardEvent<HTMLInputElement>) => Promise<void>;
|
|
90
|
+
inputChangeHandler: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
91
|
+
expBuilderFilterChangeHandler: (value: string) => void;
|
|
92
|
+
expBuilderSearchChangeHandler: (value: string) => void;
|
|
93
|
+
suggestionItemClickHandler: (id: MenuItemProps["id"]) => void;
|
|
94
|
+
resetExpression: () => void;
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=useMockExpression.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMockExpression.d.ts","sourceRoot":"","sources":["../../../src/build/Expression/useMockExpression.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAA4B,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,KAAK,EAEV,sBAAsB,EACtB,mBAAmB,EAEnB,WAAW,EAEX,uBAAuB,EACvB,cAAc,EACf,MAAM,0BAA0B,CAAC;AAgBlC,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,WAAsB,EACtB,gCAAgC,EAChC,aAAa,EACd,EAAE;IACD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;;;;;;cACoD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAsI3C;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE;yCAUS;QAAE,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE;oBAc5D,mBAAmB,CAAC,IAAI,CAAC,iBACd,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI;uBAqBnB,MAAM;yBA4CJ,MAAM;;;;cAhOiB,MAAM;;6BAuTnB,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC;4BAa5C,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC;2CA/KpB,MAAM;2CAIN,MAAM;qCA0IZ,aAAa,CAAC,IAAI,CAAC;;EA2F5D"}
|