@pega/cosmos-react-demos 7.1.1 → 8.0.0-build.10.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/DynamicInput/DynamicInput.mocks.d.ts +6 -6
- package/jsx/build/DynamicInput/DynamicInput.mocks.d.ts.map +1 -1
- 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.map +1 -1
- package/jsx/build/FieldReference/FieldReference.mocks.d.ts +6 -2
- package/jsx/build/FieldReference/FieldReference.mocks.d.ts.map +1 -1
- package/jsx/build/FieldReference/FieldReference.mocks.js +85 -33
- package/jsx/build/FieldReference/FieldReference.mocks.js.map +1 -1
- package/jsx/build/FieldReference/FieldReference.stories.d.ts +6 -4
- package/jsx/build/FieldReference/FieldReference.stories.d.ts.map +1 -1
- package/jsx/build/FieldReference/FieldReference.stories.jsx +178 -3
- package/jsx/build/FieldReference/FieldReference.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +2 -2
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.stories.jsx.map +1 -1
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -2
- package/jsx/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts +2 -2
- package/jsx/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +2 -2
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx +2 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.stories.jsx.map +1 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +0 -1
- package/jsx/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -1
- package/jsx/core/AIButton/AIButton.mocks.d.ts +3 -3
- package/jsx/core/AIButton/AIButton.mocks.d.ts.map +1 -1
- package/jsx/core/AIButton/AIButton.mocks.js.map +1 -1
- package/jsx/core/AIButton/AIButton.stories.d.ts +2 -2
- package/jsx/core/AIButton/AIButton.stories.d.ts.map +1 -1
- package/jsx/core/AIButton/AIButton.stories.jsx.map +1 -1
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts +2 -2
- package/jsx/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.mocks.d.ts +0 -1
- package/jsx/core/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.d.ts +2 -2
- package/jsx/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/core/AppShell/AppShell.stories.jsx.map +1 -1
- package/jsx/core/Avatar/Avatar.stories.d.ts +2 -2
- package/jsx/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/jsx/core/Backdrop/Backdrop.stories.d.ts +2 -2
- package/jsx/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Alert.stories.d.ts +2 -2
- package/jsx/core/Badges/Alert.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Count.stories.d.ts +2 -2
- package/jsx/core/Badges/Count.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Keyboard.stories.d.ts +2 -2
- package/jsx/core/Badges/Keyboard.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Selection.stories.d.ts +2 -2
- package/jsx/core/Badges/Selection.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Status.stories.d.ts +2 -2
- package/jsx/core/Badges/Status.stories.d.ts.map +1 -1
- package/jsx/core/Badges/Tag.stories.d.ts +2 -2
- package/jsx/core/Badges/Tag.stories.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.mocks.d.ts +15 -4
- 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 +2 -2
- package/jsx/core/Banner/Banner.stories.d.ts.map +1 -1
- package/jsx/core/Banner/Banner.stories.jsx.map +1 -1
- package/jsx/core/Boolean/BooleanDisplay.stories.d.ts +2 -2
- package/jsx/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -2
- package/jsx/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/jsx/core/Button/Button.stories.d.ts +2 -2
- package/jsx/core/Button/Button.stories.d.ts.map +1 -1
- package/jsx/core/Card/Card.stories.d.ts +2 -2
- package/jsx/core/Card/Card.stories.d.ts.map +1 -1
- package/jsx/core/Card/Card.stories.jsx.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.d.ts +2 -2
- package/jsx/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/jsx/core/Checkbox/Checkbox.stories.jsx.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts +2 -2
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.stories.jsx.map +1 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -1
- package/jsx/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts +2 -2
- package/jsx/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/jsx/core/ColorPicker/ColorPicker.stories.jsx.map +1 -1
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts +0 -1
- package/jsx/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
- package/jsx/core/ComboBox/ComboBox.stories.d.ts +2 -2
- package/jsx/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/jsx/core/ComboBox/ComboBox.stories.jsx.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts +2 -2
- package/jsx/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
- package/jsx/core/CompositeInput/CompositeInput.stories.jsx.map +1 -1
- package/jsx/core/Configuration/Configuration.mocks.d.ts +0 -1
- package/jsx/core/Configuration/Configuration.mocks.d.ts.map +1 -1
- package/jsx/core/Configuration/Configuration.stories.d.ts +2 -2
- package/jsx/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/jsx/core/CreditCard/CreditCard.stories.d.ts +2 -2
- package/jsx/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
- package/jsx/core/CreditCard/CreditCard.stories.jsx.map +1 -1
- package/jsx/core/Currency/Currency.stories.d.ts +2 -2
- package/jsx/core/Currency/Currency.stories.d.ts.map +1 -1
- package/jsx/core/Currency/Currency.stories.jsx.map +1 -1
- package/jsx/core/DangerButton/DangerButton.stories.d.ts +2 -2
- package/jsx/core/DangerButton/DangerButton.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.d.ts +2 -2
- package/jsx/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTime.stories.jsx +1 -1
- package/jsx/core/DateTime/DateTime.stories.jsx.map +1 -1
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts +2 -2
- package/jsx/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts +2 -2
- package/jsx/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
- package/jsx/core/Dialog/Dialog.stories.d.ts +2 -2
- package/jsx/core/Dialog/Dialog.stories.d.ts.map +1 -1
- package/jsx/core/Dialog/FormDialog.mocks.d.ts +0 -1
- package/jsx/core/Dialog/FormDialog.mocks.d.ts.map +1 -1
- package/jsx/core/Dialog/FormDialog.mocks.jsx.map +1 -1
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts +0 -1
- package/jsx/core/Dialog/InfoDialog.mocks.d.ts.map +1 -1
- package/jsx/core/Dialog/InfoDialog.mocks.jsx.map +1 -1
- package/jsx/core/Drawer/Drawer.stories.d.ts +2 -2
- package/jsx/core/Drawer/Drawer.stories.d.ts.map +1 -1
- package/jsx/core/Email/EmailDisplay.stories.d.ts +2 -2
- package/jsx/core/Email/EmailDisplay.stories.d.ts.map +1 -1
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts +2 -2
- package/jsx/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
- package/jsx/core/EmptyState/EmptyState.stories.d.ts +2 -2
- package/jsx/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
- package/jsx/core/ErrorState/ErrorState.stories.d.ts +2 -2
- package/jsx/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts +2 -2
- package/jsx/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts +1 -1
- package/jsx/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts +2 -2
- package/jsx/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroup.stories.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.mocks.jsx.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts +2 -2
- package/jsx/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/jsx/core/FieldGroup/FieldGroupList.stories.jsx.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts +0 -1
- package/jsx/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -1
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
- package/jsx/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/jsx/core/File/FileDisplay.stories.d.ts +2 -2
- package/jsx/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/jsx/core/File/FileInput.stories.d.ts +2 -2
- package/jsx/core/File/FileInput.stories.d.ts.map +1 -1
- package/jsx/core/File/FileInput.stories.jsx.map +1 -1
- package/jsx/core/File/FileService.mock.d.ts.map +1 -1
- package/jsx/core/File/FileService.mock.jsx.map +1 -1
- package/jsx/core/Flex/Flex.styles.d.ts +5 -5
- package/jsx/core/Flex/Flex.styles.d.ts.map +1 -1
- package/jsx/core/Flex/FlexContainer.stories.d.ts +2 -2
- package/jsx/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/jsx/core/Flex/FlexItem.stories.d.ts +2 -2
- package/jsx/core/Flex/FlexItem.stories.d.ts.map +1 -1
- package/jsx/core/Form/Form.mocks.d.ts +4 -5
- package/jsx/core/Form/Form.mocks.d.ts.map +1 -1
- package/jsx/core/Form/Form.mocks.jsx.map +1 -1
- package/jsx/core/Form/Form.stories.d.ts +2 -2
- package/jsx/core/Form/Form.stories.d.ts.map +1 -1
- package/jsx/core/Fullscreen/Fullscreen.stories.d.ts +2 -2
- package/jsx/core/Fullscreen/Fullscreen.stories.d.ts.map +1 -1
- package/jsx/core/Fullscreen/Fullscreen.styles.d.ts +0 -1
- package/jsx/core/Fullscreen/Fullscreen.styles.d.ts.map +1 -1
- package/jsx/core/Grid/Grid.styles.d.ts +2 -2
- package/jsx/core/Grid/Grid.styles.d.ts.map +1 -1
- package/jsx/core/Grid/GridContainer.stories.d.ts +2 -2
- package/jsx/core/Grid/GridContainer.stories.d.ts.map +1 -1
- package/jsx/core/Grid/GridItem.stories.d.ts +2 -2
- package/jsx/core/Grid/GridItem.stories.d.ts.map +1 -1
- package/jsx/core/HTML/HTML.stories.d.ts +2 -2
- package/jsx/core/HTML/HTML.stories.d.ts.map +1 -1
- package/jsx/core/Icon/Icon.stories.d.ts +2 -2
- package/jsx/core/Icon/Icon.stories.d.ts.map +1 -1
- 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.stories.d.ts +2 -2
- package/jsx/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/jsx/core/Image/Image.stories.d.ts +2 -2
- package/jsx/core/Image/Image.stories.d.ts.map +1 -1
- package/jsx/core/Input/Input.stories.d.ts +2 -2
- package/jsx/core/Input/Input.stories.d.ts.map +1 -1
- package/jsx/core/Input/Input.stories.jsx.map +1 -1
- package/jsx/core/Label/Label.stories.d.ts +2 -2
- package/jsx/core/Label/Label.stories.d.ts.map +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.d.ts +2 -2
- package/jsx/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
- package/jsx/core/Lightbox/Lightbox.stories.jsx.map +1 -1
- package/jsx/core/Link/Link.stories.d.ts +2 -2
- package/jsx/core/Link/Link.stories.d.ts.map +1 -1
- package/jsx/core/List/CommaSeparatedList.stories.d.ts +2 -2
- package/jsx/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/jsx/core/List/OrderedList.stories.d.ts +2 -2
- package/jsx/core/List/OrderedList.stories.d.ts.map +1 -1
- package/jsx/core/List/OrderedList.stories.jsx.map +1 -1
- package/jsx/core/List/UnorderedList.stories.d.ts +2 -2
- package/jsx/core/List/UnorderedList.stories.d.ts.map +1 -1
- package/jsx/core/List/UnorderedList.stories.jsx.map +1 -1
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts +2 -2
- package/jsx/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts +1 -2
- package/jsx/core/LiveLog/LiveLog.mocks.d.ts.map +1 -1
- package/jsx/core/LiveLog/LiveLog.mocks.jsx.map +1 -1
- package/jsx/core/LiveLog/LiveLog.stories.d.ts +2 -2
- package/jsx/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
- package/jsx/core/Location/Location.mocks.d.ts +5 -0
- package/jsx/core/Location/Location.mocks.d.ts.map +1 -0
- package/jsx/core/Location/Location.mocks.jsx +26 -0
- package/jsx/core/Location/Location.mocks.jsx.map +1 -0
- package/jsx/core/Location/Location.stories.d.ts +7 -10
- package/jsx/core/Location/Location.stories.d.ts.map +1 -1
- package/jsx/core/Location/Location.stories.jsx +53 -44
- package/jsx/core/Location/Location.stories.jsx.map +1 -1
- package/jsx/core/Location/MapsProvider.mock.d.ts +8 -0
- package/jsx/core/Location/MapsProvider.mock.d.ts.map +1 -0
- package/jsx/core/Location/MapsProvider.mock.jsx +21 -0
- package/jsx/core/Location/MapsProvider.mock.jsx.map +1 -0
- package/jsx/core/Location/locationTestUtils.d.ts +4 -2
- package/jsx/core/Location/locationTestUtils.d.ts.map +1 -1
- package/jsx/core/Location/locationTestUtils.js +44 -16
- package/jsx/core/Location/locationTestUtils.js.map +1 -1
- package/jsx/core/Menu/Menu.mocks.d.ts.map +1 -1
- package/jsx/core/Menu/Menu.mocks.js +55 -1
- package/jsx/core/Menu/Menu.mocks.js.map +1 -1
- package/jsx/core/Menu/Menu.stories.d.ts +3 -2
- package/jsx/core/Menu/Menu.stories.d.ts.map +1 -1
- package/jsx/core/Menu/Menu.stories.jsx +147 -1
- package/jsx/core/Menu/Menu.stories.jsx.map +1 -1
- package/jsx/core/MenuButton/MenuButton.stories.d.ts +2 -2
- package/jsx/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/jsx/core/MetaList/MetaList.stories.d.ts +2 -2
- package/jsx/core/MetaList/MetaList.stories.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.mocks.d.ts +1 -1
- package/jsx/core/Modal/Modal.mocks.d.ts.map +1 -1
- package/jsx/core/Modal/Modal.mocks.jsx.map +1 -1
- package/jsx/core/Modal/Modal.stories.d.ts +2 -2
- package/jsx/core/Modal/Modal.stories.d.ts.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts +0 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.mocks.jsx.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts +2 -2
- package/jsx/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
- package/jsx/core/MultiStepForm/MultiStepForm.stories.jsx.map +1 -1
- package/jsx/core/NoValue/NoValue.stories.d.ts +2 -2
- package/jsx/core/NoValue/NoValue.stories.d.ts.map +1 -1
- package/jsx/core/Number/Number.stories.d.ts +2 -2
- package/jsx/core/Number/Number.stories.d.ts.map +1 -1
- package/jsx/core/Number/Number.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/jsx/core/PageTemplates/PageTemplates.mocks.js.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts +2 -2
- package/jsx/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts +1 -1
- package/jsx/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/jsx/core/Pagination/Pagination.stories.d.ts +2 -2
- package/jsx/core/Pagination/Pagination.stories.d.ts.map +1 -1
- package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts +2 -2
- package/jsx/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
- package/jsx/core/Phone/Phone.stories.d.ts +2 -2
- package/jsx/core/Phone/Phone.stories.d.ts.map +1 -1
- package/jsx/core/Phone/Phone.stories.jsx.map +1 -1
- package/jsx/core/Popover/Popover.mocks.d.ts +0 -1
- package/jsx/core/Popover/Popover.mocks.d.ts.map +1 -1
- package/jsx/core/Popover/Popover.stories.d.ts +2 -2
- package/jsx/core/Popover/Popover.stories.d.ts.map +1 -1
- package/jsx/core/Popover/Popover.stories.jsx +9 -12
- package/jsx/core/Popover/Popover.stories.jsx.map +1 -1
- package/jsx/core/Progress/Progress.stories.d.ts +2 -2
- package/jsx/core/Progress/Progress.stories.d.ts.map +1 -1
- package/jsx/core/Progress/Progress.stories.jsx.map +1 -1
- package/jsx/core/QRCode/QRCode.stories.d.ts +2 -2
- package/jsx/core/QRCode/QRCode.stories.d.ts.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.d.ts +2 -2
- package/jsx/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/jsx/core/RadioButton/RadioButton.stories.jsx.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +2 -2
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.stories.jsx.map +1 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -1
- package/jsx/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -1
- package/jsx/core/Rating/Rating.stories.d.ts +2 -2
- package/jsx/core/Rating/Rating.stories.d.ts.map +1 -1
- package/jsx/core/SearchInput/SearchInput.stories.d.ts +9 -4
- package/jsx/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/jsx/core/SearchInput/SearchInput.stories.jsx +28 -8
- package/jsx/core/SearchInput/SearchInput.stories.jsx.map +1 -1
- package/jsx/core/Select/Select.stories.d.ts +2 -2
- package/jsx/core/Select/Select.stories.d.ts.map +1 -1
- package/jsx/core/Select/Select.stories.jsx.map +1 -1
- package/jsx/core/Sentiment/Sentiment.stories.d.ts +2 -2
- package/jsx/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts +2 -2
- package/jsx/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
- package/jsx/core/Slider/Slider.stories.d.ts +2 -2
- package/jsx/core/Slider/Slider.stories.d.ts.map +1 -1
- package/jsx/core/Slider/Slider.stories.jsx.map +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts +2 -2
- package/jsx/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
- package/jsx/core/SummaryItem/SummaryItem.stories.jsx.map +1 -1
- package/jsx/core/SummaryList/SummaryList.mocks.d.ts +1 -1
- package/jsx/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
- package/jsx/core/SummaryList/SummaryList.mocks.jsx.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.d.ts +2 -2
- package/jsx/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/jsx/core/SummaryList/SummaryList.stories.jsx.map +1 -1
- package/jsx/core/Switch/Switch.stories.d.ts +2 -2
- package/jsx/core/Switch/Switch.stories.d.ts.map +1 -1
- package/jsx/core/Table/Table.mocks.d.ts +0 -1
- package/jsx/core/Table/Table.mocks.d.ts.map +1 -1
- package/jsx/core/Table/Table.stories.d.ts +2 -2
- package/jsx/core/Table/Table.stories.d.ts.map +1 -1
- package/jsx/core/Tabs/Tabs.mocks.d.ts +1 -2
- package/jsx/core/Tabs/Tabs.mocks.d.ts.map +1 -1
- package/jsx/core/Tabs/Tabs.stories.d.ts +2 -2
- package/jsx/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/jsx/core/Text/Text.stories.d.ts +2 -2
- package/jsx/core/Text/Text.stories.d.ts.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.d.ts +2 -2
- package/jsx/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/jsx/core/TextArea/TextArea.stories.jsx.map +1 -1
- package/jsx/core/Toaster/Toaster.stories.d.ts +2 -2
- package/jsx/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/jsx/core/Tooltip/Tooltip.stories.d.ts +2 -2
- package/jsx/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/jsx/core/Tree/Tree.mocks.js.map +1 -1
- package/jsx/core/Tree/Tree.stories.d.ts +2 -2
- package/jsx/core/Tree/Tree.stories.d.ts.map +1 -1
- package/jsx/core/URL/URL.stories.d.ts +2 -2
- package/jsx/core/URL/URL.stories.d.ts.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts +1 -2
- package/jsx/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -1
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts +2 -2
- package/jsx/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/Demo.jsx.map +1 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts +0 -1
- package/jsx/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts +0 -1
- package/jsx/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts +0 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/SelectionMenu.jsx.map +1 -1
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +2 -2
- package/jsx/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
- package/jsx/dnd/StandardDragDropList/mockData.js +4 -4
- package/jsx/dnd/StandardDragDropList/mockData.js.map +1 -1
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +2 -2
- package/jsx/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/jsx/rte/DynamicContentEditor/FieldSelector.jsx.map +1 -1
- package/jsx/rte/Editor/Editor.mocks.d.ts +50 -45
- package/jsx/rte/Editor/Editor.mocks.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.mocks.jsx.map +1 -1
- package/jsx/rte/Editor/Editor.stories.d.ts +2 -2
- package/jsx/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/jsx/rte/Editor/Editor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -2
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextEditor.stories.jsx.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts +2 -2
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/jsx/rte/RichTextEditor/RichTextViewer.stories.jsx.map +1 -1
- package/jsx/social/Chat/Chat.stories.d.ts +2 -2
- package/jsx/social/Chat/Chat.stories.d.ts.map +1 -1
- package/jsx/social/Chat/Chat.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.mocks.d.ts +9 -9
- package/jsx/social/Email/Email.mocks.d.ts.map +1 -1
- package/jsx/social/Email/Email.mocks.jsx.map +1 -1
- package/jsx/social/Email/Email.stories.d.ts +4 -2
- package/jsx/social/Email/Email.stories.d.ts.map +1 -1
- package/jsx/social/Email/Email.stories.jsx +37 -8
- package/jsx/social/Email/Email.stories.jsx.map +1 -1
- package/jsx/social/Email/Email.styles.d.ts +0 -1
- package/jsx/social/Email/Email.styles.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.stories.d.ts +4 -3
- package/jsx/social/Feed/Feed.stories.d.ts.map +1 -1
- package/jsx/social/Feed/Feed.stories.jsx +12 -6
- package/jsx/social/Feed/Feed.stories.jsx.map +1 -1
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts +0 -1
- package/jsx/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedNewPost.mocks.jsx.map +1 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts +0 -1
- package/jsx/social/Feed/FeedPost.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedPost.mocks.jsx.map +1 -1
- package/jsx/social/Feed/FeedReply.mocks.d.ts +0 -1
- package/jsx/social/Feed/FeedReply.mocks.d.ts.map +1 -1
- package/jsx/social/Feed/FeedReply.mocks.jsx.map +1 -1
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts +2 -2
- package/jsx/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/jsx/work/Article/Article.stories.d.ts +2 -2
- 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 +2 -2
- package/jsx/work/ArticleList/ArticleBuddy.stories.d.ts.map +1 -1
- package/jsx/work/ArticleList/ArticleBuddy.stories.jsx +7 -5
- 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 +74 -52
- package/jsx/work/ArticleList/ArticleList.mocks.js.map +1 -1
- package/jsx/work/ArticleList/ArticleList.stories.d.ts +2 -2
- package/jsx/work/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/jsx/work/ArticleList/ArticleList.stories.jsx +41 -35
- package/jsx/work/ArticleList/ArticleList.stories.jsx.map +1 -1
- package/jsx/work/Assignments/Assignments.stories.d.ts +2 -2
- package/jsx/work/Assignments/Assignments.stories.d.ts.map +1 -1
- package/jsx/work/Assignments/Assignments.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts +0 -1
- package/jsx/work/CaseView/Attachments.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Attachments.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.d.ts +8 -7
- package/jsx/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.mocks.jsx +31 -15
- package/jsx/work/CaseView/CaseView.mocks.jsx.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.d.ts +2 -2
- package/jsx/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/work/CaseView/CaseView.stories.jsx +5 -3
- package/jsx/work/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/work/CaseView/Details.mocks.d.ts +0 -1
- package/jsx/work/CaseView/Details.mocks.d.ts.map +1 -1
- package/jsx/work/CaseView/Pulse.mocks.d.ts +2 -3
- package/jsx/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +0 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +2 -2
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/jsx/work/ConfigurableLayout/ConfigurableLayout.stories.jsx.map +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.d.ts +2 -2
- package/jsx/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/jsx/work/Confirmation/Confirmation.stories.jsx.map +1 -1
- package/jsx/work/Details/Details.stories.d.ts +2 -2
- package/jsx/work/Details/Details.stories.d.ts.map +1 -1
- package/jsx/work/Details/Details.stories.jsx.map +1 -1
- package/jsx/work/GenAICoach/GenAICoach.stories.d.ts +2 -2
- package/jsx/work/GenAICoach/GenAICoach.stories.d.ts.map +1 -1
- package/jsx/work/GenAICoach/GenAICoach.stories.jsx.map +1 -1
- package/jsx/work/GenAICoach/useGenAICoach.js.map +1 -1
- package/jsx/work/Glimpse/Glimpse.stories.d.ts +2 -2
- package/jsx/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts +0 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts.map +1 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.mock.jsx.map +1 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts +2 -2
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts.map +1 -1
- package/jsx/work/HierarchicalAssignments/HierarchicalAssignments.stories.jsx.map +1 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +2 -2
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/jsx/work/IntelligentGuidance/IntelligentGuidance.stories.jsx.map +1 -1
- package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts +2 -2
- package/jsx/work/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/jsx/work/InteractionNotification/InteractionNotification.stories.jsx.map +1 -1
- package/jsx/work/Predictions/Predictions.mocks.d.ts +0 -1
- package/jsx/work/Predictions/Predictions.mocks.d.ts.map +1 -1
- package/jsx/work/Predictions/Predictions.stories.d.ts +2 -2
- package/jsx/work/Predictions/Predictions.stories.d.ts.map +1 -1
- package/jsx/work/Predictions/Predictions.stories.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.d.ts +2 -2
- package/jsx/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/jsx/work/SearchResults/SearchResults.stories.jsx.map +1 -1
- package/jsx/work/SearchResults/SearchResults.styles.d.ts +1 -1
- package/jsx/work/Stages/Stages.mocks.d.ts +0 -1
- package/jsx/work/Stages/Stages.mocks.d.ts.map +1 -1
- package/jsx/work/Stages/Stages.stories.d.ts +2 -2
- package/jsx/work/Stages/Stages.stories.d.ts.map +1 -1
- package/jsx/work/Stages/Stages.stories.jsx.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts +4 -4
- package/jsx/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts +2 -2
- package/jsx/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/jsx/work/Stakeholders/Stakeholders.stories.jsx.map +1 -1
- package/jsx/work/Tags/Tags.stories.d.ts +2 -2
- package/jsx/work/Tags/Tags.stories.d.ts.map +1 -1
- package/jsx/work/Tags/Tags.stories.jsx.map +1 -1
- package/jsx/work/Tasks/TaskList.stories.d.ts +2 -2
- package/jsx/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.d.ts +2 -2
- package/jsx/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/jsx/work/Tasks/Tasks.stories.jsx.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.d.ts +2 -2
- package/jsx/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/jsx/work/Timeline/Timeline.stories.jsx.map +1 -1
- package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts +2 -2
- package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts.map +1 -1
- package/jsx/work/UtilitiesLayout/UtilitiesLayout.stories.jsx.map +1 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts +0 -1
- package/jsx/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/jsx/wss/AppShell/AppShell.stories.d.ts +2 -2
- package/jsx/wss/AppShell/AppShell.stories.d.ts.map +1 -1
- package/jsx/wss/CaseView/CaseView.mocks.d.ts +0 -1
- package/jsx/wss/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/jsx/wss/CaseView/CaseView.stories.d.ts +2 -2
- package/jsx/wss/CaseView/CaseView.stories.d.ts.map +1 -1
- package/jsx/wss/CaseView/CaseView.stories.jsx.map +1 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts +2 -2
- package/jsx/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/jsx/wss/PageTemplates/PageTemplates.stories.jsx.map +1 -1
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts +2 -2
- package/jsx/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
- package/lib/build/DynamicInput/DynamicInput.mocks.d.ts +6 -6
- package/lib/build/DynamicInput/DynamicInput.mocks.d.ts.map +1 -1
- 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.map +1 -1
- package/lib/build/FieldReference/FieldReference.mocks.d.ts +6 -2
- package/lib/build/FieldReference/FieldReference.mocks.d.ts.map +1 -1
- package/lib/build/FieldReference/FieldReference.mocks.js +85 -33
- package/lib/build/FieldReference/FieldReference.mocks.js.map +1 -1
- package/lib/build/FieldReference/FieldReference.stories.d.ts +6 -4
- package/lib/build/FieldReference/FieldReference.stories.d.ts.map +1 -1
- package/lib/build/FieldReference/FieldReference.stories.js +173 -4
- package/lib/build/FieldReference/FieldReference.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts +2 -2
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.d.ts.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.stories.js.map +1 -1
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts +1 -2
- package/lib/condition-builder/ConditionBuilder/ConditionBuilder.styles.d.ts.map +1 -1
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts +2 -2
- package/lib/condition-builder/ConditionInput/ConditionInput.stories.d.ts.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts +2 -2
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.d.ts.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js +2 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.stories.js.map +1 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts +0 -1
- package/lib/condition-builder/PromotedFilters/PromotedFilters.styles.d.ts.map +1 -1
- package/lib/core/AIButton/AIButton.mocks.d.ts +3 -3
- package/lib/core/AIButton/AIButton.mocks.d.ts.map +1 -1
- package/lib/core/AIButton/AIButton.mocks.js.map +1 -1
- package/lib/core/AIButton/AIButton.stories.d.ts +2 -2
- package/lib/core/AIButton/AIButton.stories.d.ts.map +1 -1
- package/lib/core/AIButton/AIButton.stories.js.map +1 -1
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts +2 -2
- package/lib/core/AdditionalInfo/AdditionalInfo.stories.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.mocks.d.ts +0 -1
- package/lib/core/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.d.ts +2 -2
- package/lib/core/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/core/AppShell/AppShell.stories.js.map +1 -1
- package/lib/core/Avatar/Avatar.stories.d.ts +2 -2
- package/lib/core/Avatar/Avatar.stories.d.ts.map +1 -1
- package/lib/core/Backdrop/Backdrop.stories.d.ts +2 -2
- package/lib/core/Backdrop/Backdrop.stories.d.ts.map +1 -1
- package/lib/core/Badges/Alert.stories.d.ts +2 -2
- package/lib/core/Badges/Alert.stories.d.ts.map +1 -1
- package/lib/core/Badges/Count.stories.d.ts +2 -2
- package/lib/core/Badges/Count.stories.d.ts.map +1 -1
- package/lib/core/Badges/Keyboard.stories.d.ts +2 -2
- package/lib/core/Badges/Keyboard.stories.d.ts.map +1 -1
- package/lib/core/Badges/Selection.stories.d.ts +2 -2
- package/lib/core/Badges/Selection.stories.d.ts.map +1 -1
- package/lib/core/Badges/Status.stories.d.ts +2 -2
- package/lib/core/Badges/Status.stories.d.ts.map +1 -1
- package/lib/core/Badges/Tag.stories.d.ts +2 -2
- package/lib/core/Badges/Tag.stories.d.ts.map +1 -1
- package/lib/core/Banner/Banner.mocks.d.ts +15 -4
- 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 +2 -2
- package/lib/core/Banner/Banner.stories.d.ts.map +1 -1
- package/lib/core/Banner/Banner.stories.js.map +1 -1
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts +2 -2
- package/lib/core/Boolean/BooleanDisplay.stories.d.ts.map +1 -1
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -2
- package/lib/core/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/lib/core/Button/Button.stories.d.ts +2 -2
- package/lib/core/Button/Button.stories.d.ts.map +1 -1
- package/lib/core/Card/Card.stories.d.ts +2 -2
- package/lib/core/Card/Card.stories.d.ts.map +1 -1
- package/lib/core/Checkbox/Checkbox.stories.d.ts +2 -2
- package/lib/core/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts +2 -2
- package/lib/core/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts +0 -1
- package/lib/core/CheckboxGroup/CheckboxGroup.styles.d.ts.map +1 -1
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts +2 -2
- package/lib/core/ColorPicker/ColorPicker.stories.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.mocks.d.ts +0 -1
- package/lib/core/ComboBox/ComboBox.mocks.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.d.ts +2 -2
- package/lib/core/ComboBox/ComboBox.stories.d.ts.map +1 -1
- package/lib/core/ComboBox/ComboBox.stories.js.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.mocks.d.ts.map +1 -1
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts +2 -2
- package/lib/core/CompositeInput/CompositeInput.stories.d.ts.map +1 -1
- package/lib/core/Configuration/Configuration.mocks.d.ts +0 -1
- package/lib/core/Configuration/Configuration.mocks.d.ts.map +1 -1
- package/lib/core/Configuration/Configuration.stories.d.ts +2 -2
- package/lib/core/Configuration/Configuration.stories.d.ts.map +1 -1
- package/lib/core/CreditCard/CreditCard.stories.d.ts +2 -2
- package/lib/core/CreditCard/CreditCard.stories.d.ts.map +1 -1
- package/lib/core/Currency/Currency.stories.d.ts +2 -2
- package/lib/core/Currency/Currency.stories.d.ts.map +1 -1
- package/lib/core/DangerButton/DangerButton.stories.d.ts +2 -2
- package/lib/core/DangerButton/DangerButton.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTime.stories.d.ts +2 -2
- package/lib/core/DateTime/DateTime.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTime.stories.js +1 -1
- package/lib/core/DateTime/DateTime.stories.js.map +1 -1
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts +2 -2
- package/lib/core/DateTime/DateTimeDisplay.stories.d.ts.map +1 -1
- package/lib/core/DateTime/DateTimePicker.stories.d.ts +2 -2
- package/lib/core/DateTime/DateTimePicker.stories.d.ts.map +1 -1
- package/lib/core/Dialog/Dialog.stories.d.ts +2 -2
- package/lib/core/Dialog/Dialog.stories.d.ts.map +1 -1
- package/lib/core/Dialog/FormDialog.mocks.d.ts +0 -1
- package/lib/core/Dialog/FormDialog.mocks.d.ts.map +1 -1
- package/lib/core/Dialog/FormDialog.mocks.js.map +1 -1
- package/lib/core/Dialog/InfoDialog.mocks.d.ts +0 -1
- package/lib/core/Dialog/InfoDialog.mocks.d.ts.map +1 -1
- package/lib/core/Dialog/InfoDialog.mocks.js.map +1 -1
- package/lib/core/Drawer/Drawer.stories.d.ts +2 -2
- package/lib/core/Drawer/Drawer.stories.d.ts.map +1 -1
- package/lib/core/Email/EmailDisplay.stories.d.ts +2 -2
- package/lib/core/Email/EmailDisplay.stories.d.ts.map +1 -1
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts +2 -2
- package/lib/core/EmojiPicker/EmojiPicker.stories.d.ts.map +1 -1
- package/lib/core/EmptyState/EmptyState.stories.d.ts +2 -2
- package/lib/core/EmptyState/EmptyState.stories.d.ts.map +1 -1
- package/lib/core/ErrorState/ErrorState.stories.d.ts +2 -2
- package/lib/core/ErrorState/ErrorState.stories.d.ts.map +1 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts +2 -2
- package/lib/core/ExpandCollapse/ExpandCollapse.stories.d.ts.map +1 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts +1 -1
- package/lib/core/ExpandCollapse/ExpandCollapse.styles.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts +2 -2
- package/lib/core/FieldGroup/FieldGroup.stories.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts +0 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.d.ts.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.mocks.js.map +1 -1
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts +2 -2
- package/lib/core/FieldGroup/FieldGroupList.stories.d.ts.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.mocks.d.ts +0 -1
- package/lib/core/FieldValueList/FieldValueList.mocks.d.ts.map +1 -1
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts +2 -2
- package/lib/core/FieldValueList/FieldValueList.stories.d.ts.map +1 -1
- package/lib/core/File/FileDisplay.stories.d.ts +2 -2
- package/lib/core/File/FileDisplay.stories.d.ts.map +1 -1
- package/lib/core/File/FileInput.stories.d.ts +2 -2
- package/lib/core/File/FileInput.stories.d.ts.map +1 -1
- package/lib/core/File/FileInput.stories.js.map +1 -1
- package/lib/core/File/FileService.mock.d.ts.map +1 -1
- package/lib/core/File/FileService.mock.js.map +1 -1
- package/lib/core/Flex/Flex.styles.d.ts +5 -5
- package/lib/core/Flex/Flex.styles.d.ts.map +1 -1
- package/lib/core/Flex/FlexContainer.stories.d.ts +2 -2
- package/lib/core/Flex/FlexContainer.stories.d.ts.map +1 -1
- package/lib/core/Flex/FlexItem.stories.d.ts +2 -2
- package/lib/core/Flex/FlexItem.stories.d.ts.map +1 -1
- package/lib/core/Form/Form.mocks.d.ts +4 -5
- package/lib/core/Form/Form.mocks.d.ts.map +1 -1
- package/lib/core/Form/Form.mocks.js.map +1 -1
- package/lib/core/Form/Form.stories.d.ts +2 -2
- package/lib/core/Form/Form.stories.d.ts.map +1 -1
- package/lib/core/Fullscreen/Fullscreen.stories.d.ts +2 -2
- package/lib/core/Fullscreen/Fullscreen.stories.d.ts.map +1 -1
- package/lib/core/Fullscreen/Fullscreen.styles.d.ts +0 -1
- package/lib/core/Fullscreen/Fullscreen.styles.d.ts.map +1 -1
- package/lib/core/Grid/Grid.styles.d.ts +2 -2
- package/lib/core/Grid/Grid.styles.d.ts.map +1 -1
- package/lib/core/Grid/GridContainer.stories.d.ts +2 -2
- package/lib/core/Grid/GridContainer.stories.d.ts.map +1 -1
- package/lib/core/Grid/GridItem.stories.d.ts +2 -2
- package/lib/core/Grid/GridItem.stories.d.ts.map +1 -1
- package/lib/core/HTML/HTML.stories.d.ts +2 -2
- package/lib/core/HTML/HTML.stories.d.ts.map +1 -1
- package/lib/core/Icon/Icon.stories.d.ts +2 -2
- package/lib/core/Icon/Icon.stories.d.ts.map +1 -1
- 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.stories.d.ts +2 -2
- package/lib/core/IconPicker/IconPicker.stories.d.ts.map +1 -1
- package/lib/core/Image/Image.stories.d.ts +2 -2
- package/lib/core/Image/Image.stories.d.ts.map +1 -1
- package/lib/core/Input/Input.stories.d.ts +2 -2
- package/lib/core/Input/Input.stories.d.ts.map +1 -1
- package/lib/core/Input/Input.stories.js.map +1 -1
- package/lib/core/Label/Label.stories.d.ts +2 -2
- package/lib/core/Label/Label.stories.d.ts.map +1 -1
- package/lib/core/Lightbox/Lightbox.stories.d.ts +2 -2
- package/lib/core/Lightbox/Lightbox.stories.d.ts.map +1 -1
- package/lib/core/Lightbox/Lightbox.stories.js.map +1 -1
- package/lib/core/Link/Link.stories.d.ts +2 -2
- package/lib/core/Link/Link.stories.d.ts.map +1 -1
- package/lib/core/List/CommaSeparatedList.stories.d.ts +2 -2
- package/lib/core/List/CommaSeparatedList.stories.d.ts.map +1 -1
- package/lib/core/List/OrderedList.stories.d.ts +2 -2
- package/lib/core/List/OrderedList.stories.d.ts.map +1 -1
- package/lib/core/List/OrderedList.stories.js.map +1 -1
- package/lib/core/List/UnorderedList.stories.d.ts +2 -2
- package/lib/core/List/UnorderedList.stories.d.ts.map +1 -1
- package/lib/core/List/UnorderedList.stories.js.map +1 -1
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts +2 -2
- package/lib/core/ListToolbar/ListToolbar.stories.d.ts.map +1 -1
- package/lib/core/LiveLog/LiveLog.mocks.d.ts +1 -2
- package/lib/core/LiveLog/LiveLog.mocks.d.ts.map +1 -1
- package/lib/core/LiveLog/LiveLog.mocks.js.map +1 -1
- package/lib/core/LiveLog/LiveLog.stories.d.ts +2 -2
- package/lib/core/LiveLog/LiveLog.stories.d.ts.map +1 -1
- package/lib/core/Location/Location.mocks.d.ts +5 -0
- package/lib/core/Location/Location.mocks.d.ts.map +1 -0
- package/lib/core/Location/Location.mocks.js +18 -0
- package/lib/core/Location/Location.mocks.js.map +1 -0
- package/lib/core/Location/Location.stories.d.ts +7 -10
- package/lib/core/Location/Location.stories.d.ts.map +1 -1
- package/lib/core/Location/Location.stories.js +92 -73
- package/lib/core/Location/Location.stories.js.map +1 -1
- package/lib/core/Location/MapsProvider.mock.d.ts +8 -0
- package/lib/core/Location/MapsProvider.mock.d.ts.map +1 -0
- package/lib/core/Location/MapsProvider.mock.js +22 -0
- package/lib/core/Location/MapsProvider.mock.js.map +1 -0
- package/lib/core/Location/locationTestUtils.d.ts +4 -2
- package/lib/core/Location/locationTestUtils.d.ts.map +1 -1
- package/lib/core/Location/locationTestUtils.js +44 -16
- package/lib/core/Location/locationTestUtils.js.map +1 -1
- package/lib/core/Menu/Menu.mocks.d.ts.map +1 -1
- package/lib/core/Menu/Menu.mocks.js +55 -1
- package/lib/core/Menu/Menu.mocks.js.map +1 -1
- package/lib/core/Menu/Menu.stories.d.ts +3 -2
- package/lib/core/Menu/Menu.stories.d.ts.map +1 -1
- package/lib/core/Menu/Menu.stories.js +130 -1
- package/lib/core/Menu/Menu.stories.js.map +1 -1
- package/lib/core/MenuButton/MenuButton.stories.d.ts +2 -2
- package/lib/core/MenuButton/MenuButton.stories.d.ts.map +1 -1
- package/lib/core/MetaList/MetaList.stories.d.ts +2 -2
- package/lib/core/MetaList/MetaList.stories.d.ts.map +1 -1
- package/lib/core/Modal/Modal.mocks.d.ts +1 -1
- package/lib/core/Modal/Modal.mocks.d.ts.map +1 -1
- package/lib/core/Modal/Modal.mocks.js.map +1 -1
- package/lib/core/Modal/Modal.stories.d.ts +2 -2
- package/lib/core/Modal/Modal.stories.d.ts.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts +0 -1
- package/lib/core/MultiStepForm/MultiStepForm.mocks.d.ts.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.mocks.js.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts +2 -2
- package/lib/core/MultiStepForm/MultiStepForm.stories.d.ts.map +1 -1
- package/lib/core/MultiStepForm/MultiStepForm.stories.js.map +1 -1
- package/lib/core/NoValue/NoValue.stories.d.ts +2 -2
- package/lib/core/NoValue/NoValue.stories.d.ts.map +1 -1
- package/lib/core/Number/Number.stories.d.ts +2 -2
- package/lib/core/Number/Number.stories.d.ts.map +1 -1
- package/lib/core/Number/Number.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.d.ts +1 -1
- package/lib/core/PageTemplates/PageTemplates.mocks.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts +2 -2
- package/lib/core/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.stories.js.map +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts +1 -1
- package/lib/core/PageTemplates/PageTemplates.styles.d.ts.map +1 -1
- package/lib/core/Pagination/Pagination.stories.d.ts +2 -2
- package/lib/core/Pagination/Pagination.stories.d.ts.map +1 -1
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts +2 -2
- package/lib/core/Paragraph/ParagraphDisplay.stories.d.ts.map +1 -1
- package/lib/core/Phone/Phone.stories.d.ts +2 -2
- package/lib/core/Phone/Phone.stories.d.ts.map +1 -1
- package/lib/core/Popover/Popover.mocks.d.ts +0 -1
- package/lib/core/Popover/Popover.mocks.d.ts.map +1 -1
- package/lib/core/Popover/Popover.stories.d.ts +2 -2
- package/lib/core/Popover/Popover.stories.d.ts.map +1 -1
- package/lib/core/Popover/Popover.stories.js +1 -1
- package/lib/core/Popover/Popover.stories.js.map +1 -1
- package/lib/core/Progress/Progress.stories.d.ts +2 -2
- package/lib/core/Progress/Progress.stories.d.ts.map +1 -1
- package/lib/core/Progress/Progress.stories.js.map +1 -1
- package/lib/core/QRCode/QRCode.stories.d.ts +2 -2
- package/lib/core/QRCode/QRCode.stories.d.ts.map +1 -1
- package/lib/core/RadioButton/RadioButton.stories.d.ts +2 -2
- package/lib/core/RadioButton/RadioButton.stories.d.ts.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts +2 -2
- package/lib/core/RadioButtonGroup/RadioButtonGroup.stories.d.ts.map +1 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts +0 -1
- package/lib/core/RadioButtonGroup/RadioButtonGroup.styles.d.ts.map +1 -1
- package/lib/core/Rating/Rating.stories.d.ts +2 -2
- package/lib/core/Rating/Rating.stories.d.ts.map +1 -1
- package/lib/core/SearchInput/SearchInput.stories.d.ts +9 -4
- package/lib/core/SearchInput/SearchInput.stories.d.ts.map +1 -1
- package/lib/core/SearchInput/SearchInput.stories.js +19 -8
- package/lib/core/SearchInput/SearchInput.stories.js.map +1 -1
- package/lib/core/Select/Select.stories.d.ts +2 -2
- package/lib/core/Select/Select.stories.d.ts.map +1 -1
- package/lib/core/Sentiment/Sentiment.stories.d.ts +2 -2
- package/lib/core/Sentiment/Sentiment.stories.d.ts.map +1 -1
- package/lib/core/SkipLinks/SkipLinks.stories.d.ts +2 -2
- package/lib/core/SkipLinks/SkipLinks.stories.d.ts.map +1 -1
- package/lib/core/Slider/Slider.stories.d.ts +2 -2
- package/lib/core/Slider/Slider.stories.d.ts.map +1 -1
- package/lib/core/Slider/Slider.stories.js.map +1 -1
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts +2 -2
- package/lib/core/SummaryItem/SummaryItem.stories.d.ts.map +1 -1
- package/lib/core/SummaryList/SummaryList.mocks.d.ts +1 -1
- package/lib/core/SummaryList/SummaryList.mocks.d.ts.map +1 -1
- package/lib/core/SummaryList/SummaryList.mocks.js.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.d.ts +2 -2
- package/lib/core/SummaryList/SummaryList.stories.d.ts.map +1 -1
- package/lib/core/SummaryList/SummaryList.stories.js.map +1 -1
- package/lib/core/Switch/Switch.stories.d.ts +2 -2
- package/lib/core/Switch/Switch.stories.d.ts.map +1 -1
- package/lib/core/Table/Table.mocks.d.ts +0 -1
- package/lib/core/Table/Table.mocks.d.ts.map +1 -1
- package/lib/core/Table/Table.stories.d.ts +2 -2
- package/lib/core/Table/Table.stories.d.ts.map +1 -1
- package/lib/core/Tabs/Tabs.mocks.d.ts +1 -2
- package/lib/core/Tabs/Tabs.mocks.d.ts.map +1 -1
- package/lib/core/Tabs/Tabs.stories.d.ts +2 -2
- package/lib/core/Tabs/Tabs.stories.d.ts.map +1 -1
- package/lib/core/Text/Text.stories.d.ts +2 -2
- package/lib/core/Text/Text.stories.d.ts.map +1 -1
- package/lib/core/TextArea/TextArea.stories.d.ts +2 -2
- package/lib/core/TextArea/TextArea.stories.d.ts.map +1 -1
- package/lib/core/Toaster/Toaster.stories.d.ts +2 -2
- package/lib/core/Toaster/Toaster.stories.d.ts.map +1 -1
- package/lib/core/Tooltip/Tooltip.stories.d.ts +2 -2
- package/lib/core/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/lib/core/Tree/Tree.mocks.js.map +1 -1
- package/lib/core/Tree/Tree.stories.d.ts +2 -2
- package/lib/core/Tree/Tree.stories.d.ts.map +1 -1
- package/lib/core/URL/URL.stories.d.ts +2 -2
- package/lib/core/URL/URL.stories.d.ts.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts +1 -2
- package/lib/dnd/DragDropList/DragDropList.mocks.d.ts.map +1 -1
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts +2 -2
- package/lib/dnd/DragDropList/DragDropList.stories.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/Demo.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/Demo.js.map +1 -1
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts +0 -1
- package/lib/dnd/StandardDragDropList/GroupConfig.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts +0 -1
- package/lib/dnd/StandardDragDropList/ItemConfig.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts +0 -1
- package/lib/dnd/StandardDragDropList/SelectionMenu.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/SelectionMenu.js.map +1 -1
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts +2 -2
- package/lib/dnd/StandardDragDropList/StandardDragDropList.stories.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/mockData.d.ts.map +1 -1
- package/lib/dnd/StandardDragDropList/mockData.js +4 -4
- package/lib/dnd/StandardDragDropList/mockData.js.map +1 -1
- package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts +2 -2
- package/lib/rte/DynamicContentEditor/DynamicContentEditor.stories.d.ts.map +1 -1
- package/lib/rte/DynamicContentEditor/FieldSelector.js.map +1 -1
- package/lib/rte/Editor/Editor.mocks.d.ts +50 -45
- package/lib/rte/Editor/Editor.mocks.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.mocks.js.map +1 -1
- package/lib/rte/Editor/Editor.stories.d.ts +2 -2
- package/lib/rte/Editor/Editor.stories.d.ts.map +1 -1
- package/lib/rte/Editor/Editor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts +2 -2
- package/lib/rte/RichTextEditor/RichTextEditor.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextEditor.stories.js.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts +2 -2
- package/lib/rte/RichTextEditor/RichTextViewer.stories.d.ts.map +1 -1
- package/lib/rte/RichTextEditor/RichTextViewer.stories.js.map +1 -1
- package/lib/social/Chat/Chat.stories.d.ts +2 -2
- package/lib/social/Chat/Chat.stories.d.ts.map +1 -1
- package/lib/social/Chat/Chat.stories.js.map +1 -1
- package/lib/social/Email/Email.mocks.d.ts +9 -9
- package/lib/social/Email/Email.mocks.d.ts.map +1 -1
- package/lib/social/Email/Email.mocks.js.map +1 -1
- package/lib/social/Email/Email.stories.d.ts +4 -2
- package/lib/social/Email/Email.stories.d.ts.map +1 -1
- package/lib/social/Email/Email.stories.js +38 -9
- package/lib/social/Email/Email.stories.js.map +1 -1
- package/lib/social/Email/Email.styles.d.ts +0 -1
- package/lib/social/Email/Email.styles.d.ts.map +1 -1
- package/lib/social/Feed/Feed.mocks.d.ts.map +1 -1
- package/lib/social/Feed/Feed.stories.d.ts +4 -3
- package/lib/social/Feed/Feed.stories.d.ts.map +1 -1
- package/lib/social/Feed/Feed.stories.js +12 -6
- package/lib/social/Feed/Feed.stories.js.map +1 -1
- package/lib/social/Feed/FeedNewPost.mocks.d.ts +0 -1
- package/lib/social/Feed/FeedNewPost.mocks.d.ts.map +1 -1
- package/lib/social/Feed/FeedNewPost.mocks.js.map +1 -1
- package/lib/social/Feed/FeedPost.mocks.d.ts +0 -1
- package/lib/social/Feed/FeedPost.mocks.d.ts.map +1 -1
- package/lib/social/Feed/FeedPost.mocks.js.map +1 -1
- package/lib/social/Feed/FeedReply.mocks.d.ts +0 -1
- package/lib/social/Feed/FeedReply.mocks.d.ts.map +1 -1
- package/lib/social/Feed/FeedReply.mocks.js.map +1 -1
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts +2 -2
- package/lib/work/AppAnnouncement/AppAnnouncement.stories.d.ts.map +1 -1
- package/lib/work/Article/Article.stories.d.ts +2 -2
- 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 +2 -2
- package/lib/work/ArticleList/ArticleBuddy.stories.d.ts.map +1 -1
- package/lib/work/ArticleList/ArticleBuddy.stories.js +7 -5
- 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 +74 -52
- package/lib/work/ArticleList/ArticleList.mocks.js.map +1 -1
- package/lib/work/ArticleList/ArticleList.stories.d.ts +2 -2
- package/lib/work/ArticleList/ArticleList.stories.d.ts.map +1 -1
- package/lib/work/ArticleList/ArticleList.stories.js +41 -35
- package/lib/work/ArticleList/ArticleList.stories.js.map +1 -1
- package/lib/work/Assignments/Assignments.stories.d.ts +2 -2
- package/lib/work/Assignments/Assignments.stories.d.ts.map +1 -1
- package/lib/work/CaseView/Attachments.mocks.d.ts +0 -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 +8 -7
- package/lib/work/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.mocks.js +31 -15
- package/lib/work/CaseView/CaseView.mocks.js.map +1 -1
- package/lib/work/CaseView/CaseView.stories.d.ts +2 -2
- package/lib/work/CaseView/CaseView.stories.d.ts.map +1 -1
- package/lib/work/CaseView/CaseView.stories.js +5 -3
- package/lib/work/CaseView/CaseView.stories.js.map +1 -1
- package/lib/work/CaseView/Details.mocks.d.ts +0 -1
- package/lib/work/CaseView/Details.mocks.d.ts.map +1 -1
- package/lib/work/CaseView/Pulse.mocks.d.ts +2 -3
- package/lib/work/CaseView/Pulse.mocks.d.ts.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts +0 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.mocks.d.ts.map +1 -1
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts +2 -2
- package/lib/work/ConfigurableLayout/ConfigurableLayout.stories.d.ts.map +1 -1
- package/lib/work/Confirmation/Confirmation.stories.d.ts +2 -2
- package/lib/work/Confirmation/Confirmation.stories.d.ts.map +1 -1
- package/lib/work/Details/Details.stories.d.ts +2 -2
- package/lib/work/Details/Details.stories.d.ts.map +1 -1
- package/lib/work/GenAICoach/GenAICoach.stories.d.ts +2 -2
- package/lib/work/GenAICoach/GenAICoach.stories.d.ts.map +1 -1
- package/lib/work/GenAICoach/GenAICoach.stories.js.map +1 -1
- package/lib/work/GenAICoach/useGenAICoach.js.map +1 -1
- package/lib/work/Glimpse/Glimpse.stories.d.ts +2 -2
- package/lib/work/Glimpse/Glimpse.stories.d.ts.map +1 -1
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts +0 -1
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.d.ts.map +1 -1
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.mock.js.map +1 -1
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts +2 -2
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.d.ts.map +1 -1
- package/lib/work/HierarchicalAssignments/HierarchicalAssignments.stories.js.map +1 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts +2 -2
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.d.ts.map +1 -1
- package/lib/work/IntelligentGuidance/IntelligentGuidance.stories.js.map +1 -1
- package/lib/work/InteractionNotification/InteractionNotification.stories.d.ts +2 -2
- package/lib/work/InteractionNotification/InteractionNotification.stories.d.ts.map +1 -1
- package/lib/work/Predictions/Predictions.mocks.d.ts +0 -1
- package/lib/work/Predictions/Predictions.mocks.d.ts.map +1 -1
- package/lib/work/Predictions/Predictions.stories.d.ts +2 -2
- package/lib/work/Predictions/Predictions.stories.d.ts.map +1 -1
- package/lib/work/Predictions/Predictions.stories.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.mocks.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.d.ts +2 -2
- package/lib/work/SearchResults/SearchResults.stories.d.ts.map +1 -1
- package/lib/work/SearchResults/SearchResults.stories.js.map +1 -1
- package/lib/work/SearchResults/SearchResults.styles.d.ts +1 -1
- package/lib/work/Stages/Stages.mocks.d.ts +0 -1
- package/lib/work/Stages/Stages.mocks.d.ts.map +1 -1
- package/lib/work/Stages/Stages.stories.d.ts +2 -2
- package/lib/work/Stages/Stages.stories.d.ts.map +1 -1
- package/lib/work/Stages/Stages.stories.js.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.mocks.d.ts +4 -4
- package/lib/work/Stakeholders/Stakeholders.mocks.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts +2 -2
- package/lib/work/Stakeholders/Stakeholders.stories.d.ts.map +1 -1
- package/lib/work/Stakeholders/Stakeholders.stories.js.map +1 -1
- package/lib/work/Tags/Tags.stories.d.ts +2 -2
- package/lib/work/Tags/Tags.stories.d.ts.map +1 -1
- package/lib/work/Tags/Tags.stories.js.map +1 -1
- package/lib/work/Tasks/TaskList.stories.d.ts +2 -2
- package/lib/work/Tasks/TaskList.stories.d.ts.map +1 -1
- package/lib/work/Tasks/Tasks.stories.d.ts +2 -2
- package/lib/work/Tasks/Tasks.stories.d.ts.map +1 -1
- package/lib/work/Tasks/Tasks.stories.js.map +1 -1
- package/lib/work/Timeline/Timeline.stories.d.ts +2 -2
- package/lib/work/Timeline/Timeline.stories.d.ts.map +1 -1
- package/lib/work/Timeline/Timeline.stories.js.map +1 -1
- package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts +2 -2
- package/lib/work/UtilitiesLayout/UtilitiesLayout.stories.d.ts.map +1 -1
- package/lib/wss/AppShell/AppShell.mocks.d.ts +0 -1
- package/lib/wss/AppShell/AppShell.mocks.d.ts.map +1 -1
- package/lib/wss/AppShell/AppShell.stories.d.ts +2 -2
- package/lib/wss/AppShell/AppShell.stories.d.ts.map +1 -1
- package/lib/wss/CaseView/CaseView.mocks.d.ts +0 -1
- package/lib/wss/CaseView/CaseView.mocks.d.ts.map +1 -1
- package/lib/wss/CaseView/CaseView.stories.d.ts +2 -2
- package/lib/wss/CaseView/CaseView.stories.d.ts.map +1 -1
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts +2 -2
- package/lib/wss/PageTemplates/PageTemplates.stories.d.ts.map +1 -1
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts +2 -2
- package/lib/wss/QuickCreate/QuickCreate.stories.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { RuleSelectProps, RuleType, RuleTypeExpandable } from '@pega/cosmos-react-build';
|
|
2
2
|
export declare const baseRuleTypes: RuleTypeExpandable[];
|
|
3
3
|
export declare const fetchRules: ({ id, filter, ruleType, start, step, delay }: {
|
|
4
|
-
id?: string
|
|
5
|
-
filter?: string
|
|
6
|
-
ruleType?: RuleType
|
|
7
|
-
start?: number
|
|
8
|
-
step?: number
|
|
9
|
-
delay?: number
|
|
4
|
+
id?: string;
|
|
5
|
+
filter?: string;
|
|
6
|
+
ruleType?: RuleType;
|
|
7
|
+
start?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
delay?: number;
|
|
10
10
|
}) => {
|
|
11
11
|
promise: Promise<{
|
|
12
12
|
total: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicInput.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.mocks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9F,eAAO,MAAM,aAAa,EAAE,kBAAkB,EA6B7C,CAAC;AAGF,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"DynamicInput.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.mocks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9F,eAAO,MAAM,aAAa,EAAE,kBAAkB,EA6B7C,CAAC;AAGF,eAAO,MAAM,UAAU,iDAOpB;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;eAKU,MAAM;iBACJ;YACP,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,QAAQ,CAAC;SAChB,EAAE;;;CAmCN,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,IAAI,CACjC,eAAe,EACf,cAAc,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAOnE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { StoryFn } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryFn } from '@storybook/react';
|
|
2
2
|
import type { ConstantFormat, Source } from '@pega/cosmos-react-build';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
5
|
interface DynamicInputStoryProps {
|
|
6
6
|
constantFormat?: ConstantFormat;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicInput.stories.d.ts","sourceRoot":"","sources":["../../../src/build/DynamicInput/DynamicInput.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
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;AAItD,OAAO,KAAK,EACV,cAAc,EAId,MAAM,EACP,MAAM,0BAA0B,CAAC;wBAuC7B,IAAI;AAjCT,wBAiCU;AAIV,UAAU,sBAAsB;IAC9B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,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,CAuX5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
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;AAGlE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAA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B;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;AAGlE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AASpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEnF,eAAe;IACb,KAAK,EAAE,oBAAoB;IAC3B,SAAS,EA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d,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,7 +1,11 @@
|
|
|
1
1
|
import { type Dispatch, type SetStateAction } from 'react';
|
|
2
|
-
import { type FieldReferenceInputProps, type FieldReferenceMenuItem, type Field, type FieldReferenceMenuProps, type FieldReferenceDisplayProps } from '@pega/cosmos-react-build';
|
|
2
|
+
import { type FieldReferenceInputProps, type FieldReferenceMenuItem, type Field, type AltContext, type FieldReferenceMenuProps, type FieldReferenceDisplayProps } from '@pega/cosmos-react-build';
|
|
3
3
|
export declare const actions: FieldReferenceDisplayProps['actions'];
|
|
4
4
|
export declare const link: FieldReferenceDisplayProps['link'];
|
|
5
|
+
export declare const getGeneratedMenuItems: (parentItem?: Field | AltContext) => FieldReferenceMenuItem[];
|
|
6
|
+
export declare const getStaticMenuItems: (parentItem?: Field | AltContext) => FieldReferenceMenuItem[];
|
|
7
|
+
export declare const defaultContext: FieldReferenceMenuProps['currentContext'];
|
|
8
|
+
export declare const defaultAltContexts: FieldReferenceMenuProps['altContexts'];
|
|
5
9
|
export declare const fieldPaths: Record<string, Field[]>;
|
|
6
10
|
interface FieldReferenceHookReturn {
|
|
7
11
|
parentItem: FieldReferenceMenuProps['parentItem'];
|
|
@@ -17,6 +21,6 @@ interface FieldReferenceHookReturn {
|
|
|
17
21
|
setMenuLoading: Dispatch<SetStateAction<boolean>>;
|
|
18
22
|
setItemsShown: Dispatch<SetStateAction<number>>;
|
|
19
23
|
}
|
|
20
|
-
export declare const useFieldReferenceMock: (dataSet:
|
|
24
|
+
export declare const useFieldReferenceMock: (dataSet: "static" | "generated") => FieldReferenceHookReturn;
|
|
21
25
|
export {};
|
|
22
26
|
//# sourceMappingURL=FieldReference.mocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldReference.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/FieldReference/FieldReference.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtF,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"FieldReference.mocks.d.ts","sourceRoot":"","sources":["../../../src/build/FieldReference/FieldReference.mocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtF,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,KAAK,EACV,KAAK,UAAU,EACf,KAAK,uBAAuB,EAE5B,KAAK,0BAA0B,EAGhC,MAAM,0BAA0B,CAAC;AAIlC,eAAO,MAAM,OAAO,EAAE,0BAA0B,CAAC,SAAS,CAOzD,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,0BAA0B,CAAC,MAAM,CAKnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,gBACnB,KAAK,GAAG,UAAU,KAC9B,sBAAsB,EA0BxB,CAAC;AAEF,eAAO,MAAM,kBAAkB,gBAAiB,KAAK,GAAG,UAAU,KAAG,sBAAsB,EA0e1F,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,uBAAuB,CAAC,gBAAgB,CAGpE,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,uBAAuB,CAAC,aAAa,CAWrE,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,CA+J9C,CAAC;AAEF,UAAU,wBAAwB;IAChC,UAAU,EAAE,uBAAuB,CAAC,YAAY,CAAC,CAAC;IAClD,WAAW,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAChD,aAAa,EAAE,sBAAsB,EAAE,CAAC;IACxC,WAAW,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;IACpD,cAAc,EAAE,uBAAuB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,qBAAqB,EAAE,wBAAwB,CAAC,mBAAmB,CAAC,CAAC;IACrE,QAAQ,EAAE,wBAAwB,CAAC,UAAU,CAAC,CAAC;IAC/C,oBAAoB,EAAE,wBAAwB,CAAC,kBAAkB,CAAC,CAAC;IACnE,WAAW,EAAE,wBAAwB,CAAC,aAAa,CAAC,CAAC;IACrD,cAAc,EAAE,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;IAC3D,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAClD,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,qBAAqB,YACvB,QAAQ,GAAG,WAAW,KAC9B,wBAwFF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo, useRef, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { fieldReferenceMenuHelpers, getIconMapping, typeIconMapping } from '@pega/cosmos-react-build';
|
|
3
3
|
import { loadingTimeoutMS } from '../../core/Progress/Progress.mocks';
|
|
4
4
|
export const actions = [
|
|
5
5
|
{
|
|
@@ -12,9 +12,10 @@ export const actions = [
|
|
|
12
12
|
export const link = {
|
|
13
13
|
href: '#field',
|
|
14
14
|
previewable: true,
|
|
15
|
-
onPreview: () => { }
|
|
15
|
+
onPreview: () => { },
|
|
16
|
+
onClick: () => { }
|
|
16
17
|
};
|
|
17
|
-
const getGeneratedMenuItems = (parentItem) => {
|
|
18
|
+
export const getGeneratedMenuItems = (parentItem) => {
|
|
18
19
|
const types = Object.keys(typeIconMapping);
|
|
19
20
|
return [...Array(2000)].map((_, i) => {
|
|
20
21
|
const hasLongName = Math.random() > 0.5;
|
|
@@ -25,7 +26,7 @@ const getGeneratedMenuItems = (parentItem) => {
|
|
|
25
26
|
id,
|
|
26
27
|
name,
|
|
27
28
|
type,
|
|
28
|
-
icon:
|
|
29
|
+
icon: getIconMapping(type)
|
|
29
30
|
};
|
|
30
31
|
if (type === 'Field reference') {
|
|
31
32
|
item.type = `${name} (reference single)`;
|
|
@@ -39,80 +40,128 @@ const getGeneratedMenuItems = (parentItem) => {
|
|
|
39
40
|
return item;
|
|
40
41
|
});
|
|
41
42
|
};
|
|
42
|
-
const getStaticMenuItems = (parentItem) => {
|
|
43
|
+
export const getStaticMenuItems = (parentItem) => {
|
|
43
44
|
if (parentItem?.id.endsWith('cloneCase'))
|
|
44
45
|
return [
|
|
45
46
|
{
|
|
46
47
|
id: 'status',
|
|
47
48
|
name: 'Status',
|
|
48
49
|
type: 'Text',
|
|
49
|
-
icon: { set: 'streamline', name: 'dataviz-string-field' }
|
|
50
|
+
icon: { set: 'streamline', name: 'dataviz-string-field' },
|
|
51
|
+
metadata: [
|
|
52
|
+
{ name: 'Applies to', value: 'User story' },
|
|
53
|
+
{ name: 'ID', value: 'cloneCase.status' }
|
|
54
|
+
]
|
|
50
55
|
},
|
|
51
56
|
{
|
|
52
57
|
id: 'description',
|
|
53
58
|
name: 'Description',
|
|
54
59
|
type: 'Paragraph',
|
|
55
|
-
icon: { set: 'streamline', name: 'filetype-text' }
|
|
60
|
+
icon: { set: 'streamline', name: 'filetype-text' },
|
|
61
|
+
metadata: [
|
|
62
|
+
{ name: 'Applies to', value: 'User story' },
|
|
63
|
+
{ name: 'ID', value: 'cloneCase.description' }
|
|
64
|
+
]
|
|
56
65
|
},
|
|
57
66
|
{
|
|
58
67
|
id: 'completed',
|
|
59
68
|
name: 'Completed',
|
|
60
69
|
type: 'Boolean',
|
|
61
|
-
icon: { set: 'streamline', name: 'circle-mixed-left' }
|
|
70
|
+
icon: { set: 'streamline', name: 'circle-mixed-left' },
|
|
71
|
+
metadata: [
|
|
72
|
+
{ name: 'Applies to', value: 'User story' },
|
|
73
|
+
{ name: 'ID', value: 'cloneCase.completed' }
|
|
74
|
+
]
|
|
62
75
|
},
|
|
63
76
|
{
|
|
64
77
|
id: 'releaseDate',
|
|
65
78
|
name: 'Release date',
|
|
66
79
|
type: 'Date',
|
|
67
|
-
icon: { set: 'streamline', name: 'calendar-empty' }
|
|
80
|
+
icon: { set: 'streamline', name: 'calendar-empty' },
|
|
81
|
+
metadata: [
|
|
82
|
+
{ name: 'Applies to', value: 'User story' },
|
|
83
|
+
{ name: 'ID', value: 'cloneCase.releaseDate' }
|
|
84
|
+
]
|
|
68
85
|
},
|
|
69
86
|
{
|
|
70
87
|
id: 'lastUpdated',
|
|
71
88
|
name: 'Last updated',
|
|
72
89
|
type: 'Time',
|
|
73
|
-
icon: { set: 'streamline', name: 'clock' }
|
|
90
|
+
icon: { set: 'streamline', name: 'clock' },
|
|
91
|
+
metadata: [
|
|
92
|
+
{ name: 'Applies to', value: 'User story' },
|
|
93
|
+
{ name: 'ID', value: 'cloneCase.lastUpdated' }
|
|
94
|
+
]
|
|
74
95
|
},
|
|
75
96
|
{
|
|
76
97
|
id: 'createdAt',
|
|
77
98
|
name: 'Created at',
|
|
78
|
-
type: 'Date &
|
|
79
|
-
icon: { set: 'streamline', name: 'dataviz-datetime-field' }
|
|
99
|
+
type: 'Date & time',
|
|
100
|
+
icon: { set: 'streamline', name: 'dataviz-datetime-field' },
|
|
101
|
+
metadata: [
|
|
102
|
+
{ name: 'Applies to', value: 'User story' },
|
|
103
|
+
{ name: 'ID', value: 'cloneCase.createdAt' }
|
|
104
|
+
]
|
|
80
105
|
},
|
|
81
106
|
{
|
|
82
107
|
id: 'availability',
|
|
83
108
|
name: 'Availability',
|
|
84
109
|
type: 'Integer',
|
|
85
|
-
icon: { set: 'streamline', name: 'dataviz-numeric-field' }
|
|
110
|
+
icon: { set: 'streamline', name: 'dataviz-numeric-field' },
|
|
111
|
+
metadata: [
|
|
112
|
+
{ name: 'Applies to', value: 'User story' },
|
|
113
|
+
{ name: 'ID', value: 'cloneCase.availability' }
|
|
114
|
+
]
|
|
86
115
|
},
|
|
87
116
|
{
|
|
88
117
|
id: 'hoursSpent',
|
|
89
118
|
name: 'Hours spent',
|
|
90
119
|
type: 'Decimal',
|
|
91
|
-
icon: { set: 'streamline', name: 'number-decimal' }
|
|
120
|
+
icon: { set: 'streamline', name: 'number-decimal' },
|
|
121
|
+
metadata: [
|
|
122
|
+
{ name: 'Applies to', value: 'User story' },
|
|
123
|
+
{ name: 'ID', value: 'cloneCase.hoursSpent' }
|
|
124
|
+
]
|
|
92
125
|
},
|
|
93
126
|
{
|
|
94
127
|
id: 'costAnalysis',
|
|
95
128
|
name: 'Cost analysis',
|
|
96
129
|
type: 'Currency',
|
|
97
|
-
icon: { set: 'streamline', name: 'currency' }
|
|
130
|
+
icon: { set: 'streamline', name: 'currency' },
|
|
131
|
+
metadata: [
|
|
132
|
+
{ name: 'Applies to', value: 'User story' },
|
|
133
|
+
{ name: 'ID', value: 'cloneCase.costAnalysis' }
|
|
134
|
+
]
|
|
98
135
|
},
|
|
99
136
|
{
|
|
100
137
|
id: 'contactEmail',
|
|
101
138
|
name: 'Contact email',
|
|
102
139
|
type: 'Email',
|
|
103
|
-
icon: { set: 'streamline', name: 'mail' }
|
|
140
|
+
icon: { set: 'streamline', name: 'mail' },
|
|
141
|
+
metadata: [
|
|
142
|
+
{ name: 'Applies to', value: 'User story' },
|
|
143
|
+
{ name: 'ID', value: 'cloneCase.contactEmail' }
|
|
144
|
+
]
|
|
104
145
|
},
|
|
105
146
|
{
|
|
106
147
|
id: 'contactPhone',
|
|
107
148
|
name: 'Contact phone',
|
|
108
149
|
type: 'Phone',
|
|
109
|
-
icon: { set: 'streamline', name: 'phone' }
|
|
150
|
+
icon: { set: 'streamline', name: 'phone' },
|
|
151
|
+
metadata: [
|
|
152
|
+
{ name: 'Applies to', value: 'User story' },
|
|
153
|
+
{ name: 'ID', value: 'cloneCase.contactPhone' }
|
|
154
|
+
]
|
|
110
155
|
},
|
|
111
156
|
{
|
|
112
157
|
id: 'severity',
|
|
113
158
|
name: 'Severity',
|
|
114
159
|
type: 'Picklist',
|
|
115
|
-
icon: { set: 'streamline', name: 'list' }
|
|
160
|
+
icon: { set: 'streamline', name: 'list' },
|
|
161
|
+
metadata: [
|
|
162
|
+
{ name: 'Applies to', value: 'User story' },
|
|
163
|
+
{ name: 'ID', value: 'cloneCase.severity' }
|
|
164
|
+
]
|
|
116
165
|
}
|
|
117
166
|
];
|
|
118
167
|
if (parentItem?.id.endsWith('downDepStories') ||
|
|
@@ -169,7 +218,7 @@ const getStaticMenuItems = (parentItem) => {
|
|
|
169
218
|
{
|
|
170
219
|
id: 'createdAt',
|
|
171
220
|
name: 'Created at',
|
|
172
|
-
type: 'Date &
|
|
221
|
+
type: 'Date & time',
|
|
173
222
|
icon: { set: 'streamline', name: 'dataviz-datetime-field' }
|
|
174
223
|
},
|
|
175
224
|
{
|
|
@@ -211,7 +260,7 @@ const getStaticMenuItems = (parentItem) => {
|
|
|
211
260
|
{
|
|
212
261
|
id: 'verifiedBy',
|
|
213
262
|
name: 'Verified by',
|
|
214
|
-
type: 'User
|
|
263
|
+
type: 'User Reference',
|
|
215
264
|
icon: { set: 'streamline', name: 'user' }
|
|
216
265
|
},
|
|
217
266
|
{
|
|
@@ -283,7 +332,7 @@ const getStaticMenuItems = (parentItem) => {
|
|
|
283
332
|
{
|
|
284
333
|
id: 'createdAt',
|
|
285
334
|
name: 'Created at',
|
|
286
|
-
type: 'Date &
|
|
335
|
+
type: 'Date & time',
|
|
287
336
|
icon: { set: 'streamline', name: 'dataviz-datetime-field' }
|
|
288
337
|
},
|
|
289
338
|
{
|
|
@@ -416,7 +465,7 @@ const getStaticMenuItems = (parentItem) => {
|
|
|
416
465
|
{
|
|
417
466
|
id: 'createdAt',
|
|
418
467
|
name: 'Created at',
|
|
419
|
-
type: 'Date &
|
|
468
|
+
type: 'Date & time',
|
|
420
469
|
icon: { set: 'streamline', name: 'dataviz-datetime-field' }
|
|
421
470
|
},
|
|
422
471
|
{
|
|
@@ -457,29 +506,29 @@ const getStaticMenuItems = (parentItem) => {
|
|
|
457
506
|
},
|
|
458
507
|
{
|
|
459
508
|
id: 'updateUser',
|
|
460
|
-
name: '
|
|
461
|
-
type: 'User
|
|
509
|
+
name: 'Update.User',
|
|
510
|
+
type: 'User Reference',
|
|
462
511
|
icon: { set: 'streamline', name: 'user' }
|
|
463
512
|
},
|
|
464
513
|
{
|
|
465
514
|
id: 'updateUserID',
|
|
466
|
-
name: '
|
|
515
|
+
name: 'Update.UserID',
|
|
467
516
|
type: 'Text',
|
|
468
517
|
icon: { set: 'streamline', name: 'dataviz-string-field' }
|
|
469
518
|
},
|
|
470
519
|
{
|
|
471
520
|
id: 'updateUserDateTime',
|
|
472
|
-
name: '
|
|
473
|
-
type: 'Date &
|
|
521
|
+
name: 'Update.DateTime',
|
|
522
|
+
type: 'Date & time',
|
|
474
523
|
icon: { set: 'streamline', name: 'dataviz-datetime-field' }
|
|
475
524
|
}
|
|
476
525
|
];
|
|
477
526
|
};
|
|
478
|
-
const defaultContext = {
|
|
527
|
+
export const defaultContext = {
|
|
479
528
|
id: 'userStory',
|
|
480
529
|
name: 'User story'
|
|
481
530
|
};
|
|
482
|
-
const defaultAltContexts = [
|
|
531
|
+
export const defaultAltContexts = [
|
|
483
532
|
{
|
|
484
533
|
id: 'aliasVariables',
|
|
485
534
|
name: 'Aliases and Variables',
|
|
@@ -532,11 +581,11 @@ export const fieldPaths = {
|
|
|
532
581
|
icon: { set: 'streamline', name: 'clock' }
|
|
533
582
|
}
|
|
534
583
|
],
|
|
535
|
-
'Date &
|
|
584
|
+
'Date & time': [
|
|
536
585
|
{
|
|
537
586
|
id: 'createdAt',
|
|
538
587
|
name: 'Created at',
|
|
539
|
-
type: 'Date &
|
|
588
|
+
type: 'Date & time',
|
|
540
589
|
icon: { set: 'streamline', name: 'dataviz-datetime-field' }
|
|
541
590
|
}
|
|
542
591
|
],
|
|
@@ -620,11 +669,11 @@ export const fieldPaths = {
|
|
|
620
669
|
icon: { set: 'streamline', name: 'paper-clip' }
|
|
621
670
|
}
|
|
622
671
|
],
|
|
623
|
-
'User
|
|
672
|
+
'User Reference': [
|
|
624
673
|
{
|
|
625
674
|
id: 'verifiedBy',
|
|
626
675
|
name: 'Verified by',
|
|
627
|
-
type: 'User
|
|
676
|
+
type: 'User Reference',
|
|
628
677
|
icon: { set: 'streamline', name: 'user' }
|
|
629
678
|
}
|
|
630
679
|
],
|
|
@@ -669,6 +718,8 @@ export const useFieldReferenceMock = (dataSet) => {
|
|
|
669
718
|
}, [filterValue, items, itemsShown]);
|
|
670
719
|
const handleSelectedChange = selectedValue => {
|
|
671
720
|
window.clearTimeout(selectionTimeoutRef.current);
|
|
721
|
+
window.clearTimeout(altContextTimeoutRef.current);
|
|
722
|
+
setMenuLoading(false);
|
|
672
723
|
if (!selectedValue.length) {
|
|
673
724
|
setSelected([]);
|
|
674
725
|
setItems(getMenuItems());
|
|
@@ -696,6 +747,7 @@ export const useFieldReferenceMock = (dataSet) => {
|
|
|
696
747
|
}
|
|
697
748
|
};
|
|
698
749
|
const handleAltContextClick = altContext => {
|
|
750
|
+
window.clearTimeout(selectionTimeoutRef.current);
|
|
699
751
|
window.clearTimeout(altContextTimeoutRef.current);
|
|
700
752
|
setSelected([]);
|
|
701
753
|
setAltContexts(undefined);
|