@oracle/oraclejet-preact 18.0.5 → 18.0.7
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/amd/ActionCard-3f86f73f.js +1 -1
- package/amd/BarChart-5e9f46b4.js +1 -1
- package/amd/BarGroup-76ef0839.js +1 -1
- package/amd/BaseButton-19a622bc.js +1 -1
- package/amd/BaseCardView-ab799b69.js +2 -0
- package/amd/BaseCardView-ab799b69.js.map +1 -0
- package/amd/BaseCardViewSelectionTest-d026d26c.js +2 -0
- package/amd/BaseCardViewSelectionTest-d026d26c.js.map +1 -0
- package/amd/BaseNavigationListItem-fe9cb691.js +1 -1
- package/amd/BaseRichSelection-9d8f3ee4.js +1 -1
- package/amd/ButtonSet-d95872cc.js +1 -1
- package/amd/ButtonSetIconButton-7a2c113c.js +1 -1
- package/amd/Card-8e081def.js +2 -0
- package/amd/Card-8e081def.js.map +1 -0
- package/amd/CardFlexView-296f97f5.js +2 -0
- package/amd/CardFlexView-296f97f5.js.map +1 -0
- package/amd/CardGridView-054ffc3f.js +2 -0
- package/amd/CardGridView-054ffc3f.js.map +1 -0
- package/amd/Center-9ec5524e.js +2 -0
- package/amd/Center-9ec5524e.js.map +1 -0
- package/amd/Chart-e2807ff7.js +1 -1
- package/amd/CheckboxControl-83484a5a.js +1 -1
- package/amd/CheckboxRadioField-9733dd24.js +1 -1
- package/amd/Chip-cd210507.js +1 -1
- package/amd/ClearIcon-de20285c.js +1 -1
- package/amd/CollapseIcon-e030531c.js +1 -1
- package/amd/Collapsible-924afd71.js +1 -1
- package/amd/ComboChart-71c0f51f.js +1 -1
- package/amd/CompactHelpSource-74498e92.js +1 -1
- package/amd/CompactLabelAssistance-c6928282.js +2 -0
- package/amd/CompactLabelAssistance-c6928282.js.map +1 -0
- package/amd/CompactUserAssistance-3370a318.js +1 -1
- package/amd/ComponentMessageContainer-8028ba70.js +1 -1
- package/amd/ConveyorBeltItem-08720127.js +1 -1
- package/amd/DatePicker-bf0e0c69.js +2 -0
- package/amd/DatePicker-bf0e0c69.js.map +1 -0
- package/amd/DatePickerHeader-f21e020d.js +1 -1
- package/amd/Diagram-04db0931.js +2 -0
- package/amd/Diagram-04db0931.js.map +1 -0
- package/amd/Dialog-5f36f8aa.js +2 -0
- package/amd/Dialog-5f36f8aa.js.map +1 -0
- package/amd/DirectionalCollapseArrowIcon-20cef34d.js +1 -1
- package/amd/DirectionalExpandArrowIcon-e9bdb06e.js +1 -1
- package/amd/DragHandle-406d7f9a.js +2 -0
- package/amd/DragHandle-406d7f9a.js.map +1 -0
- package/amd/Dropdown-abcacf49.js +2 -0
- package/amd/Dropdown-abcacf49.js.map +1 -0
- package/amd/EnvironmentProvider-c0e1e39b.js +2 -0
- package/amd/EnvironmentProvider-c0e1e39b.js.map +1 -0
- package/amd/ExpandableList-dd3a05b4.js +1 -1
- package/amd/FilePicker-4636b49b.js +1 -1
- package/amd/Flex-3421f0df.js +2 -0
- package/amd/Flex-3421f0df.js.map +1 -0
- package/amd/Floating-5d98c1ca.js +2 -0
- package/amd/Floating-5d98c1ca.js.map +1 -0
- package/amd/FormLayout-a4a29a2d.js +1 -1
- package/amd/Gantt-d94af58e.js +1 -1
- package/amd/Grid-8911aa0f.js +2 -0
- package/amd/Grid-8911aa0f.js.map +1 -0
- package/amd/Gridlines-bef7bbfc.js +2 -0
- package/amd/Gridlines-bef7bbfc.js.map +1 -0
- package/amd/GroupLoadingIndicator-6b2ab709.js +1 -1
- package/amd/HighlightText-644bc74e.js +2 -0
- package/amd/HighlightText-644bc74e.js.map +1 -0
- package/amd/Icon-2d38c876.js +1 -1
- package/amd/IconButton-ae9a01ce.js +1 -1
- package/amd/IconMenuButton-b0468fa8.js +1 -1
- package/amd/IconProgressButton-ff5372eb.js +1 -1
- package/amd/IconSwitchButton-22f907e7.js +1 -1
- package/amd/IconToggleButton-20d411e6.js +1 -1
- package/amd/IconUserAssistance-37107cea.js +2 -0
- package/amd/IconUserAssistance-37107cea.js.map +1 -0
- package/amd/Indexer-1531dbc3.js +2 -0
- package/amd/Indexer-1531dbc3.js.map +1 -0
- package/amd/InlineHelpSource-85961e81.js +1 -1
- package/amd/InlineUserAssistance-4656c2a6.js +1 -1
- package/amd/InputDateMask-6d54c3e6.js +1 -1
- package/amd/InputDatePicker-fc39f0a6.js +1 -1
- package/amd/InputPassword-f6ea728a.js +1 -1
- package/amd/InputText-57f60b6f.js +1 -1
- package/amd/Label-3912beb2.js +1 -1
- package/amd/LabelValueLayout-194e64d9.js +1 -1
- package/amd/Layer-6f29b67f.js +2 -0
- package/amd/Layer-6f29b67f.js.map +1 -0
- package/amd/LayerHost-639b3284.js +2 -0
- package/amd/LayerHost-639b3284.js.map +1 -0
- package/amd/LayerManager-2972de92.js +2 -0
- package/amd/LayerManager-2972de92.js.map +1 -0
- package/amd/Legend-e4949499.js +1 -1
- package/amd/LineAreaChart-2ba275ab.js +2 -0
- package/amd/LineAreaChart-2ba275ab.js.map +1 -0
- package/amd/LineSeries-797d8d16.js +2 -0
- package/amd/LineSeries-797d8d16.js.map +1 -0
- package/amd/Link-c4a57187.js +1 -1
- package/amd/List-0b764e84.js +2 -0
- package/amd/List-0b764e84.js.map +1 -0
- package/amd/ListItemLayout-e0b2c71e.js +2 -0
- package/amd/ListItemLayout-e0b2c71e.js.map +1 -0
- package/amd/ListView-5bb45f81.js +2 -0
- package/amd/ListView-5bb45f81.js.map +1 -0
- package/amd/LiveRegion-9a362373.js +2 -0
- package/amd/LiveRegion-9a362373.js.map +1 -0
- package/amd/LoadMoreCollection-83413a59.js +2 -0
- package/amd/LoadMoreCollection-83413a59.js.map +1 -0
- package/amd/MaxLengthLiveRegion-bb956138.js +2 -0
- package/amd/MaxLengthLiveRegion-bb956138.js.map +1 -0
- package/amd/Menu-5d447084.js +1 -1
- package/amd/MenuButton-410aa4e1.js +1 -1
- package/amd/MenuItem-87cd59b8.js +1 -1
- package/amd/Message-621fb578.js +1 -1
- package/amd/MessageLayer-8bac8c50.js +2 -0
- package/amd/MessageLayer-8bac8c50.js.map +1 -0
- package/amd/MessageToast-06773c79.js +1 -1
- package/amd/MessagesManager-d5686336.js +1 -1
- package/amd/MeterBar-e1b4a93b.js +1 -1
- package/amd/MeterCircle-9887cf28.js +1 -1
- package/amd/Modal-7bece8d5.js +2 -0
- package/amd/Modal-7bece8d5.js.map +1 -0
- package/amd/MonthView-3d0968a1.js +2 -0
- package/amd/MonthView-3d0968a1.js.map +1 -0
- package/amd/NavigationListItem-044a79fd.js +2 -0
- package/amd/NavigationListItem-044a79fd.js.map +1 -0
- package/amd/NumberInputText-cac12eb3.js +1 -1
- package/amd/OverflowTabBar-339f34cf.js +2 -0
- package/amd/OverflowTabBar-339f34cf.js.map +1 -0
- package/amd/OverflowTabBarItem-c59db4a2.js +2 -0
- package/amd/OverflowTabBarItem-c59db4a2.js.map +1 -0
- package/amd/PRIVATE_BaseCardView.js +1 -1
- package/amd/PRIVATE_Chart.js +1 -1
- package/amd/PRIVATE_CheckboxControl.js +1 -1
- package/amd/PRIVATE_CheckboxRadioField.js +1 -1
- package/amd/PRIVATE_ClearIcon.js +1 -1
- package/amd/PRIVATE_DatePickerHeader.js +1 -1
- package/amd/PRIVATE_DatePickerLayout.js +1 -1
- package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
- package/amd/PRIVATE_FormControls.js +1 -1
- package/amd/PRIVATE_IconSwitchButton.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
- package/amd/PRIVATE_Icons/DragV.js +1 -1
- package/amd/PRIVATE_Icons/WarningS.js +1 -1
- package/amd/PRIVATE_List.js +1 -1
- package/amd/PRIVATE_LoadMoreCollection.js +1 -1
- package/amd/PRIVATE_Message.js +1 -1
- package/amd/PRIVATE_MessageLayer.js +1 -1
- package/amd/PRIVATE_MonthView.js +1 -1
- package/amd/PRIVATE_MonthYearGridView.js +1 -1
- package/amd/PRIVATE_PlotArea.js +1 -1
- package/amd/PRIVATE_RevealToggleIcon.js +1 -1
- package/amd/PRIVATE_RichSelectionCommon.js +1 -1
- package/amd/PRIVATE_SelectCommon.js +1 -1
- package/amd/PRIVATE_StyledCard.js +1 -1
- package/amd/PRIVATE_StyledCheckbox.js +1 -1
- package/amd/PRIVATE_Table.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
- package/amd/PRIVATE_TimeComponent.js +1 -1
- package/amd/PRIVATE_VirtualizedCollection.js +1 -1
- package/amd/PRIVATE_VisOverview.js +1 -1
- package/amd/PRIVATE_VisTabularDatatip.js +1 -1
- package/amd/PictoChart-48a25c75.js +1 -1
- package/amd/PieChart-2197746d.js +1 -1
- package/amd/Popup-66e79afa.js +2 -0
- package/amd/Popup-66e79afa.js.map +1 -0
- package/amd/ProgressBar-e72c5a67.js +2 -0
- package/amd/ProgressBar-e72c5a67.js.map +1 -0
- package/amd/ProgressButton-f1d27773.js +1 -1
- package/amd/ProgressButtonLabelLayout-6df4290e.js +1 -1
- package/amd/ProgressCircle-2b4ba9cd.js +2 -0
- package/amd/ProgressCircle-2b4ba9cd.js.map +1 -0
- package/amd/RadioItem-b17c346c.js +1 -1
- package/amd/RatingGauge-539ede8e.js +1 -1
- package/amd/ReadonlyTextFieldInput-608bddc1.js +1 -1
- package/amd/RemovableNavigationListItem-e01b6693.js +1 -1
- package/amd/RemovableTabBarItem-29b54206.js +1 -1
- package/amd/ReorderableTabBar-462d357c.js +1 -1
- package/amd/RevealToggleIcon-f975229d.js +1 -1
- package/amd/ScatterChart-7f0b817b.js +2 -0
- package/amd/ScatterChart-7f0b817b.js.map +1 -0
- package/amd/SectionalLegend-8f203cac.js +1 -1
- package/amd/SectionedContent-19bef3cc.js +2 -0
- package/amd/SectionedContent-19bef3cc.js.map +1 -0
- package/amd/SelectMultiple-7e9bd455.js +2 -0
- package/amd/SelectMultiple-7e9bd455.js.map +1 -0
- package/amd/SelectSingle-466bcd67.js +2 -0
- package/amd/SelectSingle-466bcd67.js.map +1 -0
- package/amd/SelectionCard-13aac54a.js +2 -0
- package/amd/SelectionCard-13aac54a.js.map +1 -0
- package/amd/Selector-2b0c34a7.js +1 -1
- package/amd/SelectorAll-1c889a9c.js +2 -0
- package/amd/SelectorAll-1c889a9c.js.map +1 -0
- package/amd/Sheet-0b58b0a5.js +2 -0
- package/amd/Sheet-0b58b0a5.js.map +1 -0
- package/amd/SplitMenuButton-031ae5e3.js +1 -1
- package/amd/StyledCard-0da6f6b5.js +2 -0
- package/amd/StyledCard-0da6f6b5.js.map +1 -0
- package/amd/StyledTextField-b4278437.js +1 -1
- package/amd/TabBar-d8890a47.js +1 -1
- package/amd/TabBarItem-547825e2.js +1 -1
- package/amd/TabBarLayout-685ac295.js +1 -1
- package/amd/TabBarMixed-a75796a6.js +1 -1
- package/amd/TabBarMixedSeparator-ed764207.js +2 -0
- package/amd/TabBarMixedSeparator-ed764207.js.map +1 -0
- package/amd/Table-87f7e3c4.js +2 -0
- package/amd/Table-87f7e3c4.js.map +1 -0
- package/amd/TableView-2b884e2c.js +2 -0
- package/amd/TableView-2b884e2c.js.map +1 -0
- package/amd/TagCloud-5dc4b5ff.js +1 -1
- package/amd/TextArea-a7a3d82f.js +1 -1
- package/amd/TextAreaAutosize-9cd2c1e8.js +1 -1
- package/amd/TextField-1021f00b.js +1 -1
- package/amd/TextFieldInput-ba4e508c.js +1 -1
- package/amd/Theme-redwood/theme.css +143 -143
- package/amd/Theme-stable/theme.css +389 -389
- package/amd/TimeComponentCanvas2D-6b4e6ead.js +1 -1
- package/amd/Toolbar-05d42276.js +1 -1
- package/amd/TruncatingBadge-7f66faaf.js +2 -0
- package/amd/TruncatingBadge-7f66faaf.js.map +1 -0
- package/amd/TruncatingText-69770aa9.js +2 -0
- package/amd/TruncatingText-69770aa9.js.map +1 -0
- package/amd/UNSAFE_ActionCard.js +1 -1
- package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
- package/amd/UNSAFE_BarChart.js +1 -1
- package/amd/UNSAFE_BaseButton.js +1 -1
- package/amd/UNSAFE_Button.js +1 -1
- package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
- package/amd/UNSAFE_ButtonSet.js +1 -1
- package/amd/UNSAFE_ButtonSetButton.js +1 -1
- package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
- package/amd/UNSAFE_ButtonSetItem.js +1 -1
- package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
- package/amd/UNSAFE_ButtonSetSingle.js +1 -1
- package/amd/UNSAFE_Card.js +1 -1
- package/amd/UNSAFE_CardFlexView.js +1 -1
- package/amd/UNSAFE_CardGridView.js +1 -1
- package/amd/UNSAFE_Center.js +1 -1
- package/amd/UNSAFE_ChartWithLegend.js +1 -1
- package/amd/UNSAFE_Checkbox.js +1 -1
- package/amd/UNSAFE_CheckboxItem.js +1 -1
- package/amd/UNSAFE_CheckboxSet.js +1 -1
- package/amd/UNSAFE_Chip.js +1 -1
- package/amd/UNSAFE_Collapsible.js +1 -1
- package/amd/UNSAFE_ComboChart.js +1 -1
- package/amd/UNSAFE_ComponentMessage.js +1 -1
- package/amd/UNSAFE_ConveyorBelt.js +1 -1
- package/amd/UNSAFE_DatePicker.js +1 -1
- package/amd/UNSAFE_Diagram.js +1 -1
- package/amd/UNSAFE_Dialog.js +1 -1
- package/amd/UNSAFE_DragHandle.js +1 -1
- package/amd/UNSAFE_DrawerLayout.js +1 -1
- package/amd/UNSAFE_DrawerPopup.js +1 -1
- package/amd/UNSAFE_Dropdown.js +1 -1
- package/amd/UNSAFE_Environment.js +1 -1
- package/amd/UNSAFE_ExpandableList.js +1 -1
- package/amd/UNSAFE_FilePicker.js +1 -1
- package/amd/UNSAFE_Flex.js +1 -1
- package/amd/UNSAFE_Floating.js +1 -1
- package/amd/UNSAFE_FormLayout.js +1 -1
- package/amd/UNSAFE_Gantt.js +1 -1
- package/amd/UNSAFE_Grid.js +1 -1
- package/amd/UNSAFE_HighlightText.js +1 -1
- package/amd/UNSAFE_Icon.js +1 -1
- package/amd/UNSAFE_IconButton.js +1 -1
- package/amd/UNSAFE_IconMenuButton.js +1 -1
- package/amd/UNSAFE_IconProgressButton.js +1 -1
- package/amd/UNSAFE_IconToggleButton.js +1 -1
- package/amd/UNSAFE_Indexer.js +1 -1
- package/amd/UNSAFE_InputDateMask.js +1 -1
- package/amd/UNSAFE_InputDatePicker.js +1 -1
- package/amd/UNSAFE_InputPassword.js +1 -1
- package/amd/UNSAFE_InputSensitiveText.js +1 -1
- package/amd/UNSAFE_InputText.js +1 -1
- package/amd/UNSAFE_InputTimeMask.js +1 -1
- package/amd/UNSAFE_Label.js +1 -1
- package/amd/UNSAFE_LabelValueLayout.js +1 -1
- package/amd/UNSAFE_LabelledLink.js +1 -1
- package/amd/UNSAFE_Layer.js +1 -1
- package/amd/UNSAFE_Legend.js +1 -1
- package/amd/UNSAFE_LineAreaChart.js +1 -1
- package/amd/UNSAFE_Link.js +1 -1
- package/amd/UNSAFE_ListItemLayout.js +1 -1
- package/amd/UNSAFE_ListView.js +1 -1
- package/amd/UNSAFE_LiveRegion.js +1 -1
- package/amd/UNSAFE_Menu.js +1 -1
- package/amd/UNSAFE_MenuButton.js +1 -1
- package/amd/UNSAFE_MessageBanner.js +1 -1
- package/amd/UNSAFE_MessageToast.js +1 -1
- package/amd/UNSAFE_MeterBar.js +1 -1
- package/amd/UNSAFE_MeterCircle.js +1 -1
- package/amd/UNSAFE_Modal.js +1 -1
- package/amd/UNSAFE_NavigationList.js +1 -1
- package/amd/UNSAFE_NavigationListCommon.js +1 -1
- package/amd/UNSAFE_NumberInputText.js +1 -1
- package/amd/UNSAFE_OverflowTabBar.js +1 -1
- package/amd/UNSAFE_PictoChart.js +1 -1
- package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
- package/amd/UNSAFE_PieChart.js +1 -1
- package/amd/UNSAFE_Popup.js +1 -1
- package/amd/UNSAFE_ProgressBar.js +1 -1
- package/amd/UNSAFE_ProgressButton.js +1 -1
- package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
- package/amd/UNSAFE_ProgressCircle.js +1 -1
- package/amd/UNSAFE_RadioItem.js +1 -1
- package/amd/UNSAFE_RadioSet.js +1 -1
- package/amd/UNSAFE_RatingGauge.js +1 -1
- package/amd/UNSAFE_ReorderableTabBar.js +1 -1
- package/amd/UNSAFE_RichCheckboxSet.js +1 -1
- package/amd/UNSAFE_RichRadioSet.js +1 -1
- package/amd/UNSAFE_RichSelectionItem.js +1 -1
- package/amd/UNSAFE_ScatterChart.js +1 -1
- package/amd/UNSAFE_SectionalLegend.js +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -1
- package/amd/UNSAFE_SelectionCard.js +1 -1
- package/amd/UNSAFE_Selector.js +1 -1
- package/amd/UNSAFE_SelectorAll.js +1 -1
- package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
- package/amd/UNSAFE_Sheet.js +1 -1
- package/amd/UNSAFE_SplitMenuButton.js +1 -1
- package/amd/UNSAFE_TabBar.js +1 -1
- package/amd/UNSAFE_TabBarCommon.js +1 -1
- package/amd/UNSAFE_TabBarMixed.js +1 -1
- package/amd/UNSAFE_TableView.js +1 -1
- package/amd/UNSAFE_TagCloud.js +1 -1
- package/amd/UNSAFE_TextArea.js +1 -1
- package/amd/UNSAFE_TextAreaAutosize.js +1 -1
- package/amd/UNSAFE_TextField.js +1 -1
- package/amd/UNSAFE_ToggleButton.js +1 -1
- package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
- package/amd/UNSAFE_Toolbar.js +1 -1
- package/amd/UNSAFE_Train.js +1 -1
- package/amd/UNSAFE_TruncatingBadge.js +1 -1
- package/amd/UNSAFE_TruncatingText.js +1 -1
- package/amd/UNSAFE_UserAssistance.js +1 -1
- package/amd/UNSAFE_View.js +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -1
- package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
- package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
- package/amd/UNSAFE_VisStatusMessage.js +1 -1
- package/amd/UNSAFE_WindowOverlay.js +1 -1
- package/amd/View-bd5c7fa7.js +2 -0
- package/amd/View-bd5c7fa7.js.map +1 -0
- package/amd/VirtualizedCollection-897516a5.js +2 -0
- package/amd/VirtualizedCollection-897516a5.js.map +1 -0
- package/amd/VirtualizedListView-cbe87ec2.js +2 -0
- package/amd/VirtualizedListView-cbe87ec2.js.map +1 -0
- package/amd/VisNoData-10983ace.js +2 -0
- package/amd/VisNoData-10983ace.js.map +1 -0
- package/amd/VisProgressiveLoader-06a60c8f.js +2 -0
- package/amd/VisProgressiveLoader-06a60c8f.js.map +1 -0
- package/amd/VisTabularDatatip-55bbd19f.js +2 -0
- package/amd/VisTabularDatatip-55bbd19f.js.map +1 -0
- package/amd/WindowOverlay-43c10424.js +2 -0
- package/amd/WindowOverlay-43c10424.js.map +1 -0
- package/amd/YearsGridView-d7b2184e.js +2 -0
- package/amd/YearsGridView-d7b2184e.js.map +1 -0
- package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
- package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
- package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
- package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
- package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
- package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
- package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
- package/amd/hooks/PRIVATE_useCssVars.js +1 -1
- package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
- package/amd/hooks/PRIVATE_useDatatip.js +1 -1
- package/amd/hooks/PRIVATE_useFloating.js +1 -1
- package/amd/hooks/PRIVATE_useReorderable.js +1 -1
- package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
- package/amd/hooks/PRIVATE_useSelection.js +1 -1
- package/amd/hooks/PRIVATE_useTabBar.js +1 -1
- package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
- package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
- package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
- package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
- package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
- package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
- package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
- package/amd/hooks/UNSAFE_useDensity.js +1 -1
- package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
- package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
- package/amd/hooks/UNSAFE_useScale.js +1 -1
- package/amd/hooks/UNSAFE_useTestId.js +1 -1
- package/amd/hooks/UNSAFE_useTheme.js +1 -1
- package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
- package/amd/hooks/UNSAFE_useTooltip.js +1 -1
- package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
- package/amd/hooks/UNSAFE_useUser.js +1 -1
- package/amd/index-95227deb.js +2 -0
- package/amd/index-95227deb.js.map +1 -0
- package/amd/listViewSelectionTests-c9777ea8.js +1 -1
- package/amd/render-85c034d7.js +2 -0
- package/amd/render-85c034d7.js.map +1 -0
- package/amd/tabbableUtils-591fdc8d.js +2 -0
- package/amd/tabbableUtils-591fdc8d.js.map +1 -0
- package/amd/testData-02652eda.js +2 -0
- package/amd/testData-02652eda.js.map +1 -0
- package/amd/tooltipUtils-e5bdb734.js +2 -0
- package/amd/tooltipUtils-e5bdb734.js.map +1 -0
- package/amd/useCellNavigation-1feec094.js +1 -1
- package/amd/useChartContextMenu-8606bfa2.js +1 -1
- package/amd/useChartDatatip-947eeffe.js +2 -0
- package/amd/useChartDatatip-947eeffe.js.map +1 -0
- package/amd/useColorScheme-443e7cc7.js +2 -0
- package/amd/useColorScheme-443e7cc7.js.map +1 -0
- package/amd/useContextMenu-e08aad46.js +1 -1
- package/amd/useCssVars-dc52806c.js +2 -0
- package/amd/useCssVars-dc52806c.js.map +1 -0
- package/amd/useCurrentBgColor-50142bd8.js +2 -0
- package/amd/useCurrentBgColor-50142bd8.js.map +1 -0
- package/amd/useCurrentKey-a993db56.js +2 -0
- package/amd/useCurrentKey-a993db56.js.map +1 -0
- package/amd/useDatatip-9942601b.js +2 -0
- package/amd/useDatatip-9942601b.js.map +1 -0
- package/amd/useDensity-f0f7ae9a.js +2 -0
- package/amd/useDensity-f0f7ae9a.js.map +1 -0
- package/amd/useFloating-bf8ed6cb.js +2 -0
- package/amd/useFloating-bf8ed6cb.js.map +1 -0
- package/amd/useKeyboardEvents-8ada7a1f.js +2 -0
- package/amd/useKeyboardEvents-8ada7a1f.js.map +1 -0
- package/amd/useLegendContextMenu-e629139a.js +1 -1
- package/amd/useMeterDatatip-173593b4.js +2 -0
- package/amd/useMeterDatatip-173593b4.js.map +1 -0
- package/amd/useOutsideClick-76c1ff6e.js +2 -0
- package/amd/useOutsideClick-76c1ff6e.js.map +1 -0
- package/amd/usePopupAnimation-6e53a0fe.js +2 -0
- package/amd/usePopupAnimation-6e53a0fe.js.map +1 -0
- package/amd/usePrefixSuffix-f7544e05.js +2 -0
- package/amd/usePrefixSuffix-f7544e05.js.map +1 -0
- package/amd/useReorderableItem-726c3c03.js +2 -0
- package/amd/useReorderableItem-726c3c03.js.map +1 -0
- package/amd/useRovingTabIndexContainer-473f7e43.js +2 -0
- package/amd/useRovingTabIndexContainer-473f7e43.js.map +1 -0
- package/amd/useScale-e311d35f.js +2 -0
- package/amd/useScale-e311d35f.js.map +1 -0
- package/amd/useSelectCommon-d9c4a7bd.js +2 -0
- package/amd/useSelectCommon-d9c4a7bd.js.map +1 -0
- package/amd/useSelectDrill-216c007c.js +2 -0
- package/amd/useSelectDrill-216c007c.js.map +1 -0
- package/amd/useSelection-01203394.js +2 -0
- package/amd/useSelection-01203394.js.map +1 -0
- package/amd/useSelection-4249360e.js +2 -0
- package/amd/useSelection-4249360e.js.map +1 -0
- package/amd/useTabBar-2c4573fe.js +1 -1
- package/amd/useTestId-b5cd4766.js +2 -0
- package/amd/useTestId-b5cd4766.js.map +1 -0
- package/amd/useTheme-a8334e06.js +2 -0
- package/amd/useTheme-a8334e06.js.map +1 -0
- package/amd/useThemeInterpolations-ab618dee.js +2 -0
- package/amd/useThemeInterpolations-ab618dee.js.map +1 -0
- package/amd/useTooltip-b43ad881.js +2 -0
- package/amd/useTooltip-b43ad881.js.map +1 -0
- package/amd/useTooltipControlled-ee3276de.js +2 -0
- package/amd/useTooltipControlled-ee3276de.js.map +1 -0
- package/amd/useTranslationBundle-d07d4b20.js +2 -0
- package/amd/useTranslationBundle-d07d4b20.js.map +1 -0
- package/amd/useUser-3ef25571.js +2 -0
- package/amd/useUser-3ef25571.js.map +1 -0
- package/amd/useVisDragModeControls-a5685835.js +1 -1
- package/amd/useVisEvents-dc86164f.js +2 -0
- package/amd/useVisEvents-dc86164f.js.map +1 -0
- package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
- package/amd/utils/PRIVATE_visTestUtils.js +1 -1
- package/amd/withDirectionIcon-74c39ee3.js +2 -0
- package/amd/withDirectionIcon-74c39ee3.js.map +1 -0
- package/amd/withThemeProps-4c23997e.js +1 -1
- package/cjs/ActionCard-61b21d6c.js +1 -1
- package/cjs/BarChart-93a3813c.js +181 -0
- package/cjs/BarChart-93a3813c.js.map +1 -0
- package/cjs/BarGroup-4a24a995.js +1 -1
- package/cjs/BaseButton-3a0bf8e4.js +2 -2
- package/cjs/BaseCardView-ade994f5.js +7 -7
- package/cjs/BaseCardViewSelectionTest-c6f05079.js +734 -0
- package/cjs/BaseCardViewSelectionTest-c6f05079.js.map +1 -0
- package/cjs/BaseNavigationListItem-50e4c603.js +1 -1
- package/cjs/BaseRichSelection-e73cac1d.js +8 -8
- package/cjs/ButtonSet-90db1168.js +2 -2
- package/cjs/ButtonSetIconButton-f3b4a721.js +3 -3
- package/cjs/Card-a0dadf5f.js +17 -0
- package/cjs/Card-a0dadf5f.js.map +1 -0
- package/cjs/Center-9f407cb2.js +18 -0
- package/cjs/Center-9f407cb2.js.map +1 -0
- package/cjs/Chart-40d95d14.js +451 -0
- package/cjs/Chart-40d95d14.js.map +1 -0
- package/cjs/CheckboxControl-5beb656d.js +6 -6
- package/cjs/CheckboxRadioField-0d5c9def.js +6 -6
- package/cjs/CheckboxSet-1bdbc419.js +53 -0
- package/cjs/CheckboxSet-1bdbc419.js.map +1 -0
- package/cjs/Chip-f12bb8cd.js +1 -1
- package/cjs/ClearIcon-edcc3f6e.js +1 -1
- package/cjs/CollapseIcon-2394e7ea.js +1 -1
- package/cjs/Collapsible-41311eb0.js +2 -2
- package/cjs/ComboChart-cffd0759.js +174 -0
- package/cjs/ComboChart-cffd0759.js.map +1 -0
- package/cjs/CompactHelpSource-61ead0c7.js +2 -2
- package/cjs/CompactLabelAssistance-ec1e72af.js +36 -0
- package/cjs/CompactLabelAssistance-ec1e72af.js.map +1 -0
- package/cjs/CompactUserAssistance-391bf7ca.js +4 -4
- package/cjs/ComponentMessageContainer-24e79106.js +4 -4
- package/cjs/ConveyorBeltItem-ac146ef0.js +2 -2
- package/cjs/DatePicker-d99097e4.js +566 -0
- package/cjs/DatePicker-d99097e4.js.map +1 -0
- package/cjs/DatePickerHeader-0938a3aa.js +3 -3
- package/cjs/Diagram-aceccb23.js +2028 -0
- package/cjs/Diagram-aceccb23.js.map +1 -0
- package/cjs/Dialog-2219a24f.js +318 -0
- package/cjs/Dialog-2219a24f.js.map +1 -0
- package/cjs/DirectionalCollapseArrowIcon-0cf2279a.js +1 -1
- package/cjs/DirectionalExpandArrowIcon-a362cb2f.js +1 -1
- package/cjs/DragHandle-951c36ef.js +24 -0
- package/cjs/DragHandle-951c36ef.js.map +1 -0
- package/cjs/Dropdown-00e73e4d.js +82 -0
- package/cjs/Dropdown-00e73e4d.js.map +1 -0
- package/cjs/EnvironmentProvider-bfd5febc.js +61 -0
- package/cjs/EnvironmentProvider-bfd5febc.js.map +1 -0
- package/cjs/ExpandableList-be84ca8e.js +3 -3
- package/cjs/FilePicker-f93470cf.js +2 -2
- package/cjs/Flex-ce16a2fa.js +33 -0
- package/cjs/Flex-ce16a2fa.js.map +1 -0
- package/cjs/Floating-3a80c067.js +464 -0
- package/cjs/Floating-3a80c067.js.map +1 -0
- package/cjs/FormLayout-86e60b6c.js +1 -1
- package/cjs/Gantt-7b6b99a0.js +9 -9
- package/cjs/Grid-b8fadf4a.js +29 -0
- package/cjs/Grid-b8fadf4a.js.map +1 -0
- package/cjs/Gridlines-22c46764.js +171 -0
- package/cjs/Gridlines-22c46764.js.map +1 -0
- package/cjs/GroupLoadingIndicator-5940d185.js +1 -1
- package/cjs/HighlightText-2061d12d.js +33 -0
- package/cjs/HighlightText-2061d12d.js.map +1 -0
- package/cjs/Icon-c024b93c.js +3 -3
- package/cjs/IconButton-28559efb.js +3 -3
- package/cjs/IconMenuButton-2a108d43.js +3 -3
- package/cjs/IconProgressButton-01d95e57.js +3 -3
- package/cjs/IconSwitchButton-a1016218.js +3 -3
- package/cjs/IconToggleButton-52f6f126.js +3 -3
- package/cjs/IconUserAssistance-3faf6a09.js +75 -0
- package/cjs/IconUserAssistance-3faf6a09.js.map +1 -0
- package/cjs/Indexer-72430806.js +4 -4
- package/cjs/InlineHelpSource-0549100d.js +1 -1
- package/cjs/InlineUserAssistance-820162f4.js +5 -5
- package/cjs/InputDateMask-a7575cef.js +7 -7
- package/cjs/InputDatePicker-bc2c534a.js +8 -8
- package/cjs/InputPassword-eb6d227b.js +4 -4
- package/cjs/InputText-a9c423c3.js +6 -6
- package/cjs/Label-e0d15892.js +5 -5
- package/cjs/LabelValueLayout-4049c1a1.js +1 -1
- package/cjs/Layer-49394ca6.js +91 -0
- package/cjs/Layer-49394ca6.js.map +1 -0
- package/cjs/LayerHost-7182bfaf.js +45 -0
- package/cjs/LayerHost-7182bfaf.js.map +1 -0
- package/cjs/LayerManager-db087520.js +36 -0
- package/cjs/LayerManager-db087520.js.map +1 -0
- package/cjs/Legend-33a7824e.js +3 -3
- package/cjs/LineAreaChart-bb1350fa.js +172 -0
- package/cjs/LineAreaChart-bb1350fa.js.map +1 -0
- package/cjs/LineSeries-995be81c.js +112 -0
- package/cjs/LineSeries-995be81c.js.map +1 -0
- package/cjs/Link-b8435440.js +1 -1
- package/cjs/List-0dc2c4c4.js +5 -5
- package/cjs/ListItemLayout-bc581097.js +112 -0
- package/cjs/ListItemLayout-bc581097.js.map +1 -0
- package/cjs/ListView-17b8250d.js +3 -3
- package/cjs/LiveRegion-3bc583c6.js +41 -0
- package/cjs/LiveRegion-3bc583c6.js.map +1 -0
- package/cjs/MaxLengthCounter-9ab3f74b.js +27 -0
- package/cjs/MaxLengthCounter-9ab3f74b.js.map +1 -0
- package/cjs/MaxLengthLiveRegion-5e31c44e.js +25 -0
- package/cjs/MaxLengthLiveRegion-5e31c44e.js.map +1 -0
- package/cjs/Menu-658212ed.js +6 -6
- package/cjs/MenuButton-1599ce50.js +2 -2
- package/cjs/MenuItem-c459d748.js +1 -1
- package/cjs/Message-33a66325.js +2 -2
- package/cjs/MessageLayer-fc21a223.js +61 -0
- package/cjs/MessageLayer-fc21a223.js.map +1 -0
- package/cjs/MessageToast-0b1d66ed.js +8 -8
- package/cjs/MessagesManager-1ae749bf.js +3 -3
- package/cjs/MeterBar-0adbe81a.js +5 -5
- package/cjs/MeterCircle-97a75b35.js +5 -5
- package/cjs/Modal-76b3a4d9.js +264 -0
- package/cjs/Modal-76b3a4d9.js.map +1 -0
- package/cjs/MonthView-458d3d61.js +210 -0
- package/cjs/MonthView-458d3d61.js.map +1 -0
- package/cjs/NavigationListItem-4c4e804d.js +5 -5
- package/cjs/NumberInputText-3f25f408.js +6 -6
- package/cjs/OverflowTabBarItem-3c7adb01.js +3 -3
- package/cjs/PRIVATE_BaseCardView.js +22 -22
- package/cjs/PRIVATE_Chart.js +35 -35
- package/cjs/PRIVATE_CheckboxControl.js +23 -23
- package/cjs/PRIVATE_CheckboxRadioField.js +24 -24
- package/cjs/PRIVATE_ClearIcon.js +18 -18
- package/cjs/PRIVATE_DatePickerHeader.js +19 -19
- package/cjs/PRIVATE_DatePickerLayout.js +4 -4
- package/cjs/PRIVATE_EmbeddedIconButton.js +3 -3
- package/cjs/PRIVATE_FormControls.js +19 -19
- package/cjs/PRIVATE_IconSwitchButton.js +16 -16
- package/cjs/PRIVATE_Icons/CheckboxMixed.js +16 -16
- package/cjs/PRIVATE_Icons/CheckboxOff.js +16 -16
- package/cjs/PRIVATE_Icons/CheckboxOn.js +16 -16
- package/cjs/PRIVATE_Icons/DragV.js +16 -16
- package/cjs/PRIVATE_Icons/WarningS.js +16 -16
- package/cjs/PRIVATE_List.js +20 -20
- package/cjs/PRIVATE_Message.js +19 -19
- package/cjs/PRIVATE_MessageLayer.js +12 -12
- package/cjs/PRIVATE_MonthView.js +7 -7
- package/cjs/PRIVATE_MonthYearGridView.js +7 -7
- package/cjs/PRIVATE_PlotArea.js +4 -4
- package/cjs/PRIVATE_RevealToggleIcon.js +17 -17
- package/cjs/PRIVATE_RichSelectionCommon.js +25 -25
- package/cjs/PRIVATE_SelectCommon.js +28 -28
- package/cjs/PRIVATE_StyledCard.js +4 -4
- package/cjs/PRIVATE_StyledCheckbox.js +16 -16
- package/cjs/PRIVATE_Table.js +24 -24
- package/cjs/PRIVATE_ThemedIcons/CalendarIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ChartPanIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ChartZoomIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CheckIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CheckboxOffIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CheckboxOnIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CloseIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CollapseIcon.js +17 -17
- package/cjs/PRIVATE_ThemedIcons/CollapseUpIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/DecrementIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/DeleteIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +17 -17
- package/cjs/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +17 -17
- package/cjs/PRIVATE_ThemedIcons/DragHandleIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/DropdownArrowIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ExpandIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/HelpIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/IncrementIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MessageErrorIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MessageInfoIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MessageWarningIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/MinusIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/NavDownIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/PlusIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/RadioOffIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/RadioOnIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/SortAscendingIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/SortDescendingIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ViewHideIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/ViewIcon.js +16 -16
- package/cjs/PRIVATE_TimeComponent.js +18 -18
- package/cjs/PRIVATE_VisOverview.js +16 -16
- package/cjs/PRIVATE_VisTabularDatatip.js +4 -4
- package/cjs/PictoChart-292f6c54.js +6 -6
- package/cjs/PieChart-411377a1.js +6 -6
- package/cjs/Popup-3e6b37ba.js +249 -0
- package/cjs/Popup-3e6b37ba.js.map +1 -0
- package/cjs/ProgressBar-ee008afc.js +64 -0
- package/cjs/ProgressBar-ee008afc.js.map +1 -0
- package/cjs/ProgressButton-433a67b5.js +3 -3
- package/cjs/ProgressButtonLabelLayout-13908869.js +3 -3
- package/cjs/ProgressCircle-e91f65f3.js +50 -0
- package/cjs/ProgressCircle-e91f65f3.js.map +1 -0
- package/cjs/RadioItem-c6ada23a.js +6 -6
- package/cjs/RatingGauge-4f129f42.js +7 -7
- package/cjs/ReadonlyTextFieldInput-af4ddced.js +1 -1
- package/cjs/RemovableNavigationListItem-0eea31bc.js +1 -1
- package/cjs/RemovableTabBarItem-ff408dff.js +2 -2
- package/cjs/ReorderableTabBar-344938e7.js +3 -3
- package/cjs/RevealToggleIcon-2e88a00a.js +1 -1
- package/cjs/ScatterChart-763e1f3e.js +105 -0
- package/cjs/ScatterChart-763e1f3e.js.map +1 -0
- package/cjs/SectionalLegend-da9d7dc4.js +4 -4
- package/cjs/SectionedContent-2210037c.js +67 -0
- package/cjs/SectionedContent-2210037c.js.map +1 -0
- package/cjs/SelectMultiple-b1f05b9f.js +8 -8
- package/cjs/SelectSingle-84b0b3eb.js +7 -7
- package/cjs/SelectionCard-e26feb4d.js +18 -0
- package/cjs/SelectionCard-e26feb4d.js.map +1 -0
- package/cjs/Selector-565b3810.js +1 -1
- package/cjs/SelectorAll-e81b943f.js +71 -0
- package/cjs/SelectorAll-e81b943f.js.map +1 -0
- package/cjs/Sheet-73cb51b2.js +161 -0
- package/cjs/Sheet-73cb51b2.js.map +1 -0
- package/cjs/SplitMenuButton-de680884.js +2 -2
- package/cjs/StyledCard-f6b7f046.js +107 -0
- package/cjs/StyledCard-f6b7f046.js.map +1 -0
- package/cjs/StyledTextField-3289e35c.js +3 -3
- package/cjs/TabBar-bf94b95a.js +5 -5
- package/cjs/TabBarItem-00fcf601.js +3 -3
- package/cjs/TabBarLayout-846a4d9a.js +1 -1
- package/cjs/TabBarMixed-975141a6.js +5 -5
- package/cjs/TabBarMixedSeparator-0f55c6f6.js +21 -0
- package/cjs/TabBarMixedSeparator-0f55c6f6.js.map +1 -0
- package/cjs/Table-90fe7ad8.js +9 -9
- package/cjs/TagCloud-ff6f5158.js +8 -8
- package/cjs/TextArea-e7f98e9f.js +162 -0
- package/cjs/TextArea-e7f98e9f.js.map +1 -0
- package/cjs/TextAreaAutosize-d96c7038.js +246 -0
- package/cjs/TextAreaAutosize-d96c7038.js.map +1 -0
- package/cjs/TextField-976ee745.js +3 -3
- package/cjs/TextFieldInput-e83921a4.js +1 -1
- package/cjs/Theme-redwood/theme.css +189 -189
- package/cjs/Theme-stable/theme.css +269 -269
- package/cjs/TimeComponentCanvas2D-952a80c3.js +5 -5
- package/cjs/Toolbar-f94296cb.js +1 -1
- package/cjs/TruncatingBadge-3a82f13b.js +36 -0
- package/cjs/TruncatingBadge-3a82f13b.js.map +1 -0
- package/cjs/TruncatingText-df3db482.js +50 -0
- package/cjs/TruncatingText-df3db482.js.map +1 -0
- package/cjs/UNSAFE_ActionCard.js +3 -3
- package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +36 -36
- package/cjs/UNSAFE_BarChart.js +36 -36
- package/cjs/UNSAFE_BaseButton.js +3 -3
- package/cjs/UNSAFE_Button.js +3 -3
- package/cjs/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +21 -21
- package/cjs/UNSAFE_ButtonSet.js +4 -4
- package/cjs/UNSAFE_ButtonSetButton.js +3 -3
- package/cjs/UNSAFE_ButtonSetIconButton.js +16 -16
- package/cjs/UNSAFE_ButtonSetItem.js +16 -16
- package/cjs/UNSAFE_ButtonSetMultiple.js +4 -4
- package/cjs/UNSAFE_ButtonSetSingle.js +4 -4
- package/cjs/UNSAFE_Card.js +5 -5
- package/cjs/UNSAFE_CardFlexView.js +22 -22
- package/cjs/UNSAFE_CardGridView.js +22 -22
- package/cjs/UNSAFE_Center.js +5 -5
- package/cjs/UNSAFE_ChartWithLegend.js +4 -4
- package/cjs/UNSAFE_Checkbox.js +23 -23
- package/cjs/UNSAFE_CheckboxItem.js +103 -52
- package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
- package/cjs/UNSAFE_CheckboxSet.js +38 -67
- package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_Chip.js +2 -2
- package/cjs/UNSAFE_Collapsible.js +18 -18
- package/cjs/UNSAFE_ComboChart.js +38 -38
- package/cjs/UNSAFE_ComponentMessage.js +19 -19
- package/cjs/UNSAFE_ConveyorBelt.js +16 -16
- package/cjs/UNSAFE_DatePicker.js +24 -24
- package/cjs/UNSAFE_Diagram.js +21 -21
- package/cjs/UNSAFE_Dialog.js +21 -21
- package/cjs/UNSAFE_DragHandle.js +18 -18
- package/cjs/UNSAFE_DrawerLayout.js +12 -12
- package/cjs/UNSAFE_DrawerPopup.js +11 -11
- package/cjs/UNSAFE_Dropdown.js +13 -13
- package/cjs/UNSAFE_Environment.js +4 -4
- package/cjs/UNSAFE_ExpandableList.js +23 -23
- package/cjs/UNSAFE_FilePicker.js +4 -4
- package/cjs/UNSAFE_Flex.js +4 -4
- package/cjs/UNSAFE_Floating.js +11 -11
- package/cjs/UNSAFE_FormLayout.js +2 -2
- package/cjs/UNSAFE_Gantt.js +23 -23
- package/cjs/UNSAFE_Grid.js +4 -4
- package/cjs/UNSAFE_HighlightText.js +4 -4
- package/cjs/UNSAFE_Icon.js +16 -16
- package/cjs/UNSAFE_IconButton.js +16 -16
- package/cjs/UNSAFE_IconMenuButton.js +21 -21
- package/cjs/UNSAFE_IconProgressButton.js +19 -19
- package/cjs/UNSAFE_IconToggleButton.js +16 -16
- package/cjs/UNSAFE_Indexer.js +6 -6
- package/cjs/UNSAFE_InputDateMask.js +24 -24
- package/cjs/UNSAFE_InputDatePicker.js +32 -32
- package/cjs/UNSAFE_InputPassword.js +23 -23
- package/cjs/UNSAFE_InputSensitiveText.js +25 -25
- package/cjs/UNSAFE_InputText.js +26 -26
- package/cjs/UNSAFE_InputTimeMask.js +24 -24
- package/cjs/UNSAFE_Label.js +23 -23
- package/cjs/UNSAFE_LabelValueLayout.js +4 -4
- package/cjs/UNSAFE_LabelledLink.js +24 -24
- package/cjs/UNSAFE_Layer.js +8 -8
- package/cjs/UNSAFE_Legend.js +24 -24
- package/cjs/UNSAFE_LineAreaChart.js +38 -38
- package/cjs/UNSAFE_Link.js +2 -2
- package/cjs/UNSAFE_ListItemLayout.js +5 -5
- package/cjs/UNSAFE_ListView.js +28 -28
- package/cjs/UNSAFE_LiveRegion.js +4 -4
- package/cjs/UNSAFE_Menu.js +23 -23
- package/cjs/UNSAFE_MenuButton.js +21 -21
- package/cjs/UNSAFE_MessageBanner.js +19 -19
- package/cjs/UNSAFE_MessageToast.js +22 -22
- package/cjs/UNSAFE_MeterBar.js +16 -16
- package/cjs/UNSAFE_MeterCircle.js +17 -17
- package/cjs/UNSAFE_Modal.js +8 -8
- package/cjs/UNSAFE_NavigationList.js +20 -20
- package/cjs/UNSAFE_NavigationListCommon.js +18 -18
- package/cjs/UNSAFE_NumberInputText.js +25 -25
- package/cjs/UNSAFE_OverflowTabBar.js +24 -24
- package/cjs/UNSAFE_PictoChart.js +14 -14
- package/cjs/UNSAFE_PieChart/__test__/PieChart.spec.js +21 -21
- package/cjs/UNSAFE_PieChart.js +21 -21
- package/cjs/UNSAFE_Popup.js +16 -16
- package/cjs/UNSAFE_ProgressBar.js +5 -5
- package/cjs/UNSAFE_ProgressButton.js +19 -19
- package/cjs/UNSAFE_ProgressButtonLabelLayout.js +10 -10
- package/cjs/UNSAFE_ProgressCircle.js +4 -4
- package/cjs/UNSAFE_RadioItem.js +23 -23
- package/cjs/UNSAFE_RadioSet.js +23 -23
- package/cjs/UNSAFE_RatingGauge.js +17 -17
- package/cjs/UNSAFE_ReorderableTabBar.js +24 -24
- package/cjs/UNSAFE_RichCheckboxSet.js +39 -37
- package/cjs/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_RichRadioSet.js +25 -25
- package/cjs/UNSAFE_RichSelectionItem.js +196 -59
- package/cjs/UNSAFE_RichSelectionItem.js.map +1 -1
- package/cjs/UNSAFE_ScatterChart.js +38 -38
- package/cjs/UNSAFE_SectionalLegend.js +25 -25
- package/cjs/UNSAFE_SelectMultiple.js +30 -30
- package/cjs/UNSAFE_SelectSingle.js +30 -30
- package/cjs/UNSAFE_SelectionCard.js +5 -5
- package/cjs/UNSAFE_Selector.js +16 -16
- package/cjs/UNSAFE_SelectorAll.js +20 -20
- package/cjs/UNSAFE_Sheet/__test__/Sheet.spec.js +14 -14
- package/cjs/UNSAFE_Sheet.js +11 -11
- package/cjs/UNSAFE_SplitMenuButton.js +21 -21
- package/cjs/UNSAFE_TabBar.js +25 -25
- package/cjs/UNSAFE_TabBarCommon.js +25 -25
- package/cjs/UNSAFE_TabBarMixed.js +26 -26
- package/cjs/UNSAFE_TableView.js +24 -24
- package/cjs/UNSAFE_TagCloud.js +23 -23
- package/cjs/UNSAFE_TextArea.js +29 -28
- package/cjs/UNSAFE_TextArea.js.map +1 -1
- package/cjs/UNSAFE_TextAreaAutosize.js +28 -28
- package/cjs/UNSAFE_TextField.js +7 -7
- package/cjs/UNSAFE_ToggleButton.js +3 -3
- package/cjs/UNSAFE_Toolbar/tests/Toolbar.spec.js +23 -23
- package/cjs/UNSAFE_Toolbar.js +4 -4
- package/cjs/UNSAFE_Train.js +17 -17
- package/cjs/UNSAFE_TruncatingBadge.js +18 -18
- package/cjs/UNSAFE_TruncatingText.js +17 -17
- package/cjs/UNSAFE_UserAssistance.js +24 -24
- package/cjs/UNSAFE_View.js +7 -7
- package/cjs/UNSAFE_VirtualizedListView.js +20 -20
- package/cjs/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
- package/cjs/UNSAFE_VisProgressiveLoader.js +6 -6
- package/cjs/UNSAFE_VisStatusMessage.js +6 -6
- package/cjs/UNSAFE_WindowOverlay.js +4 -4
- package/cjs/View-145a402d.js +170 -0
- package/cjs/View-145a402d.js.map +1 -0
- package/cjs/VisNoData-210b0385.js +35 -0
- package/cjs/VisNoData-210b0385.js.map +1 -0
- package/cjs/VisProgressiveLoader-5ed4eb9d.js +53 -0
- package/cjs/VisProgressiveLoader-5ed4eb9d.js.map +1 -0
- package/cjs/VisTabularDatatip-a06f4ca3.js +26 -0
- package/cjs/VisTabularDatatip-a06f4ca3.js.map +1 -0
- package/cjs/WindowOverlay-de3bd373.js +112 -0
- package/cjs/WindowOverlay-de3bd373.js.map +1 -0
- package/cjs/YearsGridView-e8d7a02c.js +190 -0
- package/cjs/YearsGridView-e8d7a02c.js.map +1 -0
- package/cjs/hoc/PRIVATE_withDirectionIcon.js +4 -4
- package/cjs/hoc/PRIVATE_withThemeIcon.js +3 -3
- package/cjs/hoc/UNSAFE_withThemeProps.js +3 -3
- package/cjs/hooks/PRIVATE_useChartContextMenu.js +20 -20
- package/cjs/hooks/PRIVATE_useChartDatatip.js +14 -14
- package/cjs/hooks/PRIVATE_useChartEvents.js +18 -18
- package/cjs/hooks/PRIVATE_useChartMarquee.js +18 -18
- package/cjs/hooks/PRIVATE_useCssVars.js +7 -7
- package/cjs/hooks/PRIVATE_useCurrentKey.js +4 -4
- package/cjs/hooks/PRIVATE_useDatatip.js +12 -12
- package/cjs/hooks/PRIVATE_useFloating.js +4 -4
- package/cjs/hooks/PRIVATE_useReorderable.js +5 -5
- package/cjs/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
- package/cjs/hooks/PRIVATE_useSelection.js +4 -4
- package/cjs/hooks/PRIVATE_useTabBar.js +4 -4
- package/cjs/hooks/PRIVATE_useVisContextMenu.js +20 -20
- package/cjs/hooks/PRIVATE_useVisDragModeControls.js +18 -18
- package/cjs/hooks/PRIVATE_useVisEvents.js +4 -4
- package/cjs/hooks/PRIVATE_useVisMeterEvents.js +14 -14
- package/cjs/hooks/PRIVATE_useVisSelection.js +13 -13
- package/cjs/hooks/UNSAFE_useColorScheme.js +3 -3
- package/cjs/hooks/UNSAFE_useCurrentBgColor.js +3 -3
- package/cjs/hooks/UNSAFE_useDensity.js +3 -3
- package/cjs/hooks/UNSAFE_useOutsideClick.js +8 -8
- package/cjs/hooks/UNSAFE_usePrefixSuffix.js +4 -4
- package/cjs/hooks/UNSAFE_useScale.js +3 -3
- package/cjs/hooks/UNSAFE_useTestId.js +3 -3
- package/cjs/hooks/UNSAFE_useTheme.js +3 -3
- package/cjs/hooks/UNSAFE_useThemeInterpolations.js +6 -6
- package/cjs/hooks/UNSAFE_useTooltip.js +17 -17
- package/cjs/hooks/UNSAFE_useTranslationBundle.js +3 -3
- package/cjs/hooks/UNSAFE_useUser.js +3 -3
- package/cjs/index-8c93d858.js +13 -0
- package/cjs/index-8c93d858.js.map +1 -0
- package/cjs/listViewSelectionTests-858bb12a.js +3 -3
- package/cjs/render-bc47fc7e.js +41 -0
- package/cjs/render-bc47fc7e.js.map +1 -0
- package/cjs/tabbableUtils-b14a04ea.js +81 -0
- package/cjs/tabbableUtils-b14a04ea.js.map +1 -0
- package/cjs/testData-c996c33b.js +271 -0
- package/cjs/testData-c996c33b.js.map +1 -0
- package/cjs/tooltipUtils-2228b0f7.js +97 -0
- package/cjs/tooltipUtils-2228b0f7.js.map +1 -0
- package/cjs/useCellNavigation-6f7cd4c8.js +1 -1
- package/cjs/useChartContextMenu-d114824a.js +2 -2
- package/cjs/useChartDatatip-538a4577.js +166 -0
- package/cjs/useChartDatatip-538a4577.js.map +1 -0
- package/cjs/useColorScheme-e6bef5a4.js +21 -0
- package/cjs/useColorScheme-e6bef5a4.js.map +1 -0
- package/cjs/useContextMenu-3ebf8f80.js +2 -2
- package/cjs/useCssVars-9bea15a9.js +60 -0
- package/cjs/useCssVars-9bea15a9.js.map +1 -0
- package/cjs/useCurrentBgColor-6835bf45.js +21 -0
- package/cjs/useCurrentBgColor-6835bf45.js.map +1 -0
- package/cjs/useCurrentKey-d8d41864.js +83 -0
- package/cjs/useCurrentKey-d8d41864.js.map +1 -0
- package/cjs/useDatatip-1dda9a86.js +89 -0
- package/cjs/useDatatip-1dda9a86.js.map +1 -0
- package/cjs/useDensity-38283c57.js +21 -0
- package/cjs/useDensity-38283c57.js.map +1 -0
- package/cjs/useFloating-c9e127d3.js +1926 -0
- package/cjs/useFloating-c9e127d3.js.map +1 -0
- package/cjs/useKeyboardEvents-7ab0d8ee.js +81 -0
- package/cjs/useKeyboardEvents-7ab0d8ee.js.map +1 -0
- package/cjs/useLegendContextMenu-82be007a.js +4 -4
- package/cjs/useMeterDatatip-945883f5.js +77 -0
- package/cjs/useMeterDatatip-945883f5.js.map +1 -0
- package/cjs/useOutsideClick-ad999b14.js +103 -0
- package/cjs/useOutsideClick-ad999b14.js.map +1 -0
- package/cjs/usePopupAnimation-b911e9ed.js +87 -0
- package/cjs/usePopupAnimation-b911e9ed.js.map +1 -0
- package/cjs/usePrefixSuffix-1de3a724.js +72 -0
- package/cjs/usePrefixSuffix-1de3a724.js.map +1 -0
- package/cjs/useReorderableItem-5fc4d599.js +271 -0
- package/cjs/useReorderableItem-5fc4d599.js.map +1 -0
- package/cjs/useRovingTabIndexContainer-bbdf3acd.js +100 -0
- package/cjs/useRovingTabIndexContainer-bbdf3acd.js.map +1 -0
- package/cjs/useScale-a47864b4.js +21 -0
- package/cjs/useScale-a47864b4.js.map +1 -0
- package/cjs/useSelectCommon-5b46ac60.js +11 -11
- package/cjs/useSelectDrill-51fdccac.js +106 -0
- package/cjs/useSelectDrill-51fdccac.js.map +1 -0
- package/cjs/useSelection-0dbc2f40.js +241 -0
- package/cjs/useSelection-0dbc2f40.js.map +1 -0
- package/cjs/useSelection-8362b6c6.js +187 -0
- package/cjs/useSelection-8362b6c6.js.map +1 -0
- package/cjs/useTabBar-048ffd9f.js +1 -1
- package/cjs/useTestId-e267a39d.js +23 -0
- package/cjs/useTestId-e267a39d.js.map +1 -0
- package/cjs/useTheme-6cedf9c8.js +21 -0
- package/cjs/useTheme-6cedf9c8.js.map +1 -0
- package/cjs/useThemeInterpolations-316c1636.js +59 -0
- package/cjs/useThemeInterpolations-316c1636.js.map +1 -0
- package/cjs/useTooltip-ea036f82.js +51 -0
- package/cjs/useTooltip-ea036f82.js.map +1 -0
- package/cjs/useTooltipControlled-61581889.js +371 -0
- package/cjs/useTooltipControlled-61581889.js.map +1 -0
- package/cjs/useTranslationBundle-6b0281a9.js +31 -0
- package/cjs/useTranslationBundle-6b0281a9.js.map +1 -0
- package/cjs/useUser-8aaad5a7.js +21 -0
- package/cjs/useUser-8aaad5a7.js.map +1 -0
- package/cjs/useVisDragModeControls-95caebc9.js +1 -1
- package/cjs/useVisEvents-99f1bf51.js +155 -0
- package/cjs/useVisEvents-99f1bf51.js.map +1 -0
- package/cjs/utils/PRIVATE_tooltipUtils.js +14 -14
- package/cjs/utils/PRIVATE_visTestUtils.js +5 -5
- package/cjs/withDirectionIcon-7f758093.js +16 -0
- package/cjs/withDirectionIcon-7f758093.js.map +1 -0
- package/cjs/withThemeProps-6e15f1c3.js +2 -2
- package/es/ActionCard-e64b1771.js +1 -1
- package/es/AvatarVariants.styles.css +25 -25
- package/es/AvatarVariants.styles2.css +25 -25
- package/es/BarChart-a3209793.js +1 -1
- package/es/BarGroup-740cd159.js +1 -1
- package/es/BaseButton-3ce1f027.js +2 -2
- package/es/BaseCardView-229fa119.js +683 -0
- package/es/BaseCardView-229fa119.js.map +1 -0
- package/es/BaseCardViewSelectionTest-cf72be09.js +721 -0
- package/es/BaseCardViewSelectionTest-cf72be09.js.map +1 -0
- package/es/BaseNavigationListItem-530bc3df.js +1 -1
- package/es/BaseRichSelection-9fa49816.js +8 -8
- package/es/ButtonSet-51dcff96.js +2 -2
- package/es/ButtonSetIconButton-536c1045.js +3 -3
- package/es/Card-de0aef24.js +15 -0
- package/es/Card-de0aef24.js.map +1 -0
- package/es/CardFlexView-3ef6bf4d.js +27 -0
- package/es/CardFlexView-3ef6bf4d.js.map +1 -0
- package/es/CardGridView-e15226c9.js +15 -0
- package/es/CardGridView-e15226c9.js.map +1 -0
- package/es/Center-9f355d44.js +16 -0
- package/es/Center-9f355d44.js.map +1 -0
- package/es/Chart-b97e00f1.js +8 -8
- package/es/CheckboxControl-ee327a6d.js +6 -6
- package/es/CheckboxRadioField-a4db2c10.js +6 -6
- package/es/CheckboxSet-3c3b7c71.js +49 -0
- package/es/CheckboxSet-3c3b7c71.js.map +1 -0
- package/es/Chip-8554d3ff.js +1 -1
- package/es/ClearIcon-95064ad6.js +1 -1
- package/es/CollapseIcon-4e943f42.js +1 -1
- package/es/Collapsible-cb2ba356.js +2 -2
- package/es/ComboChart-b8c2be4d.js +2 -2
- package/es/CompactHelpSource-9c0d4cb4.js +2 -2
- package/es/CompactLabelAssistance-7912767d.js +34 -0
- package/es/CompactLabelAssistance-7912767d.js.map +1 -0
- package/es/CompactUserAssistance-12950e48.js +4 -4
- package/es/ComponentMessageContainer-f2837e7f.js +4 -4
- package/es/ConveyorBeltItem-188fcaf0.js +2 -2
- package/es/DatePicker-38a71007.js +564 -0
- package/es/DatePicker-38a71007.js.map +1 -0
- package/es/DatePickerHeader-5806fbea.js +3 -3
- package/es/Diagram-ee9ec4a9.js +2026 -0
- package/es/Diagram-ee9ec4a9.js.map +1 -0
- package/es/Dialog-2248109e.js +316 -0
- package/es/Dialog-2248109e.js.map +1 -0
- package/es/DirectionalCollapseArrowIcon-daafb64c.js +1 -1
- package/es/DirectionalExpandArrowIcon-35def552.js +1 -1
- package/es/DragHandle-5cba8c4b.js +22 -0
- package/es/DragHandle-5cba8c4b.js.map +1 -0
- package/es/Dropdown-f7fbfa81.js +80 -0
- package/es/Dropdown-f7fbfa81.js.map +1 -0
- package/es/EnvironmentProvider-a3819bde.js +58 -0
- package/es/EnvironmentProvider-a3819bde.js.map +1 -0
- package/es/ExpandableList-478db30a.js +4 -4
- package/es/FilePicker-ecfad7d4.js +2 -2
- package/es/Flex-2d51e914.js +30 -0
- package/es/Flex-2d51e914.js.map +1 -0
- package/es/Floating-c13f9f62.js +462 -0
- package/es/Floating-c13f9f62.js.map +1 -0
- package/es/FormLayout-2efb00f6.js +1 -1
- package/es/Gantt-0adf9527.js +9 -9
- package/es/Grid-c2385b22.js +27 -0
- package/es/Grid-c2385b22.js.map +1 -0
- package/es/Gridlines-89b5506f.js +168 -0
- package/es/Gridlines-89b5506f.js.map +1 -0
- package/es/GroupLoadingIndicator-63035d08.js +2 -2
- package/es/HighlightText-d505bf35.js +31 -0
- package/es/HighlightText-d505bf35.js.map +1 -0
- package/es/Icon-bdd49f29.js +3 -3
- package/es/IconButton-62cd1cf9.js +3 -3
- package/es/IconMenuButton-242dc102.js +3 -3
- package/es/IconProgressButton-193d58bf.js +3 -3
- package/es/IconSwitchButton-a92911d0.js +3 -3
- package/es/IconToggleButton-fb7ccce9.js +3 -3
- package/es/IconUserAssistance-2b494a2e.js +73 -0
- package/es/IconUserAssistance-2b494a2e.js.map +1 -0
- package/es/Indexer-eb00ba0b.js +336 -0
- package/es/Indexer-eb00ba0b.js.map +1 -0
- package/es/InlineHelpSource-fcdcd122.js +1 -1
- package/es/InlineUserAssistance-04cce83e.js +5 -5
- package/es/InputDateMask-23aef570.js +7 -7
- package/es/InputDatePicker-59bbd31d.js +307 -0
- package/es/InputDatePicker-59bbd31d.js.map +1 -0
- package/es/InputPassword-2c87ceb9.js +4 -4
- package/es/InputText-3701adf8.js +6 -6
- package/es/Label-6d90e627.js +5 -5
- package/es/LabelValueLayout-bcf482be.js +1 -1
- package/es/Layer-7497a324.js +88 -0
- package/es/Layer-7497a324.js.map +1 -0
- package/es/LayerHost-7a2149f5.js +40 -0
- package/es/LayerHost-7a2149f5.js.map +1 -0
- package/es/LayerManager-be34be40.js +34 -0
- package/es/LayerManager-be34be40.js.map +1 -0
- package/es/Legend-588633b2.js +3 -3
- package/es/LineAreaChart-d6924882.js +170 -0
- package/es/LineAreaChart-d6924882.js.map +1 -0
- package/es/LineSeries-00fa2ab7.js +109 -0
- package/es/LineSeries-00fa2ab7.js.map +1 -0
- package/es/Link-9f8b5c41.js +1 -1
- package/es/List-e6886091.js +717 -0
- package/es/List-e6886091.js.map +1 -0
- package/es/ListItemLayout-b3d899d6.js +110 -0
- package/es/ListItemLayout-b3d899d6.js.map +1 -0
- package/es/ListView-137e31fd.js +428 -0
- package/es/ListView-137e31fd.js.map +1 -0
- package/es/LiveRegion-5302331c.js +39 -0
- package/es/LiveRegion-5302331c.js.map +1 -0
- package/es/LoadMoreCollection-7df1be36.js +31 -0
- package/es/LoadMoreCollection-7df1be36.js.map +1 -0
- package/es/MaxLengthCounter-181b4fc9.js +25 -0
- package/es/MaxLengthCounter-181b4fc9.js.map +1 -0
- package/es/MaxLengthLiveRegion-9b386b63.js +23 -0
- package/es/MaxLengthLiveRegion-9b386b63.js.map +1 -0
- package/es/Menu-a37635b8.js +6 -6
- package/es/MenuButton-422a74de.js +2 -2
- package/es/MenuItem-831dfd05.js +1 -1
- package/es/Message-9d1504b6.js +2 -2
- package/es/MessageLayer-9ea7cf82.js +58 -0
- package/es/MessageLayer-9ea7cf82.js.map +1 -0
- package/es/MessageToast-7058b181.js +8 -8
- package/es/MessagesManager-9dd3eb3d.js +3 -3
- package/es/MeterBar-551d32db.js +5 -5
- package/es/MeterCircle-5e2ee267.js +5 -5
- package/es/Modal-1710fdd2.js +262 -0
- package/es/Modal-1710fdd2.js.map +1 -0
- package/es/MonthView-9c0b40f1.js +208 -0
- package/es/MonthView-9c0b40f1.js.map +1 -0
- package/es/NavigationListItem-5b25b2f5.js +5 -5
- package/es/NumberInputText-58e80ab7.js +6 -6
- package/es/OverflowTabBarItem-08625093.js +3 -3
- package/es/PRIVATE_BaseCardView.js +25 -25
- package/es/PRIVATE_Chart.js +31 -31
- package/es/PRIVATE_CheckboxControl.js +23 -23
- package/es/PRIVATE_CheckboxRadioField.js +24 -24
- package/es/PRIVATE_ClearIcon.js +18 -18
- package/es/PRIVATE_DatePickerHeader.js +19 -19
- package/es/PRIVATE_DatePickerLayout.js +4 -4
- package/es/PRIVATE_EmbeddedIconButton.js +3 -3
- package/es/PRIVATE_FormControls.js +19 -19
- package/es/PRIVATE_IconSwitchButton.js +16 -16
- package/es/PRIVATE_Icons/CheckboxMixed.js +16 -16
- package/es/PRIVATE_Icons/CheckboxOff.js +16 -16
- package/es/PRIVATE_Icons/CheckboxOn.js +16 -16
- package/es/PRIVATE_Icons/DragV.js +16 -16
- package/es/PRIVATE_Icons/WarningS.js +16 -16
- package/es/PRIVATE_List.js +24 -24
- package/es/PRIVATE_LoadMoreCollection.js +2 -2
- package/es/PRIVATE_Message.js +19 -19
- package/es/PRIVATE_MessageLayer.js +12 -12
- package/es/PRIVATE_MonthView.js +7 -7
- package/es/PRIVATE_MonthYearGridView.js +7 -7
- package/es/PRIVATE_PlotArea.js +4 -4
- package/es/PRIVATE_RevealToggleIcon.js +17 -17
- package/es/PRIVATE_RichSelectionCommon.js +25 -25
- package/es/PRIVATE_SelectCommon.js +33 -33
- package/es/PRIVATE_StyledCard.js +4 -4
- package/es/PRIVATE_StyledCheckbox.js +16 -16
- package/es/PRIVATE_Table.js +27 -27
- package/es/PRIVATE_ThemedIcons/CalendarIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CheckIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CloseIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CollapseIcon.js +17 -17
- package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DecrementIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DeleteIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +17 -17
- package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +17 -17
- package/es/PRIVATE_ThemedIcons/DragHandleIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ExpandIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/HelpIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/IncrementIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/MinusIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/NavDownIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/PlusIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/ViewIcon.js +16 -16
- package/es/PRIVATE_TimeComponent.js +18 -18
- package/es/PRIVATE_VirtualizedCollection.js +2 -2
- package/es/PRIVATE_VisOverview.js +16 -16
- package/es/PRIVATE_VisTabularDatatip.js +4 -4
- package/es/PictoChart-3f059ad1.js +6 -6
- package/es/PieChart-ca02932e.js +6 -6
- package/es/Popup-a4be2769.js +247 -0
- package/es/Popup-a4be2769.js.map +1 -0
- package/es/ProgressBar-4fbb27ab.js +62 -0
- package/es/ProgressBar-4fbb27ab.js.map +1 -0
- package/es/ProgressButton-2497c81b.js +3 -3
- package/es/ProgressButtonLabelLayout-bfc7c805.js +3 -3
- package/es/ProgressCircle-2d3833fa.js +48 -0
- package/es/ProgressCircle-2d3833fa.js.map +1 -0
- package/es/RadioItem-35f68420.js +6 -6
- package/es/RatingGauge-5346d0bf.js +7 -7
- package/es/ReadonlyTextFieldInput-a15badb6.js +1 -1
- package/es/RemovableNavigationListItem-29fdaddc.js +1 -1
- package/es/RemovableTabBarItem-1cc7a0ca.js +2 -2
- package/es/ReorderableTabBar-b9019d0a.js +3 -3
- package/es/RevealToggleIcon-51514e37.js +1 -1
- package/es/ScatterChart-d26d4ea9.js +103 -0
- package/es/ScatterChart-d26d4ea9.js.map +1 -0
- package/es/SectionalLegend-c71d48a3.js +4 -4
- package/es/SectionedContent-2d0a744d.js +64 -0
- package/es/SectionedContent-2d0a744d.js.map +1 -0
- package/es/SelectMultiple-488a49d1.js +1303 -0
- package/es/SelectMultiple-488a49d1.js.map +1 -0
- package/es/SelectSingle-e8b9a33a.js +736 -0
- package/es/SelectSingle-e8b9a33a.js.map +1 -0
- package/es/SelectionCard-792c249d.js +16 -0
- package/es/SelectionCard-792c249d.js.map +1 -0
- package/es/Selector-5892544f.js +1 -1
- package/es/SelectorAll-ab748274.js +69 -0
- package/es/SelectorAll-ab748274.js.map +1 -0
- package/es/Sheet-31e6970c.js +158 -0
- package/es/Sheet-31e6970c.js.map +1 -0
- package/es/SplitMenuButton-3dbd83b7.js +2 -2
- package/es/StyledCard-6913b45c.js +105 -0
- package/es/StyledCard-6913b45c.js.map +1 -0
- package/es/StyledTextField-ebb5409d.js +3 -3
- package/es/TabBar-fb7f97d2.js +5 -5
- package/es/TabBarItem-252cba76.js +3 -3
- package/es/TabBarLayout-8caaa060.js +1 -1
- package/es/TabBarMixed-f60c2c7a.js +5 -5
- package/es/TabBarMixedSeparator-16c88691.js +19 -0
- package/es/TabBarMixedSeparator-16c88691.js.map +1 -0
- package/es/Table-3cfb9443.js +5509 -0
- package/es/Table-3cfb9443.js.map +1 -0
- package/es/TableView-fd5104cd.js +31 -0
- package/es/TableView-fd5104cd.js.map +1 -0
- package/es/TagCloud-f7e50ac4.js +8 -8
- package/es/TextArea-7230675f.js +160 -0
- package/es/TextArea-7230675f.js.map +1 -0
- package/es/TextAreaAutosize-0d293016.js +244 -0
- package/es/TextAreaAutosize-0d293016.js.map +1 -0
- package/es/TextField-cb494638.js +3 -3
- package/es/TextFieldInput-3c2e920d.js +1 -1
- package/es/Theme-redwood/theme.css +1151 -1151
- package/es/Theme-stable/theme.css +404 -404
- package/es/TimeComponentCanvas2D-2a4a0c94.js +5 -5
- package/es/Toolbar-7676795b.js +1 -1
- package/es/TruncatingBadge-0f04b894.js +34 -0
- package/es/TruncatingBadge-0f04b894.js.map +1 -0
- package/es/TruncatingText-ccad557f.js +48 -0
- package/es/TruncatingText-ccad557f.js.map +1 -0
- package/es/UNSAFE_ActionCard.js +3 -3
- package/es/UNSAFE_Avatar/themes/redwood/AvatarTheme.js +1 -1
- package/es/UNSAFE_Avatar/themes/redwood/AvatarVariants.css.js +1 -1
- package/es/UNSAFE_Avatar/themes/stable/AvatarTheme.js +1 -1
- package/es/UNSAFE_Avatar/themes/stable/AvatarVariants.css.js +1 -1
- package/es/UNSAFE_Avatar.js +1 -1
- package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +31 -31
- package/es/UNSAFE_BarChart.js +31 -31
- package/es/UNSAFE_BaseButton.js +3 -3
- package/es/UNSAFE_Button.js +3 -3
- package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +21 -21
- package/es/UNSAFE_ButtonSet.js +4 -4
- package/es/UNSAFE_ButtonSetButton.js +3 -3
- package/es/UNSAFE_ButtonSetIconButton.js +16 -16
- package/es/UNSAFE_ButtonSetItem.js +16 -16
- package/es/UNSAFE_ButtonSetMultiple.js +4 -4
- package/es/UNSAFE_ButtonSetSingle.js +4 -4
- package/es/UNSAFE_Card.js +5 -5
- package/es/UNSAFE_CardFlexView.js +26 -26
- package/es/UNSAFE_CardGridView.js +26 -26
- package/es/UNSAFE_Center.js +5 -5
- package/es/UNSAFE_ChartWithLegend.js +4 -4
- package/es/UNSAFE_Checkbox.js +23 -23
- package/es/UNSAFE_CheckboxItem.js +103 -52
- package/es/UNSAFE_CheckboxItem.js.map +1 -1
- package/es/UNSAFE_CheckboxSet.js +33 -67
- package/es/UNSAFE_CheckboxSet.js.map +1 -1
- package/es/UNSAFE_Chip.js +2 -2
- package/es/UNSAFE_Collapsible.js +18 -18
- package/es/UNSAFE_ComboChart.js +33 -33
- package/es/UNSAFE_ComponentMessage.js +19 -19
- package/es/UNSAFE_ConveyorBelt.js +16 -16
- package/es/UNSAFE_DatePicker.js +24 -24
- package/es/UNSAFE_Diagram.js +21 -21
- package/es/UNSAFE_Dialog.js +21 -21
- package/es/UNSAFE_DragHandle.js +18 -18
- package/es/UNSAFE_DrawerLayout.js +12 -12
- package/es/UNSAFE_DrawerPopup.js +11 -11
- package/es/UNSAFE_Dropdown.js +13 -13
- package/es/UNSAFE_Environment.js +4 -4
- package/es/UNSAFE_ExpandableList.js +26 -26
- package/es/UNSAFE_FilePicker.js +4 -4
- package/es/UNSAFE_Flex.js +4 -4
- package/es/UNSAFE_Floating.js +11 -11
- package/es/UNSAFE_FormLayout.js +2 -2
- package/es/UNSAFE_Gantt.js +23 -23
- package/es/UNSAFE_Grid.js +4 -4
- package/es/UNSAFE_HighlightText.js +4 -4
- package/es/UNSAFE_Icon.js +16 -16
- package/es/UNSAFE_IconButton.js +16 -16
- package/es/UNSAFE_IconMenuButton.js +21 -21
- package/es/UNSAFE_IconProgressButton.js +19 -19
- package/es/UNSAFE_IconToggleButton.js +16 -16
- package/es/UNSAFE_Indexer.js +8 -8
- package/es/UNSAFE_InputDateMask.js +24 -24
- package/es/UNSAFE_InputDatePicker.js +113 -113
- package/es/UNSAFE_InputPassword.js +23 -23
- package/es/UNSAFE_InputSensitiveText.js +25 -25
- package/es/UNSAFE_InputText.js +26 -26
- package/es/UNSAFE_InputTimeMask.js +24 -24
- package/es/UNSAFE_Label.js +23 -23
- package/es/UNSAFE_LabelValueLayout.js +4 -4
- package/es/UNSAFE_LabelledLink.js +24 -24
- package/es/UNSAFE_Layer.js +8 -8
- package/es/UNSAFE_Legend.js +24 -24
- package/es/UNSAFE_LineAreaChart.js +34 -34
- package/es/UNSAFE_Link.js +2 -2
- package/es/UNSAFE_ListItemLayout.js +5 -5
- package/es/UNSAFE_ListView.js +33 -33
- package/es/UNSAFE_LiveRegion.js +4 -4
- package/es/UNSAFE_Menu.js +23 -23
- package/es/UNSAFE_MenuButton.js +21 -21
- package/es/UNSAFE_MessageBanner.js +19 -19
- package/es/UNSAFE_MessageToast.js +22 -22
- package/es/UNSAFE_MeterBar.js +16 -16
- package/es/UNSAFE_MeterCircle.js +17 -17
- package/es/UNSAFE_Modal.js +8 -8
- package/es/UNSAFE_NavigationList.js +20 -20
- package/es/UNSAFE_NavigationListCommon.js +18 -18
- package/es/UNSAFE_NumberInputText.js +25 -25
- package/es/UNSAFE_OverflowTabBar.js +24 -24
- package/es/UNSAFE_PictoChart.js +14 -14
- package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +21 -21
- package/es/UNSAFE_PieChart.js +21 -21
- package/es/UNSAFE_Popup.js +16 -16
- package/es/UNSAFE_ProgressBar.js +5 -5
- package/es/UNSAFE_ProgressButton.js +19 -19
- package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
- package/es/UNSAFE_ProgressCircle.js +4 -4
- package/es/UNSAFE_RadioItem.js +23 -23
- package/es/UNSAFE_RadioSet.js +23 -23
- package/es/UNSAFE_RatingGauge.js +17 -17
- package/es/UNSAFE_ReorderableTabBar.js +24 -24
- package/es/UNSAFE_RichCheckboxSet.js +38 -36
- package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/es/UNSAFE_RichRadioSet.js +25 -25
- package/es/UNSAFE_RichSelectionItem.js +195 -58
- package/es/UNSAFE_RichSelectionItem.js.map +1 -1
- package/es/UNSAFE_ScatterChart.js +34 -34
- package/es/UNSAFE_SectionalLegend.js +25 -25
- package/es/UNSAFE_SelectMultiple.js +36 -36
- package/es/UNSAFE_SelectSingle.js +36 -36
- package/es/UNSAFE_SelectionCard.js +5 -5
- package/es/UNSAFE_Selector.js +16 -16
- package/es/UNSAFE_SelectorAll.js +20 -20
- package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +14 -14
- package/es/UNSAFE_Sheet.js +11 -11
- package/es/UNSAFE_SplitMenuButton.js +21 -21
- package/es/UNSAFE_TabBar.js +25 -25
- package/es/UNSAFE_TabBarCommon.js +25 -25
- package/es/UNSAFE_TabBarMixed.js +26 -26
- package/es/UNSAFE_TableView.js +28 -28
- package/es/UNSAFE_TagCloud.js +23 -23
- package/es/UNSAFE_TextArea.js +28 -27
- package/es/UNSAFE_TextArea.js.map +1 -1
- package/es/UNSAFE_TextAreaAutosize.js +28 -28
- package/es/UNSAFE_TextField.js +7 -7
- package/es/UNSAFE_ToggleButton.js +3 -3
- package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +23 -23
- package/es/UNSAFE_Toolbar.js +4 -4
- package/es/UNSAFE_Train.js +17 -17
- package/es/UNSAFE_TruncatingBadge.js +18 -18
- package/es/UNSAFE_TruncatingText.js +17 -17
- package/es/UNSAFE_UserAssistance.js +24 -24
- package/es/UNSAFE_View.js +7 -7
- package/es/UNSAFE_VirtualizedListView.js +25 -25
- package/es/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +8 -8
- package/es/UNSAFE_VisProgressiveLoader.js +6 -6
- package/es/UNSAFE_VisStatusMessage.js +6 -6
- package/es/UNSAFE_WindowOverlay.js +4 -4
- package/es/View-a8a64eb1.js +167 -0
- package/es/View-a8a64eb1.js.map +1 -0
- package/es/VirtualizedCollection-f048fbb8.js +176 -0
- package/es/VirtualizedCollection-f048fbb8.js.map +1 -0
- package/es/VirtualizedListView-0532e46c.js +14 -0
- package/es/VirtualizedListView-0532e46c.js.map +1 -0
- package/es/VisNoData-794ddc21.js +32 -0
- package/es/VisNoData-794ddc21.js.map +1 -0
- package/es/VisProgressiveLoader-66dde1ff.js +51 -0
- package/es/VisProgressiveLoader-66dde1ff.js.map +1 -0
- package/es/VisTabularDatatip-6aa607bb.js +24 -0
- package/es/VisTabularDatatip-6aa607bb.js.map +1 -0
- package/es/WindowOverlay-de5d0819.js +110 -0
- package/es/WindowOverlay-de5d0819.js.map +1 -0
- package/es/YearsGridView-cb510d1e.js +187 -0
- package/es/YearsGridView-cb510d1e.js.map +1 -0
- package/es/hoc/PRIVATE_withDirectionIcon.js +4 -4
- package/es/hoc/PRIVATE_withThemeIcon.js +3 -3
- package/es/hoc/UNSAFE_withThemeProps.js +3 -3
- package/es/hooks/PRIVATE_useChartContextMenu.js +20 -20
- package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
- package/es/hooks/PRIVATE_useChartEvents.js +18 -18
- package/es/hooks/PRIVATE_useChartMarquee.js +18 -18
- package/es/hooks/PRIVATE_useCssVars.js +7 -7
- package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
- package/es/hooks/PRIVATE_useDatatip.js +12 -12
- package/es/hooks/PRIVATE_useFloating.js +4 -4
- package/es/hooks/PRIVATE_useReorderable.js +5 -5
- package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
- package/es/hooks/PRIVATE_useSelection.js +4 -4
- package/es/hooks/PRIVATE_useTabBar.js +4 -4
- package/es/hooks/PRIVATE_useVisContextMenu.js +20 -20
- package/es/hooks/PRIVATE_useVisDragModeControls.js +18 -18
- package/es/hooks/PRIVATE_useVisEvents.js +4 -4
- package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
- package/es/hooks/PRIVATE_useVisSelection.js +13 -13
- package/es/hooks/UNSAFE_useColorScheme.js +3 -3
- package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
- package/es/hooks/UNSAFE_useDensity.js +3 -3
- package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
- package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
- package/es/hooks/UNSAFE_useScale.js +3 -3
- package/es/hooks/UNSAFE_useTestId.js +3 -3
- package/es/hooks/UNSAFE_useTheme.js +3 -3
- package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
- package/es/hooks/UNSAFE_useTooltip.js +17 -17
- package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
- package/es/hooks/UNSAFE_useUser.js +3 -3
- package/es/index-f4c1d6de.js +11 -0
- package/es/index-f4c1d6de.js.map +1 -0
- package/es/listViewSelectionTests-79aa17b2.js +3 -3
- package/es/render-9dce082a.js +34 -0
- package/es/render-9dce082a.js.map +1 -0
- package/es/tabbableUtils-93a7cd6f.js +79 -0
- package/es/tabbableUtils-93a7cd6f.js.map +1 -0
- package/es/testData-a9ced8ec.js +256 -0
- package/es/testData-a9ced8ec.js.map +1 -0
- package/es/tooltipUtils-fcfd7dbb.js +92 -0
- package/es/tooltipUtils-fcfd7dbb.js.map +1 -0
- package/es/useCellNavigation-00d575ca.js +1 -1
- package/es/useChartContextMenu-121a5f6d.js +2 -2
- package/es/useChartDatatip-c929f857.js +164 -0
- package/es/useChartDatatip-c929f857.js.map +1 -0
- package/es/useColorScheme-f69d53b5.js +19 -0
- package/es/useColorScheme-f69d53b5.js.map +1 -0
- package/es/useContextMenu-8c47333e.js +2 -2
- package/es/useCssVars-48595cd2.js +58 -0
- package/es/useCssVars-48595cd2.js.map +1 -0
- package/es/useCurrentBgColor-894d059b.js +19 -0
- package/es/useCurrentBgColor-894d059b.js.map +1 -0
- package/es/useCurrentKey-aa75ec92.js +81 -0
- package/es/useCurrentKey-aa75ec92.js.map +1 -0
- package/es/useDatatip-40475371.js +87 -0
- package/es/useDatatip-40475371.js.map +1 -0
- package/es/useDensity-04a01caf.js +19 -0
- package/es/useDensity-04a01caf.js.map +1 -0
- package/es/useFloating-dad3f791.js +1916 -0
- package/es/useFloating-dad3f791.js.map +1 -0
- package/es/useKeyboardEvents-b02e5fda.js +78 -0
- package/es/useKeyboardEvents-b02e5fda.js.map +1 -0
- package/es/useLegendContextMenu-1043d63c.js +4 -4
- package/es/useMeterDatatip-4adf64f2.js +74 -0
- package/es/useMeterDatatip-4adf64f2.js.map +1 -0
- package/es/useOutsideClick-c19a8d7f.js +101 -0
- package/es/useOutsideClick-c19a8d7f.js.map +1 -0
- package/es/usePopupAnimation-267b444c.js +85 -0
- package/es/usePopupAnimation-267b444c.js.map +1 -0
- package/es/usePrefixSuffix-995d4cda.js +70 -0
- package/es/usePrefixSuffix-995d4cda.js.map +1 -0
- package/es/useReorderableItem-7f7c13b5.js +268 -0
- package/es/useReorderableItem-7f7c13b5.js.map +1 -0
- package/es/useRovingTabIndexContainer-7ec9f36f.js +98 -0
- package/es/useRovingTabIndexContainer-7ec9f36f.js.map +1 -0
- package/es/useScale-3b323ab2.js +19 -0
- package/es/useScale-3b323ab2.js.map +1 -0
- package/es/useSelectCommon-af8e715e.js +686 -0
- package/es/useSelectCommon-af8e715e.js.map +1 -0
- package/es/useSelectDrill-232b571c.js +103 -0
- package/es/useSelectDrill-232b571c.js.map +1 -0
- package/es/useSelection-bbd2320f.js +185 -0
- package/es/useSelection-bbd2320f.js.map +1 -0
- package/es/useSelection-c46ba985.js +239 -0
- package/es/useSelection-c46ba985.js.map +1 -0
- package/es/useTabBar-efad9075.js +1 -1
- package/es/useTestId-af32a9eb.js +21 -0
- package/es/useTestId-af32a9eb.js.map +1 -0
- package/es/useTheme-73aca0e4.js +19 -0
- package/es/useTheme-73aca0e4.js.map +1 -0
- package/es/useThemeInterpolations-242b30ed.js +57 -0
- package/es/useThemeInterpolations-242b30ed.js.map +1 -0
- package/es/useTooltip-72f5cf2e.js +49 -0
- package/es/useTooltip-72f5cf2e.js.map +1 -0
- package/es/useTooltipControlled-97142fd1.js +368 -0
- package/es/useTooltipControlled-97142fd1.js.map +1 -0
- package/es/useTranslationBundle-6da03e52.js +29 -0
- package/es/useTranslationBundle-6da03e52.js.map +1 -0
- package/es/useUser-bca8cf2d.js +19 -0
- package/es/useUser-bca8cf2d.js.map +1 -0
- package/es/useVisDragModeControls-4d8d8a3b.js +1 -1
- package/es/useVisEvents-37c78cfe.js +153 -0
- package/es/useVisEvents-37c78cfe.js.map +1 -0
- package/es/utils/PRIVATE_tooltipUtils.js +14 -14
- package/es/utils/PRIVATE_visTestUtils.js +6 -6
- package/es/withDirectionIcon-389870a2.js +14 -0
- package/es/withDirectionIcon-389870a2.js.map +1 -0
- package/es/withThemeProps-6545df54.js +2 -2
- package/package.json +2 -2
- package/amd/BaseCardView-70b177ed.js +0 -2
- package/amd/BaseCardView-70b177ed.js.map +0 -1
- package/amd/BaseCardViewSelectionTest-0ec52156.js +0 -2
- package/amd/BaseCardViewSelectionTest-0ec52156.js.map +0 -1
- package/amd/Card-f6f2dc90.js +0 -2
- package/amd/Card-f6f2dc90.js.map +0 -1
- package/amd/CardFlexView-bb5c4369.js +0 -2
- package/amd/CardFlexView-bb5c4369.js.map +0 -1
- package/amd/CardGridView-c28ff2f7.js +0 -2
- package/amd/CardGridView-c28ff2f7.js.map +0 -1
- package/amd/Center-b449a95c.js +0 -2
- package/amd/Center-b449a95c.js.map +0 -1
- package/amd/CompactLabelAssistance-44ba87b0.js +0 -2
- package/amd/CompactLabelAssistance-44ba87b0.js.map +0 -1
- package/amd/DatePicker-2c94a3bb.js +0 -2
- package/amd/DatePicker-2c94a3bb.js.map +0 -1
- package/amd/Diagram-c3afb211.js +0 -2
- package/amd/Diagram-c3afb211.js.map +0 -1
- package/amd/Dialog-53f92591.js +0 -2
- package/amd/Dialog-53f92591.js.map +0 -1
- package/amd/DragHandle-699fefd6.js +0 -2
- package/amd/DragHandle-699fefd6.js.map +0 -1
- package/amd/Dropdown-4b421eff.js +0 -2
- package/amd/Dropdown-4b421eff.js.map +0 -1
- package/amd/EnvironmentProvider-8f6fc388.js +0 -2
- package/amd/EnvironmentProvider-8f6fc388.js.map +0 -1
- package/amd/Flex-56ecdf4c.js +0 -2
- package/amd/Flex-56ecdf4c.js.map +0 -1
- package/amd/Floating-1ec5ec2a.js +0 -2
- package/amd/Floating-1ec5ec2a.js.map +0 -1
- package/amd/Grid-160f4885.js +0 -2
- package/amd/Grid-160f4885.js.map +0 -1
- package/amd/Gridlines-7851bb20.js +0 -2
- package/amd/Gridlines-7851bb20.js.map +0 -1
- package/amd/HighlightText-bd4c0101.js +0 -2
- package/amd/HighlightText-bd4c0101.js.map +0 -1
- package/amd/IconUserAssistance-d2bd2691.js +0 -2
- package/amd/IconUserAssistance-d2bd2691.js.map +0 -1
- package/amd/Indexer-357554c4.js +0 -2
- package/amd/Indexer-357554c4.js.map +0 -1
- package/amd/Layer-447c68e6.js +0 -2
- package/amd/Layer-447c68e6.js.map +0 -1
- package/amd/LayerHost-e95c5f30.js +0 -2
- package/amd/LayerHost-e95c5f30.js.map +0 -1
- package/amd/LayerManager-76fcfb58.js +0 -2
- package/amd/LayerManager-76fcfb58.js.map +0 -1
- package/amd/LineAreaChart-b4acee62.js +0 -2
- package/amd/LineAreaChart-b4acee62.js.map +0 -1
- package/amd/LineSeries-a549e727.js +0 -2
- package/amd/LineSeries-a549e727.js.map +0 -1
- package/amd/List-04c4fed0.js +0 -2
- package/amd/List-04c4fed0.js.map +0 -1
- package/amd/ListItemLayout-4208363c.js +0 -2
- package/amd/ListItemLayout-4208363c.js.map +0 -1
- package/amd/ListView-bf740071.js +0 -2
- package/amd/ListView-bf740071.js.map +0 -1
- package/amd/LiveRegion-8142ed0d.js +0 -2
- package/amd/LiveRegion-8142ed0d.js.map +0 -1
- package/amd/LoadMoreCollection-a6adbc3f.js +0 -2
- package/amd/LoadMoreCollection-a6adbc3f.js.map +0 -1
- package/amd/MaxLengthLiveRegion-8954fc30.js +0 -2
- package/amd/MaxLengthLiveRegion-8954fc30.js.map +0 -1
- package/amd/MessageLayer-ba56f7e2.js +0 -2
- package/amd/MessageLayer-ba56f7e2.js.map +0 -1
- package/amd/Modal-d6b2e905.js +0 -2
- package/amd/Modal-d6b2e905.js.map +0 -1
- package/amd/MonthView-4a0401cd.js +0 -2
- package/amd/MonthView-4a0401cd.js.map +0 -1
- package/amd/NavigationListItem-021b2d58.js +0 -2
- package/amd/NavigationListItem-021b2d58.js.map +0 -1
- package/amd/OverflowTabBar-ea3a4742.js +0 -2
- package/amd/OverflowTabBar-ea3a4742.js.map +0 -1
- package/amd/OverflowTabBarItem-763773c9.js +0 -2
- package/amd/OverflowTabBarItem-763773c9.js.map +0 -1
- package/amd/Popup-d51bf3f4.js +0 -2
- package/amd/Popup-d51bf3f4.js.map +0 -1
- package/amd/ProgressBar-3f4cd8d6.js +0 -2
- package/amd/ProgressBar-3f4cd8d6.js.map +0 -1
- package/amd/ProgressCircle-74b6fc89.js +0 -2
- package/amd/ProgressCircle-74b6fc89.js.map +0 -1
- package/amd/ScatterChart-0ca7c658.js +0 -2
- package/amd/ScatterChart-0ca7c658.js.map +0 -1
- package/amd/SectionedContent-2a261004.js +0 -2
- package/amd/SectionedContent-2a261004.js.map +0 -1
- package/amd/SelectMultiple-e3a6732b.js +0 -2
- package/amd/SelectMultiple-e3a6732b.js.map +0 -1
- package/amd/SelectSingle-9d0dca8f.js +0 -2
- package/amd/SelectSingle-9d0dca8f.js.map +0 -1
- package/amd/SelectionCard-895b014d.js +0 -2
- package/amd/SelectionCard-895b014d.js.map +0 -1
- package/amd/SelectorAll-e884a225.js +0 -2
- package/amd/SelectorAll-e884a225.js.map +0 -1
- package/amd/Sheet-46782f99.js +0 -2
- package/amd/Sheet-46782f99.js.map +0 -1
- package/amd/StyledCard-c4d0324d.js +0 -2
- package/amd/StyledCard-c4d0324d.js.map +0 -1
- package/amd/TabBarMixedSeparator-8c278254.js +0 -2
- package/amd/TabBarMixedSeparator-8c278254.js.map +0 -1
- package/amd/Table-31cc83c6.js +0 -2
- package/amd/Table-31cc83c6.js.map +0 -1
- package/amd/TableView-ab5d0c12.js +0 -2
- package/amd/TableView-ab5d0c12.js.map +0 -1
- package/amd/TruncatingBadge-04f9ef4c.js +0 -2
- package/amd/TruncatingBadge-04f9ef4c.js.map +0 -1
- package/amd/TruncatingText-d18d41c5.js +0 -2
- package/amd/TruncatingText-d18d41c5.js.map +0 -1
- package/amd/View-ce970ed7.js +0 -2
- package/amd/View-ce970ed7.js.map +0 -1
- package/amd/VirtualizedCollection-63223f5e.js +0 -2
- package/amd/VirtualizedCollection-63223f5e.js.map +0 -1
- package/amd/VirtualizedListView-554eaee6.js +0 -2
- package/amd/VirtualizedListView-554eaee6.js.map +0 -1
- package/amd/VisNoData-6fa39277.js +0 -2
- package/amd/VisNoData-6fa39277.js.map +0 -1
- package/amd/VisProgressiveLoader-68d8d8b3.js +0 -2
- package/amd/VisProgressiveLoader-68d8d8b3.js.map +0 -1
- package/amd/VisTabularDatatip-1051eaca.js +0 -2
- package/amd/VisTabularDatatip-1051eaca.js.map +0 -1
- package/amd/WindowOverlay-a2d80d55.js +0 -2
- package/amd/WindowOverlay-a2d80d55.js.map +0 -1
- package/amd/YearsGridView-d799dc5c.js +0 -2
- package/amd/YearsGridView-d799dc5c.js.map +0 -1
- package/amd/index-b7b9300d.js +0 -2
- package/amd/index-b7b9300d.js.map +0 -1
- package/amd/render-366c27ff.js +0 -2
- package/amd/render-366c27ff.js.map +0 -1
- package/amd/tabbableUtils-88d4fa35.js +0 -2
- package/amd/tabbableUtils-88d4fa35.js.map +0 -1
- package/amd/testData-783b8823.js +0 -2
- package/amd/testData-783b8823.js.map +0 -1
- package/amd/tooltipUtils-69ce0a2d.js +0 -2
- package/amd/tooltipUtils-69ce0a2d.js.map +0 -1
- package/amd/useChartDatatip-ee3783af.js +0 -2
- package/amd/useChartDatatip-ee3783af.js.map +0 -1
- package/amd/useColorScheme-10dc88de.js +0 -2
- package/amd/useColorScheme-10dc88de.js.map +0 -1
- package/amd/useCssVars-c043f8da.js +0 -2
- package/amd/useCssVars-c043f8da.js.map +0 -1
- package/amd/useCurrentBgColor-2426ee24.js +0 -2
- package/amd/useCurrentBgColor-2426ee24.js.map +0 -1
- package/amd/useCurrentKey-31c18053.js +0 -2
- package/amd/useCurrentKey-31c18053.js.map +0 -1
- package/amd/useDatatip-ac26447a.js +0 -2
- package/amd/useDatatip-ac26447a.js.map +0 -1
- package/amd/useDensity-c83df7b4.js +0 -2
- package/amd/useDensity-c83df7b4.js.map +0 -1
- package/amd/useFloating-acd30a55.js +0 -2
- package/amd/useFloating-acd30a55.js.map +0 -1
- package/amd/useKeyboardEvents-d87e3587.js +0 -2
- package/amd/useKeyboardEvents-d87e3587.js.map +0 -1
- package/amd/useMeterDatatip-fff3c329.js +0 -2
- package/amd/useMeterDatatip-fff3c329.js.map +0 -1
- package/amd/useOutsideClick-f99b7a84.js +0 -2
- package/amd/useOutsideClick-f99b7a84.js.map +0 -1
- package/amd/usePopupAnimation-f679a4b0.js +0 -2
- package/amd/usePopupAnimation-f679a4b0.js.map +0 -1
- package/amd/usePrefixSuffix-09bd5925.js +0 -2
- package/amd/usePrefixSuffix-09bd5925.js.map +0 -1
- package/amd/useReorderableItem-4c4779f7.js +0 -2
- package/amd/useReorderableItem-4c4779f7.js.map +0 -1
- package/amd/useRovingTabIndexContainer-955e23a8.js +0 -2
- package/amd/useRovingTabIndexContainer-955e23a8.js.map +0 -1
- package/amd/useScale-37d42c9d.js +0 -2
- package/amd/useScale-37d42c9d.js.map +0 -1
- package/amd/useSelectCommon-e7f123ce.js +0 -2
- package/amd/useSelectCommon-e7f123ce.js.map +0 -1
- package/amd/useSelectDrill-6361116b.js +0 -2
- package/amd/useSelectDrill-6361116b.js.map +0 -1
- package/amd/useSelection-af7b4b52.js +0 -2
- package/amd/useSelection-af7b4b52.js.map +0 -1
- package/amd/useSelection-f0c7d74d.js +0 -2
- package/amd/useSelection-f0c7d74d.js.map +0 -1
- package/amd/useTestId-3a316499.js +0 -2
- package/amd/useTestId-3a316499.js.map +0 -1
- package/amd/useTheme-ac980f9a.js +0 -2
- package/amd/useTheme-ac980f9a.js.map +0 -1
- package/amd/useThemeInterpolations-6b2de213.js +0 -2
- package/amd/useThemeInterpolations-6b2de213.js.map +0 -1
- package/amd/useTooltip-7b11fd35.js +0 -2
- package/amd/useTooltip-7b11fd35.js.map +0 -1
- package/amd/useTooltipControlled-52183a08.js +0 -2
- package/amd/useTooltipControlled-52183a08.js.map +0 -1
- package/amd/useTranslationBundle-516b1b83.js +0 -2
- package/amd/useTranslationBundle-516b1b83.js.map +0 -1
- package/amd/useUser-85c781ea.js +0 -2
- package/amd/useUser-85c781ea.js.map +0 -1
- package/amd/useVisEvents-0166e4cc.js +0 -2
- package/amd/useVisEvents-0166e4cc.js.map +0 -1
- package/amd/withDirectionIcon-ce0c7432.js +0 -2
- package/amd/withDirectionIcon-ce0c7432.js.map +0 -1
- package/cjs/BarChart-ca7f8ed5.js +0 -181
- package/cjs/BarChart-ca7f8ed5.js.map +0 -1
- package/cjs/BaseCardViewSelectionTest-df948f2c.js +0 -734
- package/cjs/BaseCardViewSelectionTest-df948f2c.js.map +0 -1
- package/cjs/Card-a6693442.js +0 -17
- package/cjs/Card-a6693442.js.map +0 -1
- package/cjs/Center-c0baccb0.js +0 -18
- package/cjs/Center-c0baccb0.js.map +0 -1
- package/cjs/Chart-fbbd3329.js +0 -451
- package/cjs/Chart-fbbd3329.js.map +0 -1
- package/cjs/CheckboxSetContext-c62db26d.js +0 -12
- package/cjs/CheckboxSetContext-c62db26d.js.map +0 -1
- package/cjs/ComboChart-95863e7a.js +0 -174
- package/cjs/ComboChart-95863e7a.js.map +0 -1
- package/cjs/CompactLabelAssistance-fd841834.js +0 -36
- package/cjs/CompactLabelAssistance-fd841834.js.map +0 -1
- package/cjs/DatePicker-65b047ad.js +0 -566
- package/cjs/DatePicker-65b047ad.js.map +0 -1
- package/cjs/Diagram-2e66a8cb.js +0 -2028
- package/cjs/Diagram-2e66a8cb.js.map +0 -1
- package/cjs/Dialog-4160338c.js +0 -318
- package/cjs/Dialog-4160338c.js.map +0 -1
- package/cjs/DragHandle-67b6118b.js +0 -24
- package/cjs/DragHandle-67b6118b.js.map +0 -1
- package/cjs/Dropdown-34b8f141.js +0 -82
- package/cjs/Dropdown-34b8f141.js.map +0 -1
- package/cjs/EnvironmentProvider-75eb79f3.js +0 -61
- package/cjs/EnvironmentProvider-75eb79f3.js.map +0 -1
- package/cjs/Flex-e7a85bef.js +0 -33
- package/cjs/Flex-e7a85bef.js.map +0 -1
- package/cjs/Floating-56621d20.js +0 -464
- package/cjs/Floating-56621d20.js.map +0 -1
- package/cjs/Grid-a7316edd.js +0 -29
- package/cjs/Grid-a7316edd.js.map +0 -1
- package/cjs/Gridlines-ef3af190.js +0 -171
- package/cjs/Gridlines-ef3af190.js.map +0 -1
- package/cjs/HighlightText-dd11dd32.js +0 -33
- package/cjs/HighlightText-dd11dd32.js.map +0 -1
- package/cjs/IconUserAssistance-52208fde.js +0 -75
- package/cjs/IconUserAssistance-52208fde.js.map +0 -1
- package/cjs/Layer-0053053a.js +0 -91
- package/cjs/Layer-0053053a.js.map +0 -1
- package/cjs/LayerHost-a8c7f182.js +0 -45
- package/cjs/LayerHost-a8c7f182.js.map +0 -1
- package/cjs/LayerManager-2d0b83ac.js +0 -36
- package/cjs/LayerManager-2d0b83ac.js.map +0 -1
- package/cjs/LineAreaChart-506308c1.js +0 -172
- package/cjs/LineAreaChart-506308c1.js.map +0 -1
- package/cjs/LineSeries-0e984080.js +0 -112
- package/cjs/LineSeries-0e984080.js.map +0 -1
- package/cjs/ListItemLayout-ec53f199.js +0 -112
- package/cjs/ListItemLayout-ec53f199.js.map +0 -1
- package/cjs/LiveRegion-567427c5.js +0 -41
- package/cjs/LiveRegion-567427c5.js.map +0 -1
- package/cjs/MaxLengthLiveRegion-f03f07c6.js +0 -25
- package/cjs/MaxLengthLiveRegion-f03f07c6.js.map +0 -1
- package/cjs/MessageLayer-f9aa9828.js +0 -61
- package/cjs/MessageLayer-f9aa9828.js.map +0 -1
- package/cjs/Modal-b9987f2d.js +0 -264
- package/cjs/Modal-b9987f2d.js.map +0 -1
- package/cjs/MonthView-9c2819f0.js +0 -210
- package/cjs/MonthView-9c2819f0.js.map +0 -1
- package/cjs/Popup-84ce41d3.js +0 -249
- package/cjs/Popup-84ce41d3.js.map +0 -1
- package/cjs/ProgressBar-aa9edb7a.js +0 -64
- package/cjs/ProgressBar-aa9edb7a.js.map +0 -1
- package/cjs/ProgressCircle-1d9fbade.js +0 -50
- package/cjs/ProgressCircle-1d9fbade.js.map +0 -1
- package/cjs/ScatterChart-80ef4bee.js +0 -105
- package/cjs/ScatterChart-80ef4bee.js.map +0 -1
- package/cjs/SectionedContent-06dc071c.js +0 -67
- package/cjs/SectionedContent-06dc071c.js.map +0 -1
- package/cjs/SelectionCard-67f7003e.js +0 -18
- package/cjs/SelectionCard-67f7003e.js.map +0 -1
- package/cjs/SelectorAll-b55e1b61.js +0 -71
- package/cjs/SelectorAll-b55e1b61.js.map +0 -1
- package/cjs/Sheet-86989265.js +0 -161
- package/cjs/Sheet-86989265.js.map +0 -1
- package/cjs/StyledCard-a0496c88.js +0 -107
- package/cjs/StyledCard-a0496c88.js.map +0 -1
- package/cjs/TabBarMixedSeparator-0e258647.js +0 -21
- package/cjs/TabBarMixedSeparator-0e258647.js.map +0 -1
- package/cjs/TextArea-4c8f0284.js +0 -180
- package/cjs/TextArea-4c8f0284.js.map +0 -1
- package/cjs/TextAreaAutosize-466a21cc.js +0 -246
- package/cjs/TextAreaAutosize-466a21cc.js.map +0 -1
- package/cjs/TruncatingBadge-efe34bb7.js +0 -36
- package/cjs/TruncatingBadge-efe34bb7.js.map +0 -1
- package/cjs/TruncatingText-33c06a6c.js +0 -50
- package/cjs/TruncatingText-33c06a6c.js.map +0 -1
- package/cjs/View-5930179e.js +0 -170
- package/cjs/View-5930179e.js.map +0 -1
- package/cjs/VisNoData-5b2aa6a2.js +0 -35
- package/cjs/VisNoData-5b2aa6a2.js.map +0 -1
- package/cjs/VisProgressiveLoader-dacfe618.js +0 -53
- package/cjs/VisProgressiveLoader-dacfe618.js.map +0 -1
- package/cjs/VisTabularDatatip-eca8aa8f.js +0 -26
- package/cjs/VisTabularDatatip-eca8aa8f.js.map +0 -1
- package/cjs/WindowOverlay-06408f56.js +0 -112
- package/cjs/WindowOverlay-06408f56.js.map +0 -1
- package/cjs/YearsGridView-09f2f6c4.js +0 -190
- package/cjs/YearsGridView-09f2f6c4.js.map +0 -1
- package/cjs/index-ce6f9627.js +0 -13
- package/cjs/index-ce6f9627.js.map +0 -1
- package/cjs/render-9767e967.js +0 -41
- package/cjs/render-9767e967.js.map +0 -1
- package/cjs/tabbableUtils-a38b7148.js +0 -81
- package/cjs/tabbableUtils-a38b7148.js.map +0 -1
- package/cjs/testData-7439df49.js +0 -271
- package/cjs/testData-7439df49.js.map +0 -1
- package/cjs/tooltipUtils-669c2ae0.js +0 -97
- package/cjs/tooltipUtils-669c2ae0.js.map +0 -1
- package/cjs/useChartDatatip-c6107d63.js +0 -166
- package/cjs/useChartDatatip-c6107d63.js.map +0 -1
- package/cjs/useColorScheme-ce2a88b1.js +0 -21
- package/cjs/useColorScheme-ce2a88b1.js.map +0 -1
- package/cjs/useCssVars-bd95e715.js +0 -60
- package/cjs/useCssVars-bd95e715.js.map +0 -1
- package/cjs/useCurrentBgColor-6e39eb3a.js +0 -21
- package/cjs/useCurrentBgColor-6e39eb3a.js.map +0 -1
- package/cjs/useCurrentKey-88495da2.js +0 -83
- package/cjs/useCurrentKey-88495da2.js.map +0 -1
- package/cjs/useDatatip-83ab0540.js +0 -89
- package/cjs/useDatatip-83ab0540.js.map +0 -1
- package/cjs/useDensity-1f8cc921.js +0 -21
- package/cjs/useDensity-1f8cc921.js.map +0 -1
- package/cjs/useFloating-480d365a.js +0 -1926
- package/cjs/useFloating-480d365a.js.map +0 -1
- package/cjs/useKeyboardEvents-5e808fe3.js +0 -81
- package/cjs/useKeyboardEvents-5e808fe3.js.map +0 -1
- package/cjs/useMeterDatatip-641afcc6.js +0 -77
- package/cjs/useMeterDatatip-641afcc6.js.map +0 -1
- package/cjs/useOutsideClick-03a6c38c.js +0 -103
- package/cjs/useOutsideClick-03a6c38c.js.map +0 -1
- package/cjs/usePopupAnimation-2afacc4b.js +0 -87
- package/cjs/usePopupAnimation-2afacc4b.js.map +0 -1
- package/cjs/usePrefixSuffix-23341de3.js +0 -72
- package/cjs/usePrefixSuffix-23341de3.js.map +0 -1
- package/cjs/useReorderableItem-0dbb8843.js +0 -271
- package/cjs/useReorderableItem-0dbb8843.js.map +0 -1
- package/cjs/useRovingTabIndexContainer-dc12b802.js +0 -100
- package/cjs/useRovingTabIndexContainer-dc12b802.js.map +0 -1
- package/cjs/useScale-a681a5cb.js +0 -21
- package/cjs/useScale-a681a5cb.js.map +0 -1
- package/cjs/useSelectDrill-c95b1a51.js +0 -106
- package/cjs/useSelectDrill-c95b1a51.js.map +0 -1
- package/cjs/useSelection-228ef3ce.js +0 -241
- package/cjs/useSelection-228ef3ce.js.map +0 -1
- package/cjs/useSelection-efdf0e84.js +0 -187
- package/cjs/useSelection-efdf0e84.js.map +0 -1
- package/cjs/useTestId-5e6af45d.js +0 -23
- package/cjs/useTestId-5e6af45d.js.map +0 -1
- package/cjs/useTheme-8fb5546b.js +0 -21
- package/cjs/useTheme-8fb5546b.js.map +0 -1
- package/cjs/useThemeInterpolations-28ca9a13.js +0 -59
- package/cjs/useThemeInterpolations-28ca9a13.js.map +0 -1
- package/cjs/useTooltip-81b7b753.js +0 -51
- package/cjs/useTooltip-81b7b753.js.map +0 -1
- package/cjs/useTooltipControlled-33832163.js +0 -371
- package/cjs/useTooltipControlled-33832163.js.map +0 -1
- package/cjs/useTranslationBundle-51f4c22c.js +0 -31
- package/cjs/useTranslationBundle-51f4c22c.js.map +0 -1
- package/cjs/useUser-a4bfc560.js +0 -21
- package/cjs/useUser-a4bfc560.js.map +0 -1
- package/cjs/useVisEvents-e48065f4.js +0 -155
- package/cjs/useVisEvents-e48065f4.js.map +0 -1
- package/cjs/withDirectionIcon-1affce30.js +0 -16
- package/cjs/withDirectionIcon-1affce30.js.map +0 -1
- package/es/BaseCardView-c5a8ee6a.js +0 -683
- package/es/BaseCardView-c5a8ee6a.js.map +0 -1
- package/es/BaseCardViewSelectionTest-1a6585af.js +0 -721
- package/es/BaseCardViewSelectionTest-1a6585af.js.map +0 -1
- package/es/Card-44b7de2f.js +0 -15
- package/es/Card-44b7de2f.js.map +0 -1
- package/es/CardFlexView-529906e0.js +0 -27
- package/es/CardFlexView-529906e0.js.map +0 -1
- package/es/CardGridView-ec18c929.js +0 -15
- package/es/CardGridView-ec18c929.js.map +0 -1
- package/es/Center-8b48ab02.js +0 -16
- package/es/Center-8b48ab02.js.map +0 -1
- package/es/CheckboxSetContext-1be56556.js +0 -9
- package/es/CheckboxSetContext-1be56556.js.map +0 -1
- package/es/CompactLabelAssistance-6a627bbb.js +0 -34
- package/es/CompactLabelAssistance-6a627bbb.js.map +0 -1
- package/es/DatePicker-d4c3ec06.js +0 -564
- package/es/DatePicker-d4c3ec06.js.map +0 -1
- package/es/Diagram-a6348a41.js +0 -2026
- package/es/Diagram-a6348a41.js.map +0 -1
- package/es/Dialog-d64dd573.js +0 -316
- package/es/Dialog-d64dd573.js.map +0 -1
- package/es/DragHandle-d3a739f5.js +0 -22
- package/es/DragHandle-d3a739f5.js.map +0 -1
- package/es/Dropdown-f0cdaeae.js +0 -80
- package/es/Dropdown-f0cdaeae.js.map +0 -1
- package/es/EnvironmentProvider-0fc2fd0c.js +0 -58
- package/es/EnvironmentProvider-0fc2fd0c.js.map +0 -1
- package/es/Flex-8696b27b.js +0 -30
- package/es/Flex-8696b27b.js.map +0 -1
- package/es/Floating-9bf456f9.js +0 -462
- package/es/Floating-9bf456f9.js.map +0 -1
- package/es/Grid-7fd29a9e.js +0 -27
- package/es/Grid-7fd29a9e.js.map +0 -1
- package/es/Gridlines-5ac89a84.js +0 -168
- package/es/Gridlines-5ac89a84.js.map +0 -1
- package/es/HighlightText-cc043982.js +0 -31
- package/es/HighlightText-cc043982.js.map +0 -1
- package/es/IconUserAssistance-627f9d18.js +0 -73
- package/es/IconUserAssistance-627f9d18.js.map +0 -1
- package/es/Indexer-ba2c7593.js +0 -336
- package/es/Indexer-ba2c7593.js.map +0 -1
- package/es/InputDatePicker-dd3b6c89.js +0 -307
- package/es/InputDatePicker-dd3b6c89.js.map +0 -1
- package/es/Layer-12a734d1.js +0 -88
- package/es/Layer-12a734d1.js.map +0 -1
- package/es/LayerHost-15b42a3e.js +0 -40
- package/es/LayerHost-15b42a3e.js.map +0 -1
- package/es/LayerManager-af39e736.js +0 -34
- package/es/LayerManager-af39e736.js.map +0 -1
- package/es/LineAreaChart-94387b8b.js +0 -170
- package/es/LineAreaChart-94387b8b.js.map +0 -1
- package/es/LineSeries-ca5836e7.js +0 -109
- package/es/LineSeries-ca5836e7.js.map +0 -1
- package/es/List-97b7be70.js +0 -718
- package/es/List-97b7be70.js.map +0 -1
- package/es/ListItemLayout-e87958e3.js +0 -110
- package/es/ListItemLayout-e87958e3.js.map +0 -1
- package/es/ListView-936d8a4f.js +0 -428
- package/es/ListView-936d8a4f.js.map +0 -1
- package/es/LiveRegion-cb4f8a54.js +0 -39
- package/es/LiveRegion-cb4f8a54.js.map +0 -1
- package/es/LoadMoreCollection-95a49d2a.js +0 -31
- package/es/LoadMoreCollection-95a49d2a.js.map +0 -1
- package/es/MaxLengthLiveRegion-59087064.js +0 -23
- package/es/MaxLengthLiveRegion-59087064.js.map +0 -1
- package/es/MessageLayer-8bed437a.js +0 -58
- package/es/MessageLayer-8bed437a.js.map +0 -1
- package/es/Modal-103da2aa.js +0 -262
- package/es/Modal-103da2aa.js.map +0 -1
- package/es/MonthView-3f86e858.js +0 -208
- package/es/MonthView-3f86e858.js.map +0 -1
- package/es/Popup-6c3f0839.js +0 -247
- package/es/Popup-6c3f0839.js.map +0 -1
- package/es/ProgressBar-95461222.js +0 -62
- package/es/ProgressBar-95461222.js.map +0 -1
- package/es/ProgressCircle-93c309cb.js +0 -48
- package/es/ProgressCircle-93c309cb.js.map +0 -1
- package/es/ScatterChart-739a9ec0.js +0 -103
- package/es/ScatterChart-739a9ec0.js.map +0 -1
- package/es/SectionedContent-3fd063af.js +0 -64
- package/es/SectionedContent-3fd063af.js.map +0 -1
- package/es/SelectMultiple-ad8fc99a.js +0 -1303
- package/es/SelectMultiple-ad8fc99a.js.map +0 -1
- package/es/SelectSingle-abaf271c.js +0 -736
- package/es/SelectSingle-abaf271c.js.map +0 -1
- package/es/SelectionCard-1f8585cb.js +0 -16
- package/es/SelectionCard-1f8585cb.js.map +0 -1
- package/es/SelectorAll-e833da6d.js +0 -69
- package/es/SelectorAll-e833da6d.js.map +0 -1
- package/es/Sheet-0861fcc0.js +0 -158
- package/es/Sheet-0861fcc0.js.map +0 -1
- package/es/StyledCard-f5965d6d.js +0 -105
- package/es/StyledCard-f5965d6d.js.map +0 -1
- package/es/TabBarMixedSeparator-da56f4c0.js +0 -19
- package/es/TabBarMixedSeparator-da56f4c0.js.map +0 -1
- package/es/Table-1ba124ec.js +0 -5509
- package/es/Table-1ba124ec.js.map +0 -1
- package/es/TableView-20223ba6.js +0 -31
- package/es/TableView-20223ba6.js.map +0 -1
- package/es/TextArea-64b4e972.js +0 -177
- package/es/TextArea-64b4e972.js.map +0 -1
- package/es/TextAreaAutosize-4e0f60ef.js +0 -244
- package/es/TextAreaAutosize-4e0f60ef.js.map +0 -1
- package/es/TruncatingBadge-b69c1ceb.js +0 -34
- package/es/TruncatingBadge-b69c1ceb.js.map +0 -1
- package/es/TruncatingText-68acfafd.js +0 -48
- package/es/TruncatingText-68acfafd.js.map +0 -1
- package/es/View-63980a9b.js +0 -167
- package/es/View-63980a9b.js.map +0 -1
- package/es/VirtualizedCollection-e73890a1.js +0 -176
- package/es/VirtualizedCollection-e73890a1.js.map +0 -1
- package/es/VirtualizedListView-3ef40bde.js +0 -14
- package/es/VirtualizedListView-3ef40bde.js.map +0 -1
- package/es/VisNoData-02cab8f6.js +0 -32
- package/es/VisNoData-02cab8f6.js.map +0 -1
- package/es/VisProgressiveLoader-2b2103c8.js +0 -51
- package/es/VisProgressiveLoader-2b2103c8.js.map +0 -1
- package/es/VisTabularDatatip-2ae7ee48.js +0 -24
- package/es/VisTabularDatatip-2ae7ee48.js.map +0 -1
- package/es/WindowOverlay-9b43e658.js +0 -110
- package/es/WindowOverlay-9b43e658.js.map +0 -1
- package/es/YearsGridView-cc0574f2.js +0 -187
- package/es/YearsGridView-cc0574f2.js.map +0 -1
- package/es/index-20f848bc.js +0 -11
- package/es/index-20f848bc.js.map +0 -1
- package/es/render-2b908d4f.js +0 -34
- package/es/render-2b908d4f.js.map +0 -1
- package/es/tabbableUtils-20bbaf8d.js +0 -79
- package/es/tabbableUtils-20bbaf8d.js.map +0 -1
- package/es/testData-70bebfae.js +0 -256
- package/es/testData-70bebfae.js.map +0 -1
- package/es/tooltipUtils-38192add.js +0 -92
- package/es/tooltipUtils-38192add.js.map +0 -1
- package/es/useChartDatatip-977bc33d.js +0 -164
- package/es/useChartDatatip-977bc33d.js.map +0 -1
- package/es/useColorScheme-d8a80e2b.js +0 -19
- package/es/useColorScheme-d8a80e2b.js.map +0 -1
- package/es/useCssVars-8e6932f8.js +0 -58
- package/es/useCssVars-8e6932f8.js.map +0 -1
- package/es/useCurrentBgColor-5418492b.js +0 -19
- package/es/useCurrentBgColor-5418492b.js.map +0 -1
- package/es/useCurrentKey-63f6afcc.js +0 -81
- package/es/useCurrentKey-63f6afcc.js.map +0 -1
- package/es/useDatatip-bce558e2.js +0 -87
- package/es/useDatatip-bce558e2.js.map +0 -1
- package/es/useDensity-64ecb649.js +0 -19
- package/es/useDensity-64ecb649.js.map +0 -1
- package/es/useFloating-41d21e7d.js +0 -1916
- package/es/useFloating-41d21e7d.js.map +0 -1
- package/es/useKeyboardEvents-5c311766.js +0 -78
- package/es/useKeyboardEvents-5c311766.js.map +0 -1
- package/es/useMeterDatatip-5268869e.js +0 -74
- package/es/useMeterDatatip-5268869e.js.map +0 -1
- package/es/useOutsideClick-8a582d08.js +0 -101
- package/es/useOutsideClick-8a582d08.js.map +0 -1
- package/es/usePopupAnimation-e2e6a2ca.js +0 -85
- package/es/usePopupAnimation-e2e6a2ca.js.map +0 -1
- package/es/usePrefixSuffix-435a9c59.js +0 -70
- package/es/usePrefixSuffix-435a9c59.js.map +0 -1
- package/es/useReorderableItem-96616318.js +0 -268
- package/es/useReorderableItem-96616318.js.map +0 -1
- package/es/useRovingTabIndexContainer-9afe3ee0.js +0 -98
- package/es/useRovingTabIndexContainer-9afe3ee0.js.map +0 -1
- package/es/useScale-c86ecc6e.js +0 -19
- package/es/useScale-c86ecc6e.js.map +0 -1
- package/es/useSelectCommon-1dafa6f9.js +0 -686
- package/es/useSelectCommon-1dafa6f9.js.map +0 -1
- package/es/useSelectDrill-24264e6b.js +0 -103
- package/es/useSelectDrill-24264e6b.js.map +0 -1
- package/es/useSelection-1b256f77.js +0 -185
- package/es/useSelection-1b256f77.js.map +0 -1
- package/es/useSelection-879c64aa.js +0 -239
- package/es/useSelection-879c64aa.js.map +0 -1
- package/es/useTestId-3bc3958c.js +0 -21
- package/es/useTestId-3bc3958c.js.map +0 -1
- package/es/useTheme-4b0f211c.js +0 -19
- package/es/useTheme-4b0f211c.js.map +0 -1
- package/es/useThemeInterpolations-8bee52ac.js +0 -57
- package/es/useThemeInterpolations-8bee52ac.js.map +0 -1
- package/es/useTooltip-98b6d3b5.js +0 -49
- package/es/useTooltip-98b6d3b5.js.map +0 -1
- package/es/useTooltipControlled-b565c75b.js +0 -368
- package/es/useTooltipControlled-b565c75b.js.map +0 -1
- package/es/useTranslationBundle-98df6291.js +0 -29
- package/es/useTranslationBundle-98df6291.js.map +0 -1
- package/es/useUser-a15426fc.js +0 -19
- package/es/useUser-a15426fc.js.map +0 -1
- package/es/useVisEvents-7d4753c4.js +0 -153
- package/es/useVisEvents-7d4753c4.js.map +0 -1
- package/es/withDirectionIcon-90d7c798.js +0 -14
- package/es/withDirectionIcon-90d7c798.js.map +0 -1
|
@@ -0,0 +1,2026 @@
|
|
|
1
|
+
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
+
import { jsx, jsxs, Fragment } from 'preact/jsx-runtime';
|
|
3
|
+
import { T as TrackResizeContainer } from './TrackResizeContainer-aa13760c.js';
|
|
4
|
+
import { itemStyles, layerStyles, labelStyles, panZoomStyles, outerStyles, dimensionStyle } from './UNSAFE_Diagram/themes/DiagramStyles.css.js';
|
|
5
|
+
import { u as useResizeObserver } from './useResizeObserver-838164c1.js';
|
|
6
|
+
import { useRef, useCallback, useState } from 'preact/hooks';
|
|
7
|
+
import { g as generateAriaLabel } from './accUtils-60925ab1.js';
|
|
8
|
+
import { c as classNames } from './classNames-4e12b00d.js';
|
|
9
|
+
import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
|
|
10
|
+
import { u as useUser } from './useUser-bca8cf2d.js';
|
|
11
|
+
import { g as getRandomId, c as calculateOffset } from './layoutUtils-6725789c.js';
|
|
12
|
+
import { u as useVisHover } from './useVisHover-d7a0b2f3.js';
|
|
13
|
+
import { m as mergeProps } from './mergeProps-88ea8306.js';
|
|
14
|
+
import { u as useDatatip } from './useDatatip-40475371.js';
|
|
15
|
+
import { u as useTextDimensions } from './useTextDimensions-d73a1bf9.js';
|
|
16
|
+
import { i as isTouch } from './clientUtils-ff533310.js';
|
|
17
|
+
import { u as useVisDragModeControls } from './useVisDragModeControls-4d8d8a3b.js';
|
|
18
|
+
import { u as useSelection } from './useSelection-bbd2320f.js';
|
|
19
|
+
import { u as useVisTouchResponse } from './useVisTouchResponse-a59ab166.js';
|
|
20
|
+
import { m as merge } from './stringUtils-16f617bc.js';
|
|
21
|
+
|
|
22
|
+
const ZOOM_TO_FIT_PADDING = 20;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the pan properties for the diagram.
|
|
25
|
+
*/
|
|
26
|
+
function getPanProps(props, contentBounds, userDragMode, isDeviceTouch) {
|
|
27
|
+
return {
|
|
28
|
+
panning: isDeviceTouch
|
|
29
|
+
? userDragMode === 'pan' && props.panning
|
|
30
|
+
? props.panning
|
|
31
|
+
: 'off'
|
|
32
|
+
: props.panning
|
|
33
|
+
? props.panning
|
|
34
|
+
: 'off',
|
|
35
|
+
panDirection: props.panDirection ? props.panDirection : 'any',
|
|
36
|
+
centerX: props.centerX !== undefined ? props.centerX : contentBounds.w / 2 + contentBounds.x,
|
|
37
|
+
centerY: props.centerY !== undefined ? props.centerY : contentBounds.h / 2 + contentBounds.y,
|
|
38
|
+
onPan: props.onPan
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns the zoom properties for the diagram.
|
|
43
|
+
*/
|
|
44
|
+
function getZoomProps(props, width, height, contentBounds) {
|
|
45
|
+
const minZoom = props.minZoom ? props.minZoom : getZoomToFitZoom(width, height, contentBounds);
|
|
46
|
+
const maxZoom = props.maxZoom !== undefined ? props.maxZoom : 1;
|
|
47
|
+
const zoom = props.zoomValue ? props.zoomValue : getZoomToFitZoom(width, height, contentBounds);
|
|
48
|
+
return {
|
|
49
|
+
zooming: props.zooming ? props.zooming : 'off',
|
|
50
|
+
// default value of 0 indicates zoom-to-fit level
|
|
51
|
+
minZoom: minZoom,
|
|
52
|
+
maxZoom: maxZoom,
|
|
53
|
+
// zoom value of 0 will default to zoom to fit
|
|
54
|
+
zoomValue: constrainZoom(zoom, minZoom, maxZoom),
|
|
55
|
+
onZoom: props.onZoom
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Constructs the json object to be passed into the layout function
|
|
60
|
+
*/
|
|
61
|
+
function constructLayoutJSON(nodes, nodeItems, linkItems, dimensions, width, height, getTextDimensions) {
|
|
62
|
+
const labelDims = new Map();
|
|
63
|
+
const nodeKeys = Array.from(nodeItems.keys());
|
|
64
|
+
for (const id of nodeKeys) {
|
|
65
|
+
const item = nodeItems.get(id);
|
|
66
|
+
if (item && getTextDimensions && item.label) {
|
|
67
|
+
const label = item.label;
|
|
68
|
+
const fontProps = _getFontProps(item.labelStyle);
|
|
69
|
+
labelDims.set(id, getTextDimensions(label, fontProps));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const linkKeys = Array.from(linkItems.keys());
|
|
73
|
+
for (const id of linkKeys) {
|
|
74
|
+
const item = linkItems.get(id);
|
|
75
|
+
if (item && getTextDimensions && item.label) {
|
|
76
|
+
const label = item.label;
|
|
77
|
+
const fontProps = _getFontProps(item.labelStyle);
|
|
78
|
+
labelDims.set(id, getTextDimensions(label, fontProps));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const getLabelDimensions = function (data) {
|
|
82
|
+
return labelDims.get(data.id);
|
|
83
|
+
};
|
|
84
|
+
const getNodeDimensions = function (data) {
|
|
85
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
86
|
+
if (data.id === nodes[i].id) {
|
|
87
|
+
return dimensions[i];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return dimensions[0];
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
layoutJSON: {
|
|
94
|
+
getNodeDimensions: getNodeDimensions,
|
|
95
|
+
getLabelDimensions: getLabelDimensions,
|
|
96
|
+
componentSize: {
|
|
97
|
+
width: width,
|
|
98
|
+
height: height
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
labelDims: labelDims
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Deconstructs the output of the layout function
|
|
106
|
+
*/
|
|
107
|
+
function deconstructLayoutJSON(layoutJSON, nodeData, linkData) {
|
|
108
|
+
const nodes = layoutJSON.nodes;
|
|
109
|
+
const links = layoutJSON.links;
|
|
110
|
+
const positions = [];
|
|
111
|
+
const nodeLabelPos = [];
|
|
112
|
+
const linkLabelPos = [];
|
|
113
|
+
let hasNodeLabels = false;
|
|
114
|
+
let hasLinkLabels = false;
|
|
115
|
+
let node, link;
|
|
116
|
+
for (let i = 0; i < nodeData.length; i++) {
|
|
117
|
+
node = nodes[nodeData[i].id];
|
|
118
|
+
positions.push(node.position);
|
|
119
|
+
if (node.label)
|
|
120
|
+
hasNodeLabels = true;
|
|
121
|
+
nodeLabelPos.push(node.label);
|
|
122
|
+
}
|
|
123
|
+
if (links) {
|
|
124
|
+
for (let i = 0; i < linkData.length; i++) {
|
|
125
|
+
link = links[linkData[i].id];
|
|
126
|
+
if (link.label)
|
|
127
|
+
hasLinkLabels = true;
|
|
128
|
+
linkLabelPos.push(link.label);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
nodePoints: positions,
|
|
133
|
+
nodeLabelPos: hasNodeLabels ? nodeLabelPos : undefined,
|
|
134
|
+
linkLabelPos: hasLinkLabels ? linkLabelPos : undefined
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Merges the node points into the dimensions
|
|
139
|
+
*/
|
|
140
|
+
function mergeDimensions(dimensions, nodePoints) {
|
|
141
|
+
const newBounds = [];
|
|
142
|
+
for (let i = 0; i < dimensions.length; i++) {
|
|
143
|
+
const point = nodePoints[i];
|
|
144
|
+
const dim = dimensions[i];
|
|
145
|
+
newBounds.push({ x: point.x, y: point.y, w: dim.w, h: dim.h });
|
|
146
|
+
}
|
|
147
|
+
return newBounds;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Deep equality check for whether two arrays of bounds are the same
|
|
151
|
+
*/
|
|
152
|
+
function isEqualBounds(bounds1, bounds2) {
|
|
153
|
+
if (bounds1.length !== bounds2.length)
|
|
154
|
+
return false;
|
|
155
|
+
return bounds1.every(({ x, y, w, h }, i) => bounds2[i].x === x && bounds2[i].y === y && bounds2[i].w === w && bounds2[i].h === h);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Returns the text for the diagram datatip.
|
|
159
|
+
*/
|
|
160
|
+
function getDatatipContent(nodesMap, linksMap, focusedItem, hoveredItem, datatip) {
|
|
161
|
+
let itemInfo;
|
|
162
|
+
const isPointerActive = hoveredItem?.isCurrent;
|
|
163
|
+
if (isPointerActive && hoveredItem.id != null) {
|
|
164
|
+
itemInfo = hoveredItem;
|
|
165
|
+
}
|
|
166
|
+
if (focusedItem && focusedItem.isCurrent) {
|
|
167
|
+
itemInfo = focusedItem;
|
|
168
|
+
}
|
|
169
|
+
if (itemInfo && datatip) {
|
|
170
|
+
return datatip(itemInfo.isNode
|
|
171
|
+
? { data: nodesMap.get(itemInfo.id), type: 'node' }
|
|
172
|
+
: { data: linksMap.get(itemInfo.id), type: 'link' });
|
|
173
|
+
}
|
|
174
|
+
if (itemInfo) {
|
|
175
|
+
const text = (itemInfo.isNode ? nodesMap.get(itemInfo.id) : linksMap.get(itemInfo.id))?.accessibleLabel;
|
|
176
|
+
return {
|
|
177
|
+
content: text
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Creates a map with key id and value node or link data
|
|
184
|
+
*/
|
|
185
|
+
function createItemMap(items) {
|
|
186
|
+
const itemIdToDataMap = new Map();
|
|
187
|
+
const itemIdToIndexMap = new Map();
|
|
188
|
+
const itemIndexToIdMap = new Map();
|
|
189
|
+
for (let i = 0; i < items.length; i++) {
|
|
190
|
+
itemIdToDataMap.set(items[i].id, items[i]);
|
|
191
|
+
itemIdToIndexMap.set(items[i].id, i);
|
|
192
|
+
itemIndexToIdMap.set(i, items[i].id);
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
itemIdToDataMap,
|
|
196
|
+
itemIdToIndexMap,
|
|
197
|
+
itemIndexToIdMap
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Filter out links with no start or end nodes
|
|
202
|
+
*/
|
|
203
|
+
function filterLinksWithNoEndNodes(links, nodesMap) {
|
|
204
|
+
const newLinks = [];
|
|
205
|
+
for (let i = 0; i < links.length; i++) {
|
|
206
|
+
const link = links[i];
|
|
207
|
+
if (nodesMap.get(link.startNode) && nodesMap.get(link.endNode)) {
|
|
208
|
+
newLinks.push(link);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
return newLinks;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Pulls out the dimensions from an array of bounds
|
|
215
|
+
*/
|
|
216
|
+
function getDimensionsFromBounds(bounds) {
|
|
217
|
+
const dims = [];
|
|
218
|
+
for (let i = 0; i < bounds.length; i++) {
|
|
219
|
+
dims.push({ w: bounds[i].w, h: bounds[i].h });
|
|
220
|
+
}
|
|
221
|
+
return dims;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Returns the center position of the node or link
|
|
225
|
+
* For links, draws a straight line between the centers of the start/end node
|
|
226
|
+
* and returns the center of that line
|
|
227
|
+
*/
|
|
228
|
+
function getFocusedItemBounds(focusedItemInfo, bounds, links, nodeIdToIndexMap, linkIdToIndexMap) {
|
|
229
|
+
if (focusedItemInfo.isNode) {
|
|
230
|
+
const idx = nodeIdToIndexMap.get(focusedItemInfo.id);
|
|
231
|
+
// Return the first element if cannot find the Node index
|
|
232
|
+
return bounds[idx || 0];
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
// Center of a straight line between start/end node centers
|
|
236
|
+
const link = links[linkIdToIndexMap.get(focusedItemInfo.id) || 0];
|
|
237
|
+
const startNB = bounds[nodeIdToIndexMap.get(link.startNode) || 0];
|
|
238
|
+
const endNB = bounds[nodeIdToIndexMap.get(link.endNode) || 0];
|
|
239
|
+
const startNCenter = { x: startNB.x + startNB.w / 2, y: startNB.y + startNB.h / 2 };
|
|
240
|
+
const endNCenter = { x: endNB.x + endNB.w / 2, y: endNB.y + endNB.h / 2 };
|
|
241
|
+
const minX = Math.min(startNCenter.x, endNCenter.x);
|
|
242
|
+
const minY = Math.min(startNCenter.y, endNCenter.y);
|
|
243
|
+
return {
|
|
244
|
+
x: minX,
|
|
245
|
+
y: minY,
|
|
246
|
+
w: Math.abs(startNCenter.x - endNCenter.x),
|
|
247
|
+
h: Math.abs(startNCenter.y - endNCenter.y)
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Combines the node and link ids into one array
|
|
253
|
+
*/
|
|
254
|
+
function combineIds(nodeIds, linkIds) {
|
|
255
|
+
const combinedIds = [];
|
|
256
|
+
if (nodeIds) {
|
|
257
|
+
for (let i = 0; i < nodeIds.length; i++) {
|
|
258
|
+
combinedIds.push(nodeIds[i]);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
if (linkIds) {
|
|
262
|
+
for (let i = 0; i < linkIds.length; i++) {
|
|
263
|
+
combinedIds.push(linkIds[i]);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return combinedIds;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Returns the bounds of the diagram content
|
|
270
|
+
*/
|
|
271
|
+
function getContentBounds(nodeBounds, labelBounds) {
|
|
272
|
+
if (nodeBounds.length === 0)
|
|
273
|
+
return { x: 0, w: Infinity, y: 0, h: Infinity };
|
|
274
|
+
let minX = Infinity;
|
|
275
|
+
let minY = Infinity;
|
|
276
|
+
let maxX = -Infinity;
|
|
277
|
+
let maxY = -Infinity;
|
|
278
|
+
let dims;
|
|
279
|
+
for (let i = 0; i < nodeBounds.length; i++) {
|
|
280
|
+
dims = nodeBounds[i];
|
|
281
|
+
minX = dims.x < minX ? dims.x : minX;
|
|
282
|
+
minY = dims.y < minY ? dims.y : minY;
|
|
283
|
+
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
284
|
+
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
285
|
+
}
|
|
286
|
+
if (labelBounds) {
|
|
287
|
+
minX = labelBounds.x < minX ? labelBounds.x : minX;
|
|
288
|
+
minY = labelBounds.y < minY ? labelBounds.y : minY;
|
|
289
|
+
maxX = labelBounds.x + labelBounds.w > maxX ? labelBounds.x + labelBounds.w : maxX;
|
|
290
|
+
maxY = labelBounds.y + labelBounds.h > maxY ? labelBounds.y + labelBounds.h : maxY;
|
|
291
|
+
}
|
|
292
|
+
return { x: minX, w: maxX - minX, y: minY, h: maxY - minY };
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Returns the label bounds
|
|
296
|
+
*/
|
|
297
|
+
function getAllLabelBounds(labelDims, nodes, links, nodeLabelPos = [], linkLabelPos = [], isRTL) {
|
|
298
|
+
if (nodeLabelPos.length === 0 && linkLabelPos.length === 0)
|
|
299
|
+
return undefined;
|
|
300
|
+
let minX = Infinity;
|
|
301
|
+
let minY = Infinity;
|
|
302
|
+
let maxX = -Infinity;
|
|
303
|
+
let maxY = -Infinity;
|
|
304
|
+
let dims, label;
|
|
305
|
+
for (let i = 0; i < nodeLabelPos.length; i++) {
|
|
306
|
+
label = nodeLabelPos[i];
|
|
307
|
+
if (!label)
|
|
308
|
+
continue;
|
|
309
|
+
dims = getLabelBounds(label, labelDims.get(nodes[i].id), isRTL);
|
|
310
|
+
minX = dims.x < minX ? dims.x : minX;
|
|
311
|
+
minY = dims.y < minY ? dims.y : minY;
|
|
312
|
+
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
313
|
+
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
314
|
+
}
|
|
315
|
+
for (let i = 0; i < linkLabelPos.length; i++) {
|
|
316
|
+
label = linkLabelPos[i];
|
|
317
|
+
if (!label)
|
|
318
|
+
continue;
|
|
319
|
+
dims = getLabelBounds(label, labelDims.get(links[i].id), isRTL);
|
|
320
|
+
minX = dims.x < minX ? dims.x : minX;
|
|
321
|
+
minY = dims.y < minY ? dims.y : minY;
|
|
322
|
+
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
323
|
+
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
324
|
+
}
|
|
325
|
+
return { x: minX, w: maxX - minX, y: minY, h: maxY - minY };
|
|
326
|
+
}
|
|
327
|
+
function getLabelBounds(label, dims, isRTL) {
|
|
328
|
+
const labelPos = getLabelPosition(dims, label, isRTL);
|
|
329
|
+
const isRotating = label.rotationAngle;
|
|
330
|
+
if (!isRotating) {
|
|
331
|
+
return { x: labelPos.x, y: labelPos.y, w: dims.width, h: dims.height };
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
// Find the 4 corners of the label bounds relative to the rotation point
|
|
335
|
+
const rotationPoint = label.rotationPoint
|
|
336
|
+
? label.rotationPoint
|
|
337
|
+
: { x: dims.width / 2, y: dims.height / 2 };
|
|
338
|
+
const angle = label.rotationAngle;
|
|
339
|
+
const topLeft = getCoordsRelToRotPoint({ x: 0, y: 0 }, rotationPoint);
|
|
340
|
+
const topRight = getCoordsRelToRotPoint({ x: dims.width, y: 0 }, rotationPoint);
|
|
341
|
+
const bottomLeft = getCoordsRelToRotPoint({ x: 0, y: dims.height }, rotationPoint);
|
|
342
|
+
const bottomRight = getCoordsRelToRotPoint({ x: dims.width, y: dims.height }, rotationPoint);
|
|
343
|
+
const rotTopLeft = rotatePoint(topLeft, angle);
|
|
344
|
+
const rotBotLeft = rotatePoint(bottomLeft, angle);
|
|
345
|
+
const rotTopRight = rotatePoint(topRight, angle);
|
|
346
|
+
const rotBotRight = rotatePoint(bottomRight, angle);
|
|
347
|
+
const points = [rotTopLeft, rotBotLeft, rotTopRight, rotBotRight].map((pos) => {
|
|
348
|
+
return {
|
|
349
|
+
x: pos.x + labelPos.x + rotationPoint.x,
|
|
350
|
+
y: pos.y + labelPos.y + rotationPoint.y
|
|
351
|
+
};
|
|
352
|
+
});
|
|
353
|
+
return getBoundsFromPoints(points);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
function getCoordsRelToRotPoint(labelPoint, rotPoint) {
|
|
357
|
+
return { x: labelPoint.x - rotPoint.x, y: labelPoint.y - rotPoint.y };
|
|
358
|
+
}
|
|
359
|
+
function rotatePoint(pos, angle) {
|
|
360
|
+
return {
|
|
361
|
+
x: pos.x * Math.cos(angle) - pos.y * Math.sin(angle),
|
|
362
|
+
y: pos.x * Math.sin(angle) + pos.y * Math.cos(angle)
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
function getBoundsFromPoints(points) {
|
|
366
|
+
let minX = points[0].x;
|
|
367
|
+
let minY = points[0].y;
|
|
368
|
+
let maxX = points[0].x;
|
|
369
|
+
let maxY = points[0].y;
|
|
370
|
+
for (let i = 1; i < points.length; i++) {
|
|
371
|
+
const point = points[i];
|
|
372
|
+
if (point.x < minX)
|
|
373
|
+
minX = point.x;
|
|
374
|
+
else if (point.x > maxX)
|
|
375
|
+
maxX = point.x;
|
|
376
|
+
if (point.y < minY)
|
|
377
|
+
minY = point.y;
|
|
378
|
+
else if (point.y > maxY)
|
|
379
|
+
maxY = point.y;
|
|
380
|
+
}
|
|
381
|
+
return {
|
|
382
|
+
x: minX,
|
|
383
|
+
y: minY,
|
|
384
|
+
w: maxX - minX,
|
|
385
|
+
h: maxY - minY
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Returns the position of the label
|
|
390
|
+
* @param dimensions
|
|
391
|
+
* @param positionProps
|
|
392
|
+
* @returns position of the label
|
|
393
|
+
*/
|
|
394
|
+
function getLabelPosition(dimensions, positionProps, isRTL) {
|
|
395
|
+
const position = positionProps.position;
|
|
396
|
+
const hAlign = positionProps.hAlign ? positionProps.hAlign : isRTL ? 'right' : 'left';
|
|
397
|
+
const vAlign = positionProps.vAlign;
|
|
398
|
+
let x, y;
|
|
399
|
+
if (hAlign === 'center') {
|
|
400
|
+
x = position.x - dimensions.width / 2;
|
|
401
|
+
}
|
|
402
|
+
else if (hAlign === 'right') {
|
|
403
|
+
x = position.x - dimensions.width;
|
|
404
|
+
}
|
|
405
|
+
else {
|
|
406
|
+
x = position.x;
|
|
407
|
+
}
|
|
408
|
+
if (vAlign === 'middle') {
|
|
409
|
+
y = position.y - dimensions.height / 2;
|
|
410
|
+
}
|
|
411
|
+
else if (vAlign === 'bottom') {
|
|
412
|
+
y = position.y - dimensions.height;
|
|
413
|
+
}
|
|
414
|
+
else if (vAlign === 'baseline') {
|
|
415
|
+
y = position.y + dimensions.y;
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
y = position.y;
|
|
419
|
+
}
|
|
420
|
+
return {
|
|
421
|
+
x: x,
|
|
422
|
+
y: y
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Converts centerX,Y coordinates to panX,Y coordinates
|
|
427
|
+
*/
|
|
428
|
+
function centerXYToPanXY(centerX, centerY, zoom, width, height) {
|
|
429
|
+
return {
|
|
430
|
+
panX: width / 2 - centerX * zoom,
|
|
431
|
+
panY: height / 2 - centerY * zoom
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Converts panX,Y coordinates to centerX,Y coordinates
|
|
436
|
+
*/
|
|
437
|
+
function panXYToCenterXY(panX, panY, zoom, width, height) {
|
|
438
|
+
return {
|
|
439
|
+
centerX: (width / 2 - panX) / zoom,
|
|
440
|
+
centerY: (height / 2 - panY) / zoom
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Compares if two ItemInfo are equal
|
|
445
|
+
*/
|
|
446
|
+
function isEqualItem(item1, item2) {
|
|
447
|
+
return item1?.id === item2?.id && item1?.isNode === item2?.isNode;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Returns the item info of the data-oj-node or data-oj-link attribute for a given element.
|
|
451
|
+
*/
|
|
452
|
+
function getNavigableInfo(element, rootElementRef) {
|
|
453
|
+
let isNode = false;
|
|
454
|
+
let elem = element;
|
|
455
|
+
let navigableId;
|
|
456
|
+
while (!navigableId) {
|
|
457
|
+
navigableId = elem.dataset['node'];
|
|
458
|
+
if (navigableId) {
|
|
459
|
+
isNode = true;
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
navigableId = elem.dataset['link'];
|
|
463
|
+
}
|
|
464
|
+
if (!navigableId) {
|
|
465
|
+
if (elem.parentElement && elem.parentElement !== rootElementRef?.current) {
|
|
466
|
+
elem = elem.parentElement;
|
|
467
|
+
}
|
|
468
|
+
else {
|
|
469
|
+
break;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
return {
|
|
474
|
+
id: navigableId,
|
|
475
|
+
isNode: isNode
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Returns the aria label
|
|
480
|
+
*/
|
|
481
|
+
function getItemAriaLabel(translations, supportsSelection, isSelected, accessibleLabel) {
|
|
482
|
+
return generateAriaLabel(translations, accessibleLabel || '', {
|
|
483
|
+
isSelected: !supportsSelection ? undefined : isSelected
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Returns the zoom to fit zoom level
|
|
488
|
+
*/
|
|
489
|
+
function getZoomToFitZoom(width, height, contentBounds) {
|
|
490
|
+
const zoomX = (width - 2 * ZOOM_TO_FIT_PADDING) / contentBounds.w;
|
|
491
|
+
const zoomY = (height - 2 * ZOOM_TO_FIT_PADDING) / contentBounds.h;
|
|
492
|
+
return Math.min(zoomX, zoomY);
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Constrains the zoom level
|
|
496
|
+
*/
|
|
497
|
+
function constrainZoom(zoom, minZoom, maxZoom) {
|
|
498
|
+
let newZoom = Math.max(minZoom, zoom);
|
|
499
|
+
newZoom = Math.min(maxZoom, newZoom);
|
|
500
|
+
return newZoom;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Returns the font props for a node or link
|
|
504
|
+
*/
|
|
505
|
+
function _getFontProps(styles) {
|
|
506
|
+
const fontProps = {};
|
|
507
|
+
if (!styles)
|
|
508
|
+
return fontProps;
|
|
509
|
+
if (styles.fontFamily)
|
|
510
|
+
fontProps.fontFamily = styles.fontFamily;
|
|
511
|
+
if (styles.fontSize)
|
|
512
|
+
fontProps.fontSize = styles.fontSize;
|
|
513
|
+
if (styles.fontStyle)
|
|
514
|
+
fontProps.fontStyle = styles.fontStyle;
|
|
515
|
+
if (styles.fontWeight)
|
|
516
|
+
fontProps.fontWeight = styles.fontWeight;
|
|
517
|
+
return fontProps;
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Returns the panX, panY, and zoom when zooming and centering an item
|
|
521
|
+
*/
|
|
522
|
+
function zoomAndCenterItemFromInfo(info, linkIdToDataMap, bounds, nodeIdToIndex, width, height, maxZoom) {
|
|
523
|
+
const isNode = info.isNode;
|
|
524
|
+
let totalBounds;
|
|
525
|
+
if (isNode) {
|
|
526
|
+
const nodeIndex = nodeIdToIndex.get(info.id);
|
|
527
|
+
totalBounds = bounds[nodeIndex];
|
|
528
|
+
}
|
|
529
|
+
else {
|
|
530
|
+
const link = linkIdToDataMap.get(info.id);
|
|
531
|
+
const startNodeBounds = bounds[nodeIdToIndex.get(link.startNode)];
|
|
532
|
+
const endNodeBounds = bounds[nodeIdToIndex.get(link.endNode)];
|
|
533
|
+
const minX = Math.min(startNodeBounds.x, endNodeBounds.x);
|
|
534
|
+
const minY = Math.min(startNodeBounds.y, endNodeBounds.y);
|
|
535
|
+
const maxX = Math.max(startNodeBounds.x + startNodeBounds.w, endNodeBounds.x + startNodeBounds.w);
|
|
536
|
+
const maxY = Math.max(startNodeBounds.y + startNodeBounds.h, endNodeBounds.y + endNodeBounds.h);
|
|
537
|
+
totalBounds = { x: minX, y: minY, w: maxX - minX, h: maxY - minY };
|
|
538
|
+
}
|
|
539
|
+
return getPanZoomToCenterNode(totalBounds, maxZoom, width, height);
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Returns the pan and zoom values in order
|
|
543
|
+
* to center a node or link
|
|
544
|
+
*/
|
|
545
|
+
function getPanZoomToCenterNode(bounds, maxZoom, width, height) {
|
|
546
|
+
const zoomX = (width - 2 * ZOOM_TO_FIT_PADDING) / bounds.w;
|
|
547
|
+
const zoomY = (height - 2 * ZOOM_TO_FIT_PADDING) / bounds.h;
|
|
548
|
+
const zoom = Math.min(zoomX, zoomY, maxZoom);
|
|
549
|
+
const cX = bounds.w / 2 + bounds.x;
|
|
550
|
+
const cY = bounds.h / 2 + bounds.y;
|
|
551
|
+
return { centerX: cX, centerY: cY, zoom: zoom };
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
const DiagramNodeElement = ({ id, state, previousState, position, activeId, nodeRenderer, onNodeSizeChanged, nodeIndex, data, accessibleLabel, isDimmed, supportsSelection }) => {
|
|
555
|
+
const { nodeStyles, dimmedItemStyle } = itemStyles;
|
|
556
|
+
const context = {
|
|
557
|
+
state: state,
|
|
558
|
+
previousState: previousState,
|
|
559
|
+
data: data
|
|
560
|
+
};
|
|
561
|
+
const translations = useTranslationBundle('@oracle/oraclejet-preact');
|
|
562
|
+
const ref = useRef(null);
|
|
563
|
+
// TODO JET-62472 change to one resize observer function
|
|
564
|
+
const optionsRef = useRef({ box: 'border-box' });
|
|
565
|
+
useResizeObserver(ref, useCallback((entry) => {
|
|
566
|
+
const boxSize = entry.borderBoxSize;
|
|
567
|
+
const width = boxSize[0].inlineSize;
|
|
568
|
+
const height = boxSize[0].blockSize;
|
|
569
|
+
onNodeSizeChanged(width, height, nodeIndex);
|
|
570
|
+
}, [nodeIndex, onNodeSizeChanged]), optionsRef.current);
|
|
571
|
+
return (jsx("div", { ref: ref, class: classNames([nodeStyles, isDimmed ? dimmedItemStyle : undefined]), "data-node": id, role: "img", "aria-label": getItemAriaLabel(translations, supportsSelection, state.selected, accessibleLabel), style: {
|
|
572
|
+
top: position.y,
|
|
573
|
+
left: position.x
|
|
574
|
+
}, id: state.focused || state.hovered ? activeId : undefined, children: nodeRenderer(context) }, id));
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
function DiagramNodeLayer({ nodes, states, previousStates, nodeRenderer, nodeBounds, onNodeSizeChanged, supportsSelection }) {
|
|
578
|
+
return (jsx("div", { class: layerStyles, children: nodes.map((node, i) => {
|
|
579
|
+
// this is for initial render before the layout function so render all nodes at 0,0
|
|
580
|
+
const position = nodeBounds && nodeBounds[i] ? { x: nodeBounds[i].x, y: nodeBounds[i].y } : { x: 0, y: 0 };
|
|
581
|
+
const state = {
|
|
582
|
+
selected: states.selectedNodeIds.includes(node.id),
|
|
583
|
+
focused: states.focusedId === node.id,
|
|
584
|
+
hovered: states.hoveredId === node.id,
|
|
585
|
+
zoom: states.zoom
|
|
586
|
+
};
|
|
587
|
+
const previousState = {
|
|
588
|
+
selected: previousStates.selectedNodeIds.includes(node.id),
|
|
589
|
+
focused: previousStates.focusedId === node.id,
|
|
590
|
+
hovered: previousStates.hoveredId === node.id,
|
|
591
|
+
zoom: previousStates.zoom
|
|
592
|
+
};
|
|
593
|
+
return (jsx(DiagramNodeElement, { id: node.id, position: position, state: state, previousState: previousState, isDimmed: states.highlightedIds.length !== 0 && !states.highlightedIds.includes(node.id), activeId: states.activeId, nodeRenderer: nodeRenderer, onNodeSizeChanged: onNodeSizeChanged, nodeIndex: i, accessibleLabel: node.accessibleLabel, data: node, supportsSelection: supportsSelection }));
|
|
594
|
+
}) }));
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
const DiagramLinkElement = ({ id, state, previousState, activeId, data, linkRenderer, accessibleLabel, isDimmed, supportsSelection, layoutOutput }) => {
|
|
598
|
+
const translations = useTranslationBundle('@oracle/oraclejet-preact');
|
|
599
|
+
const { dimmedItemStyle, linkStyles } = itemStyles;
|
|
600
|
+
const context = {
|
|
601
|
+
state: state,
|
|
602
|
+
previousState: previousState,
|
|
603
|
+
data: data,
|
|
604
|
+
layoutOutput: layoutOutput
|
|
605
|
+
};
|
|
606
|
+
return (jsx("g", { id: state.focused ? activeId : undefined, "aria-label": getItemAriaLabel(translations, supportsSelection, state.selected, accessibleLabel), "data-link": id, role: "img", class: classNames([linkStyles, isDimmed && dimmedItemStyle]), children: linkRenderer(context) }, id));
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
function DiagramLinkLayer({ links, states, previousStates, linkRenderer, width, height, supportsSelection, layoutOutput }) {
|
|
610
|
+
return (jsx("svg", { class: layerStyles, width: width, height: height, children: links.map((link) => {
|
|
611
|
+
const state = {
|
|
612
|
+
selected: states.selectedLinkIds.includes(link.id),
|
|
613
|
+
focused: states.focusedId === link.id,
|
|
614
|
+
hovered: states.hoveredId === link.id,
|
|
615
|
+
zoom: states.zoom
|
|
616
|
+
};
|
|
617
|
+
const previousState = {
|
|
618
|
+
selected: previousStates.selectedLinkIds.includes(link.id),
|
|
619
|
+
focused: previousStates.focusedId === link.id,
|
|
620
|
+
hovered: previousStates.hoveredId === link.id,
|
|
621
|
+
zoom: previousStates.zoom
|
|
622
|
+
};
|
|
623
|
+
return (jsx(DiagramLinkElement, { id: link.id, label: link.label, state: state, previousState: previousState, isDimmed: states.highlightedIds.length !== 0 && !states.highlightedIds.includes(link.id), activeId: states.activeId, accessibleLabel: link.accessibleLabel, data: link, linkRenderer: linkRenderer, supportsSelection: supportsSelection, layoutOutput: layoutOutput }));
|
|
624
|
+
}) }));
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
const DiagramLabel = ({ text, position, styles, dimensions, isRTL }) => {
|
|
628
|
+
const { labelStyle, labelBorderStyle } = labelStyles;
|
|
629
|
+
const labelPosition = getLabelPosition(dimensions, position, isRTL);
|
|
630
|
+
const labelRotation = getLabelRotation(position);
|
|
631
|
+
return (jsx("div", { class: classNames([labelStyle, styles && styles.borderColor && labelBorderStyle]), style: {
|
|
632
|
+
top: labelPosition.y,
|
|
633
|
+
left: labelPosition.x,
|
|
634
|
+
...styles,
|
|
635
|
+
...labelRotation
|
|
636
|
+
}, children: text }));
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* Returns the label rotation props
|
|
640
|
+
* @param position
|
|
641
|
+
* @returns rotation props
|
|
642
|
+
*/
|
|
643
|
+
function getLabelRotation(position) {
|
|
644
|
+
const rotationAngle = position.rotationAngle;
|
|
645
|
+
const rotationPoint = position.rotationPoint;
|
|
646
|
+
const rotation = {};
|
|
647
|
+
if (rotationAngle) {
|
|
648
|
+
rotation['transform'] = `rotate(${rotationAngle}deg)`;
|
|
649
|
+
}
|
|
650
|
+
if (rotationPoint) {
|
|
651
|
+
rotation['transform-origin'] = `${rotationPoint.x}px ${rotationPoint.y}px`;
|
|
652
|
+
}
|
|
653
|
+
return rotation;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
function DiagramLabelLayer({ labelPosition, itemProps, labelDimensions }) {
|
|
657
|
+
const { direction } = useUser();
|
|
658
|
+
return (jsx("div", { class: layerStyles, children: itemProps.map((item, i) => {
|
|
659
|
+
if (item.label && labelPosition[i]) {
|
|
660
|
+
return (jsx(DiagramLabel, { styles: item.labelStyle, text: item.label, position: labelPosition[i], dimensions: labelDimensions.get(item.id), isRTL: direction === 'rtl' }));
|
|
661
|
+
}
|
|
662
|
+
return undefined;
|
|
663
|
+
}) }));
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
function DiagramLayers({ nodes, links, nodeRenderer, linkRenderer, states, previousStates, nodeBounds, onNodeSizeChanged, width, height, nodeLabelPositions, linkLabelPositions, labelDimensions, supportsSelection, layoutOutput }) {
|
|
667
|
+
return (jsxs(Fragment, { children: [links.length > 0 && layoutOutput && linkRenderer && width !== Infinity && (jsx(DiagramLinkLayer, { links: links, states: states, previousStates: previousStates, linkRenderer: linkRenderer, width: width, height: height, supportsSelection: supportsSelection, layoutOutput: layoutOutput })), jsx(DiagramNodeLayer, { nodes: nodes, nodeBounds: nodeBounds, states: states, previousStates: previousStates, nodeRenderer: nodeRenderer, onNodeSizeChanged: onNodeSizeChanged, supportsSelection: supportsSelection }), labelDimensions ? (jsxs("div", { children: [nodeLabelPositions ? (jsx(DiagramLabelLayer, { labelPosition: nodeLabelPositions, itemProps: nodes, labelDimensions: labelDimensions })) : undefined, links && linkLabelPositions ? (jsx(DiagramLabelLayer, { labelPosition: linkLabelPositions, itemProps: links, labelDimensions: labelDimensions })) : undefined] })) : undefined] }));
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
function DiagramPanZoomContainer({ centerX, centerY, children, zoom, width, height }) {
|
|
671
|
+
const panValues = centerXYToPanXY(centerX, centerY, zoom, width, height);
|
|
672
|
+
return (jsx("div", { class: panZoomStyles, style: {
|
|
673
|
+
//TODO JET-62471 look at using matrices or both in transform instead
|
|
674
|
+
translate: `${panValues.panX}px ${panValues.panY}px`,
|
|
675
|
+
transform: `scale(${zoom})`
|
|
676
|
+
}, children: children }));
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* @license
|
|
681
|
+
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
682
|
+
* The Universal Permissive License (UPL), Version 1.0
|
|
683
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
684
|
+
* @ignore
|
|
685
|
+
*/
|
|
686
|
+
/**
|
|
687
|
+
* Returns the node data based on node info in a diagram.
|
|
688
|
+
* @param itemInfo
|
|
689
|
+
* @returns
|
|
690
|
+
*/
|
|
691
|
+
function getNodeDetailFromInfo(itemInfo, nodes) {
|
|
692
|
+
let node;
|
|
693
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
694
|
+
node = nodes[i];
|
|
695
|
+
if (itemInfo.id === node.id) {
|
|
696
|
+
return node;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
return undefined;
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* Returns the link data based on link info in a diagram.
|
|
703
|
+
* @param itemInfo
|
|
704
|
+
* @returns
|
|
705
|
+
*/
|
|
706
|
+
function getLinkDetailFromInfo(itemInfo, links) {
|
|
707
|
+
let link;
|
|
708
|
+
for (let i = 0; i < links.length; i++) {
|
|
709
|
+
link = links[i];
|
|
710
|
+
if (itemInfo.id === link.id) {
|
|
711
|
+
return link;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
return undefined;
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Creates a map with key node id and value node bounds
|
|
718
|
+
*/
|
|
719
|
+
function createNodeBoundsMap(nodes, bounds) {
|
|
720
|
+
const nodeBounds = new Map();
|
|
721
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
722
|
+
nodeBounds.set(nodes[i].id, bounds[i]);
|
|
723
|
+
}
|
|
724
|
+
return nodeBounds;
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* Utility method that adds sorting attributes of each link to an array
|
|
728
|
+
*/
|
|
729
|
+
function addSortingAttributes(node, listOfLinks, nodes, nodeBounds) {
|
|
730
|
+
let angle, distance, direction;
|
|
731
|
+
const linkDetail = [];
|
|
732
|
+
for (let i = 0; i < listOfLinks.length; i++) {
|
|
733
|
+
const link = listOfLinks[i];
|
|
734
|
+
angle = _getClockwiseAngle(node, link, nodes, nodeBounds);
|
|
735
|
+
distance = _getNodesDistance(link, nodes, nodeBounds);
|
|
736
|
+
direction = _getLinkDirection(node, link);
|
|
737
|
+
linkDetail.push({ id: link.id, angle: angle, distance: distance, direction: direction });
|
|
738
|
+
}
|
|
739
|
+
return linkDetail;
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Returns a function that compares two link around a given node
|
|
743
|
+
* The links are analyzed by angle, distance from the node and direction. The sorting attributes are added to the links before sorting.
|
|
744
|
+
*/
|
|
745
|
+
function getLinkComparator() {
|
|
746
|
+
return (link1, link2) => {
|
|
747
|
+
const { angle: linkAngle1, distance: linkDistance1, direction: linkDirection1 } = link1;
|
|
748
|
+
const { angle: linkAngle2, distance: linkDistance2, direction: linkDirection2 } = link2;
|
|
749
|
+
let res = -1;
|
|
750
|
+
if (!_anglesAreEqualWithinTolerance(linkAngle1, linkAngle2) && linkAngle1 > linkAngle2) {
|
|
751
|
+
res = 1;
|
|
752
|
+
}
|
|
753
|
+
else if (_anglesAreEqualWithinTolerance(linkAngle1, linkAngle2)) {
|
|
754
|
+
//check distance and direction
|
|
755
|
+
if (linkDistance1 > linkDistance2) {
|
|
756
|
+
res = 1;
|
|
757
|
+
}
|
|
758
|
+
else if (linkDistance2 == linkDistance1 && linkDirection1 > linkDirection2) {
|
|
759
|
+
//outgoing to ingoing
|
|
760
|
+
res = 1;
|
|
761
|
+
}
|
|
762
|
+
else if (linkDistance2 == linkDistance1 && linkDirection1 == linkDirection2) {
|
|
763
|
+
res = 0;
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
return res;
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* Returns navigable links for a given node
|
|
771
|
+
*/
|
|
772
|
+
function getNavigableLinksForNodeId(nodeId, listOfLinks) {
|
|
773
|
+
const links = [];
|
|
774
|
+
listOfLinks.forEach((link) => {
|
|
775
|
+
const startId = link.startNode;
|
|
776
|
+
const endId = link.endNode;
|
|
777
|
+
if (startId == nodeId || endId == nodeId)
|
|
778
|
+
links.push(link);
|
|
779
|
+
});
|
|
780
|
+
return links;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Get the clockwise angle for the link given node as a center
|
|
784
|
+
*/
|
|
785
|
+
function _getClockwiseAngle(node, link, nodes, nodeBounds) {
|
|
786
|
+
//find opposite node
|
|
787
|
+
let currNode;
|
|
788
|
+
let startNode = nodes[0];
|
|
789
|
+
let endNode = nodes[0];
|
|
790
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
791
|
+
currNode = nodes[i];
|
|
792
|
+
if (currNode.id === link.startNode) {
|
|
793
|
+
startNode = currNode;
|
|
794
|
+
}
|
|
795
|
+
else if (currNode.id === link.endNode) {
|
|
796
|
+
endNode = currNode;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
const oppositeNode = node.id == startNode.id ? endNode : startNode;
|
|
800
|
+
const p1 = _getNodeCenter(node, nodeBounds);
|
|
801
|
+
const p2 = _getNodeCenter(oppositeNode, nodeBounds);
|
|
802
|
+
let angle = Math.atan2(p2.y - p1.y, p2.x - p1.x);
|
|
803
|
+
angle = angle < 0 ? angle + Math.PI * 2 : angle;
|
|
804
|
+
return angle;
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* Get the distance between start and end nodes for the given link
|
|
808
|
+
*/
|
|
809
|
+
function _getNodesDistance(link, nodes, nodeBounds) {
|
|
810
|
+
let currNode;
|
|
811
|
+
let startNode = nodes[0];
|
|
812
|
+
let endNode = nodes[0];
|
|
813
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
814
|
+
currNode = nodes[i];
|
|
815
|
+
if (currNode.id === link.startNode) {
|
|
816
|
+
startNode = currNode;
|
|
817
|
+
}
|
|
818
|
+
else if (currNode.id === link.endNode) {
|
|
819
|
+
endNode = currNode;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
const p1 = _getNodeCenter(startNode, nodeBounds);
|
|
823
|
+
const p2 = _getNodeCenter(endNode, nodeBounds);
|
|
824
|
+
return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Get link direction for the given node. 1 if the node is the end node
|
|
828
|
+
* and 0 if it is the start node
|
|
829
|
+
*/
|
|
830
|
+
function _getLinkDirection(node, link) {
|
|
831
|
+
if (link.endNode === node.id) {
|
|
832
|
+
return 1;
|
|
833
|
+
}
|
|
834
|
+
return 0;
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Get node center
|
|
838
|
+
*/
|
|
839
|
+
function _getNodeCenter(node, nodeBounds) {
|
|
840
|
+
const nodeBB = nodeBounds.get(node.id);
|
|
841
|
+
return { x: nodeBB.x + nodeBB.w / 2, y: nodeBB.y + nodeBB.h / 2 };
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* Calculates the angle weighted by distance
|
|
845
|
+
*/
|
|
846
|
+
function calcDistanceAngleWeighted(objectBB, currentBB, direction) {
|
|
847
|
+
// Variables used for calculating penalties when calculating distances between two navigables.
|
|
848
|
+
const optimalAngle1 = (15 / 180) * Math.PI;
|
|
849
|
+
const optimalAngle2 = (40 / 180) * Math.PI;
|
|
850
|
+
const suboptimalAnglePenalty1 = 2; // multiplier to the distance
|
|
851
|
+
const suboptimalAnglePenalty2 = 6; // multiplier to the distance
|
|
852
|
+
const objCenterX = objectBB.x + objectBB.w / 2;
|
|
853
|
+
const objCenterY = objectBB.y + objectBB.h / 2;
|
|
854
|
+
const curCenterX = currentBB.x + currentBB.w / 2;
|
|
855
|
+
const curCenterY = currentBB.y + currentBB.h / 2;
|
|
856
|
+
const x_dist = Math.abs(objCenterX - curCenterX);
|
|
857
|
+
const y_dist = Math.abs(objCenterY - curCenterY);
|
|
858
|
+
const angle = Math.atan2(y_dist, x_dist);
|
|
859
|
+
let distance = Math.sqrt(x_dist * x_dist + y_dist * y_dist);
|
|
860
|
+
// Angle penalty based on direction
|
|
861
|
+
if ((angle > optimalAngle1 && (direction == 'right' || direction == 'left')) ||
|
|
862
|
+
(angle < Math.PI / 2 - optimalAngle1 && (direction == 'up' || direction == 'down'))) {
|
|
863
|
+
if ((angle > optimalAngle2 && (direction == 'right' || direction == 'left')) ||
|
|
864
|
+
(angle < Math.PI / 2 - optimalAngle2 && (direction == 'up' || direction == 'down'))) {
|
|
865
|
+
distance *= suboptimalAnglePenalty2;
|
|
866
|
+
}
|
|
867
|
+
else {
|
|
868
|
+
distance *= suboptimalAnglePenalty1;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
return distance;
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Given a direction, is a certain node is a valid destination to navigate to
|
|
875
|
+
*/
|
|
876
|
+
function isValidDestination(objBB, curBB, direction, compareCenters) {
|
|
877
|
+
// compare the centers of the navigable and to be valid, the navigable must be in the right direction
|
|
878
|
+
// without tolerance
|
|
879
|
+
if (compareCenters) {
|
|
880
|
+
const objCenterX = objBB.x + 0.5 * objBB.w;
|
|
881
|
+
const curCenterX = curBB.x + 0.5 * curBB.w;
|
|
882
|
+
const objCenterY = objBB.y + 0.5 * objBB.h;
|
|
883
|
+
const curCenterY = curBB.y + 0.5 * curBB.h;
|
|
884
|
+
switch (direction) {
|
|
885
|
+
case 'up':
|
|
886
|
+
return objCenterY < curCenterY;
|
|
887
|
+
case 'down':
|
|
888
|
+
return objBB.y > curCenterY;
|
|
889
|
+
case 'right':
|
|
890
|
+
return objCenterX > curCenterX;
|
|
891
|
+
case 'left':
|
|
892
|
+
return objCenterX < curCenterX;
|
|
893
|
+
}
|
|
894
|
+
return true;
|
|
895
|
+
}
|
|
896
|
+
switch (direction) {
|
|
897
|
+
case 'up':
|
|
898
|
+
return objBB.y < curBB.y || _areEqualWithinTolerance(objBB.y, curBB.y);
|
|
899
|
+
case 'down':
|
|
900
|
+
return objBB.y > curBB.y || _areEqualWithinTolerance(objBB.y, curBB.y);
|
|
901
|
+
case 'right':
|
|
902
|
+
return objBB.x > curBB.x || _areEqualWithinTolerance(objBB.x, curBB.x);
|
|
903
|
+
case 'left':
|
|
904
|
+
return objBB.x < curBB.x || _areEqualWithinTolerance(objBB.x, curBB.x);
|
|
905
|
+
}
|
|
906
|
+
return true;
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Returns true if two nodes are in contact
|
|
910
|
+
*/
|
|
911
|
+
function calcInContact(objRect, curRect, direction) {
|
|
912
|
+
switch (direction) {
|
|
913
|
+
case 'up':
|
|
914
|
+
return (_isVerticallyAligned(objRect, curRect) &&
|
|
915
|
+
(curRect.y <= objRect.y + objRect.h ||
|
|
916
|
+
_areEqualWithinTolerance(curRect.y, objRect.y + objRect.h)));
|
|
917
|
+
case 'down':
|
|
918
|
+
return (_isVerticallyAligned(objRect, curRect) &&
|
|
919
|
+
(objRect.y <= curRect.y + curRect.h ||
|
|
920
|
+
_areEqualWithinTolerance(objRect.y, curRect.y + curRect.h)));
|
|
921
|
+
case 'right':
|
|
922
|
+
return (_isHorizontallyAligned(objRect, curRect) &&
|
|
923
|
+
(objRect.x <= curRect.x + curRect.w ||
|
|
924
|
+
_areEqualWithinTolerance(objRect.x, curRect.x + curRect.w)));
|
|
925
|
+
case 'left':
|
|
926
|
+
return (_isHorizontallyAligned(objRect, curRect) &&
|
|
927
|
+
(curRect.x <= objRect.x + objRect.w ||
|
|
928
|
+
_areEqualWithinTolerance(curRect.x, objRect.x + objRect.w)));
|
|
929
|
+
}
|
|
930
|
+
return false;
|
|
931
|
+
}
|
|
932
|
+
function _isVerticallyAligned(rect1, rect2) {
|
|
933
|
+
return ((rect1.x >= rect2.x && rect1.x <= rect2.x + rect2.w) ||
|
|
934
|
+
(rect2.x >= rect1.x && rect2.x <= rect1.x + rect1.w));
|
|
935
|
+
}
|
|
936
|
+
function _isHorizontallyAligned(rect1, rect2) {
|
|
937
|
+
return ((rect1.y >= rect2.y && rect1.y <= rect2.y + rect2.h) ||
|
|
938
|
+
(rect2.y >= rect1.y && rect2.y <= rect1.y + rect1.h));
|
|
939
|
+
}
|
|
940
|
+
function _areEqualWithinTolerance(a, b) {
|
|
941
|
+
return Math.abs(a - b) <= 0.0000001;
|
|
942
|
+
}
|
|
943
|
+
function _anglesAreEqualWithinTolerance(a1, a2) {
|
|
944
|
+
let res = Math.abs(a1 - a2) <= 0.0000001;
|
|
945
|
+
if (!res) {
|
|
946
|
+
res = Math.abs(Math.PI * 2 + Math.min(a1, a2) - Math.max(a1, a2)) <= 0.0000001;
|
|
947
|
+
}
|
|
948
|
+
return res;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* @license
|
|
953
|
+
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
954
|
+
* The Universal Permissive License (UPL), Version 1.0
|
|
955
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
956
|
+
* @ignore
|
|
957
|
+
*/
|
|
958
|
+
function useDiagramNavigation(nodes, links, bounds, linkIdToDataMap) {
|
|
959
|
+
const currentKeyboardFocusNode = useRef();
|
|
960
|
+
const nodeBoundsById = createNodeBoundsMap(nodes, bounds);
|
|
961
|
+
function getNextNavigableNode(direction, compareCenters, current, listOfObjects) {
|
|
962
|
+
if (!listOfObjects)
|
|
963
|
+
return current;
|
|
964
|
+
if (!current)
|
|
965
|
+
return listOfObjects[0];
|
|
966
|
+
const currBB = nodeBoundsById.get(current.id);
|
|
967
|
+
if (!currBB)
|
|
968
|
+
return listOfObjects[0];
|
|
969
|
+
let nextObject = current; //init to current object
|
|
970
|
+
let nextDistance = Number.MAX_VALUE;
|
|
971
|
+
// If an object is in contact it overrules all other attributes
|
|
972
|
+
// Only another in contact object with better attributes will have higher precedence
|
|
973
|
+
let nextInContact = false;
|
|
974
|
+
// Whether or not the for loop has encountered the current object
|
|
975
|
+
let hasFoundCurrent = false;
|
|
976
|
+
let object, inContact, distance;
|
|
977
|
+
for (let i = 0; i < listOfObjects.length; i++) {
|
|
978
|
+
object = listOfObjects[i];
|
|
979
|
+
if (object === current) {
|
|
980
|
+
hasFoundCurrent = true;
|
|
981
|
+
continue;
|
|
982
|
+
}
|
|
983
|
+
const objBB = nodeBoundsById.get(object.id);
|
|
984
|
+
if (!objBB)
|
|
985
|
+
continue;
|
|
986
|
+
const objBounds = { x: objBB.x, y: objBB.y, w: objBB.w, h: objBB.h };
|
|
987
|
+
const currBounds = { x: currBB.x, y: currBB.y, w: currBB.w, h: currBB.h };
|
|
988
|
+
if (!isValidDestination(objBounds, currBounds, direction, compareCenters))
|
|
989
|
+
continue;
|
|
990
|
+
inContact = calcInContact(objBounds, currBounds, direction);
|
|
991
|
+
if (nextInContact && !inContact)
|
|
992
|
+
continue;
|
|
993
|
+
distance = calcDistanceAngleWeighted(objBounds, currBounds, direction);
|
|
994
|
+
if (distance == 0 && !hasFoundCurrent)
|
|
995
|
+
continue;
|
|
996
|
+
// Make sure incontact flag have highest precedence
|
|
997
|
+
if ((!nextInContact && inContact) ||
|
|
998
|
+
(distance < nextDistance && ((nextInContact && inContact) || !nextInContact))) {
|
|
999
|
+
nextDistance = distance;
|
|
1000
|
+
nextObject = object;
|
|
1001
|
+
nextInContact = inContact;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
return nextObject;
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Get next navigavle link depending on direction - clockwise or conter clockwise.
|
|
1008
|
+
* The decision is made based on location of nodes centers rather than link paths or link angles.
|
|
1009
|
+
*/
|
|
1010
|
+
function getNextNavigableLink(direction, listOfNodes, currentLink, listOfLinks) {
|
|
1011
|
+
if (!listOfLinks)
|
|
1012
|
+
return currentLink;
|
|
1013
|
+
if (!currentLink)
|
|
1014
|
+
return listOfLinks[0];
|
|
1015
|
+
const keyboardFocusNode = currentKeyboardFocusNode.current;
|
|
1016
|
+
const nodeId = keyboardFocusNode ? keyboardFocusNode : currentLink.startNode;
|
|
1017
|
+
const node = getNodeDetailFromInfo({ id: nodeId, isNode: true }, listOfNodes);
|
|
1018
|
+
if (!node)
|
|
1019
|
+
return currentLink;
|
|
1020
|
+
const adjLinks = getNavigableLinksForNodeId(node.id, listOfLinks);
|
|
1021
|
+
listOfLinks = adjLinks;
|
|
1022
|
+
const linksWithSortingAttributes = addSortingAttributes(node, listOfLinks, listOfNodes, nodeBoundsById);
|
|
1023
|
+
linksWithSortingAttributes.sort(getLinkComparator());
|
|
1024
|
+
//clockwise direction
|
|
1025
|
+
const bForward = direction == 'down' ? true : false;
|
|
1026
|
+
let index = 0;
|
|
1027
|
+
for (let i = 0; i < linksWithSortingAttributes.length; i++) {
|
|
1028
|
+
const link = linksWithSortingAttributes[i];
|
|
1029
|
+
if (link.id === currentLink.id) {
|
|
1030
|
+
if (bForward)
|
|
1031
|
+
index = i == linksWithSortingAttributes.length - 1 ? 0 : i + 1;
|
|
1032
|
+
else
|
|
1033
|
+
index = i == 0 ? linksWithSortingAttributes.length - 1 : i - 1;
|
|
1034
|
+
break;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
return linksWithSortingAttributes[index];
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Returns the link detail when a node to link navigation occurs
|
|
1041
|
+
*/
|
|
1042
|
+
function navigateFromNodeToLink(listOfLinks, event, node) {
|
|
1043
|
+
if (!node)
|
|
1044
|
+
return undefined;
|
|
1045
|
+
const adjLinks = getNavigableLinksForNodeId(node.id, listOfLinks);
|
|
1046
|
+
if (adjLinks.length < 1)
|
|
1047
|
+
return undefined;
|
|
1048
|
+
let link = adjLinks[0];
|
|
1049
|
+
const nodeBB = nodeBoundsById.get(node.id);
|
|
1050
|
+
let object, currNode, currNodeBB, currNodeBBCenterX;
|
|
1051
|
+
const nodeCenterX = nodeBB.x + nodeBB.w / 2;
|
|
1052
|
+
currentKeyboardFocusNode.current = node.id;
|
|
1053
|
+
for (let i = 0; i < adjLinks.length; i++) {
|
|
1054
|
+
object = adjLinks[i];
|
|
1055
|
+
currNode = object.startNode === node.id ? object.endNode : object.startNode;
|
|
1056
|
+
currNodeBB = nodeBoundsById.get(currNode);
|
|
1057
|
+
currNodeBBCenterX = currNodeBB.x + currNodeBB.w / 2;
|
|
1058
|
+
if (
|
|
1059
|
+
// equivalent of ≤ and ≥
|
|
1060
|
+
(event.altKey && event.code === 'Comma' && currNodeBBCenterX <= nodeCenterX) ||
|
|
1061
|
+
(event.altKey && event.code === 'Period' && currNodeBBCenterX >= nodeCenterX)) {
|
|
1062
|
+
link = object;
|
|
1063
|
+
break;
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
return { id: link.id, isNode: false };
|
|
1067
|
+
}
|
|
1068
|
+
/**
|
|
1069
|
+
* Returns the node detail when a link to node navigation occurs
|
|
1070
|
+
*/
|
|
1071
|
+
function navigateFromLinkToNode(linkId, event) {
|
|
1072
|
+
const key = event.key;
|
|
1073
|
+
const linkData = linkIdToDataMap.get(linkId);
|
|
1074
|
+
const startNodeBB = nodeBoundsById.get(linkData.startNode);
|
|
1075
|
+
const endNodeBB = nodeBoundsById.get(linkData.endNode);
|
|
1076
|
+
if (!startNodeBB || !endNodeBB)
|
|
1077
|
+
return undefined;
|
|
1078
|
+
const startNodeCenterX = startNodeBB.x + startNodeBB.w / 2;
|
|
1079
|
+
const endNodeCenterX = endNodeBB.x + endNodeBB.w / 2;
|
|
1080
|
+
const newNode = (endNodeCenterX > startNodeCenterX && key === 'ArrowRight') ||
|
|
1081
|
+
(endNodeCenterX < startNodeCenterX && key === 'ArrowLeft')
|
|
1082
|
+
? linkData.endNode
|
|
1083
|
+
: linkData.startNode;
|
|
1084
|
+
return { id: newNode, isNode: true };
|
|
1085
|
+
}
|
|
1086
|
+
return {
|
|
1087
|
+
isNode: (itemInfo) => {
|
|
1088
|
+
let node, link;
|
|
1089
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
1090
|
+
node = nodes[i];
|
|
1091
|
+
link = links[i];
|
|
1092
|
+
if (itemInfo.id === node.id) {
|
|
1093
|
+
return true;
|
|
1094
|
+
}
|
|
1095
|
+
if (itemInfo.id === link.id) {
|
|
1096
|
+
return true;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
return false;
|
|
1100
|
+
},
|
|
1101
|
+
getNextNavigableNode,
|
|
1102
|
+
getNextNavigableLink,
|
|
1103
|
+
navigateFromNodeToLink,
|
|
1104
|
+
navigateFromLinkToNode
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
const DEFAULT_KB_PAN = 15;
|
|
1109
|
+
const DEFAULT_KB_ZOOM = 0.15;
|
|
1110
|
+
function useEvents(touchResponse, initNode, nodes, links, nodeBounds, linkIdToDataMap, nodeIdToDataMap, nodeIdToIndexMap, width, height, maxZoom, onItemHover, onItemFocus, kbPanCallback, kbZoomCallback) {
|
|
1111
|
+
const { getNextNavigableNode, getNextNavigableLink, navigateFromNodeToLink, navigateFromLinkToNode } = useDiagramNavigation(nodes, links, nodeBounds, linkIdToDataMap);
|
|
1112
|
+
const [focusedItemInfo, setfocusedItemInfo] = useState({
|
|
1113
|
+
id: initNode.id,
|
|
1114
|
+
isNode: true
|
|
1115
|
+
});
|
|
1116
|
+
const [hoveredItemInfo, sethoveredItemInfo] = useState();
|
|
1117
|
+
const activeId = useRef();
|
|
1118
|
+
const cancelEvent = (event) => {
|
|
1119
|
+
event.preventDefault();
|
|
1120
|
+
event.stopPropagation();
|
|
1121
|
+
};
|
|
1122
|
+
const keyDownHandler = (event) => {
|
|
1123
|
+
const key = event.key;
|
|
1124
|
+
let eventConsumed = false;
|
|
1125
|
+
// tabbing out of the diagram
|
|
1126
|
+
if (key === 'TAB') {
|
|
1127
|
+
return;
|
|
1128
|
+
}
|
|
1129
|
+
// if this a switch from node to link or vice versa
|
|
1130
|
+
if (isChangeItemType(event)) {
|
|
1131
|
+
const nextItemInfo = focusedItemInfo.isNode
|
|
1132
|
+
? navigateFromNodeToLink(links, event, getNodeDetailFromInfo(focusedItemInfo, nodes))
|
|
1133
|
+
: navigateFromLinkToNode(focusedItemInfo.id, event);
|
|
1134
|
+
handleKeyboardInput(nextItemInfo);
|
|
1135
|
+
eventConsumed = true;
|
|
1136
|
+
}
|
|
1137
|
+
else if (isNavigationEvent(key)) {
|
|
1138
|
+
const nextItemInfo = handleKeyboardNavigationEvent(key);
|
|
1139
|
+
handleKeyboardInput(nextItemInfo);
|
|
1140
|
+
eventConsumed = true;
|
|
1141
|
+
}
|
|
1142
|
+
else {
|
|
1143
|
+
switch (key) {
|
|
1144
|
+
case 'PageUp': {
|
|
1145
|
+
kbPanCallback &&
|
|
1146
|
+
kbPanCallback({
|
|
1147
|
+
dPan: {
|
|
1148
|
+
dx: event.shiftKey ? -DEFAULT_KB_PAN : 0,
|
|
1149
|
+
dy: event.shiftKey ? 0 : -DEFAULT_KB_PAN
|
|
1150
|
+
}
|
|
1151
|
+
});
|
|
1152
|
+
eventConsumed = true;
|
|
1153
|
+
break;
|
|
1154
|
+
}
|
|
1155
|
+
case 'PageDown': {
|
|
1156
|
+
kbPanCallback &&
|
|
1157
|
+
kbPanCallback({
|
|
1158
|
+
dPan: {
|
|
1159
|
+
dx: event.shiftKey ? DEFAULT_KB_PAN : 0,
|
|
1160
|
+
dy: event.shiftKey ? 0 : DEFAULT_KB_PAN
|
|
1161
|
+
}
|
|
1162
|
+
});
|
|
1163
|
+
eventConsumed = true;
|
|
1164
|
+
eventConsumed = true;
|
|
1165
|
+
break;
|
|
1166
|
+
}
|
|
1167
|
+
case '+':
|
|
1168
|
+
case '=': {
|
|
1169
|
+
kbZoomCallback && kbZoomCallback({ dZoom: DEFAULT_KB_ZOOM });
|
|
1170
|
+
eventConsumed = true;
|
|
1171
|
+
break;
|
|
1172
|
+
}
|
|
1173
|
+
case '-':
|
|
1174
|
+
case '_': {
|
|
1175
|
+
kbZoomCallback && kbZoomCallback({ dZoom: -DEFAULT_KB_ZOOM });
|
|
1176
|
+
eventConsumed = true;
|
|
1177
|
+
break;
|
|
1178
|
+
}
|
|
1179
|
+
case '0': {
|
|
1180
|
+
if (event.ctrlKey && event.altKey) {
|
|
1181
|
+
const { centerX, centerY, zoom } = zoomAndCenterItemFromInfo(focusedItemInfo, linkIdToDataMap, nodeBounds, nodeIdToIndexMap, width, height, maxZoom);
|
|
1182
|
+
kbZoomCallback && kbZoomCallback({ nZoom: zoom });
|
|
1183
|
+
kbPanCallback && kbPanCallback({ nPan: { cx: centerX, cy: centerY } });
|
|
1184
|
+
}
|
|
1185
|
+
else {
|
|
1186
|
+
// zoom to fit
|
|
1187
|
+
kbZoomCallback && kbZoomCallback({});
|
|
1188
|
+
kbPanCallback && kbPanCallback({ center: true });
|
|
1189
|
+
}
|
|
1190
|
+
eventConsumed = true;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
if (eventConsumed) {
|
|
1195
|
+
cancelEvent(event);
|
|
1196
|
+
}
|
|
1197
|
+
};
|
|
1198
|
+
const keyUpHandler = (event) => {
|
|
1199
|
+
const key = event.code;
|
|
1200
|
+
switch (key) {
|
|
1201
|
+
case 'Tab': {
|
|
1202
|
+
updatefocusedItemInfo({
|
|
1203
|
+
...focusedItemInfo,
|
|
1204
|
+
isCurrent: true,
|
|
1205
|
+
isFocusVisible: true
|
|
1206
|
+
});
|
|
1207
|
+
break;
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
};
|
|
1211
|
+
const blurHandler = () => {
|
|
1212
|
+
if (hoveredItemInfo != null || focusedItemInfo.isCurrent) {
|
|
1213
|
+
onItemFocus?.({ id: undefined, data: undefined });
|
|
1214
|
+
}
|
|
1215
|
+
const itemInfo = { ...focusedItemInfo, isCurrent: false, isFocusVisible: false };
|
|
1216
|
+
setfocusedItemInfo(itemInfo);
|
|
1217
|
+
};
|
|
1218
|
+
const onHover = (event) => {
|
|
1219
|
+
const itemInfo = getNavigableInfo(event.target);
|
|
1220
|
+
if (itemInfo && !isEqualItem(itemInfo, hoveredItemInfo)) {
|
|
1221
|
+
sethoveredItemInfo({ ...itemInfo, isCurrent: true });
|
|
1222
|
+
activeId.current = getRandomId();
|
|
1223
|
+
setfocusedItemInfo({ ...focusedItemInfo, isCurrent: false });
|
|
1224
|
+
if (itemInfo.isNode) {
|
|
1225
|
+
onItemHover?.({
|
|
1226
|
+
id: itemInfo.id,
|
|
1227
|
+
type: 'node',
|
|
1228
|
+
data: nodeIdToDataMap.get(itemInfo.id)
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
else {
|
|
1232
|
+
onItemHover?.({
|
|
1233
|
+
id: itemInfo.id,
|
|
1234
|
+
type: 'link',
|
|
1235
|
+
data: linkIdToDataMap.get(itemInfo.id)
|
|
1236
|
+
});
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
};
|
|
1240
|
+
const onHoverLeave = () => {
|
|
1241
|
+
sethoveredItemInfo(undefined);
|
|
1242
|
+
activeId.current = undefined;
|
|
1243
|
+
onItemHover?.({ id: undefined, data: undefined });
|
|
1244
|
+
};
|
|
1245
|
+
const hoverHandlers = useVisHover(onHover, undefined, onHoverLeave, touchResponse);
|
|
1246
|
+
const pointerUpHandler = (event) => {
|
|
1247
|
+
const itemInfo = getNavigableInfo(event.target);
|
|
1248
|
+
if (itemInfo.id != null) {
|
|
1249
|
+
setfocusedItemInfo(itemInfo);
|
|
1250
|
+
activeId.current = getRandomId();
|
|
1251
|
+
}
|
|
1252
|
+
};
|
|
1253
|
+
function updatefocusedItemInfo(itemInfo) {
|
|
1254
|
+
if (itemInfo.isNode) {
|
|
1255
|
+
onItemFocus?.({
|
|
1256
|
+
id: itemInfo.id,
|
|
1257
|
+
type: 'node',
|
|
1258
|
+
data: nodeIdToDataMap.get(itemInfo.id)
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
else {
|
|
1262
|
+
onItemFocus?.({
|
|
1263
|
+
id: itemInfo.id,
|
|
1264
|
+
type: 'link',
|
|
1265
|
+
data: linkIdToDataMap.get(itemInfo.id)
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1268
|
+
activeId.current = getRandomId();
|
|
1269
|
+
setfocusedItemInfo(itemInfo);
|
|
1270
|
+
}
|
|
1271
|
+
function handleKeyboardInput(item) {
|
|
1272
|
+
if (!item)
|
|
1273
|
+
return;
|
|
1274
|
+
if (!isEqualItem(item, focusedItemInfo)) {
|
|
1275
|
+
item.isCurrent = true;
|
|
1276
|
+
item.isFocusVisible = true;
|
|
1277
|
+
if (hoveredItemInfo) {
|
|
1278
|
+
sethoveredItemInfo({ ...hoveredItemInfo, isCurrent: false });
|
|
1279
|
+
}
|
|
1280
|
+
updatefocusedItemInfo(item);
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
function isNavigationEvent(key) {
|
|
1284
|
+
switch (key) {
|
|
1285
|
+
case 'ArrowDown':
|
|
1286
|
+
case 'ArrowUp':
|
|
1287
|
+
case 'ArrowRight':
|
|
1288
|
+
case 'ArrowLeft': {
|
|
1289
|
+
return true;
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
return false;
|
|
1293
|
+
}
|
|
1294
|
+
function isChangeItemType(event) {
|
|
1295
|
+
const key = event.code;
|
|
1296
|
+
// check if switching from node to link
|
|
1297
|
+
// equivalent of ≤ and ≥
|
|
1298
|
+
if (focusedItemInfo.isNode && event.altKey && (key === 'Period' || key === 'Comma')) {
|
|
1299
|
+
return true;
|
|
1300
|
+
// check if switching from link to node
|
|
1301
|
+
}
|
|
1302
|
+
else if (!focusedItemInfo.isNode && (key === 'ArrowLeft' || key === 'ArrowRight')) {
|
|
1303
|
+
return true;
|
|
1304
|
+
}
|
|
1305
|
+
return false;
|
|
1306
|
+
}
|
|
1307
|
+
function handleKeyboardNavigationEvent(key) {
|
|
1308
|
+
let direction = 'down';
|
|
1309
|
+
switch (key) {
|
|
1310
|
+
case 'ArrowDown': {
|
|
1311
|
+
direction = 'down';
|
|
1312
|
+
break;
|
|
1313
|
+
}
|
|
1314
|
+
case 'ArrowUp': {
|
|
1315
|
+
direction = 'up';
|
|
1316
|
+
break;
|
|
1317
|
+
}
|
|
1318
|
+
case 'ArrowRight': {
|
|
1319
|
+
direction = 'right';
|
|
1320
|
+
break;
|
|
1321
|
+
}
|
|
1322
|
+
case 'ArrowLeft': {
|
|
1323
|
+
direction = 'left';
|
|
1324
|
+
break;
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
if (focusedItemInfo.isNode) {
|
|
1328
|
+
const itemDetail = getNextNavigableNode(direction, true, getNodeDetailFromInfo(focusedItemInfo, nodes), nodes);
|
|
1329
|
+
return itemDetail ? { id: itemDetail.id, isNode: true } : focusedItemInfo;
|
|
1330
|
+
}
|
|
1331
|
+
else {
|
|
1332
|
+
const linkDetail = getLinkDetailFromInfo(focusedItemInfo, links);
|
|
1333
|
+
const itemDetail = getNextNavigableLink(direction, nodes, linkDetail, links);
|
|
1334
|
+
return itemDetail ? { id: itemDetail.id } : { id: focusedItemInfo.id };
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
return {
|
|
1338
|
+
focusedItemInfo,
|
|
1339
|
+
hoveredItemInfo,
|
|
1340
|
+
activeId: activeId.current,
|
|
1341
|
+
eventsProps: mergeProps(hoverHandlers, {
|
|
1342
|
+
onKeyUp: keyUpHandler,
|
|
1343
|
+
onKeyDown: keyDownHandler,
|
|
1344
|
+
onBlur: blurHandler,
|
|
1345
|
+
onPointerUp: pointerUpHandler
|
|
1346
|
+
})
|
|
1347
|
+
};
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* Returns the datatip.
|
|
1352
|
+
* @param text The text string for the diagram item.
|
|
1353
|
+
* @param rootRef The ref for root of the diagram.
|
|
1354
|
+
* @param focusedItemBoundsRef The ref for focused item bounds.
|
|
1355
|
+
* @param focusedItemInfo The ItemInfo for focused item.
|
|
1356
|
+
* @returns
|
|
1357
|
+
*/
|
|
1358
|
+
const useDiagramDatatip = ({ touchResponse, datatip, focusedItemBoundsRef, focusedItemInfo, panState, zoom, width, nodesMap, linksMap, hoveredItem }) => {
|
|
1359
|
+
const { direction } = useUser();
|
|
1360
|
+
const isRtl = direction === 'rtl';
|
|
1361
|
+
const datatipC = getDatatipContent(nodesMap, linksMap, focusedItemInfo, hoveredItem, datatip);
|
|
1362
|
+
const elementBounds = focusedItemBoundsRef.current
|
|
1363
|
+
? {
|
|
1364
|
+
x: focusedItemBoundsRef.current.x * zoom + panState.panX,
|
|
1365
|
+
y: focusedItemBoundsRef.current.y * zoom + panState.panY,
|
|
1366
|
+
width: focusedItemBoundsRef.current.w * zoom,
|
|
1367
|
+
height: focusedItemBoundsRef.current.h * zoom
|
|
1368
|
+
}
|
|
1369
|
+
: undefined;
|
|
1370
|
+
const { datatipContent, datatipProps } = useDatatip({
|
|
1371
|
+
content: datatipC?.content,
|
|
1372
|
+
borderColor: datatipC?.borderColor,
|
|
1373
|
+
placement: 'top-start',
|
|
1374
|
+
offset: calculateOffset(isRtl, width, elementBounds),
|
|
1375
|
+
anchor: focusedItemInfo?.isCurrent ? 'element' : 'pointer',
|
|
1376
|
+
touchResponse
|
|
1377
|
+
});
|
|
1378
|
+
return { datatipContent: datatipContent, datatipProps: datatipProps };
|
|
1379
|
+
};
|
|
1380
|
+
|
|
1381
|
+
const usePointerGesture = ({ captureTargetRef, numPointers = 1, onPointerGestureDown, onPointerGestureMove, onPointerGestureEnd, onExtraneousPointerDown, isDisabled = false }) => {
|
|
1382
|
+
const activePointers = useRef([]);
|
|
1383
|
+
if (isDisabled) {
|
|
1384
|
+
activePointers.current = [];
|
|
1385
|
+
}
|
|
1386
|
+
const onPointerDown = (e) => {
|
|
1387
|
+
activePointers.current.push(e);
|
|
1388
|
+
if (activePointers.current.length === numPointers) {
|
|
1389
|
+
onPointerGestureDown && onPointerGestureDown({ pointers: activePointers.current });
|
|
1390
|
+
}
|
|
1391
|
+
else if (activePointers.current.length > numPointers) {
|
|
1392
|
+
onExtraneousPointerDown && onExtraneousPointerDown({ pointers: activePointers.current });
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
const onPointerMove = (e) => {
|
|
1396
|
+
if (activePointers.current.length === 0)
|
|
1397
|
+
return;
|
|
1398
|
+
const index = activePointers.current.findIndex((pointerEvent) => pointerEvent.pointerId === e.pointerId);
|
|
1399
|
+
if (index === -1)
|
|
1400
|
+
return;
|
|
1401
|
+
activePointers.current[index] = e;
|
|
1402
|
+
if (activePointers.current.length === numPointers) {
|
|
1403
|
+
activePointers.current.forEach((e) => captureTargetRef.current.setPointerCapture(e.pointerId));
|
|
1404
|
+
onPointerGestureMove && onPointerGestureMove({ pointers: activePointers.current });
|
|
1405
|
+
}
|
|
1406
|
+
};
|
|
1407
|
+
const onPointerUp = (e) => {
|
|
1408
|
+
const index = activePointers.current.findIndex((pointerEvent) => pointerEvent.pointerId === e.pointerId);
|
|
1409
|
+
if (index === -1)
|
|
1410
|
+
return;
|
|
1411
|
+
activePointers.current[index] = e;
|
|
1412
|
+
if (activePointers.current.length === numPointers) {
|
|
1413
|
+
onPointerGestureEnd && onPointerGestureEnd({ pointers: activePointers.current });
|
|
1414
|
+
}
|
|
1415
|
+
activePointers.current.splice(index, 1);
|
|
1416
|
+
};
|
|
1417
|
+
const onPointerCancel = onPointerUp;
|
|
1418
|
+
const onPointerLeave = onPointerUp;
|
|
1419
|
+
return isDisabled
|
|
1420
|
+
? {}
|
|
1421
|
+
: {
|
|
1422
|
+
onPointerDown,
|
|
1423
|
+
onPointerMove,
|
|
1424
|
+
onPointerUp,
|
|
1425
|
+
onPointerCancel,
|
|
1426
|
+
onPointerLeave
|
|
1427
|
+
};
|
|
1428
|
+
};
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Whether point with coordinates are in the draggable region
|
|
1432
|
+
*/
|
|
1433
|
+
const inDraggableRegion = (x, y, region) => {
|
|
1434
|
+
if (!region)
|
|
1435
|
+
return true;
|
|
1436
|
+
const { xMin, xMax, yMin, yMax } = region;
|
|
1437
|
+
return x >= xMin && x <= xMax && y >= yMin && y <= yMax;
|
|
1438
|
+
};
|
|
1439
|
+
/**
|
|
1440
|
+
* Returns region offset
|
|
1441
|
+
*/
|
|
1442
|
+
const getRegionOffset = (x, y, region) => {
|
|
1443
|
+
if (!region)
|
|
1444
|
+
return { regionOffsetX: x, regionOffsetY: y };
|
|
1445
|
+
return { regionOffsetX: x - region.xMin, regionOffsetY: y - region.yMin };
|
|
1446
|
+
};
|
|
1447
|
+
const useDrag = ({ captureTargetRef, draggableRegion, onDragStart, onDragMove, onDragEnd, isDisabled = false }) => {
|
|
1448
|
+
const inactiveState = { isDragging: false, x0: -1, y0: -1, regionOffsetX: -1, regionOffsetY: -1 };
|
|
1449
|
+
const dragState = useRef(inactiveState);
|
|
1450
|
+
const handlePointerEvent = (e, cb) => {
|
|
1451
|
+
const { isDragging, x0, y0, regionOffsetX, regionOffsetY } = dragState.current;
|
|
1452
|
+
if (!isDragging)
|
|
1453
|
+
return;
|
|
1454
|
+
const x = e.pageX;
|
|
1455
|
+
const y = e.pageY;
|
|
1456
|
+
cb && cb({ x, y, dx: x - x0, dy: y - y0, regionOffsetX, regionOffsetY, originalEvent: e });
|
|
1457
|
+
};
|
|
1458
|
+
const dragProps = usePointerGesture({
|
|
1459
|
+
captureTargetRef,
|
|
1460
|
+
numPointers: 1, // Only allow 1 pointer dragging
|
|
1461
|
+
onExtraneousPointerDown: () => {
|
|
1462
|
+
dragState.current = inactiveState;
|
|
1463
|
+
},
|
|
1464
|
+
onPointerGestureDown: ({ pointers: [e] }) => {
|
|
1465
|
+
const x = e.pageX;
|
|
1466
|
+
const y = e.pageY;
|
|
1467
|
+
if (e.button !== 0 || !inDraggableRegion(x, y, draggableRegion))
|
|
1468
|
+
return;
|
|
1469
|
+
const { regionOffsetX, regionOffsetY } = getRegionOffset(x, y, draggableRegion);
|
|
1470
|
+
dragState.current = { isDragging: true, x0: x, y0: y, regionOffsetX, regionOffsetY };
|
|
1471
|
+
onDragStart && onDragStart({ x, y, regionOffsetX, regionOffsetY, originalEvent: e });
|
|
1472
|
+
},
|
|
1473
|
+
onPointerGestureMove: ({ pointers: [e] }) => {
|
|
1474
|
+
handlePointerEvent(e, onDragMove);
|
|
1475
|
+
},
|
|
1476
|
+
onPointerGestureEnd: ({ pointers: [e] }) => {
|
|
1477
|
+
handlePointerEvent(e, onDragEnd);
|
|
1478
|
+
dragState.current = inactiveState;
|
|
1479
|
+
}
|
|
1480
|
+
});
|
|
1481
|
+
return isDisabled ? {} : dragProps;
|
|
1482
|
+
};
|
|
1483
|
+
|
|
1484
|
+
const constrainPan = (previousPan, nextPan, panBounds, panDirection) => {
|
|
1485
|
+
const panX = panDirection !== 'y' ? nextPan.panX : previousPan.panX;
|
|
1486
|
+
const panY = panDirection !== 'x' ? nextPan.panY : previousPan.panY;
|
|
1487
|
+
return {
|
|
1488
|
+
panX: panX > panBounds.maxX ? panBounds.maxX : panX < panBounds.minX ? panBounds.minX : panX,
|
|
1489
|
+
panY: panY > panBounds.maxY ? panBounds.maxY : panY < panBounds.minY ? panBounds.minY : panY
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
const pan = (previousPan, nextPan, panDirection, zoom, width, height, panBounds, onPanChange) => {
|
|
1493
|
+
if (!panBounds) {
|
|
1494
|
+
//On initial render before nodes are rendered
|
|
1495
|
+
return { newPan: { panX: 0, panY: 0 } };
|
|
1496
|
+
}
|
|
1497
|
+
const newPan = constrainPan(previousPan, nextPan, panBounds, panDirection);
|
|
1498
|
+
const isPanChanged = newPan.panX !== previousPan.panX || newPan.panY !== previousPan.panY;
|
|
1499
|
+
const center = panXYToCenterXY(newPan.panX, newPan.panY, zoom, width, height);
|
|
1500
|
+
isPanChanged &&
|
|
1501
|
+
onPanChange &&
|
|
1502
|
+
onPanChange({
|
|
1503
|
+
centerX: center.centerX,
|
|
1504
|
+
centerY: center.centerY
|
|
1505
|
+
});
|
|
1506
|
+
return { newPan };
|
|
1507
|
+
};
|
|
1508
|
+
const getPanBounds = (width, height, elemBounds, zoom, minZoom, initPanZoomState, panType) => {
|
|
1509
|
+
const { x, y, w, h } = elemBounds;
|
|
1510
|
+
let minX, maxX, minY, maxY;
|
|
1511
|
+
if (panType === 'centerContent') {
|
|
1512
|
+
minX = width / 2 - (w + x) * zoom;
|
|
1513
|
+
minY = height / 2 - (h + y) * zoom;
|
|
1514
|
+
maxX = width / 2 - x * zoom;
|
|
1515
|
+
maxY = height / 2 - y * zoom;
|
|
1516
|
+
}
|
|
1517
|
+
else {
|
|
1518
|
+
// panType equals fixed
|
|
1519
|
+
const zoomRatio = zoom / minZoom;
|
|
1520
|
+
// Find left corner of the content at min zoom and content is centered
|
|
1521
|
+
const minZoomX = (width - w * minZoom) / 2 - x * minZoom;
|
|
1522
|
+
const minZoomY = (height - h * minZoom) / 2 - y * minZoom;
|
|
1523
|
+
// When we pan all the way to the right, the left corner of displayable area is 0,0 as in min zoom.
|
|
1524
|
+
// When we pan all the way to the left, lets find the corner of the displayable area
|
|
1525
|
+
const leftCornerX = width - width * zoomRatio;
|
|
1526
|
+
const leftCornerY = height - height * zoomRatio;
|
|
1527
|
+
// Now we have everything to calculate pan zoom constraints
|
|
1528
|
+
minX = leftCornerX + minZoomX * zoomRatio;
|
|
1529
|
+
minY = leftCornerY + minZoomY * zoomRatio;
|
|
1530
|
+
maxX = minZoomX * zoomRatio;
|
|
1531
|
+
maxY = minZoomY * zoomRatio;
|
|
1532
|
+
}
|
|
1533
|
+
const initZoom = initPanZoomState.zoom;
|
|
1534
|
+
const initCenterX = initPanZoomState.centerX;
|
|
1535
|
+
const initCenterY = initPanZoomState.centerY;
|
|
1536
|
+
// If an initial panZoomState is set, should expand pan bounds to include it
|
|
1537
|
+
let dx, dy;
|
|
1538
|
+
if (initCenterX) {
|
|
1539
|
+
const boundsX = initCenterX * initZoom - width / 2;
|
|
1540
|
+
if (-boundsX * initZoom < minX) {
|
|
1541
|
+
dx = minX - boundsX * initZoom;
|
|
1542
|
+
minX -= dx;
|
|
1543
|
+
maxX += dx;
|
|
1544
|
+
}
|
|
1545
|
+
else if (-boundsX * initZoom > maxX) {
|
|
1546
|
+
dx = -boundsX * initZoom - maxX;
|
|
1547
|
+
minX -= dx;
|
|
1548
|
+
maxX += dx;
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
if (initCenterY) {
|
|
1552
|
+
const boundsY = initCenterY * initZoom - height / 2;
|
|
1553
|
+
if (-boundsY * initZoom < minY) {
|
|
1554
|
+
dy = minY - boundsY * initZoom;
|
|
1555
|
+
minY -= dy;
|
|
1556
|
+
maxY += dy;
|
|
1557
|
+
}
|
|
1558
|
+
else if (-boundsY * initZoom > maxY) {
|
|
1559
|
+
dy = -boundsY * initZoom - maxY;
|
|
1560
|
+
minY -= dy;
|
|
1561
|
+
maxY += dy;
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
return {
|
|
1565
|
+
minX: minX,
|
|
1566
|
+
maxX: maxX,
|
|
1567
|
+
minY: minY,
|
|
1568
|
+
maxY: maxY
|
|
1569
|
+
};
|
|
1570
|
+
};
|
|
1571
|
+
|
|
1572
|
+
const useDragPan = ({ panProps, captureTargetRef, panBounds, width, height, zoom, onDragPanStart, onDragPanEnd }) => {
|
|
1573
|
+
const prevPanState = useRef({ panX: 0, panY: 0 });
|
|
1574
|
+
const initialPanState = useRef({ panX: 0, panY: 0 });
|
|
1575
|
+
const dragProps = useDrag({
|
|
1576
|
+
captureTargetRef,
|
|
1577
|
+
onDragStart: () => {
|
|
1578
|
+
const panValues = centerXYToPanXY(panProps.centerX, panProps.centerY, zoom, width, height);
|
|
1579
|
+
initialPanState.current = {
|
|
1580
|
+
panX: panValues.panX,
|
|
1581
|
+
panY: panValues.panY
|
|
1582
|
+
};
|
|
1583
|
+
onDragPanStart && onDragPanStart();
|
|
1584
|
+
},
|
|
1585
|
+
onDragMove: ({ dx, dy }) => {
|
|
1586
|
+
const nextPan = {
|
|
1587
|
+
panX: initialPanState.current.panX + dx,
|
|
1588
|
+
panY: initialPanState.current.panY + dy
|
|
1589
|
+
};
|
|
1590
|
+
const { newPan } = pan(prevPanState.current, nextPan, panProps.panDirection, zoom, width, height, panBounds, panProps.onPan);
|
|
1591
|
+
prevPanState.current = newPan;
|
|
1592
|
+
},
|
|
1593
|
+
onDragEnd: ({ originalEvent }) => {
|
|
1594
|
+
// If panning occurred, call preventDefault to prevent selection from occurring
|
|
1595
|
+
if (initialPanState.current.panX !== prevPanState.current.panX ||
|
|
1596
|
+
initialPanState.current.panY !== prevPanState.current.panY)
|
|
1597
|
+
originalEvent.preventDefault();
|
|
1598
|
+
onDragPanEnd && onDragPanEnd();
|
|
1599
|
+
},
|
|
1600
|
+
isDisabled: panProps.panning === 'off'
|
|
1601
|
+
});
|
|
1602
|
+
return dragProps;
|
|
1603
|
+
};
|
|
1604
|
+
|
|
1605
|
+
const PX_FACTOR_PER_LINE = 15; // Value used in Toolkit
|
|
1606
|
+
const PX_FACTOR_PER_PAGE = 40; // Value copied from datagrid; this is not handled in Toolkit
|
|
1607
|
+
const getNormalizedDelta = (e) => {
|
|
1608
|
+
const { deltaX, deltaY, deltaMode } = e;
|
|
1609
|
+
switch (deltaMode) {
|
|
1610
|
+
case e.DOM_DELTA_PIXEL:
|
|
1611
|
+
return { deltaX: -deltaX, deltaY: -deltaY };
|
|
1612
|
+
case e.DOM_DELTA_LINE:
|
|
1613
|
+
return { deltaX: -deltaX * PX_FACTOR_PER_LINE, deltaY: -deltaY * PX_FACTOR_PER_LINE };
|
|
1614
|
+
case e.DOM_DELTA_PAGE:
|
|
1615
|
+
return { deltaX: -deltaX * PX_FACTOR_PER_PAGE, deltaY: -deltaY * PX_FACTOR_PER_PAGE };
|
|
1616
|
+
default:
|
|
1617
|
+
return { deltaX: -deltaX, deltaY: -deltaY };
|
|
1618
|
+
}
|
|
1619
|
+
};
|
|
1620
|
+
const useWheel = ({ onWheel: onWheelCallback, preventDefault = true, isDisabled = false }) => {
|
|
1621
|
+
const onWheel = (e) => {
|
|
1622
|
+
const { deltaX, deltaY } = getNormalizedDelta(e);
|
|
1623
|
+
if (preventDefault)
|
|
1624
|
+
e.preventDefault();
|
|
1625
|
+
onWheelCallback({
|
|
1626
|
+
x: e.offsetX,
|
|
1627
|
+
y: e.offsetY,
|
|
1628
|
+
deltaX,
|
|
1629
|
+
deltaY,
|
|
1630
|
+
ctrlKey: e.ctrlKey || e.metaKey
|
|
1631
|
+
});
|
|
1632
|
+
};
|
|
1633
|
+
return isDisabled ? {} : { onWheel };
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* @license
|
|
1638
|
+
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1639
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1640
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1641
|
+
* @ignore
|
|
1642
|
+
*/
|
|
1643
|
+
const ZOOM_INCREMENT = 0.05;
|
|
1644
|
+
const zoom = (nextZoom, zoom, minZoom, maxZoom, onZoomChange) => {
|
|
1645
|
+
const newZoom = nextZoom > maxZoom || nextZoom < minZoom ? zoom : nextZoom;
|
|
1646
|
+
const isZoomChanged = newZoom !== zoom;
|
|
1647
|
+
isZoomChanged &&
|
|
1648
|
+
onZoomChange &&
|
|
1649
|
+
onZoomChange({
|
|
1650
|
+
zoomValue: newZoom
|
|
1651
|
+
});
|
|
1652
|
+
};
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* @license
|
|
1656
|
+
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1657
|
+
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1658
|
+
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1659
|
+
* @ignore
|
|
1660
|
+
*/
|
|
1661
|
+
const useWheelZoom = ({ zooming, minZoom, maxZoom, zoomValue, onZoom }) => {
|
|
1662
|
+
const wheelProps = useWheel({
|
|
1663
|
+
onWheel: ({ deltaY }) => {
|
|
1664
|
+
const newZoom = zoomValue * (1 + ZOOM_INCREMENT * deltaY);
|
|
1665
|
+
zoom(newZoom, zoomValue, minZoom, maxZoom, onZoom);
|
|
1666
|
+
},
|
|
1667
|
+
isDisabled: zooming === 'off'
|
|
1668
|
+
});
|
|
1669
|
+
return wheelProps;
|
|
1670
|
+
};
|
|
1671
|
+
|
|
1672
|
+
const getMidpoint = (p1, p2) => ({ x: (p1.x + p2.x) / 2, y: (p1.y + p2.y) / 2 });
|
|
1673
|
+
const getDistance = (p1, p2) => Math.sqrt((p2.x - p1.x) ** 2 + (p2.y - p2.y) ** 2);
|
|
1674
|
+
const usePinch = ({ captureTargetRef, onPinchZoomStart, onPinchZoomChange, onPinchZoomEnd, isDisabled = false }) => {
|
|
1675
|
+
const origin = useRef({ x: -1, y: -1 });
|
|
1676
|
+
const prevDistance = useRef(-1);
|
|
1677
|
+
const reset = () => {
|
|
1678
|
+
origin.current = { x: -1, y: -1 };
|
|
1679
|
+
prevDistance.current = -1;
|
|
1680
|
+
};
|
|
1681
|
+
if (isDisabled)
|
|
1682
|
+
reset();
|
|
1683
|
+
const pinchProps = usePointerGesture({
|
|
1684
|
+
captureTargetRef,
|
|
1685
|
+
numPointers: 2, // Pinch gesture requires 2 pointers
|
|
1686
|
+
onPointerGestureDown: ({ pointers: [pointer1, pointer2] }) => {
|
|
1687
|
+
const p1 = { x: pointer1.offsetX, y: pointer1.offsetY };
|
|
1688
|
+
const p2 = { x: pointer2.offsetX, y: pointer2.offsetY };
|
|
1689
|
+
origin.current = getMidpoint(p1, p2);
|
|
1690
|
+
prevDistance.current = getDistance(p1, p2);
|
|
1691
|
+
onPinchZoomStart &&
|
|
1692
|
+
onPinchZoomStart({
|
|
1693
|
+
origin: origin.current,
|
|
1694
|
+
delta: 0
|
|
1695
|
+
});
|
|
1696
|
+
},
|
|
1697
|
+
onPointerGestureMove: ({ pointers: [pointer1, pointer2] }) => {
|
|
1698
|
+
const p1 = { x: pointer1.offsetX, y: pointer1.offsetY };
|
|
1699
|
+
const p2 = { x: pointer2.offsetX, y: pointer2.offsetY };
|
|
1700
|
+
const distance = getDistance(p1, p2);
|
|
1701
|
+
const delta = distance - prevDistance.current;
|
|
1702
|
+
prevDistance.current = distance;
|
|
1703
|
+
onPinchZoomChange &&
|
|
1704
|
+
onPinchZoomChange({
|
|
1705
|
+
origin: origin.current,
|
|
1706
|
+
delta
|
|
1707
|
+
});
|
|
1708
|
+
},
|
|
1709
|
+
onPointerGestureEnd: () => {
|
|
1710
|
+
reset();
|
|
1711
|
+
onPinchZoomEnd && onPinchZoomEnd();
|
|
1712
|
+
}
|
|
1713
|
+
});
|
|
1714
|
+
return isDisabled ? {} : pinchProps;
|
|
1715
|
+
};
|
|
1716
|
+
|
|
1717
|
+
const usePinchZoom = ({ captureTargetRef, zooming, minZoom, maxZoom, zoomValue, onZoom }) => {
|
|
1718
|
+
const pinchProps = usePinch({
|
|
1719
|
+
captureTargetRef,
|
|
1720
|
+
onPinchZoomChange: ({ delta }) => {
|
|
1721
|
+
const newZoom = zoomValue * (1 + ZOOM_INCREMENT * delta);
|
|
1722
|
+
zoom(newZoom, zoomValue, minZoom, maxZoom, onZoom);
|
|
1723
|
+
},
|
|
1724
|
+
isDisabled: zooming === 'off'
|
|
1725
|
+
});
|
|
1726
|
+
return pinchProps;
|
|
1727
|
+
};
|
|
1728
|
+
|
|
1729
|
+
const usePanZoom = ({ props, captureTargetRef, width, height, contentBounds, isRtl }) => {
|
|
1730
|
+
const [cursor, setCursor] = useState();
|
|
1731
|
+
const zoomProps = getZoomProps(props, width, height, contentBounds);
|
|
1732
|
+
const panBounds = useRef();
|
|
1733
|
+
const prevZoom = useRef();
|
|
1734
|
+
const panning = useRef();
|
|
1735
|
+
const initPanZoomState = useRef({
|
|
1736
|
+
zoom: props.zoomValue || 0,
|
|
1737
|
+
centerX: props.centerX,
|
|
1738
|
+
centerY: props.centerY
|
|
1739
|
+
});
|
|
1740
|
+
const isDeviceTouch = isTouch();
|
|
1741
|
+
const plotArea = {
|
|
1742
|
+
width: width,
|
|
1743
|
+
height: height,
|
|
1744
|
+
x: 0,
|
|
1745
|
+
y: 0
|
|
1746
|
+
};
|
|
1747
|
+
const showPanButton = isDeviceTouch ? props.panning && props.panning !== 'off' : undefined;
|
|
1748
|
+
const dragModeOptions = {
|
|
1749
|
+
isZoomScroll: true,
|
|
1750
|
+
plotAreaSpace: plotArea,
|
|
1751
|
+
componentWidth: width,
|
|
1752
|
+
isRtl,
|
|
1753
|
+
showPanButton: showPanButton ?? false,
|
|
1754
|
+
showZoomButton: false,
|
|
1755
|
+
showSelectButton: false,
|
|
1756
|
+
isDisabled: !isDeviceTouch
|
|
1757
|
+
};
|
|
1758
|
+
const { toggleButtonContent, userDragMode } = useVisDragModeControls(dragModeOptions);
|
|
1759
|
+
const panProps = getPanProps(props, contentBounds, userDragMode, isDeviceTouch);
|
|
1760
|
+
if (contentBounds.w !== Infinity &&
|
|
1761
|
+
(zoomProps.zoomValue !== prevZoom.current || panProps.panning !== panning.current)) {
|
|
1762
|
+
panBounds.current = getPanBounds(width, height, contentBounds, zoomProps.zoomValue, zoomProps.minZoom, initPanZoomState.current, panProps.panning);
|
|
1763
|
+
prevZoom.current = zoomProps.zoomValue;
|
|
1764
|
+
panning.current = panProps.panning;
|
|
1765
|
+
}
|
|
1766
|
+
const dragPanProps = useDragPan({
|
|
1767
|
+
panProps: panProps,
|
|
1768
|
+
captureTargetRef: captureTargetRef,
|
|
1769
|
+
panBounds: panBounds.current,
|
|
1770
|
+
zoom: zoomProps.zoomValue,
|
|
1771
|
+
width,
|
|
1772
|
+
height,
|
|
1773
|
+
onDragPanStart: () => setCursor('grabbing'),
|
|
1774
|
+
onDragPanEnd: () => setCursor('auto')
|
|
1775
|
+
});
|
|
1776
|
+
//dZoom or nZoom is required
|
|
1777
|
+
const kbZoomCallback = (props) => {
|
|
1778
|
+
const newZoom = props.dZoom
|
|
1779
|
+
? zoomProps.zoomValue + props.dZoom
|
|
1780
|
+
: getZoomToFitZoom(width, height, contentBounds);
|
|
1781
|
+
zoom(props.nZoom ? props.nZoom : newZoom, zoomProps.zoomValue, zoomProps.minZoom, zoomProps.maxZoom, zoomProps.onZoom);
|
|
1782
|
+
};
|
|
1783
|
+
const prevPanState = useRef({ panX: 0, panY: 0 });
|
|
1784
|
+
// dPan or nPan is required
|
|
1785
|
+
const kbPanCallback = (props) => {
|
|
1786
|
+
let centerX;
|
|
1787
|
+
let centerY;
|
|
1788
|
+
if (props.center) {
|
|
1789
|
+
centerX = contentBounds.x + contentBounds.w / 2;
|
|
1790
|
+
centerY = contentBounds.y + contentBounds.h / 2;
|
|
1791
|
+
}
|
|
1792
|
+
else if (props.dPan) {
|
|
1793
|
+
centerX = panProps.centerX + props.dPan.dx;
|
|
1794
|
+
centerY = panProps.centerY + props.dPan.dy;
|
|
1795
|
+
}
|
|
1796
|
+
else {
|
|
1797
|
+
centerX = props.nPan.cx;
|
|
1798
|
+
centerY = props.nPan.cy;
|
|
1799
|
+
}
|
|
1800
|
+
const panValues = centerXYToPanXY(centerX, centerY, zoomProps.zoomValue, width, height);
|
|
1801
|
+
const { newPan } = pan(prevPanState.current, panValues, panProps.panDirection, zoomProps.zoomValue, width, height, panBounds.current, panProps.onPan);
|
|
1802
|
+
prevPanState.current = newPan;
|
|
1803
|
+
};
|
|
1804
|
+
const wheelZoomProps = useWheelZoom(zoomProps);
|
|
1805
|
+
const pinchZoomProps = usePinchZoom({
|
|
1806
|
+
captureTargetRef,
|
|
1807
|
+
zooming: zoomProps.zooming,
|
|
1808
|
+
minZoom: zoomProps.minZoom,
|
|
1809
|
+
maxZoom: zoomProps.maxZoom,
|
|
1810
|
+
zoomValue: zoomProps.zoomValue,
|
|
1811
|
+
onZoom: zoomProps.onZoom
|
|
1812
|
+
});
|
|
1813
|
+
const panZoomProps = mergeProps(dragPanProps, wheelZoomProps, pinchZoomProps);
|
|
1814
|
+
return {
|
|
1815
|
+
panZoomProps,
|
|
1816
|
+
panProps,
|
|
1817
|
+
zoomProps,
|
|
1818
|
+
toggleButtonContent,
|
|
1819
|
+
cursor,
|
|
1820
|
+
centerX: panProps.centerX,
|
|
1821
|
+
centerY: panProps.centerY,
|
|
1822
|
+
zoomValue: zoomProps.zoomValue,
|
|
1823
|
+
kbPanCallback: panProps.panning !== 'off' ? kbPanCallback : undefined,
|
|
1824
|
+
kbZoomCallback: zoomProps.zooming !== 'off' ? kbZoomCallback : undefined
|
|
1825
|
+
};
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
function useDiagramSelection({ selectedIds, selectionMode, nodeMap, linkMap, focusedItemInfo, onSelectionChange, rootRef }) {
|
|
1829
|
+
const nodeIdToIndexMap = nodeMap.itemIdToIndexMap;
|
|
1830
|
+
const nodeIndexToIdMap = nodeMap.itemIndexToIdMap;
|
|
1831
|
+
const nodeIdToDataMap = nodeMap.itemIdToDataMap;
|
|
1832
|
+
const linkIdToIndexMap = linkMap.itemIdToIndexMap;
|
|
1833
|
+
const linkIndexToIdMap = linkMap.itemIndexToIdMap;
|
|
1834
|
+
const linkIdToDataMap = linkMap.itemIdToDataMap;
|
|
1835
|
+
const encodeNodeId = (id) => `N_${nodeIdToIndexMap.get(id)}`;
|
|
1836
|
+
const decodeNodeId = (id) => nodeIndexToIdMap.get(Number(id.slice(2)));
|
|
1837
|
+
const encodeLinkId = (id) => `L_${linkIdToIndexMap.get(id)}`;
|
|
1838
|
+
const decodeLinkId = (id) => linkIndexToIdMap.get(Number(id.slice(2)));
|
|
1839
|
+
const encodedNodesSelection = selectedIds.nodes ? selectedIds.nodes.map(encodeNodeId) : [];
|
|
1840
|
+
const encodedLinksSelection = selectedIds.links ? selectedIds.links.map(encodeLinkId) : [];
|
|
1841
|
+
const encodedSelection = [...encodedNodesSelection, ...encodedLinksSelection];
|
|
1842
|
+
const idExtracter = (event) => {
|
|
1843
|
+
// return encodeNodeId(id) or encodeLinkId(id) depending on node or link selection or undefined if clicked on empty space
|
|
1844
|
+
const info = event.type === 'keyup'
|
|
1845
|
+
? focusedItemInfo
|
|
1846
|
+
: getNavigableInfo(event.target, rootRef);
|
|
1847
|
+
return info.id !== undefined
|
|
1848
|
+
? info.isNode
|
|
1849
|
+
? encodeNodeId(info.id)
|
|
1850
|
+
: encodeLinkId(info.id)
|
|
1851
|
+
: undefined;
|
|
1852
|
+
};
|
|
1853
|
+
const onEncodedSelectionChange = (detail) => {
|
|
1854
|
+
const newNodeIds = detail.ids
|
|
1855
|
+
.filter((encId) => encId[0] === 'N')
|
|
1856
|
+
.map((encId) => decodeNodeId(encId));
|
|
1857
|
+
const newLinkIds = detail.ids
|
|
1858
|
+
.filter((encId) => encId[0] === 'L')
|
|
1859
|
+
.map((encId) => decodeLinkId(encId));
|
|
1860
|
+
const newSelectedNodeIds = newNodeIds.filter((id) => nodeIdToDataMap.get(id)?.selectable !== 'off');
|
|
1861
|
+
const newSelectedLinkIds = newLinkIds.filter((id) => linkIdToDataMap.get(id)?.selectable !== 'off');
|
|
1862
|
+
const nodeData = newSelectedNodeIds.map((selectedId) => {
|
|
1863
|
+
return nodeIdToDataMap.get(selectedId);
|
|
1864
|
+
});
|
|
1865
|
+
const linkData = newSelectedLinkIds.map((selectedId) => {
|
|
1866
|
+
return linkIdToDataMap.get(selectedId);
|
|
1867
|
+
});
|
|
1868
|
+
return (onSelectionChange &&
|
|
1869
|
+
onSelectionChange({
|
|
1870
|
+
nodes: newSelectedNodeIds,
|
|
1871
|
+
links: newSelectedLinkIds,
|
|
1872
|
+
nodeData,
|
|
1873
|
+
linkData
|
|
1874
|
+
}));
|
|
1875
|
+
};
|
|
1876
|
+
const getDataById = (id) => {
|
|
1877
|
+
let data;
|
|
1878
|
+
if (id[0] === 'N') {
|
|
1879
|
+
const nodeId = decodeNodeId(id);
|
|
1880
|
+
data = nodeMap.itemIdToDataMap.get(nodeId);
|
|
1881
|
+
}
|
|
1882
|
+
else if (id[0] === 'L') {
|
|
1883
|
+
const linkId = decodeLinkId(id);
|
|
1884
|
+
data = linkMap.itemIdToDataMap.get(linkId);
|
|
1885
|
+
}
|
|
1886
|
+
return data;
|
|
1887
|
+
};
|
|
1888
|
+
const { selectionContent, selectionProps } = useSelection({
|
|
1889
|
+
selection: encodedSelection,
|
|
1890
|
+
idExtracter,
|
|
1891
|
+
selectionMode,
|
|
1892
|
+
getDataById,
|
|
1893
|
+
onChange: onEncodedSelectionChange
|
|
1894
|
+
});
|
|
1895
|
+
return { selectionContent, selectionProps };
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
function DiagramWithDimensions({ nodes = [], links = [], width, height, selectedIds = {}, selectionMode = 'none', layout, nodeRenderer, linkRenderer, onSelectionChange, onItemHover, onItemFocus, highlightedIds = {}, datatip, ...otherProps }) {
|
|
1899
|
+
const focusedItemBoundsRef = useRef(null);
|
|
1900
|
+
const rootRef = useRef(null);
|
|
1901
|
+
//TODO JET-62563 change bounds to a MAP
|
|
1902
|
+
const [bounds, setBounds] = useState([]);
|
|
1903
|
+
const [combinedLabelBounds, setCombinedLabelBounds] = useState();
|
|
1904
|
+
const { direction } = useUser();
|
|
1905
|
+
const isRtl = direction === 'rtl';
|
|
1906
|
+
const diagramNodes = nodes;
|
|
1907
|
+
const nodeMap = createItemMap(diagramNodes);
|
|
1908
|
+
const nodeIdToDataMap = nodeMap.itemIdToDataMap;
|
|
1909
|
+
const diagramLinks = filterLinksWithNoEndNodes(links, nodeIdToDataMap);
|
|
1910
|
+
const linkMap = createItemMap(diagramLinks);
|
|
1911
|
+
const linkIdToDataMap = linkMap.itemIdToDataMap;
|
|
1912
|
+
const resizeThrottling = useRef(false);
|
|
1913
|
+
const newDimensions = getDimensionsFromBounds(bounds);
|
|
1914
|
+
const { textMeasureContent, getTextDimensions } = useTextDimensions();
|
|
1915
|
+
const labelDimensions = useRef(new Map());
|
|
1916
|
+
const nodeLabelPosRef = useRef([]);
|
|
1917
|
+
const linkLabelPosRef = useRef([]);
|
|
1918
|
+
const layoutOutputRef = useRef();
|
|
1919
|
+
const contentBounds = getContentBounds(bounds, combinedLabelBounds);
|
|
1920
|
+
const { panZoomProps, panProps, zoomProps, toggleButtonContent, cursor, centerX, centerY, zoomValue, kbPanCallback, kbZoomCallback } = usePanZoom({
|
|
1921
|
+
props: otherProps,
|
|
1922
|
+
captureTargetRef: rootRef,
|
|
1923
|
+
width: width,
|
|
1924
|
+
height: height,
|
|
1925
|
+
contentBounds,
|
|
1926
|
+
isRtl
|
|
1927
|
+
});
|
|
1928
|
+
const { touchResponse, touchResponseStyle } = useVisTouchResponse({
|
|
1929
|
+
type: 'auto',
|
|
1930
|
+
supportsTouchDragGestures: zoomProps.zooming === 'on' || panProps.panning !== 'off',
|
|
1931
|
+
rootRef
|
|
1932
|
+
});
|
|
1933
|
+
const { focusedItemInfo, hoveredItemInfo, activeId, eventsProps } = useEvents(touchResponse, diagramNodes[0], diagramNodes, diagramLinks, bounds, linkIdToDataMap, nodeIdToDataMap, nodeMap.itemIdToIndexMap, width, height, otherProps.maxZoom || 1, onItemHover, onItemFocus, kbPanCallback, kbZoomCallback);
|
|
1934
|
+
const { selectionProps, selectionContent } = useDiagramSelection({
|
|
1935
|
+
selectedIds,
|
|
1936
|
+
selectionMode,
|
|
1937
|
+
nodeMap,
|
|
1938
|
+
linkMap,
|
|
1939
|
+
focusedItemInfo,
|
|
1940
|
+
onSelectionChange,
|
|
1941
|
+
rootRef
|
|
1942
|
+
});
|
|
1943
|
+
// This is for the datatip kb position
|
|
1944
|
+
if (focusedItemInfo && bounds.length > 0) {
|
|
1945
|
+
focusedItemBoundsRef.current = getFocusedItemBounds(focusedItemInfo, bounds, diagramLinks, nodeMap.itemIdToIndexMap, linkMap.itemIdToIndexMap);
|
|
1946
|
+
}
|
|
1947
|
+
const { datatipContent, datatipProps: { 'aria-describedby': datatipAriaDescribedby, ...datatipProps } } = useDiagramDatatip({
|
|
1948
|
+
touchResponse,
|
|
1949
|
+
datatip,
|
|
1950
|
+
focusedItemInfo,
|
|
1951
|
+
focusedItemBoundsRef,
|
|
1952
|
+
panState: centerXYToPanXY(centerX, centerY, zoomValue, width, height),
|
|
1953
|
+
zoom: zoomValue,
|
|
1954
|
+
width: width,
|
|
1955
|
+
nodesMap: nodeIdToDataMap,
|
|
1956
|
+
linksMap: linkIdToDataMap,
|
|
1957
|
+
hoveredItem: hoveredItemInfo
|
|
1958
|
+
});
|
|
1959
|
+
const style = {
|
|
1960
|
+
width: width,
|
|
1961
|
+
height: height,
|
|
1962
|
+
cursor: cursor,
|
|
1963
|
+
...touchResponseStyle
|
|
1964
|
+
};
|
|
1965
|
+
const states = useRef();
|
|
1966
|
+
const previousState = states.current // states.current is previous state
|
|
1967
|
+
? states.current
|
|
1968
|
+
: {
|
|
1969
|
+
selectedNodeIds: [],
|
|
1970
|
+
selectedLinkIds: [],
|
|
1971
|
+
focusedId: undefined,
|
|
1972
|
+
hoveredId: undefined,
|
|
1973
|
+
activeId: undefined,
|
|
1974
|
+
highlightedIds: [],
|
|
1975
|
+
zoom: 0
|
|
1976
|
+
};
|
|
1977
|
+
states.current = {
|
|
1978
|
+
// update states to new state
|
|
1979
|
+
selectedNodeIds: selectedIds.nodes ?? [],
|
|
1980
|
+
selectedLinkIds: selectedIds.links ?? [],
|
|
1981
|
+
focusedId: focusedItemInfo.isCurrent && focusedItemInfo.isFocusVisible ? focusedItemInfo.id : undefined,
|
|
1982
|
+
hoveredId: hoveredItemInfo?.isCurrent ? hoveredItemInfo.id : undefined,
|
|
1983
|
+
activeId,
|
|
1984
|
+
highlightedIds: combineIds(highlightedIds.nodes, highlightedIds.links),
|
|
1985
|
+
zoom: zoomValue
|
|
1986
|
+
};
|
|
1987
|
+
const mergedEventProps = mergeProps(panZoomProps, eventsProps, selectionProps, datatipProps);
|
|
1988
|
+
// Called anytime node changes size
|
|
1989
|
+
const onNodeSizeChanged = (nodeWidth, nodeHeight, idx) => {
|
|
1990
|
+
newDimensions[idx] = { w: nodeWidth, h: nodeHeight };
|
|
1991
|
+
if (resizeThrottling.current) {
|
|
1992
|
+
return;
|
|
1993
|
+
}
|
|
1994
|
+
resizeThrottling.current = true;
|
|
1995
|
+
// performs layout at the next available animation frame when all measurements should be ready
|
|
1996
|
+
window.requestAnimationFrame(() => {
|
|
1997
|
+
const { labelDims, layoutJSON } = constructLayoutJSON(diagramNodes, nodeIdToDataMap, linkIdToDataMap, newDimensions, width, height, getTextDimensions);
|
|
1998
|
+
labelDimensions.current = labelDims;
|
|
1999
|
+
const layoutOutput = layout(layoutJSON);
|
|
2000
|
+
const { nodePoints, nodeLabelPos, linkLabelPos } = deconstructLayoutJSON(layoutOutput, diagramNodes, diagramLinks);
|
|
2001
|
+
nodeLabelPosRef.current = nodeLabelPos;
|
|
2002
|
+
linkLabelPosRef.current = linkLabelPos;
|
|
2003
|
+
layoutOutputRef.current = layoutOutput;
|
|
2004
|
+
const nodeBounds = mergeDimensions(newDimensions, nodePoints);
|
|
2005
|
+
if (!isEqualBounds(nodeBounds, bounds)) {
|
|
2006
|
+
setBounds(nodeBounds);
|
|
2007
|
+
}
|
|
2008
|
+
const labelBounds = getAllLabelBounds(labelDims, diagramNodes, diagramLinks, nodeLabelPos, linkLabelPos, direction === 'rtl');
|
|
2009
|
+
setCombinedLabelBounds(labelBounds);
|
|
2010
|
+
resizeThrottling.current = false;
|
|
2011
|
+
});
|
|
2012
|
+
};
|
|
2013
|
+
return (jsxs("div", { ref: rootRef, class: outerStyles, ...mergedEventProps, style: style, tabIndex: 0, role: "application", "aria-label": otherProps['aria-label'], "aria-labelledby": otherProps['aria-labelledby'], "aria-describedby": merge([otherProps['aria-describedby'], datatipAriaDescribedby]), "aria-activedescendant": activeId, children: [getTextDimensions ? (jsx(DiagramPanZoomContainer, { centerX: centerX, centerY: centerY, zoom: zoomValue, width: width, height: height, children: jsx(DiagramLayers, { nodes: diagramNodes, links: diagramLinks, nodeRenderer: nodeRenderer, linkRenderer: linkRenderer, width: width, height: height, nodeBounds: bounds, states: states.current, previousStates: previousState, onNodeSizeChanged: onNodeSizeChanged, nodeLabelPositions: nodeLabelPosRef.current, linkLabelPositions: linkLabelPosRef.current, labelDimensions: labelDimensions.current, supportsSelection: selectionMode !== 'none' ||
|
|
2014
|
+
!!(selectedIds?.nodes && selectedIds.nodes.length > 0) ||
|
|
2015
|
+
!!(selectedIds?.links && selectedIds.links.length > 0), layoutOutput: layoutOutputRef.current }) })) : undefined, textMeasureContent, datatipContent, selectionContent, toggleButtonContent] }));
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
/**
|
|
2019
|
+
* Diagrams are used to display a set of nodes and the links between them.
|
|
2020
|
+
*/
|
|
2021
|
+
function Diagram({ width, height, ...otherProps }) {
|
|
2022
|
+
return otherProps.nodes && otherProps.nodes.length > 0 ? (jsx(TrackResizeContainer, { width: width, height: height, class: dimensionStyle, children: (width, height) => jsx(DiagramWithDimensions, { width: width, height: height, ...otherProps }) })) : null;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
export { Diagram as D };
|
|
2026
|
+
//# sourceMappingURL=Diagram-ee9ec4a9.js.map
|