@oracle/oraclejet-preact 17.0.5 → 17.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-c8070525.js +1 -1
- package/amd/BarChart-be1d51d4.js +1 -1
- package/amd/BaseButton-83ce1d00.js +1 -1
- package/amd/BaseCardView-1aa0d986.js +1 -1
- package/amd/BaseCardViewSelectionTest-28e25f08.js +2 -0
- package/amd/BaseCardViewSelectionTest-28e25f08.js.map +1 -0
- package/amd/BaseNavigationListItem-4a940426.js +1 -1
- package/amd/ButtonSet-d8cd5447.js +1 -1
- package/amd/ButtonSetIconButton-08612ca6.js +1 -1
- package/amd/Center-5f845605.js +2 -0
- package/amd/Center-5f845605.js.map +1 -0
- package/amd/Chart-4796be31.js +1 -1
- package/amd/CheckboxControl-7d539ab3.js +1 -1
- package/amd/CheckboxRadioField-da88bd6f.js +1 -1
- package/amd/Chip-26339152.js +1 -1
- package/amd/ClearIcon-a29e57fb.js +1 -1
- package/amd/CollapseIcon-c433fd3e.js +1 -1
- package/amd/Collapsible-8f15bec2.js +1 -1
- package/amd/CompactHelpSource-7de24d56.js +1 -1
- package/amd/CompactLabelAssistance-91aeaa2e.js +2 -0
- package/amd/CompactLabelAssistance-91aeaa2e.js.map +1 -0
- package/amd/CompactUserAssistance-b2cbdbad.js +1 -1
- package/amd/ComponentMessageContainer-dc4b7c7f.js +1 -1
- package/amd/ConveyorBeltItem-d398eaa6.js +1 -1
- package/amd/DatePicker-3996fc76.js +2 -0
- package/amd/DatePicker-3996fc76.js.map +1 -0
- package/amd/DatePickerHeader-52c085e6.js +1 -1
- package/amd/Diagram-737e9921.js +2 -0
- package/amd/Diagram-737e9921.js.map +1 -0
- package/amd/DirectionalCollapseArrowIcon-09a24655.js +1 -1
- package/amd/DirectionalExpandArrowIcon-c8f2e596.js +1 -1
- package/amd/DragHandle-351a20be.js +1 -1
- package/amd/Dropdown-de472a1d.js +2 -0
- package/amd/Dropdown-de472a1d.js.map +1 -0
- package/amd/EnvironmentProvider-46d0a245.js +2 -0
- package/amd/EnvironmentProvider-46d0a245.js.map +1 -0
- package/amd/FilePicker-9b2fb661.js +1 -1
- package/amd/Flex-1f27b601.js +2 -0
- package/amd/Flex-1f27b601.js.map +1 -0
- package/amd/Floating-85851b1a.js +2 -0
- package/amd/Floating-85851b1a.js.map +1 -0
- package/amd/FormLayout-80b89e74.js +1 -1
- package/amd/Gantt-6fe34398.js +1 -1
- package/amd/Grid-85171367.js +2 -0
- package/amd/Grid-85171367.js.map +1 -0
- package/amd/Gridlines-11a94c28.js +2 -0
- package/amd/Gridlines-11a94c28.js.map +1 -0
- package/amd/GroupLoadingIndicator-e66ed431.js +1 -1
- package/amd/HighlightText-ad9bc1f8.js +2 -0
- package/amd/HighlightText-ad9bc1f8.js.map +1 -0
- package/amd/Icon-599f55f3.js +1 -1
- package/amd/IconButton-1b328b69.js +1 -1
- package/amd/IconMenuButton-c275cfbb.js +1 -1
- package/amd/IconSwitchButton-0e888503.js +1 -1
- package/amd/IconToggleButton-563a5127.js +1 -1
- package/amd/IconUserAssistance-5bdaa6bf.js +2 -0
- package/amd/IconUserAssistance-5bdaa6bf.js.map +1 -0
- package/amd/Indexer-204a6d88.js +1 -1
- package/amd/InlineHelpSource-359fd9df.js +1 -1
- package/amd/InlineUserAssistance-f4d1fa1b.js +1 -1
- package/amd/InputDateMask-b7a27faa.js +1 -1
- package/amd/InputDatePicker-0012b304.js +2 -0
- package/amd/InputDatePicker-0012b304.js.map +1 -0
- package/amd/InputPassword-03f24e78.js +1 -1
- package/amd/InputText-da0a5c0f.js +1 -1
- package/amd/Label-3f8fc274.js +1 -1
- package/amd/LabelValueLayout-89e9f1be.js +1 -1
- package/amd/Layer-3cc44164.js +2 -0
- package/amd/Layer-3cc44164.js.map +1 -0
- package/amd/LayerHost-eab40731.js +2 -0
- package/amd/LayerHost-eab40731.js.map +1 -0
- package/amd/LayerManager-d0836029.js +2 -0
- package/amd/LayerManager-d0836029.js.map +1 -0
- package/amd/Legend-42f8653b.js +1 -1
- package/amd/LineAreaChart-2057f8b4.js +2 -0
- package/amd/LineAreaChart-2057f8b4.js.map +1 -0
- package/amd/Link-6f583879.js +1 -1
- package/amd/List-5958c802.js +1 -1
- package/amd/ListItemLayout-dba9e24b.js +2 -0
- package/amd/ListItemLayout-dba9e24b.js.map +1 -0
- package/amd/ListView-27d10b67.js +1 -1
- package/amd/LiveRegion-be6f36d7.js +2 -0
- package/amd/LiveRegion-be6f36d7.js.map +1 -0
- package/amd/MaxLengthCounter-caafceef.js +2 -0
- package/amd/MaxLengthCounter-caafceef.js.map +1 -0
- package/amd/MaxLengthLiveRegion-23d7e335.js +2 -0
- package/amd/MaxLengthLiveRegion-23d7e335.js.map +1 -0
- package/amd/Menu-51409b28.js +2 -0
- package/amd/Menu-51409b28.js.map +1 -0
- package/amd/MenuButton-c8fb534d.js +1 -1
- package/amd/MenuItem-644f8619.js +1 -1
- package/amd/Message-51d787d0.js +1 -1
- package/amd/MessageLayer-d2c49999.js +2 -0
- package/amd/MessageLayer-d2c49999.js.map +1 -0
- package/amd/MessageToast-e0e07765.js +1 -1
- package/amd/MessagesManager-78a10f78.js +1 -1
- package/amd/MeterBar-38666619.js +1 -1
- package/amd/MeterCircle-f1561632.js +1 -1
- package/amd/Modal-8c095bea.js +2 -0
- package/amd/Modal-8c095bea.js.map +1 -0
- package/amd/MonthView-b5d1d69d.js +2 -0
- package/amd/MonthView-b5d1d69d.js.map +1 -0
- package/amd/NavigationListItem-c96ac144.js +1 -1
- package/amd/NumberInputText-0d8284f8.js +1 -1
- package/amd/OverflowTabBarItem-f781e527.js +1 -1
- 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/RadiobuttonOff.js +1 -1
- package/amd/PRIVATE_Icons/RadiobuttonOn.js +1 -1
- package/amd/PRIVATE_Icons/WarningS.js +1 -1
- package/amd/PRIVATE_List.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_SelectCommon.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/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/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/SortDefaultIcon.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_VisTabularDatatip.js +1 -1
- package/amd/PictoChart-4d70af90.js +1 -1
- package/amd/PieChart-ab4c95f7.js +2 -0
- package/amd/PieChart-ab4c95f7.js.map +1 -0
- package/amd/Popup-249d77c3.js +2 -0
- package/amd/Popup-249d77c3.js.map +1 -0
- package/amd/ProgressBar-f82d6b43.js +2 -0
- package/amd/ProgressBar-f82d6b43.js.map +1 -0
- package/amd/ProgressCircle-fc85cd7c.js +2 -0
- package/amd/ProgressCircle-fc85cd7c.js.map +1 -0
- package/amd/RadioItem-27c120ba.js +1 -1
- package/amd/RatingGauge-dfe9f698.js +1 -1
- package/amd/ReadonlyTextFieldInput-a5e85e5d.js +1 -1
- package/amd/RemovableNavigationListItem-87ecbae7.js +1 -1
- package/amd/RemovableTabBarItem-89287a9b.js +1 -1
- package/amd/ReorderableTabBar-05821909.js +1 -1
- package/amd/RevealToggleIcon-ef89d654.js +1 -1
- package/amd/SectionalLegend-798dbecb.js +1 -1
- package/amd/SectionedContent-655a773a.js +2 -0
- package/amd/SectionedContent-655a773a.js.map +1 -0
- package/amd/SelectMultiple-fabd883c.js +1 -1
- package/amd/SelectSingle-34d636a8.js +1 -1
- package/amd/SelectionCard-0ecc7773.js +2 -0
- package/amd/SelectionCard-0ecc7773.js.map +1 -0
- package/amd/Selector-ad2af152.js +1 -1
- package/amd/SelectorAll-879d186e.js +1 -1
- package/amd/Sheet-6447f399.js +2 -0
- package/amd/Sheet-6447f399.js.map +1 -0
- package/amd/SplitMenuButton-deb0fc04.js +1 -1
- package/amd/StyledTextField-8ac3bbb4.js +1 -1
- package/amd/Submenu-b20a55aa.js +1 -1
- package/amd/TabBar-10096a0c.js +1 -1
- package/amd/TabBarItem-7f4a5e0b.js +1 -1
- package/amd/TabBarLayout-f8e0fcad.js +1 -1
- package/amd/TabBarMixed-5adc54c4.js +1 -1
- package/amd/TabBarMixedSeparator-10a52b13.js +2 -0
- package/amd/TabBarMixedSeparator-10a52b13.js.map +1 -0
- package/amd/Table-fda0ad21.js +1 -1
- package/amd/TagCloud-a37fcea5.js +1 -1
- package/amd/TextArea-44c90bc4.js +2 -0
- package/amd/TextArea-44c90bc4.js.map +1 -0
- package/amd/TextAreaAutosize-0a023972.js +2 -0
- package/amd/TextAreaAutosize-0a023972.js.map +1 -0
- package/amd/TextField-0fc70892.js +1 -1
- package/amd/TextFieldInput-dfd9529f.js +1 -1
- package/amd/Theme-redwood/theme.css +251 -251
- package/amd/Theme-stable/theme.css +341 -341
- package/amd/TimeComponentCanvas2D-d4a5891c.js +1 -1
- package/amd/Toolbar-98c1d888.js +1 -1
- package/amd/TruncatingBadge-67192c05.js +1 -1
- package/amd/TruncatingText-27ffd8e4.js +1 -1
- 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_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_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_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_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/__test__/LineChart.spec.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_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_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-8701dec6.js +2 -0
- package/amd/View-8701dec6.js.map +1 -0
- package/amd/VisNoData-bfb5065e.js +2 -0
- package/amd/VisNoData-bfb5065e.js.map +1 -0
- package/amd/VisProgressiveLoader-ef9de93a.js +2 -0
- package/amd/VisProgressiveLoader-ef9de93a.js.map +1 -0
- package/amd/VisTabularDatatip-5e43455b.js +2 -0
- package/amd/VisTabularDatatip-5e43455b.js.map +1 -0
- package/amd/WindowOverlay-c09fece2.js +2 -0
- package/amd/WindowOverlay-c09fece2.js.map +1 -0
- package/amd/YearsGridView-91e4744d.js +2 -0
- package/amd/YearsGridView-91e4744d.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_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_useContainerBreakpointValues.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-17fdb080.js +2 -0
- package/amd/index-17fdb080.js.map +1 -0
- package/amd/listViewSelectionTests-a0132dcc.js +1 -1
- package/amd/render-9b32a558.js +2 -0
- package/amd/render-9b32a558.js.map +1 -0
- package/amd/tabbableUtils-5b5b70da.js +2 -0
- package/amd/tabbableUtils-5b5b70da.js.map +1 -0
- package/amd/testData-8e20304d.js +2 -0
- package/amd/testData-8e20304d.js.map +1 -0
- package/amd/useCellNavigation-37e0539a.js +1 -1
- package/amd/useChartContextMenu-c50617f2.js +1 -1
- package/amd/useChartDatatip-672232af.js +2 -0
- package/amd/useChartDatatip-672232af.js.map +1 -0
- package/amd/useChartMarquee-0e818e77.js +1 -1
- package/amd/useColorScheme-711c1e4b.js +2 -0
- package/amd/useColorScheme-711c1e4b.js.map +1 -0
- package/amd/useContextMenu-e6b10380.js +1 -1
- package/amd/useCssVars-948d1e7c.js +2 -0
- package/amd/useCssVars-948d1e7c.js.map +1 -0
- package/amd/useCurrentBgColor-40103ccc.js +2 -0
- package/amd/useCurrentBgColor-40103ccc.js.map +1 -0
- package/amd/useCurrentKey-00f81f0b.js +2 -0
- package/amd/useCurrentKey-00f81f0b.js.map +1 -0
- package/amd/useDatatip-d00735e9.js +2 -0
- package/amd/useDatatip-d00735e9.js.map +1 -0
- package/amd/useDensity-435224bb.js +2 -0
- package/amd/useDensity-435224bb.js.map +1 -0
- package/amd/useFloating-bbd3396b.js +2 -0
- package/amd/useFloating-bbd3396b.js.map +1 -0
- package/amd/useKeyboardEvents-e9a2b72b.js +2 -0
- package/amd/useKeyboardEvents-e9a2b72b.js.map +1 -0
- package/amd/useLegendContextMenu-5b1ca75b.js +1 -1
- package/amd/useMeterDatatip-60af9281.js +2 -0
- package/amd/useMeterDatatip-60af9281.js.map +1 -0
- package/amd/useOutsideClick-4519a64e.js +2 -0
- package/amd/useOutsideClick-4519a64e.js.map +1 -0
- package/amd/usePopupAnimation-273054a0.js +2 -0
- package/amd/usePopupAnimation-273054a0.js.map +1 -0
- package/amd/usePrefixSuffix-6ad5569e.js +2 -0
- package/amd/usePrefixSuffix-6ad5569e.js.map +1 -0
- package/amd/useReorderableItem-d977f935.js +1 -1
- package/amd/useRovingTabIndexContainer-12784fca.js +2 -0
- package/amd/useRovingTabIndexContainer-12784fca.js.map +1 -0
- package/amd/useScale-e6b83382.js +2 -0
- package/amd/useScale-e6b83382.js.map +1 -0
- package/amd/useSelectCommon-8657b927.js +1 -1
- package/amd/useSelectDrill-f2ae347c.js +2 -0
- package/amd/useSelectDrill-f2ae347c.js.map +1 -0
- package/amd/useSelection-0440840d.js +2 -0
- package/amd/useSelection-0440840d.js.map +1 -0
- package/amd/useSelection-f1d96ce9.js +2 -0
- package/amd/useSelection-f1d96ce9.js.map +1 -0
- package/amd/useTabBar-451e6953.js +2 -0
- package/amd/useTabBar-451e6953.js.map +1 -0
- package/amd/useTestId-82cf22a4.js +2 -0
- package/amd/useTestId-82cf22a4.js.map +1 -0
- package/amd/useTheme-1941efb7.js +2 -0
- package/amd/useTheme-1941efb7.js.map +1 -0
- package/amd/useThemeInterpolations-41cbd433.js +2 -0
- package/amd/useThemeInterpolations-41cbd433.js.map +1 -0
- package/amd/useTooltip-d28e9b0f.js +2 -0
- package/amd/useTooltip-d28e9b0f.js.map +1 -0
- package/amd/useTooltipControlled-abf886f2.js +2 -0
- package/amd/useTooltipControlled-abf886f2.js.map +1 -0
- package/amd/useTranslationBundle-6ef0dab6.js +2 -0
- package/amd/useTranslationBundle-6ef0dab6.js.map +1 -0
- package/amd/useUser-6dd85af9.js +2 -0
- package/amd/useUser-6dd85af9.js.map +1 -0
- package/amd/useVisEvents-75dbf576.js +2 -0
- package/amd/useVisEvents-75dbf576.js.map +1 -0
- package/amd/utils/PRIVATE_visTestUtils.js +1 -1
- package/amd/withDirectionIcon-c0ee0f7e.js +2 -0
- package/amd/withDirectionIcon-c0ee0f7e.js.map +1 -0
- package/cjs/ActionCard-aade4e40.js +1 -1
- package/cjs/BarChart-11c56b6a.js +2 -2
- package/cjs/BaseButton-ff6f39f2.js +2 -2
- package/cjs/BaseCardView-99f89fbf.js +619 -0
- package/cjs/BaseCardView-99f89fbf.js.map +1 -0
- package/cjs/BaseCardViewSelectionTest-1d3dd9f3.js +696 -0
- package/cjs/BaseCardViewSelectionTest-1d3dd9f3.js.map +1 -0
- package/cjs/BaseNavigationListItem-070d75bc.js +1 -1
- package/cjs/ButtonSet-dc50f9d4.js +2 -2
- package/cjs/ButtonSetIconButton-50543cd6.js +2 -2
- package/cjs/CardFlexView-48f39ef2.js +29 -0
- package/cjs/CardFlexView-48f39ef2.js.map +1 -0
- package/cjs/CardGridView-6bb427fe.js +17 -0
- package/cjs/CardGridView-6bb427fe.js.map +1 -0
- package/cjs/Center-a76dcdfe.js +18 -0
- package/cjs/Center-a76dcdfe.js.map +1 -0
- package/cjs/Chart-6684fa6d.js +9 -9
- package/cjs/CheckboxControl-24658cde.js +6 -6
- package/cjs/CheckboxRadioField-0d4b2c66.js +5 -5
- package/cjs/CheckboxSet-13a5c10c.js +53 -0
- package/cjs/CheckboxSet-13a5c10c.js.map +1 -0
- package/cjs/Chip-a24817e0.js +1 -1
- package/cjs/ClearIcon-50725213.js +1 -1
- package/cjs/CollapseIcon-a1da1523.js +1 -1
- package/cjs/Collapsible-95f66549.js +2 -2
- package/cjs/CompactHelpSource-f4e9198b.js +2 -2
- package/cjs/CompactLabelAssistance-7dd6ac2c.js +29 -0
- package/cjs/CompactLabelAssistance-7dd6ac2c.js.map +1 -0
- package/cjs/CompactUserAssistance-f88519f9.js +4 -4
- package/cjs/ComponentMessageContainer-a9195577.js +4 -4
- package/cjs/ConveyorBeltItem-a0d53a2f.js +2 -2
- package/cjs/DatePicker-3c46ec73.js +564 -0
- package/cjs/DatePicker-3c46ec73.js.map +1 -0
- package/cjs/DatePickerHeader-589e8b78.js +3 -3
- package/cjs/Diagram-5e7f1aec.js +2000 -0
- package/cjs/Diagram-5e7f1aec.js.map +1 -0
- package/cjs/DirectionalCollapseArrowIcon-d2b24ac3.js +1 -1
- package/cjs/DirectionalExpandArrowIcon-adf981f6.js +1 -1
- package/cjs/DragHandle-d35fc8ac.js +1 -1
- package/cjs/Dropdown-7baf2926.js +82 -0
- package/cjs/Dropdown-7baf2926.js.map +1 -0
- package/cjs/EnvironmentProvider-e5a93f24.js +61 -0
- package/cjs/EnvironmentProvider-e5a93f24.js.map +1 -0
- package/cjs/FilePicker-47c7bc3f.js +2 -2
- package/cjs/Flex-6529d995.js +33 -0
- package/cjs/Flex-6529d995.js.map +1 -0
- package/cjs/Floating-9e569e63.js +464 -0
- package/cjs/Floating-9e569e63.js.map +1 -0
- package/cjs/FormLayout-ab6f90b8.js +1 -1
- package/cjs/Gantt-912df32a.js +9 -9
- package/cjs/Grid-fe4fef40.js +29 -0
- package/cjs/Grid-fe4fef40.js.map +1 -0
- package/cjs/Gridlines-b31d8972.js +123 -0
- package/cjs/Gridlines-b31d8972.js.map +1 -0
- package/cjs/GroupLoadingIndicator-3c9d8341.js +2 -2
- package/cjs/HighlightText-da873ed3.js +33 -0
- package/cjs/HighlightText-da873ed3.js.map +1 -0
- package/cjs/Icon-3ffd13dc.js +2 -2
- package/cjs/IconButton-94f8ca5c.js +2 -2
- package/cjs/IconMenuButton-426f2aa8.js +4 -4
- package/cjs/IconSwitchButton-094ace3a.js +2 -2
- package/cjs/IconToggleButton-0c415743.js +2 -2
- package/cjs/IconUserAssistance-cee464a4.js +75 -0
- package/cjs/IconUserAssistance-cee464a4.js.map +1 -0
- package/cjs/Indexer-0663a593.js +339 -0
- package/cjs/Indexer-0663a593.js.map +1 -0
- package/cjs/InlineHelpSource-7b793104.js +1 -1
- package/cjs/InlineUserAssistance-ad3fa8cc.js +5 -5
- package/cjs/InputDateMask-f15d926d.js +7 -7
- package/cjs/InputDatePicker-005c03d0.js +8 -8
- package/cjs/InputPassword-16e31428.js +4 -4
- package/cjs/InputText-75ae1f44.js +6 -6
- package/cjs/Label-d9ad059f.js +5 -5
- package/cjs/LabelValueLayout-24937fa5.js +1 -1
- package/cjs/Layer-845cc772.js +87 -0
- package/cjs/Layer-845cc772.js.map +1 -0
- package/cjs/LayerHost-a6007465.js +45 -0
- package/cjs/LayerHost-a6007465.js.map +1 -0
- package/cjs/LayerManager-6fa20e12.js +36 -0
- package/cjs/LayerManager-6fa20e12.js.map +1 -0
- package/cjs/Legend-a03cbeb5.js +3 -3
- package/cjs/LineAreaChart-e8165e93.js +225 -0
- package/cjs/LineAreaChart-e8165e93.js.map +1 -0
- package/cjs/Link-98de6624.js +1 -1
- package/cjs/List-8802ce35.js +566 -0
- package/cjs/List-8802ce35.js.map +1 -0
- package/cjs/ListItemLayout-24a81393.js +60 -0
- package/cjs/ListItemLayout-24a81393.js.map +1 -0
- package/cjs/ListView-f7871b48.js +388 -0
- package/cjs/ListView-f7871b48.js.map +1 -0
- package/cjs/LiveRegion-fcb0bb37.js +41 -0
- package/cjs/LiveRegion-fcb0bb37.js.map +1 -0
- package/cjs/LoadMoreCollection-69bc038c.js +34 -0
- package/cjs/LoadMoreCollection-69bc038c.js.map +1 -0
- package/cjs/MaxLengthLiveRegion-2dba8c9c.js +25 -0
- package/cjs/MaxLengthLiveRegion-2dba8c9c.js.map +1 -0
- package/cjs/Menu-afcc3db8.js +317 -0
- package/cjs/Menu-afcc3db8.js.map +1 -0
- package/cjs/MenuButton-58fd9f46.js +3 -3
- package/cjs/MenuItem-9a73694f.js +1 -1
- package/cjs/Message-b703f9e4.js +2 -2
- package/cjs/MessageLayer-b2a48a1f.js +61 -0
- package/cjs/MessageLayer-b2a48a1f.js.map +1 -0
- package/cjs/MessageToast-4462ab8d.js +8 -8
- package/cjs/MessagesManager-9cc43d3a.js +3 -3
- package/cjs/MeterBar-97378f96.js +4 -4
- package/cjs/MeterCircle-71fd9b44.js +4 -4
- package/cjs/Modal-fd178291.js +258 -0
- package/cjs/Modal-fd178291.js.map +1 -0
- package/cjs/MonthView-de994aa0.js +154 -0
- package/cjs/MonthView-de994aa0.js.map +1 -0
- package/cjs/NavigationListItem-994a877b.js +153 -0
- package/cjs/NavigationListItem-994a877b.js.map +1 -0
- package/cjs/NumberInputText-8771fbad.js +6 -6
- package/cjs/OverflowTabBarItem-47fb81c4.js +88 -0
- package/cjs/OverflowTabBarItem-47fb81c4.js.map +1 -0
- package/cjs/PRIVATE_BaseCardView.js +22 -22
- package/cjs/PRIVATE_Chart.js +29 -29
- package/cjs/PRIVATE_CheckboxControl.js +21 -21
- package/cjs/PRIVATE_CheckboxRadioField.js +22 -22
- package/cjs/PRIVATE_ClearIcon.js +16 -16
- package/cjs/PRIVATE_DatePickerHeader.js +18 -18
- 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 +14 -14
- package/cjs/PRIVATE_Icons/CheckboxMixed.js +14 -14
- package/cjs/PRIVATE_Icons/CheckboxOff.js +14 -14
- package/cjs/PRIVATE_Icons/CheckboxOn.js +14 -14
- package/cjs/PRIVATE_Icons/RadiobuttonOff.js +14 -14
- package/cjs/PRIVATE_Icons/RadiobuttonOn.js +14 -14
- package/cjs/PRIVATE_Icons/WarningS.js +14 -14
- package/cjs/PRIVATE_List.js +22 -22
- package/cjs/PRIVATE_LoadMoreCollection.js +2 -2
- package/cjs/PRIVATE_Message.js +17 -17
- package/cjs/PRIVATE_MessageLayer.js +11 -11
- 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 +15 -15
- package/cjs/PRIVATE_SelectCommon.js +31 -31
- package/cjs/PRIVATE_StyledCheckbox.js +14 -14
- package/cjs/PRIVATE_Table.js +19 -19
- package/cjs/PRIVATE_ThemedIcons/CalendarIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/ChartPanIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/ChartZoomIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/CheckIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/CheckboxOffIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/CheckboxOnIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/CloseIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/CollapseIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/CollapseUpIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/DecrementIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/DeleteIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/DropdownArrowIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/ExpandIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/HelpIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/IncrementIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/MessageErrorIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/MessageInfoIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/MessageWarningIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/MinusIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/NavDownIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/PlusIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/RadioOffIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/RadioOnIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/SortAscendingIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/SortDefaultIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/SortDescendingIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/ViewHideIcon.js +14 -14
- package/cjs/PRIVATE_ThemedIcons/ViewIcon.js +14 -14
- package/cjs/PRIVATE_TimeComponent.js +17 -17
- package/cjs/PRIVATE_VirtualizedCollection.js +2 -2
- package/cjs/PRIVATE_VisTabularDatatip.js +4 -4
- package/cjs/PictoChart-bbd66c57.js +6 -6
- package/cjs/PieChart-af6fad17.js +435 -0
- package/cjs/PieChart-af6fad17.js.map +1 -0
- package/cjs/Popup-a793c4a2.js +242 -0
- package/cjs/Popup-a793c4a2.js.map +1 -0
- package/cjs/ProgressBar-c1bfc481.js +60 -0
- package/cjs/ProgressBar-c1bfc481.js.map +1 -0
- package/cjs/ProgressCircle-579da214.js +46 -0
- package/cjs/ProgressCircle-579da214.js.map +1 -0
- package/cjs/RadioItem-f53a057a.js +6 -6
- package/cjs/RatingGauge-bafed83c.js +7 -7
- package/cjs/ReadonlyTextFieldInput-fb7ffa5e.js +1 -1
- package/cjs/RemovableNavigationListItem-6231df42.js +1 -1
- package/cjs/RemovableTabBarItem-df8144f5.js +2 -2
- package/cjs/ReorderableTabBar-5743c66a.js +2 -2
- package/cjs/RevealToggleIcon-b5738e5e.js +1 -1
- package/cjs/SectionalLegend-959d7977.js +4 -4
- package/cjs/SectionedContent-5e956228.js +67 -0
- package/cjs/SectionedContent-5e956228.js.map +1 -0
- package/cjs/SelectMultiple-fcfb029a.js +1321 -0
- package/cjs/SelectMultiple-fcfb029a.js.map +1 -0
- package/cjs/SelectSingle-40cb868a.js +721 -0
- package/cjs/SelectSingle-40cb868a.js.map +1 -0
- package/cjs/SelectionCard-9a4f325f.js +40 -0
- package/cjs/SelectionCard-9a4f325f.js.map +1 -0
- package/cjs/Selector-cc35dbb1.js +1 -1
- package/cjs/SelectorAll-d8d3cb7b.js +5 -5
- package/cjs/Sheet-c3a675fc.js +161 -0
- package/cjs/Sheet-c3a675fc.js.map +1 -0
- package/cjs/SplitMenuButton-336bb8d6.js +3 -3
- package/cjs/StyledTextField-351ea57e.js +3 -3
- package/cjs/Submenu-b7daab71.js +1 -1
- package/cjs/TabBar-73bb6c97.js +6 -6
- package/cjs/TabBarItem-2b3039aa.js +3 -3
- package/cjs/TabBarLayout-c2efbeb3.js +1 -1
- package/cjs/TabBarMixed-426fcaf1.js +6 -6
- package/cjs/TabBarMixedSeparator-e949e3c9.js +21 -0
- package/cjs/TabBarMixedSeparator-e949e3c9.js.map +1 -0
- package/cjs/Table-17b3dbc3.js +3501 -0
- package/cjs/Table-17b3dbc3.js.map +1 -0
- package/cjs/TableView-26f85ff8.js +26 -0
- package/cjs/TableView-26f85ff8.js.map +1 -0
- package/cjs/TagCloud-26a38c04.js +9 -9
- package/cjs/TextArea-b2646d51.js +5 -5
- package/cjs/TextAreaAutosize-d8cad6ce.js +5 -5
- package/cjs/TextField-0f4e945f.js +3 -3
- package/cjs/TextFieldInput-4904c227.js +1 -1
- package/cjs/Theme-redwood/theme.css +170 -170
- package/cjs/Theme-stable/theme.css +204 -204
- package/cjs/TimeComponentCanvas2D-babbee35.js +4 -4
- package/cjs/Toolbar-415d636a.js +1 -1
- package/cjs/TruncatingBadge-7516b73e.js +2 -2
- package/cjs/TruncatingText-238fc336.js +2 -2
- package/cjs/UNSAFE_ActionCard.js +2 -2
- package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +29 -29
- package/cjs/UNSAFE_BarChart.js +29 -29
- package/cjs/UNSAFE_BaseButton.js +3 -3
- package/cjs/UNSAFE_Button.js +3 -3
- package/cjs/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +18 -18
- package/cjs/UNSAFE_ButtonSet.js +4 -4
- package/cjs/UNSAFE_ButtonSetButton.js +3 -3
- package/cjs/UNSAFE_ButtonSetIconButton.js +14 -14
- package/cjs/UNSAFE_ButtonSetItem.js +14 -14
- package/cjs/UNSAFE_ButtonSetMultiple.js +4 -4
- package/cjs/UNSAFE_ButtonSetSingle.js +4 -4
- package/cjs/UNSAFE_CardFlexView.js +23 -23
- package/cjs/UNSAFE_CardGridView.js +23 -23
- package/cjs/UNSAFE_Center.js +5 -5
- package/cjs/UNSAFE_ChartWithLegend.js +4 -4
- package/cjs/UNSAFE_Checkbox.js +21 -21
- package/cjs/UNSAFE_CheckboxItem.js +100 -50
- package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
- package/cjs/UNSAFE_CheckboxSet.js +36 -65
- package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_Chip.js +2 -2
- package/cjs/UNSAFE_Collapsible.js +16 -16
- package/cjs/UNSAFE_ComponentMessage.js +17 -17
- package/cjs/UNSAFE_ConveyorBelt.js +14 -14
- package/cjs/UNSAFE_DatePicker.js +23 -23
- package/cjs/UNSAFE_Diagram.js +15 -15
- package/cjs/UNSAFE_Dialog.js +9 -9
- package/cjs/UNSAFE_DragHandle.js +15 -15
- package/cjs/UNSAFE_DrawerLayout.js +11 -11
- package/cjs/UNSAFE_DrawerPopup.js +10 -10
- package/cjs/UNSAFE_Dropdown.js +12 -12
- package/cjs/UNSAFE_Environment.js +4 -4
- package/cjs/UNSAFE_ExpandableList.js +24 -24
- package/cjs/UNSAFE_FilePicker.js +4 -4
- package/cjs/UNSAFE_Flex.js +4 -4
- package/cjs/UNSAFE_Floating.js +10 -10
- package/cjs/UNSAFE_FormLayout.js +2 -2
- package/cjs/UNSAFE_Gantt.js +21 -21
- package/cjs/UNSAFE_Grid.js +4 -4
- package/cjs/UNSAFE_HighlightText.js +4 -4
- package/cjs/UNSAFE_Icon.js +14 -14
- package/cjs/UNSAFE_IconButton.js +14 -14
- package/cjs/UNSAFE_IconMenuButton.js +18 -18
- package/cjs/UNSAFE_IconToggleButton.js +14 -14
- package/cjs/UNSAFE_Indexer.js +8 -8
- package/cjs/UNSAFE_InputDateMask.js +22 -22
- package/cjs/UNSAFE_InputDatePicker.js +31 -31
- package/cjs/UNSAFE_InputPassword.js +21 -21
- package/cjs/UNSAFE_InputSensitiveText.js +23 -23
- package/cjs/UNSAFE_InputText.js +24 -24
- package/cjs/UNSAFE_Label.js +21 -21
- package/cjs/UNSAFE_LabelValueLayout.js +4 -4
- package/cjs/UNSAFE_LabelledLink.js +23 -23
- package/cjs/UNSAFE_Layer.js +7 -7
- package/cjs/UNSAFE_Legend.js +22 -22
- package/cjs/UNSAFE_LineAreaChart/__test__/LineChart.spec.js +29 -29
- package/cjs/UNSAFE_LineAreaChart.js +30 -30
- package/cjs/UNSAFE_Link.js +2 -2
- package/cjs/UNSAFE_ListItemLayout.js +5 -5
- package/cjs/UNSAFE_ListView.js +29 -29
- package/cjs/UNSAFE_LiveRegion.js +4 -4
- package/cjs/UNSAFE_Menu.js +20 -20
- package/cjs/UNSAFE_MenuButton.js +18 -18
- package/cjs/UNSAFE_MessageBanner.js +17 -17
- package/cjs/UNSAFE_MessageToast.js +20 -20
- package/cjs/UNSAFE_MeterBar.js +14 -14
- package/cjs/UNSAFE_MeterCircle.js +14 -14
- package/cjs/UNSAFE_Modal.js +7 -7
- package/cjs/UNSAFE_NavigationList.js +22 -22
- package/cjs/UNSAFE_NavigationListCommon.js +16 -16
- package/cjs/UNSAFE_NumberInputText.js +23 -23
- package/cjs/UNSAFE_OverflowTabBar.js +25 -25
- package/cjs/UNSAFE_PictoChart.js +13 -13
- package/cjs/UNSAFE_PieChart/__test__/PieChart.spec.js +14 -14
- package/cjs/UNSAFE_PieChart.js +14 -14
- package/cjs/UNSAFE_Popup.js +15 -15
- package/cjs/UNSAFE_ProgressBar.js +5 -5
- package/cjs/UNSAFE_ProgressCircle.js +4 -4
- package/cjs/UNSAFE_RadioItem.js +21 -21
- package/cjs/UNSAFE_RadioSet.js +21 -21
- package/cjs/UNSAFE_RatingGauge.js +15 -15
- package/cjs/UNSAFE_ReorderableTabBar.js +21 -21
- package/cjs/UNSAFE_SectionalLegend.js +23 -23
- package/cjs/UNSAFE_SelectMultiple.js +35 -35
- package/cjs/UNSAFE_SelectSingle.js +35 -35
- package/cjs/UNSAFE_SelectionCard.js +4 -4
- package/cjs/UNSAFE_Selector.js +14 -14
- package/cjs/UNSAFE_SelectorAll.js +17 -17
- package/cjs/UNSAFE_Sheet/__test__/Sheet.spec.js +13 -13
- package/cjs/UNSAFE_Sheet.js +10 -10
- package/cjs/UNSAFE_SplitMenuButton.js +18 -18
- package/cjs/UNSAFE_TabBar.js +26 -26
- package/cjs/UNSAFE_TabBarCommon.js +25 -25
- package/cjs/UNSAFE_TabBarMixed.js +29 -29
- package/cjs/UNSAFE_TableView.js +20 -20
- package/cjs/UNSAFE_TagCloud.js +22 -22
- package/cjs/UNSAFE_TextArea.js +23 -23
- package/cjs/UNSAFE_TextAreaAutosize.js +23 -23
- package/cjs/UNSAFE_TextField.js +7 -7
- package/cjs/UNSAFE_ToggleButton.js +3 -3
- package/cjs/UNSAFE_Toolbar/tests/Toolbar.spec.js +20 -20
- package/cjs/UNSAFE_Toolbar.js +4 -4
- package/cjs/UNSAFE_Train.js +15 -15
- package/cjs/UNSAFE_TruncatingBadge.js +15 -15
- package/cjs/UNSAFE_TruncatingText.js +15 -15
- package/cjs/UNSAFE_UserAssistance.js +22 -22
- package/cjs/UNSAFE_View.js +7 -7
- package/cjs/UNSAFE_VirtualizedListView.js +23 -23
- 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-8f49d970.js +170 -0
- package/cjs/View-8f49d970.js.map +1 -0
- package/cjs/VirtualizedCollection-9e8c48b9.js +180 -0
- package/cjs/VirtualizedCollection-9e8c48b9.js.map +1 -0
- package/cjs/VirtualizedListView-b4147305.js +16 -0
- package/cjs/VirtualizedListView-b4147305.js.map +1 -0
- package/cjs/VisNoData-b3159e5a.js +35 -0
- package/cjs/VisNoData-b3159e5a.js.map +1 -0
- package/cjs/VisProgressiveLoader-2cf7074b.js +53 -0
- package/cjs/VisProgressiveLoader-2cf7074b.js.map +1 -0
- package/cjs/VisTabularDatatip-96e5fcf3.js +26 -0
- package/cjs/VisTabularDatatip-96e5fcf3.js.map +1 -0
- package/cjs/WindowOverlay-bb51c0ee.js +112 -0
- package/cjs/WindowOverlay-bb51c0ee.js.map +1 -0
- package/cjs/YearsGridView-6affda7f.js +190 -0
- package/cjs/YearsGridView-6affda7f.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 +18 -18
- package/cjs/hooks/PRIVATE_useChartDatatip.js +13 -13
- package/cjs/hooks/PRIVATE_useChartEvents.js +17 -17
- package/cjs/hooks/PRIVATE_useChartMarquee.js +16 -16
- package/cjs/hooks/PRIVATE_useCssVars.js +7 -7
- package/cjs/hooks/PRIVATE_useCurrentKey.js +4 -4
- package/cjs/hooks/PRIVATE_useDatatip.js +11 -11
- package/cjs/hooks/PRIVATE_useFloating.js +4 -4
- package/cjs/hooks/PRIVATE_useReorderable.js +4 -4
- package/cjs/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
- package/cjs/hooks/PRIVATE_useSelection.js +4 -4
- package/cjs/hooks/PRIVATE_useTabBar.js +5 -5
- package/cjs/hooks/PRIVATE_useVisContextMenu.js +18 -18
- package/cjs/hooks/PRIVATE_useVisEvents.js +4 -4
- package/cjs/hooks/PRIVATE_useVisMeterEvents.js +13 -13
- package/cjs/hooks/PRIVATE_useVisSelection.js +12 -12
- 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 +7 -7
- 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 +5 -5
- package/cjs/hooks/UNSAFE_useTooltip.js +15 -15
- package/cjs/hooks/UNSAFE_useTranslationBundle.js +3 -3
- package/cjs/hooks/UNSAFE_useUser.js +3 -3
- package/cjs/index-5049ab6c.js +13 -0
- package/cjs/index-5049ab6c.js.map +1 -0
- package/cjs/listViewSelectionTests-3d07b4e3.js +4 -4
- package/cjs/render-7538ab25.js +41 -0
- package/cjs/render-7538ab25.js.map +1 -0
- package/cjs/tabbableUtils-5502f80e.js +81 -0
- package/cjs/tabbableUtils-5502f80e.js.map +1 -0
- package/cjs/testData-afbc1647.js +271 -0
- package/cjs/testData-afbc1647.js.map +1 -0
- package/cjs/useCellNavigation-24bff833.js +1 -1
- package/cjs/useChartContextMenu-d7ed939f.js +3 -3
- package/cjs/useChartDatatip-b838368c.js +137 -0
- package/cjs/useChartDatatip-b838368c.js.map +1 -0
- package/cjs/useChartMarquee-ab7c89ea.js +1 -1
- package/cjs/useColorScheme-b0ea4a49.js +21 -0
- package/cjs/useColorScheme-b0ea4a49.js.map +1 -0
- package/cjs/useContextMenu-f3cf0db8.js +3 -3
- package/cjs/useCssVars-839ce507.js +60 -0
- package/cjs/useCssVars-839ce507.js.map +1 -0
- package/cjs/useCurrentBgColor-2d0db090.js +21 -0
- package/cjs/useCurrentBgColor-2d0db090.js.map +1 -0
- package/cjs/useCurrentKey-9c158ccc.js +83 -0
- package/cjs/useCurrentKey-9c158ccc.js.map +1 -0
- package/cjs/useDatatip-1f5535bb.js +85 -0
- package/cjs/useDatatip-1f5535bb.js.map +1 -0
- package/cjs/useDensity-edb16927.js +21 -0
- package/cjs/useDensity-edb16927.js.map +1 -0
- package/cjs/useFloating-f4bbd8c4.js +1926 -0
- package/cjs/useFloating-f4bbd8c4.js.map +1 -0
- package/cjs/useKeyboardEvents-1b2187c2.js +81 -0
- package/cjs/useKeyboardEvents-1b2187c2.js.map +1 -0
- package/cjs/useLegendContextMenu-a10bd2fc.js +5 -5
- package/cjs/useMeterDatatip-93d199d6.js +81 -0
- package/cjs/useMeterDatatip-93d199d6.js.map +1 -0
- package/cjs/useOutsideClick-b22e1d4a.js +87 -0
- package/cjs/useOutsideClick-b22e1d4a.js.map +1 -0
- package/cjs/usePopupAnimation-d58b2664.js +87 -0
- package/cjs/usePopupAnimation-d58b2664.js.map +1 -0
- package/cjs/usePrefixSuffix-544b49ad.js +72 -0
- package/cjs/usePrefixSuffix-544b49ad.js.map +1 -0
- package/cjs/useReorderableItem-02ed8243.js +2 -2
- package/cjs/useRovingTabIndexContainer-c03da9ff.js +100 -0
- package/cjs/useRovingTabIndexContainer-c03da9ff.js.map +1 -0
- package/cjs/useScale-c5e9172c.js +21 -0
- package/cjs/useScale-c5e9172c.js.map +1 -0
- package/cjs/useSelectCommon-d39e90e2.js +633 -0
- package/cjs/useSelectCommon-d39e90e2.js.map +1 -0
- package/cjs/useSelectDrill-303b8cba.js +103 -0
- package/cjs/useSelectDrill-303b8cba.js.map +1 -0
- package/cjs/useSelection-05fa772e.js +243 -0
- package/cjs/useSelection-05fa772e.js.map +1 -0
- package/cjs/useSelection-1fe0f2c2.js +183 -0
- package/cjs/useSelection-1fe0f2c2.js.map +1 -0
- package/cjs/useTabBar-8bd94c1b.js +154 -0
- package/cjs/useTabBar-8bd94c1b.js.map +1 -0
- package/cjs/useTestId-71c3de70.js +23 -0
- package/cjs/useTestId-71c3de70.js.map +1 -0
- package/cjs/useTheme-f85b8938.js +21 -0
- package/cjs/useTheme-f85b8938.js.map +1 -0
- package/cjs/useThemeInterpolations-50ce3d68.js +33 -0
- package/cjs/useThemeInterpolations-50ce3d68.js.map +1 -0
- package/cjs/useTooltip-29b90247.js +53 -0
- package/cjs/useTooltip-29b90247.js.map +1 -0
- package/cjs/useTooltipControlled-a907e06c.js +456 -0
- package/cjs/useTooltipControlled-a907e06c.js.map +1 -0
- package/cjs/useTranslationBundle-7fcd8bd5.js +31 -0
- package/cjs/useTranslationBundle-7fcd8bd5.js.map +1 -0
- package/cjs/useUser-c8e9a94a.js +21 -0
- package/cjs/useUser-c8e9a94a.js.map +1 -0
- package/cjs/useVisEvents-b000a96f.js +155 -0
- package/cjs/useVisEvents-b000a96f.js.map +1 -0
- package/cjs/utils/PRIVATE_visTestUtils.js +5 -5
- package/cjs/withDirectionIcon-b6772ee8.js +16 -0
- package/cjs/withDirectionIcon-b6772ee8.js.map +1 -0
- package/es/ActionCard-623c6191.js +1 -1
- package/es/BarChart-72948598.js +567 -0
- package/es/BarChart-72948598.js.map +1 -0
- package/es/BaseButton-5b2791b1.js +2 -2
- package/es/BaseCardView-59efba85.js +6 -6
- package/es/BaseCardViewSelectionTest-6796b2b4.js +683 -0
- package/es/BaseCardViewSelectionTest-6796b2b4.js.map +1 -0
- package/es/BaseNavigationListItem-3a377d46.js +119 -0
- package/es/BaseNavigationListItem-3a377d46.js.map +1 -0
- package/es/ButtonSet-fa7e8acd.js +2 -2
- package/es/ButtonSetIconButton-c5860cc1.js +2 -2
- package/es/Center-2ffc1dcc.js +16 -0
- package/es/Center-2ffc1dcc.js.map +1 -0
- package/es/Chart-304043b3.js +332 -0
- package/es/Chart-304043b3.js.map +1 -0
- package/es/CheckboxControl-7174e0b2.js +6 -6
- package/es/CheckboxRadioField-c7c4643e.js +5 -5
- package/es/Chip-2c86a76f.js +1 -1
- package/es/ClearIcon-f1f796b4.js +1 -1
- package/es/CollapseIcon-b6d7cfd6.js +1 -1
- package/es/Collapsible-4cdc17e3.js +2 -2
- package/es/CompactHelpSource-548938ff.js +2 -2
- package/es/CompactLabelAssistance-fc9478aa.js +27 -0
- package/es/CompactLabelAssistance-fc9478aa.js.map +1 -0
- package/es/CompactUserAssistance-41c32c6f.js +4 -4
- package/es/ComponentMessageContainer-7d9228a3.js +4 -4
- package/es/ConveyorBeltItem-3d1d7f3c.js +2 -2
- package/es/DatePicker-4356274b.js +562 -0
- package/es/DatePicker-4356274b.js.map +1 -0
- package/es/DatePickerHeader-7078d6e8.js +3 -3
- package/es/Diagram-214e374c.js +1998 -0
- package/es/Diagram-214e374c.js.map +1 -0
- package/es/DirectionalCollapseArrowIcon-0298f5ef.js +1 -1
- package/es/DirectionalExpandArrowIcon-cf8fd7a8.js +1 -1
- package/es/DragHandle-9514fcdc.js +1 -1
- package/es/Dropdown-717319bb.js +80 -0
- package/es/Dropdown-717319bb.js.map +1 -0
- package/es/EnvironmentProvider-f543a463.js +58 -0
- package/es/EnvironmentProvider-f543a463.js.map +1 -0
- package/es/FilePicker-d8a0ad3a.js +2 -2
- package/es/Flex-24628925.js +30 -0
- package/es/Flex-24628925.js.map +1 -0
- package/es/Floating-9703160e.js +462 -0
- package/es/Floating-9703160e.js.map +1 -0
- package/es/FormLayout-ecd0259b.js +1 -1
- package/es/Gantt-b21af627.js +9 -9
- package/es/Grid-cfeac922.js +27 -0
- package/es/Grid-cfeac922.js.map +1 -0
- package/es/Gridlines-428bf909.js +120 -0
- package/es/Gridlines-428bf909.js.map +1 -0
- package/es/GroupLoadingIndicator-9c995e99.js +1 -1
- package/es/HighlightText-180e29f6.js +31 -0
- package/es/HighlightText-180e29f6.js.map +1 -0
- package/es/Icon-90c3a630.js +2 -2
- package/es/IconButton-37310d21.js +2 -2
- package/es/IconMenuButton-9fe6cbf9.js +4 -4
- package/es/IconSwitchButton-61cabbfe.js +2 -2
- package/es/IconToggleButton-f57e5484.js +2 -2
- package/es/IconUserAssistance-c226cb4f.js +73 -0
- package/es/IconUserAssistance-c226cb4f.js.map +1 -0
- package/es/Indexer-a671092c.js +4 -4
- package/es/InlineHelpSource-b43def76.js +1 -1
- package/es/InlineUserAssistance-bb690d93.js +5 -5
- package/es/InputDateMask-7386adfe.js +7 -7
- package/es/InputDatePicker-7f9852d0.js +323 -0
- package/es/InputDatePicker-7f9852d0.js.map +1 -0
- package/es/InputPassword-1f1f80b3.js +4 -4
- package/es/InputText-5fb896e7.js +6 -6
- package/es/Label-6674b3f2.js +5 -5
- package/es/LabelValueLayout-23b74176.js +1 -1
- package/es/Layer-9b06412e.js +84 -0
- package/es/Layer-9b06412e.js.map +1 -0
- package/es/LayerHost-45f545d7.js +40 -0
- package/es/LayerHost-45f545d7.js.map +1 -0
- package/es/LayerManager-625d2503.js +34 -0
- package/es/LayerManager-625d2503.js.map +1 -0
- package/es/Legend-98a79c12.js +3 -3
- package/es/LineAreaChart-c6564934.js +223 -0
- package/es/LineAreaChart-c6564934.js.map +1 -0
- package/es/Link-bfa35319.js +1 -1
- package/es/List-9026206d.js +5 -5
- package/es/ListItemLayout-695ec1a5.js +58 -0
- package/es/ListItemLayout-695ec1a5.js.map +1 -0
- package/es/ListView-c508c3a4.js +3 -3
- package/es/LiveRegion-81216fe6.js +39 -0
- package/es/LiveRegion-81216fe6.js.map +1 -0
- package/es/MaxLengthLiveRegion-cd15b075.js +23 -0
- package/es/MaxLengthLiveRegion-cd15b075.js.map +1 -0
- package/es/Menu-c7ab8412.js +313 -0
- package/es/Menu-c7ab8412.js.map +1 -0
- package/es/MenuButton-39563941.js +3 -3
- package/es/MenuItem-a8f9c954.js +1 -1
- package/es/Message-be36b84a.js +2 -2
- package/es/MessageLayer-0946d6b7.js +58 -0
- package/es/MessageLayer-0946d6b7.js.map +1 -0
- package/es/MessageToast-2fa3c9d4.js +8 -8
- package/es/MessagesManager-0d60fea1.js +3 -3
- package/es/MeterBar-bdd7f9da.js +4 -4
- package/es/MeterCircle-fd10f18b.js +4 -4
- package/es/Modal-6b11d8cb.js +255 -0
- package/es/Modal-6b11d8cb.js.map +1 -0
- package/es/MonthView-cc017afe.js +152 -0
- package/es/MonthView-cc017afe.js.map +1 -0
- package/es/NavigationListItem-f44c1083.js +150 -0
- package/es/NavigationListItem-f44c1083.js.map +1 -0
- package/es/NumberInputText-21ded33a.js +6 -6
- package/es/OverflowTabBarItem-f4360269.js +86 -0
- package/es/OverflowTabBarItem-f4360269.js.map +1 -0
- package/es/PRIVATE_BaseCardView.js +19 -19
- package/es/PRIVATE_Chart.js +33 -33
- package/es/PRIVATE_CheckboxControl.js +21 -21
- package/es/PRIVATE_CheckboxRadioField.js +22 -22
- package/es/PRIVATE_ClearIcon.js +16 -16
- package/es/PRIVATE_DatePickerHeader.js +18 -18
- 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 +14 -14
- package/es/PRIVATE_Icons/CheckboxMixed.js +14 -14
- package/es/PRIVATE_Icons/CheckboxOff.js +14 -14
- package/es/PRIVATE_Icons/CheckboxOn.js +14 -14
- package/es/PRIVATE_Icons/RadiobuttonOff.js +14 -14
- package/es/PRIVATE_Icons/RadiobuttonOn.js +14 -14
- package/es/PRIVATE_Icons/WarningS.js +14 -14
- package/es/PRIVATE_List.js +18 -18
- package/es/PRIVATE_Message.js +17 -17
- package/es/PRIVATE_MessageLayer.js +11 -11
- 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 +15 -15
- package/es/PRIVATE_SelectCommon.js +26 -26
- package/es/PRIVATE_StyledCheckbox.js +14 -14
- package/es/PRIVATE_Table.js +16 -16
- package/es/PRIVATE_ThemedIcons/CalendarIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/CheckIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/CloseIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/CollapseIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/DecrementIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/DeleteIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/ExpandIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/HelpIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/IncrementIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/MinusIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/NavDownIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/PlusIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/SortDefaultIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +14 -14
- package/es/PRIVATE_ThemedIcons/ViewIcon.js +14 -14
- package/es/PRIVATE_TimeComponent.js +17 -17
- package/es/PRIVATE_VisTabularDatatip.js +4 -4
- package/es/PictoChart-20c9a0c2.js +6 -6
- package/es/PieChart-f349498b.js +433 -0
- package/es/PieChart-f349498b.js.map +1 -0
- package/es/Popup-8889a781.js +240 -0
- package/es/Popup-8889a781.js.map +1 -0
- package/es/ProgressBar-afafe39a.js +58 -0
- package/es/ProgressBar-afafe39a.js.map +1 -0
- package/es/ProgressCircle-fa5866a3.js +44 -0
- package/es/ProgressCircle-fa5866a3.js.map +1 -0
- package/es/ProgressCircleVariants.styles.css +4 -4
- package/es/ProgressCircleVariants.styles2.css +4 -4
- package/es/RadioItem-e5b1f50b.js +6 -6
- package/es/RatingGauge-4d8a68df.js +7 -7
- package/es/RatingGaugeVariants.styles.css +15 -15
- package/es/RatingGaugeVariants.styles2.css +15 -15
- package/es/ReadonlyTextFieldInput-4392c7aa.js +1 -1
- package/es/RemovableNavigationListItem-4c86bec8.js +24 -0
- package/es/RemovableNavigationListItem-4c86bec8.js.map +1 -0
- package/es/RemovableTabBarItem-217d4a0b.js +2 -2
- package/es/ReorderableTabBar-84640a66.js +79 -0
- package/es/ReorderableTabBar-84640a66.js.map +1 -0
- package/es/RevealToggleIcon-9236963e.js +1 -1
- package/es/SectionalLegend-6ffb4255.js +4 -4
- package/es/SectionedContent-815e377a.js +64 -0
- package/es/SectionedContent-815e377a.js.map +1 -0
- package/es/SelectMultiple-fd3ea6f8.js +8 -8
- package/es/SelectSingle-8a8d1f5e.js +7 -7
- package/es/SelectionCard-79044c5f.js +38 -0
- package/es/SelectionCard-79044c5f.js.map +1 -0
- package/es/Selector-e56a73a8.js +1 -1
- package/es/SelectorAll-6f080f88.js +5 -5
- package/es/Sheet-e4121f4a.js +158 -0
- package/es/Sheet-e4121f4a.js.map +1 -0
- package/es/SplitMenuButton-79bdfe96.js +3 -3
- package/es/StyledTextField-c79f5438.js +3 -3
- package/es/Submenu-8b3fa593.js +1 -1
- package/es/TabBar-e39e8dbd.js +63 -0
- package/es/TabBar-e39e8dbd.js.map +1 -0
- package/es/TabBarItem-c681fa07.js +3 -3
- package/es/TabBarItemVariants.styles.css +3 -3
- package/es/TabBarItemVariants.styles2.css +3 -3
- package/es/TabBarLayout-a0d89ec4.js +1 -1
- package/es/TabBarMixed-3658d3d2.js +73 -0
- package/es/TabBarMixed-3658d3d2.js.map +1 -0
- package/es/TabBarMixedSeparator-8ab78880.js +19 -0
- package/es/TabBarMixedSeparator-8ab78880.js.map +1 -0
- package/es/Table-e3ef68ad.js +3 -3
- package/es/TagCloud-78991c29.js +9 -9
- package/es/TextArea-d97aac1f.js +5 -5
- package/es/TextAreaAutosize-68a4786d.js +5 -5
- package/es/TextField-323fe0e9.js +3 -3
- package/es/TextFieldInput-3c39cb7b.js +1 -1
- package/es/Theme-redwood/theme.css +405 -405
- package/es/Theme-stable/theme.css +480 -480
- package/es/TimeComponentCanvas2D-c2ab38ba.js +4 -4
- package/es/Toolbar-f0e57a9d.js +1 -1
- package/es/TruncatingBadge-084c6682.js +2 -2
- package/es/TruncatingText-780cbb19.js +2 -2
- package/es/UNSAFE_ActionCard.js +2 -2
- package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +34 -34
- package/es/UNSAFE_BarChart.js +34 -34
- package/es/UNSAFE_BaseButton.js +3 -3
- package/es/UNSAFE_Button.js +3 -3
- package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +18 -18
- package/es/UNSAFE_ButtonSet.js +4 -4
- package/es/UNSAFE_ButtonSetButton.js +3 -3
- package/es/UNSAFE_ButtonSetIconButton.js +14 -14
- package/es/UNSAFE_ButtonSetItem.js +14 -14
- package/es/UNSAFE_ButtonSetMultiple.js +4 -4
- package/es/UNSAFE_ButtonSetSingle.js +4 -4
- package/es/UNSAFE_CardFlexView.js +19 -19
- package/es/UNSAFE_CardGridView.js +19 -19
- package/es/UNSAFE_Center.js +5 -5
- package/es/UNSAFE_ChartWithLegend.js +4 -4
- package/es/UNSAFE_Checkbox.js +21 -21
- package/es/UNSAFE_CheckboxItem.js +22 -22
- package/es/UNSAFE_CheckboxSet.js +21 -21
- package/es/UNSAFE_Chip.js +2 -2
- package/es/UNSAFE_Collapsible.js +16 -16
- package/es/UNSAFE_ComponentMessage.js +17 -17
- package/es/UNSAFE_ConveyorBelt.js +14 -14
- package/es/UNSAFE_DatePicker.js +23 -23
- package/es/UNSAFE_Diagram.js +15 -15
- package/es/UNSAFE_Dialog.js +9 -9
- package/es/UNSAFE_DragHandle.js +15 -15
- package/es/UNSAFE_DrawerLayout.js +11 -11
- package/es/UNSAFE_DrawerPopup.js +10 -10
- package/es/UNSAFE_Dropdown.js +12 -12
- package/es/UNSAFE_Environment.js +4 -4
- package/es/UNSAFE_ExpandableList.js +21 -21
- package/es/UNSAFE_FilePicker.js +4 -4
- package/es/UNSAFE_Flex.js +4 -4
- package/es/UNSAFE_Floating.js +10 -10
- package/es/UNSAFE_FormLayout.js +2 -2
- package/es/UNSAFE_Gantt.js +21 -21
- package/es/UNSAFE_Grid.js +4 -4
- package/es/UNSAFE_HighlightText.js +4 -4
- package/es/UNSAFE_Icon.js +14 -14
- package/es/UNSAFE_IconButton.js +14 -14
- package/es/UNSAFE_IconMenuButton.js +18 -18
- package/es/UNSAFE_IconToggleButton.js +14 -14
- package/es/UNSAFE_Indexer.js +6 -6
- package/es/UNSAFE_InputDateMask.js +22 -22
- package/es/UNSAFE_InputDatePicker.js +108 -108
- package/es/UNSAFE_InputPassword.js +21 -21
- package/es/UNSAFE_InputSensitiveText.js +23 -23
- package/es/UNSAFE_InputText.js +24 -24
- package/es/UNSAFE_Label.js +21 -21
- package/es/UNSAFE_LabelValueLayout.js +4 -4
- package/es/UNSAFE_LabelledLink.js +23 -23
- package/es/UNSAFE_Layer.js +7 -7
- package/es/UNSAFE_Legend.js +22 -22
- package/es/UNSAFE_LineAreaChart/__test__/LineChart.spec.js +33 -33
- 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 +24 -24
- package/es/UNSAFE_LiveRegion.js +4 -4
- package/es/UNSAFE_Menu.js +20 -20
- package/es/UNSAFE_MenuButton.js +18 -18
- package/es/UNSAFE_MessageBanner.js +17 -17
- package/es/UNSAFE_MessageToast.js +20 -20
- package/es/UNSAFE_MeterBar.js +14 -14
- package/es/UNSAFE_MeterCircle.js +14 -14
- package/es/UNSAFE_Modal.js +7 -7
- package/es/UNSAFE_NavigationList.js +31 -33
- package/es/UNSAFE_NavigationList.js.map +1 -1
- package/es/UNSAFE_NavigationListCommon.js +66 -67
- package/es/UNSAFE_NavigationListCommon.js.map +1 -1
- package/es/UNSAFE_NumberInputText.js +23 -23
- package/es/UNSAFE_OverflowTabBar.js +44 -46
- package/es/UNSAFE_OverflowTabBar.js.map +1 -1
- package/es/UNSAFE_PictoChart.js +13 -13
- package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +14 -14
- package/es/UNSAFE_PieChart.js +14 -14
- package/es/UNSAFE_Popup.js +15 -15
- package/es/UNSAFE_ProgressBar.js +5 -5
- package/es/UNSAFE_ProgressCircle/themes/redwood/ProgressCircleTheme.js +1 -1
- package/es/UNSAFE_ProgressCircle/themes/redwood/ProgressCircleVariants.css.js +1 -1
- package/es/UNSAFE_ProgressCircle/themes/stable/ProgressCircleTheme.js +1 -1
- package/es/UNSAFE_ProgressCircle/themes/stable/ProgressCircleVariants.css.js +1 -1
- package/es/UNSAFE_ProgressCircle.js +5 -5
- package/es/UNSAFE_RadioItem.js +21 -21
- package/es/UNSAFE_RadioSet.js +21 -21
- package/es/UNSAFE_RatingGauge/themes/redwood/RatingGaugeTheme.js +1 -1
- package/es/UNSAFE_RatingGauge/themes/redwood/RatingGaugeVariants.css.js +1 -1
- package/es/UNSAFE_RatingGauge/themes/stable/RatingGaugeTheme.js +1 -1
- package/es/UNSAFE_RatingGauge/themes/stable/RatingGaugeVariants.css.js +1 -1
- package/es/UNSAFE_RatingGauge.js +16 -16
- package/es/UNSAFE_ReorderableTabBar.js +28 -42
- package/es/UNSAFE_ReorderableTabBar.js.map +1 -1
- package/es/UNSAFE_SectionalLegend.js +23 -23
- package/es/UNSAFE_SelectMultiple.js +29 -29
- package/es/UNSAFE_SelectSingle.js +29 -29
- package/es/UNSAFE_SelectionCard.js +4 -4
- package/es/UNSAFE_Selector.js +14 -14
- package/es/UNSAFE_SelectorAll.js +17 -17
- package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +13 -13
- package/es/UNSAFE_Sheet.js +10 -10
- package/es/UNSAFE_SplitMenuButton.js +18 -18
- package/es/UNSAFE_TabBar.js +46 -48
- package/es/UNSAFE_TabBar.js.map +1 -1
- package/es/UNSAFE_TabBarCommon/themes/redwood/TabBarItemTheme.js +1 -1
- package/es/UNSAFE_TabBarCommon/themes/redwood/TabBarItemVariants.css.js +1 -1
- package/es/UNSAFE_TabBarCommon/themes/stable/TabBarItemTheme.js +1 -1
- package/es/UNSAFE_TabBarCommon/themes/stable/TabBarItemVariants.css.js +1 -1
- package/es/UNSAFE_TabBarCommon.js +41 -43
- package/es/UNSAFE_TabBarCommon.js.map +1 -1
- package/es/UNSAFE_TabBarMixed.js +49 -51
- package/es/UNSAFE_TabBarMixed.js.map +1 -1
- package/es/UNSAFE_TableView.js +16 -16
- package/es/UNSAFE_TagCloud.js +22 -22
- package/es/UNSAFE_TextArea.js +23 -23
- package/es/UNSAFE_TextAreaAutosize.js +23 -23
- package/es/UNSAFE_TextField.js +7 -7
- package/es/UNSAFE_ToggleButton.js +3 -3
- package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +20 -20
- package/es/UNSAFE_Toolbar.js +4 -4
- package/es/UNSAFE_Train.js +15 -15
- package/es/UNSAFE_TruncatingBadge.js +15 -15
- package/es/UNSAFE_TruncatingText.js +15 -15
- package/es/UNSAFE_UserAssistance.js +22 -22
- package/es/UNSAFE_View.js +7 -7
- package/es/UNSAFE_VirtualizedListView.js +18 -18
- 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-6013acac.js +167 -0
- package/es/View-6013acac.js.map +1 -0
- package/es/VisNoData-8593beaa.js +32 -0
- package/es/VisNoData-8593beaa.js.map +1 -0
- package/es/VisProgressiveLoader-0d9a0dd0.js +51 -0
- package/es/VisProgressiveLoader-0d9a0dd0.js.map +1 -0
- package/es/VisTabularDatatip-1f16ca1f.js +24 -0
- package/es/VisTabularDatatip-1f16ca1f.js.map +1 -0
- package/es/WindowOverlay-e14f8324.js +110 -0
- package/es/WindowOverlay-e14f8324.js.map +1 -0
- package/es/YearsGridView-165e5eec.js +187 -0
- package/es/YearsGridView-165e5eec.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 +18 -18
- package/es/hooks/PRIVATE_useChartDatatip.js +13 -13
- package/es/hooks/PRIVATE_useChartEvents.js +17 -17
- package/es/hooks/PRIVATE_useChartMarquee.js +16 -16
- package/es/hooks/PRIVATE_useCssVars.js +7 -7
- package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
- package/es/hooks/PRIVATE_useDatatip.js +11 -11
- package/es/hooks/PRIVATE_useFloating.js +4 -4
- package/es/hooks/PRIVATE_useReorderable.js +4 -4
- package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
- package/es/hooks/PRIVATE_useSelection.js +4 -4
- package/es/hooks/PRIVATE_useTabBar.js +5 -5
- package/es/hooks/PRIVATE_useVisContextMenu.js +18 -18
- package/es/hooks/PRIVATE_useVisEvents.js +4 -4
- package/es/hooks/PRIVATE_useVisMeterEvents.js +13 -13
- package/es/hooks/PRIVATE_useVisSelection.js +12 -12
- package/es/hooks/UNSAFE_useColorScheme.js +3 -3
- package/es/hooks/UNSAFE_useContainerBreakpointValues.js +1 -1
- package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
- package/es/hooks/UNSAFE_useDensity.js +3 -3
- package/es/hooks/UNSAFE_useOutsideClick.js +7 -7
- 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 +5 -5
- package/es/hooks/UNSAFE_useTooltip.js +15 -15
- package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
- package/es/hooks/UNSAFE_useUser.js +3 -3
- package/es/index-5f0f1501.js +11 -0
- package/es/index-5f0f1501.js.map +1 -0
- package/es/listViewSelectionTests-ebf987d2.js +4 -4
- package/es/render-c90e85c7.js +34 -0
- package/es/render-c90e85c7.js.map +1 -0
- package/es/tabbableUtils-e6193af2.js +79 -0
- package/es/tabbableUtils-e6193af2.js.map +1 -0
- package/es/testData-2998863b.js +256 -0
- package/es/testData-2998863b.js.map +1 -0
- package/es/useCellNavigation-006fbce0.js +1 -1
- package/es/useChartContextMenu-0014fc73.js +3 -3
- package/es/useChartDatatip-b6b2b00a.js +135 -0
- package/es/useChartDatatip-b6b2b00a.js.map +1 -0
- package/es/useChartMarquee-38dbb5f9.js +1 -1
- package/es/useColorScheme-e1b17324.js +19 -0
- package/es/useColorScheme-e1b17324.js.map +1 -0
- package/es/useContextMenu-81db2534.js +3 -3
- package/es/useCssVars-64d9b696.js +58 -0
- package/es/useCssVars-64d9b696.js.map +1 -0
- package/es/useCurrentBgColor-d89afadb.js +19 -0
- package/es/useCurrentBgColor-d89afadb.js.map +1 -0
- package/es/useCurrentKey-db7d3bb9.js +81 -0
- package/es/useCurrentKey-db7d3bb9.js.map +1 -0
- package/es/useDatatip-7c661980.js +83 -0
- package/es/useDatatip-7c661980.js.map +1 -0
- package/es/useDensity-60cfa748.js +19 -0
- package/es/useDensity-60cfa748.js.map +1 -0
- package/es/useFloating-c99976f8.js +1916 -0
- package/es/useFloating-c99976f8.js.map +1 -0
- package/es/useKeyboardEvents-102b4feb.js +78 -0
- package/es/useKeyboardEvents-102b4feb.js.map +1 -0
- package/es/useLegendContextMenu-d88be99d.js +5 -5
- package/es/useMeterDatatip-262c0e39.js +78 -0
- package/es/useMeterDatatip-262c0e39.js.map +1 -0
- package/es/useOutsideClick-eb8324f6.js +85 -0
- package/es/useOutsideClick-eb8324f6.js.map +1 -0
- package/es/usePopupAnimation-4be04290.js +85 -0
- package/es/usePopupAnimation-4be04290.js.map +1 -0
- package/es/usePrefixSuffix-71a410f4.js +70 -0
- package/es/usePrefixSuffix-71a410f4.js.map +1 -0
- package/es/useReorderableItem-25aa1c34.js +2 -2
- package/es/useRovingTabIndexContainer-e7926bd6.js +98 -0
- package/es/useRovingTabIndexContainer-e7926bd6.js.map +1 -0
- package/es/useScale-d64a1a28.js +19 -0
- package/es/useScale-d64a1a28.js.map +1 -0
- package/es/useSelectCommon-b6d67057.js +11 -11
- package/es/useSelectDrill-9ce5bccf.js +100 -0
- package/es/useSelectDrill-9ce5bccf.js.map +1 -0
- package/es/useSelection-c12f7802.js +181 -0
- package/es/useSelection-c12f7802.js.map +1 -0
- package/es/useSelection-ce0f9a43.js +241 -0
- package/es/useSelection-ce0f9a43.js.map +1 -0
- package/es/useTabBar-8af19c50.js +152 -0
- package/es/useTabBar-8af19c50.js.map +1 -0
- package/es/useTestId-adde554c.js +21 -0
- package/es/useTestId-adde554c.js.map +1 -0
- package/es/useTheme-1f6035d2.js +19 -0
- package/es/useTheme-1f6035d2.js.map +1 -0
- package/es/useThemeInterpolations-9bddc683.js +31 -0
- package/es/useThemeInterpolations-9bddc683.js.map +1 -0
- package/es/useTooltip-9dec25b3.js +51 -0
- package/es/useTooltip-9dec25b3.js.map +1 -0
- package/es/useTooltipControlled-2044f639.js +454 -0
- package/es/useTooltipControlled-2044f639.js.map +1 -0
- package/es/useTranslationBundle-cd815e10.js +29 -0
- package/es/useTranslationBundle-cd815e10.js.map +1 -0
- package/es/useUser-99920e02.js +19 -0
- package/es/useUser-99920e02.js.map +1 -0
- package/es/useVisEvents-4cfe354c.js +153 -0
- package/es/useVisEvents-4cfe354c.js.map +1 -0
- package/es/utils/PRIVATE_visTestUtils.js +6 -6
- package/es/withDirectionIcon-f8ff778c.js +14 -0
- package/es/withDirectionIcon-f8ff778c.js.map +1 -0
- package/package.json +2 -2
- package/amd/BaseCardViewSelectionTest-09799a11.js +0 -2
- package/amd/BaseCardViewSelectionTest-09799a11.js.map +0 -1
- package/amd/Center-ce88b58a.js +0 -2
- package/amd/Center-ce88b58a.js.map +0 -1
- package/amd/CompactLabelAssistance-9b6b3be2.js +0 -2
- package/amd/CompactLabelAssistance-9b6b3be2.js.map +0 -1
- package/amd/DatePicker-70b1aba4.js +0 -2
- package/amd/DatePicker-70b1aba4.js.map +0 -1
- package/amd/Diagram-9627b062.js +0 -2
- package/amd/Diagram-9627b062.js.map +0 -1
- package/amd/Dropdown-c62373dd.js +0 -2
- package/amd/Dropdown-c62373dd.js.map +0 -1
- package/amd/EnvironmentProvider-9e71b5c2.js +0 -2
- package/amd/EnvironmentProvider-9e71b5c2.js.map +0 -1
- package/amd/Flex-db3ddadb.js +0 -2
- package/amd/Flex-db3ddadb.js.map +0 -1
- package/amd/Floating-8f519f4d.js +0 -2
- package/amd/Floating-8f519f4d.js.map +0 -1
- package/amd/Grid-209ab070.js +0 -2
- package/amd/Grid-209ab070.js.map +0 -1
- package/amd/Gridlines-8ca4f9ee.js +0 -2
- package/amd/Gridlines-8ca4f9ee.js.map +0 -1
- package/amd/HighlightText-415dc14f.js +0 -2
- package/amd/HighlightText-415dc14f.js.map +0 -1
- package/amd/IconUserAssistance-f8928f19.js +0 -2
- package/amd/IconUserAssistance-f8928f19.js.map +0 -1
- package/amd/InputDatePicker-da5d8728.js +0 -2
- package/amd/InputDatePicker-da5d8728.js.map +0 -1
- package/amd/Layer-8d7bbd69.js +0 -2
- package/amd/Layer-8d7bbd69.js.map +0 -1
- package/amd/LayerHost-0a244de8.js +0 -2
- package/amd/LayerHost-0a244de8.js.map +0 -1
- package/amd/LayerManager-00983765.js +0 -2
- package/amd/LayerManager-00983765.js.map +0 -1
- package/amd/LineAreaChart-b68c4620.js +0 -2
- package/amd/LineAreaChart-b68c4620.js.map +0 -1
- package/amd/ListItemLayout-12aee4bd.js +0 -2
- package/amd/ListItemLayout-12aee4bd.js.map +0 -1
- package/amd/LiveRegion-09197914.js +0 -2
- package/amd/LiveRegion-09197914.js.map +0 -1
- package/amd/MaxLengthLiveRegion-e3856a98.js +0 -2
- package/amd/MaxLengthLiveRegion-e3856a98.js.map +0 -1
- package/amd/Menu-6a5d7fce.js +0 -2
- package/amd/Menu-6a5d7fce.js.map +0 -1
- package/amd/MessageLayer-cf2fbea9.js +0 -2
- package/amd/MessageLayer-cf2fbea9.js.map +0 -1
- package/amd/Modal-8f19889c.js +0 -2
- package/amd/Modal-8f19889c.js.map +0 -1
- package/amd/MonthView-297fceb8.js +0 -2
- package/amd/MonthView-297fceb8.js.map +0 -1
- package/amd/PieChart-295e2dbf.js +0 -2
- package/amd/PieChart-295e2dbf.js.map +0 -1
- package/amd/Popup-b5495d55.js +0 -2
- package/amd/Popup-b5495d55.js.map +0 -1
- package/amd/ProgressBar-e9b37565.js +0 -2
- package/amd/ProgressBar-e9b37565.js.map +0 -1
- package/amd/ProgressCircle-3b0d70d1.js +0 -2
- package/amd/ProgressCircle-3b0d70d1.js.map +0 -1
- package/amd/SectionedContent-d896b84f.js +0 -2
- package/amd/SectionedContent-d896b84f.js.map +0 -1
- package/amd/SelectionCard-ec3ee20d.js +0 -2
- package/amd/SelectionCard-ec3ee20d.js.map +0 -1
- package/amd/Sheet-a398d015.js +0 -2
- package/amd/Sheet-a398d015.js.map +0 -1
- package/amd/TabBarMixedSeparator-234c9a75.js +0 -2
- package/amd/TabBarMixedSeparator-234c9a75.js.map +0 -1
- package/amd/TextArea-2c7af40c.js +0 -2
- package/amd/TextArea-2c7af40c.js.map +0 -1
- package/amd/TextAreaAutosize-9dc5bffe.js +0 -2
- package/amd/TextAreaAutosize-9dc5bffe.js.map +0 -1
- package/amd/View-10a5769c.js +0 -2
- package/amd/View-10a5769c.js.map +0 -1
- package/amd/VisNoData-95d951c2.js +0 -2
- package/amd/VisNoData-95d951c2.js.map +0 -1
- package/amd/VisProgressiveLoader-39f1b4ef.js +0 -2
- package/amd/VisProgressiveLoader-39f1b4ef.js.map +0 -1
- package/amd/VisTabularDatatip-e945d6f6.js +0 -2
- package/amd/VisTabularDatatip-e945d6f6.js.map +0 -1
- package/amd/WindowOverlay-ad61cfea.js +0 -2
- package/amd/WindowOverlay-ad61cfea.js.map +0 -1
- package/amd/YearsGridView-c76bb4da.js +0 -2
- package/amd/YearsGridView-c76bb4da.js.map +0 -1
- package/amd/index-8d4da04e.js +0 -2
- package/amd/index-8d4da04e.js.map +0 -1
- package/amd/render-6de552e4.js +0 -2
- package/amd/render-6de552e4.js.map +0 -1
- package/amd/tabbableUtils-78cc49fd.js +0 -2
- package/amd/tabbableUtils-78cc49fd.js.map +0 -1
- package/amd/testData-6d873339.js +0 -2
- package/amd/testData-6d873339.js.map +0 -1
- package/amd/useChartDatatip-34e2636c.js +0 -2
- package/amd/useChartDatatip-34e2636c.js.map +0 -1
- package/amd/useColorScheme-3ffd80c4.js +0 -2
- package/amd/useColorScheme-3ffd80c4.js.map +0 -1
- package/amd/useCssVars-7efb591d.js +0 -2
- package/amd/useCssVars-7efb591d.js.map +0 -1
- package/amd/useCurrentBgColor-44e3f377.js +0 -2
- package/amd/useCurrentBgColor-44e3f377.js.map +0 -1
- package/amd/useCurrentKey-26170e5e.js +0 -2
- package/amd/useCurrentKey-26170e5e.js.map +0 -1
- package/amd/useDatatip-34fb67d2.js +0 -2
- package/amd/useDatatip-34fb67d2.js.map +0 -1
- package/amd/useDensity-be2ff874.js +0 -2
- package/amd/useDensity-be2ff874.js.map +0 -1
- package/amd/useFloating-30975c41.js +0 -2
- package/amd/useFloating-30975c41.js.map +0 -1
- package/amd/useKeyboardEvents-57008a1d.js +0 -2
- package/amd/useKeyboardEvents-57008a1d.js.map +0 -1
- package/amd/useMeterDatatip-1a3890aa.js +0 -2
- package/amd/useMeterDatatip-1a3890aa.js.map +0 -1
- package/amd/useOutsideClick-90052c27.js +0 -2
- package/amd/useOutsideClick-90052c27.js.map +0 -1
- package/amd/usePopupAnimation-a0193874.js +0 -2
- package/amd/usePopupAnimation-a0193874.js.map +0 -1
- package/amd/usePrefixSuffix-da47e340.js +0 -2
- package/amd/usePrefixSuffix-da47e340.js.map +0 -1
- package/amd/useRovingTabIndexContainer-079ed64f.js +0 -2
- package/amd/useRovingTabIndexContainer-079ed64f.js.map +0 -1
- package/amd/useScale-fe3420c6.js +0 -2
- package/amd/useScale-fe3420c6.js.map +0 -1
- package/amd/useSelectDrill-f69d15aa.js +0 -2
- package/amd/useSelectDrill-f69d15aa.js.map +0 -1
- package/amd/useSelection-2c9ff75a.js +0 -2
- package/amd/useSelection-2c9ff75a.js.map +0 -1
- package/amd/useSelection-91c04393.js +0 -2
- package/amd/useSelection-91c04393.js.map +0 -1
- package/amd/useTabBar-254fbf75.js +0 -2
- package/amd/useTabBar-254fbf75.js.map +0 -1
- package/amd/useTestId-f3b8b319.js +0 -2
- package/amd/useTestId-f3b8b319.js.map +0 -1
- package/amd/useTheme-45e3b0b3.js +0 -2
- package/amd/useTheme-45e3b0b3.js.map +0 -1
- package/amd/useThemeInterpolations-1f5fd8f3.js +0 -2
- package/amd/useThemeInterpolations-1f5fd8f3.js.map +0 -1
- package/amd/useTooltip-e965a559.js +0 -2
- package/amd/useTooltip-e965a559.js.map +0 -1
- package/amd/useTooltipControlled-18271c7a.js +0 -2
- package/amd/useTooltipControlled-18271c7a.js.map +0 -1
- package/amd/useTranslationBundle-20bfc0f3.js +0 -2
- package/amd/useTranslationBundle-20bfc0f3.js.map +0 -1
- package/amd/useUser-9b166ca3.js +0 -2
- package/amd/useUser-9b166ca3.js.map +0 -1
- package/amd/useVisEvents-ac97d087.js +0 -2
- package/amd/useVisEvents-ac97d087.js.map +0 -1
- package/amd/withDirectionIcon-9e4dae53.js +0 -2
- package/amd/withDirectionIcon-9e4dae53.js.map +0 -1
- package/cjs/BaseCardView-badf6df3.js +0 -619
- package/cjs/BaseCardView-badf6df3.js.map +0 -1
- package/cjs/BaseCardViewSelectionTest-fe6cdb4a.js +0 -696
- package/cjs/BaseCardViewSelectionTest-fe6cdb4a.js.map +0 -1
- package/cjs/CardFlexView-d44dfed5.js +0 -29
- package/cjs/CardFlexView-d44dfed5.js.map +0 -1
- package/cjs/CardGridView-dd7c777f.js +0 -17
- package/cjs/CardGridView-dd7c777f.js.map +0 -1
- package/cjs/Center-dce9d477.js +0 -18
- package/cjs/Center-dce9d477.js.map +0 -1
- package/cjs/CheckboxSetContext-c62db26d.js +0 -12
- package/cjs/CheckboxSetContext-c62db26d.js.map +0 -1
- package/cjs/CompactLabelAssistance-ae678fbd.js +0 -29
- package/cjs/CompactLabelAssistance-ae678fbd.js.map +0 -1
- package/cjs/DatePicker-3be1de5c.js +0 -564
- package/cjs/DatePicker-3be1de5c.js.map +0 -1
- package/cjs/Diagram-522fe974.js +0 -2000
- package/cjs/Diagram-522fe974.js.map +0 -1
- package/cjs/Dropdown-820dc3fe.js +0 -82
- package/cjs/Dropdown-820dc3fe.js.map +0 -1
- package/cjs/EnvironmentProvider-42b2b998.js +0 -61
- package/cjs/EnvironmentProvider-42b2b998.js.map +0 -1
- package/cjs/Flex-fbba4ad6.js +0 -33
- package/cjs/Flex-fbba4ad6.js.map +0 -1
- package/cjs/Floating-1280c2ce.js +0 -464
- package/cjs/Floating-1280c2ce.js.map +0 -1
- package/cjs/Grid-03d487e5.js +0 -29
- package/cjs/Grid-03d487e5.js.map +0 -1
- package/cjs/Gridlines-33618268.js +0 -123
- package/cjs/Gridlines-33618268.js.map +0 -1
- package/cjs/HighlightText-c76eb17a.js +0 -33
- package/cjs/HighlightText-c76eb17a.js.map +0 -1
- package/cjs/IconUserAssistance-c31c2875.js +0 -75
- package/cjs/IconUserAssistance-c31c2875.js.map +0 -1
- package/cjs/Indexer-563ea09d.js +0 -339
- package/cjs/Indexer-563ea09d.js.map +0 -1
- package/cjs/Layer-3700cd37.js +0 -87
- package/cjs/Layer-3700cd37.js.map +0 -1
- package/cjs/LayerHost-46e4d858.js +0 -45
- package/cjs/LayerHost-46e4d858.js.map +0 -1
- package/cjs/LayerManager-fa20a462.js +0 -36
- package/cjs/LayerManager-fa20a462.js.map +0 -1
- package/cjs/LineAreaChart-7e0e021f.js +0 -225
- package/cjs/LineAreaChart-7e0e021f.js.map +0 -1
- package/cjs/List-bd9ecebb.js +0 -567
- package/cjs/List-bd9ecebb.js.map +0 -1
- package/cjs/ListItemLayout-ba6c98cc.js +0 -60
- package/cjs/ListItemLayout-ba6c98cc.js.map +0 -1
- package/cjs/ListView-d67f49db.js +0 -388
- package/cjs/ListView-d67f49db.js.map +0 -1
- package/cjs/LiveRegion-1315adeb.js +0 -41
- package/cjs/LiveRegion-1315adeb.js.map +0 -1
- package/cjs/LoadMoreCollection-73112ff0.js +0 -34
- package/cjs/LoadMoreCollection-73112ff0.js.map +0 -1
- package/cjs/MaxLengthLiveRegion-85913361.js +0 -25
- package/cjs/MaxLengthLiveRegion-85913361.js.map +0 -1
- package/cjs/Menu-7f8ca235.js +0 -317
- package/cjs/Menu-7f8ca235.js.map +0 -1
- package/cjs/MessageLayer-40ccf675.js +0 -61
- package/cjs/MessageLayer-40ccf675.js.map +0 -1
- package/cjs/Modal-52fa4530.js +0 -258
- package/cjs/Modal-52fa4530.js.map +0 -1
- package/cjs/MonthView-94676cd6.js +0 -154
- package/cjs/MonthView-94676cd6.js.map +0 -1
- package/cjs/NavigationListItem-12a76e7d.js +0 -163
- package/cjs/NavigationListItem-12a76e7d.js.map +0 -1
- package/cjs/OverflowTabBarItem-c0a592fd.js +0 -88
- package/cjs/OverflowTabBarItem-c0a592fd.js.map +0 -1
- package/cjs/PieChart-bd68cc0d.js +0 -435
- package/cjs/PieChart-bd68cc0d.js.map +0 -1
- package/cjs/Popup-881aae20.js +0 -242
- package/cjs/Popup-881aae20.js.map +0 -1
- package/cjs/ProgressBar-4a4d56b0.js +0 -60
- package/cjs/ProgressBar-4a4d56b0.js.map +0 -1
- package/cjs/ProgressCircle-2524339b.js +0 -46
- package/cjs/ProgressCircle-2524339b.js.map +0 -1
- package/cjs/SectionedContent-0c0f96fb.js +0 -67
- package/cjs/SectionedContent-0c0f96fb.js.map +0 -1
- package/cjs/SelectMultiple-3af44d48.js +0 -1321
- package/cjs/SelectMultiple-3af44d48.js.map +0 -1
- package/cjs/SelectSingle-315c9871.js +0 -721
- package/cjs/SelectSingle-315c9871.js.map +0 -1
- package/cjs/SelectionCard-aa300118.js +0 -40
- package/cjs/SelectionCard-aa300118.js.map +0 -1
- package/cjs/Sheet-a6267b5f.js +0 -161
- package/cjs/Sheet-a6267b5f.js.map +0 -1
- package/cjs/TabBarMixedSeparator-6388ccda.js +0 -21
- package/cjs/TabBarMixedSeparator-6388ccda.js.map +0 -1
- package/cjs/Table-ecf57a09.js +0 -3501
- package/cjs/Table-ecf57a09.js.map +0 -1
- package/cjs/TableView-756b9d98.js +0 -26
- package/cjs/TableView-756b9d98.js.map +0 -1
- package/cjs/View-011404a7.js +0 -170
- package/cjs/View-011404a7.js.map +0 -1
- package/cjs/VirtualizedCollection-00aedb8b.js +0 -180
- package/cjs/VirtualizedCollection-00aedb8b.js.map +0 -1
- package/cjs/VirtualizedListView-a07fe73b.js +0 -16
- package/cjs/VirtualizedListView-a07fe73b.js.map +0 -1
- package/cjs/VisNoData-9afdc618.js +0 -35
- package/cjs/VisNoData-9afdc618.js.map +0 -1
- package/cjs/VisProgressiveLoader-ad546cec.js +0 -53
- package/cjs/VisProgressiveLoader-ad546cec.js.map +0 -1
- package/cjs/VisTabularDatatip-3b3341f9.js +0 -26
- package/cjs/VisTabularDatatip-3b3341f9.js.map +0 -1
- package/cjs/WindowOverlay-d255542f.js +0 -112
- package/cjs/WindowOverlay-d255542f.js.map +0 -1
- package/cjs/YearsGridView-95c9ae3d.js +0 -190
- package/cjs/YearsGridView-95c9ae3d.js.map +0 -1
- package/cjs/index-c679f28a.js +0 -13
- package/cjs/index-c679f28a.js.map +0 -1
- package/cjs/render-7a552b40.js +0 -41
- package/cjs/render-7a552b40.js.map +0 -1
- package/cjs/tabbableUtils-6d07309a.js +0 -81
- package/cjs/tabbableUtils-6d07309a.js.map +0 -1
- package/cjs/testData-f91dbc33.js +0 -271
- package/cjs/testData-f91dbc33.js.map +0 -1
- package/cjs/useChartDatatip-7b7f757f.js +0 -137
- package/cjs/useChartDatatip-7b7f757f.js.map +0 -1
- package/cjs/useColorScheme-d2c4adcc.js +0 -21
- package/cjs/useColorScheme-d2c4adcc.js.map +0 -1
- package/cjs/useCssVars-4f061513.js +0 -60
- package/cjs/useCssVars-4f061513.js.map +0 -1
- package/cjs/useCurrentBgColor-ccc9db95.js +0 -21
- package/cjs/useCurrentBgColor-ccc9db95.js.map +0 -1
- package/cjs/useCurrentKey-3b4c8a44.js +0 -83
- package/cjs/useCurrentKey-3b4c8a44.js.map +0 -1
- package/cjs/useDatatip-ff0c568c.js +0 -85
- package/cjs/useDatatip-ff0c568c.js.map +0 -1
- package/cjs/useDensity-6e80ddff.js +0 -21
- package/cjs/useDensity-6e80ddff.js.map +0 -1
- package/cjs/useFloating-7800fd56.js +0 -1926
- package/cjs/useFloating-7800fd56.js.map +0 -1
- package/cjs/useKeyboardEvents-f1a1dfef.js +0 -81
- package/cjs/useKeyboardEvents-f1a1dfef.js.map +0 -1
- package/cjs/useMeterDatatip-5db0b026.js +0 -81
- package/cjs/useMeterDatatip-5db0b026.js.map +0 -1
- package/cjs/useOutsideClick-7420644b.js +0 -87
- package/cjs/useOutsideClick-7420644b.js.map +0 -1
- package/cjs/usePopupAnimation-78a173e8.js +0 -87
- package/cjs/usePopupAnimation-78a173e8.js.map +0 -1
- package/cjs/usePrefixSuffix-edb21dad.js +0 -72
- package/cjs/usePrefixSuffix-edb21dad.js.map +0 -1
- package/cjs/useRovingTabIndexContainer-ff6fef9d.js +0 -100
- package/cjs/useRovingTabIndexContainer-ff6fef9d.js.map +0 -1
- package/cjs/useScale-74bd6456.js +0 -21
- package/cjs/useScale-74bd6456.js.map +0 -1
- package/cjs/useSelectCommon-8aaf62bd.js +0 -633
- package/cjs/useSelectCommon-8aaf62bd.js.map +0 -1
- package/cjs/useSelectDrill-64289234.js +0 -103
- package/cjs/useSelectDrill-64289234.js.map +0 -1
- package/cjs/useSelection-8f71759b.js +0 -183
- package/cjs/useSelection-8f71759b.js.map +0 -1
- package/cjs/useSelection-b53f8255.js +0 -243
- package/cjs/useSelection-b53f8255.js.map +0 -1
- package/cjs/useTabBar-35edcdb1.js +0 -154
- package/cjs/useTabBar-35edcdb1.js.map +0 -1
- package/cjs/useTestId-8234ec1e.js +0 -23
- package/cjs/useTestId-8234ec1e.js.map +0 -1
- package/cjs/useTheme-9b0dc066.js +0 -21
- package/cjs/useTheme-9b0dc066.js.map +0 -1
- package/cjs/useThemeInterpolations-25313f34.js +0 -33
- package/cjs/useThemeInterpolations-25313f34.js.map +0 -1
- package/cjs/useTooltip-468c1c92.js +0 -53
- package/cjs/useTooltip-468c1c92.js.map +0 -1
- package/cjs/useTooltipControlled-706a3651.js +0 -456
- package/cjs/useTooltipControlled-706a3651.js.map +0 -1
- package/cjs/useTranslationBundle-9da032d6.js +0 -31
- package/cjs/useTranslationBundle-9da032d6.js.map +0 -1
- package/cjs/useUser-a6d15333.js +0 -21
- package/cjs/useUser-a6d15333.js.map +0 -1
- package/cjs/useVisEvents-3d806e47.js +0 -155
- package/cjs/useVisEvents-3d806e47.js.map +0 -1
- package/cjs/withDirectionIcon-d9c7c79f.js +0 -16
- package/cjs/withDirectionIcon-d9c7c79f.js.map +0 -1
- package/es/BarChart-c8f78f4b.js +0 -567
- package/es/BarChart-c8f78f4b.js.map +0 -1
- package/es/BaseCardViewSelectionTest-ab83a0b0.js +0 -683
- package/es/BaseCardViewSelectionTest-ab83a0b0.js.map +0 -1
- package/es/BaseNavigationListItem-f3bf5d85.js +0 -47
- package/es/BaseNavigationListItem-f3bf5d85.js.map +0 -1
- package/es/Center-58d4b406.js +0 -16
- package/es/Center-58d4b406.js.map +0 -1
- package/es/Chart-793bd008.js +0 -332
- package/es/Chart-793bd008.js.map +0 -1
- package/es/CompactLabelAssistance-933d1d68.js +0 -27
- package/es/CompactLabelAssistance-933d1d68.js.map +0 -1
- package/es/DatePicker-e517dad2.js +0 -562
- package/es/DatePicker-e517dad2.js.map +0 -1
- package/es/Diagram-15e246b6.js +0 -1998
- package/es/Diagram-15e246b6.js.map +0 -1
- package/es/Dropdown-2a328b40.js +0 -80
- package/es/Dropdown-2a328b40.js.map +0 -1
- package/es/EnvironmentProvider-6846a7ff.js +0 -58
- package/es/EnvironmentProvider-6846a7ff.js.map +0 -1
- package/es/Flex-5ff5aa5e.js +0 -30
- package/es/Flex-5ff5aa5e.js.map +0 -1
- package/es/Floating-5b269acc.js +0 -462
- package/es/Floating-5b269acc.js.map +0 -1
- package/es/Grid-5d8f712b.js +0 -27
- package/es/Grid-5d8f712b.js.map +0 -1
- package/es/Gridlines-4b7301e7.js +0 -120
- package/es/Gridlines-4b7301e7.js.map +0 -1
- package/es/HighlightText-39781e79.js +0 -31
- package/es/HighlightText-39781e79.js.map +0 -1
- package/es/IconUserAssistance-744d71a4.js +0 -73
- package/es/IconUserAssistance-744d71a4.js.map +0 -1
- package/es/InputDatePicker-aa02a34c.js +0 -323
- package/es/InputDatePicker-aa02a34c.js.map +0 -1
- package/es/Layer-5d259d3a.js +0 -84
- package/es/Layer-5d259d3a.js.map +0 -1
- package/es/LayerHost-aaed41a1.js +0 -40
- package/es/LayerHost-aaed41a1.js.map +0 -1
- package/es/LayerManager-87beee1e.js +0 -34
- package/es/LayerManager-87beee1e.js.map +0 -1
- package/es/LineAreaChart-35327196.js +0 -223
- package/es/LineAreaChart-35327196.js.map +0 -1
- package/es/ListItemLayout-961c8443.js +0 -58
- package/es/ListItemLayout-961c8443.js.map +0 -1
- package/es/LiveRegion-4646cd7d.js +0 -39
- package/es/LiveRegion-4646cd7d.js.map +0 -1
- package/es/MaxLengthLiveRegion-1278e638.js +0 -23
- package/es/MaxLengthLiveRegion-1278e638.js.map +0 -1
- package/es/Menu-b0c28cfd.js +0 -313
- package/es/Menu-b0c28cfd.js.map +0 -1
- package/es/MessageLayer-322485df.js +0 -58
- package/es/MessageLayer-322485df.js.map +0 -1
- package/es/Modal-986872f3.js +0 -255
- package/es/Modal-986872f3.js.map +0 -1
- package/es/MonthView-99cc26ac.js +0 -152
- package/es/MonthView-99cc26ac.js.map +0 -1
- package/es/NavigationList-40cfa2f7.js +0 -156
- package/es/NavigationList-40cfa2f7.js.map +0 -1
- package/es/NavigationListItem-1efd88f0.js +0 -10
- package/es/NavigationListItem-1efd88f0.js.map +0 -1
- package/es/OverflowTabBarItem-d0a9dae6.js +0 -87
- package/es/OverflowTabBarItem-d0a9dae6.js.map +0 -1
- package/es/PieChart-e41e3463.js +0 -433
- package/es/PieChart-e41e3463.js.map +0 -1
- package/es/Popup-6288438d.js +0 -240
- package/es/Popup-6288438d.js.map +0 -1
- package/es/ProgressBar-ed0c5ba0.js +0 -58
- package/es/ProgressBar-ed0c5ba0.js.map +0 -1
- package/es/ProgressCircle-95a70910.js +0 -44
- package/es/ProgressCircle-95a70910.js.map +0 -1
- package/es/RemovableNavigationListItem-d55724ff.js +0 -25
- package/es/RemovableNavigationListItem-d55724ff.js.map +0 -1
- package/es/ReorderableTabBar-aae17355.js +0 -79
- package/es/ReorderableTabBar-aae17355.js.map +0 -1
- package/es/SectionedContent-13d72f4b.js +0 -64
- package/es/SectionedContent-13d72f4b.js.map +0 -1
- package/es/SelectionCard-8496e467.js +0 -38
- package/es/SelectionCard-8496e467.js.map +0 -1
- package/es/Sheet-8914df23.js +0 -158
- package/es/Sheet-8914df23.js.map +0 -1
- package/es/TabBar-935be8eb.js +0 -68
- package/es/TabBar-935be8eb.js.map +0 -1
- package/es/TabBarMixed-1742d71e.js +0 -78
- package/es/TabBarMixed-1742d71e.js.map +0 -1
- package/es/TabBarMixedSeparator-da2254c9.js +0 -19
- package/es/TabBarMixedSeparator-da2254c9.js.map +0 -1
- package/es/View-4dc6ce42.js +0 -167
- package/es/View-4dc6ce42.js.map +0 -1
- package/es/VisNoData-c69e8f5e.js +0 -32
- package/es/VisNoData-c69e8f5e.js.map +0 -1
- package/es/VisProgressiveLoader-cc1ab7cc.js +0 -51
- package/es/VisProgressiveLoader-cc1ab7cc.js.map +0 -1
- package/es/VisTabularDatatip-418525b0.js +0 -24
- package/es/VisTabularDatatip-418525b0.js.map +0 -1
- package/es/WindowOverlay-88b63ede.js +0 -110
- package/es/WindowOverlay-88b63ede.js.map +0 -1
- package/es/YearsGridView-76892288.js +0 -187
- package/es/YearsGridView-76892288.js.map +0 -1
- package/es/index-75f23286.js +0 -11
- package/es/index-75f23286.js.map +0 -1
- package/es/render-8e2a09d1.js +0 -34
- package/es/render-8e2a09d1.js.map +0 -1
- package/es/tabbableUtils-73a9ba14.js +0 -79
- package/es/tabbableUtils-73a9ba14.js.map +0 -1
- package/es/testData-0aee4d83.js +0 -256
- package/es/testData-0aee4d83.js.map +0 -1
- package/es/useChartDatatip-f7bacd9b.js +0 -135
- package/es/useChartDatatip-f7bacd9b.js.map +0 -1
- package/es/useColorScheme-bf110202.js +0 -19
- package/es/useColorScheme-bf110202.js.map +0 -1
- package/es/useCssVars-b3bf30fb.js +0 -58
- package/es/useCssVars-b3bf30fb.js.map +0 -1
- package/es/useCurrentBgColor-b3ebd7be.js +0 -19
- package/es/useCurrentBgColor-b3ebd7be.js.map +0 -1
- package/es/useCurrentKey-1f99b0f6.js +0 -81
- package/es/useCurrentKey-1f99b0f6.js.map +0 -1
- package/es/useDatatip-f9bcaab9.js +0 -83
- package/es/useDatatip-f9bcaab9.js.map +0 -1
- package/es/useDensity-9f6c6bf0.js +0 -19
- package/es/useDensity-9f6c6bf0.js.map +0 -1
- package/es/useFloating-1cca9e4f.js +0 -1916
- package/es/useFloating-1cca9e4f.js.map +0 -1
- package/es/useKeyboardEvents-11b26017.js +0 -78
- package/es/useKeyboardEvents-11b26017.js.map +0 -1
- package/es/useMeterDatatip-7366880d.js +0 -78
- package/es/useMeterDatatip-7366880d.js.map +0 -1
- package/es/useNavigationListItem-5f7cd66b.js +0 -81
- package/es/useNavigationListItem-5f7cd66b.js.map +0 -1
- package/es/useOutsideClick-ab98bfa3.js +0 -85
- package/es/useOutsideClick-ab98bfa3.js.map +0 -1
- package/es/usePopupAnimation-4969107b.js +0 -85
- package/es/usePopupAnimation-4969107b.js.map +0 -1
- package/es/usePrefixSuffix-a14dacb0.js +0 -70
- package/es/usePrefixSuffix-a14dacb0.js.map +0 -1
- package/es/useRovingTabIndexContainer-91fd85f3.js +0 -98
- package/es/useRovingTabIndexContainer-91fd85f3.js.map +0 -1
- package/es/useScale-42018695.js +0 -19
- package/es/useScale-42018695.js.map +0 -1
- package/es/useSelectDrill-333650bd.js +0 -100
- package/es/useSelectDrill-333650bd.js.map +0 -1
- package/es/useSelection-48f572e5.js +0 -181
- package/es/useSelection-48f572e5.js.map +0 -1
- package/es/useSelection-a098b3af.js +0 -241
- package/es/useSelection-a098b3af.js.map +0 -1
- package/es/useTabBar-4b318196.js +0 -152
- package/es/useTabBar-4b318196.js.map +0 -1
- package/es/useTestId-f5aed66c.js +0 -21
- package/es/useTestId-f5aed66c.js.map +0 -1
- package/es/useTheme-e7ea1253.js +0 -19
- package/es/useTheme-e7ea1253.js.map +0 -1
- package/es/useThemeInterpolations-66ce2e56.js +0 -31
- package/es/useThemeInterpolations-66ce2e56.js.map +0 -1
- package/es/useTooltip-30a4a4fc.js +0 -51
- package/es/useTooltip-30a4a4fc.js.map +0 -1
- package/es/useTooltipControlled-eafec36e.js +0 -454
- package/es/useTooltipControlled-eafec36e.js.map +0 -1
- package/es/useTranslationBundle-e8a8c4f3.js +0 -29
- package/es/useTranslationBundle-e8a8c4f3.js.map +0 -1
- package/es/useUser-fb09e212.js +0 -19
- package/es/useUser-fb09e212.js.map +0 -1
- package/es/useVisEvents-e31dcd17.js +0 -153
- package/es/useVisEvents-e31dcd17.js.map +0 -1
- package/es/withDirectionIcon-6eefb71a.js +0 -14
- package/es/withDirectionIcon-6eefb71a.js.map +0 -1
package/cjs/Diagram-522fe974.js
DELETED
|
@@ -1,2000 +0,0 @@
|
|
|
1
|
-
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var jsxRuntime = require('preact/jsx-runtime');
|
|
5
|
-
var TrackResizeContainer = require('./TrackResizeContainer-cd09fc87.js');
|
|
6
|
-
var UNSAFE_Diagram_themes_DiagramStyles_css = require('./UNSAFE_Diagram/themes/DiagramStyles.css.js');
|
|
7
|
-
var useResizeObserver = require('./useResizeObserver-819b1236.js');
|
|
8
|
-
var hooks = require('preact/hooks');
|
|
9
|
-
var accUtils = require('./accUtils-50f26093.js');
|
|
10
|
-
var classNames = require('./classNames-c14c6ef3.js');
|
|
11
|
-
var useTranslationBundle = require('./useTranslationBundle-9da032d6.js');
|
|
12
|
-
var useUser = require('./useUser-a6d15333.js');
|
|
13
|
-
var layoutUtils = require('./layoutUtils-56b6111c.js');
|
|
14
|
-
var useVisHover = require('./useVisHover-ad36112d.js');
|
|
15
|
-
var mergeProps = require('./mergeProps-e3da7237.js');
|
|
16
|
-
var useDatatip = require('./useDatatip-ff0c568c.js');
|
|
17
|
-
var util = require('./util-28dd0315.js');
|
|
18
|
-
var useTextDimensions = require('./useTextDimensions-0eabedd5.js');
|
|
19
|
-
var useSelection = require('./useSelection-8f71759b.js');
|
|
20
|
-
var useVisTouchResponse = require('./useVisTouchResponse-fb9c4e8f.js');
|
|
21
|
-
var stringUtils = require('./stringUtils-4e4a6b2b.js');
|
|
22
|
-
|
|
23
|
-
const ZOOM_TO_FIT_PADDING = 20;
|
|
24
|
-
/**
|
|
25
|
-
* Returns the pan properties for the diagram.
|
|
26
|
-
*/
|
|
27
|
-
function getPanProps(props, contentBounds) {
|
|
28
|
-
return {
|
|
29
|
-
panning: props.panning ? props.panning : 'off',
|
|
30
|
-
panDirection: props.panDirection ? props.panDirection : 'any',
|
|
31
|
-
centerX: props.centerX !== undefined ? props.centerX : contentBounds.w / 2 + contentBounds.x,
|
|
32
|
-
centerY: props.centerY !== undefined ? props.centerY : contentBounds.h / 2 + contentBounds.y,
|
|
33
|
-
onPan: props.onPan
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Returns the zoom properties for the diagram.
|
|
38
|
-
*/
|
|
39
|
-
function getZoomProps(props, width, height, contentBounds) {
|
|
40
|
-
const minZoom = props.minZoom ? props.minZoom : getZoomToFitZoom(width, height, contentBounds);
|
|
41
|
-
const maxZoom = props.maxZoom !== undefined ? props.maxZoom : 1;
|
|
42
|
-
const zoom = props.zoomValue ? props.zoomValue : getZoomToFitZoom(width, height, contentBounds);
|
|
43
|
-
return {
|
|
44
|
-
zooming: props.zooming ? props.zooming : 'off',
|
|
45
|
-
// default value of 0 indicates zoom-to-fit level
|
|
46
|
-
minZoom: minZoom,
|
|
47
|
-
maxZoom: maxZoom,
|
|
48
|
-
// zoom value of 0 will default to zoom to fit
|
|
49
|
-
zoomValue: constrainZoom(zoom, minZoom, maxZoom),
|
|
50
|
-
onZoom: props.onZoom
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Constructs the json object to be passed into the layout function
|
|
55
|
-
*/
|
|
56
|
-
function constructLayoutJSON(nodes, nodeItems, linkItems, dimensions, width, height, getTextDimensions) {
|
|
57
|
-
const labelDims = new Map();
|
|
58
|
-
const nodeKeys = Array.from(nodeItems.keys());
|
|
59
|
-
for (const id of nodeKeys) {
|
|
60
|
-
const item = nodeItems.get(id);
|
|
61
|
-
if (item && getTextDimensions && item.label) {
|
|
62
|
-
const label = item.label;
|
|
63
|
-
const fontProps = _getFontProps(item.labelStyle);
|
|
64
|
-
labelDims.set(id, getTextDimensions(label, fontProps));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
const linkKeys = Array.from(linkItems.keys());
|
|
68
|
-
for (const id of linkKeys) {
|
|
69
|
-
const item = linkItems.get(id);
|
|
70
|
-
if (item && getTextDimensions && item.label) {
|
|
71
|
-
const label = item.label;
|
|
72
|
-
const fontProps = _getFontProps(item.labelStyle);
|
|
73
|
-
labelDims.set(id, getTextDimensions(label, fontProps));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
const getLabelDimensions = function (data) {
|
|
77
|
-
return labelDims.get(data.id);
|
|
78
|
-
};
|
|
79
|
-
const getNodeDimensions = function (data) {
|
|
80
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
81
|
-
if (data.id === nodes[i].id) {
|
|
82
|
-
return dimensions[i];
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return dimensions[0];
|
|
86
|
-
};
|
|
87
|
-
return {
|
|
88
|
-
layoutJSON: {
|
|
89
|
-
getNodeDimensions: getNodeDimensions,
|
|
90
|
-
getLabelDimensions: getLabelDimensions,
|
|
91
|
-
componentSize: {
|
|
92
|
-
width: width,
|
|
93
|
-
height: height
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
labelDims: labelDims
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Deconstructs the output of the layout function
|
|
101
|
-
*/
|
|
102
|
-
function deconstructLayoutJSON(layoutJSON, nodeData, linkData) {
|
|
103
|
-
const nodes = layoutJSON.nodes;
|
|
104
|
-
const links = layoutJSON.links;
|
|
105
|
-
const positions = [];
|
|
106
|
-
const nodeLabelPos = [];
|
|
107
|
-
const linkLabelPos = [];
|
|
108
|
-
let hasNodeLabels = false;
|
|
109
|
-
let hasLinkLabels = false;
|
|
110
|
-
let node, link;
|
|
111
|
-
for (let i = 0; i < nodeData.length; i++) {
|
|
112
|
-
node = nodes[nodeData[i].id];
|
|
113
|
-
positions.push(node.position);
|
|
114
|
-
if (node.label)
|
|
115
|
-
hasNodeLabels = true;
|
|
116
|
-
nodeLabelPos.push(node.label);
|
|
117
|
-
}
|
|
118
|
-
if (links) {
|
|
119
|
-
for (let i = 0; i < linkData.length; i++) {
|
|
120
|
-
link = links[linkData[i].id];
|
|
121
|
-
if (link.label)
|
|
122
|
-
hasLinkLabels = true;
|
|
123
|
-
linkLabelPos.push(link.label);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return {
|
|
127
|
-
nodePoints: positions,
|
|
128
|
-
nodeLabelPos: hasNodeLabels ? nodeLabelPos : undefined,
|
|
129
|
-
linkLabelPos: hasLinkLabels ? linkLabelPos : undefined
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Merges the node points into the dimensions
|
|
134
|
-
*/
|
|
135
|
-
function mergeDimensions(dimensions, nodePoints) {
|
|
136
|
-
const newBounds = [];
|
|
137
|
-
for (let i = 0; i < dimensions.length; i++) {
|
|
138
|
-
const point = nodePoints[i];
|
|
139
|
-
const dim = dimensions[i];
|
|
140
|
-
newBounds.push({ x: point.x, y: point.y, w: dim.w, h: dim.h });
|
|
141
|
-
}
|
|
142
|
-
return newBounds;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Returns the text for the diagram datatip.
|
|
146
|
-
*/
|
|
147
|
-
function getDatatipContent(nodesMap, linksMap, focusedItem, hoveredItem, datatip) {
|
|
148
|
-
let itemInfo;
|
|
149
|
-
const isPointerActive = hoveredItem?.isCurrent;
|
|
150
|
-
if (isPointerActive && hoveredItem.id != null) {
|
|
151
|
-
itemInfo = hoveredItem;
|
|
152
|
-
}
|
|
153
|
-
if (focusedItem && focusedItem.isCurrent) {
|
|
154
|
-
itemInfo = focusedItem;
|
|
155
|
-
}
|
|
156
|
-
if (itemInfo && datatip) {
|
|
157
|
-
return datatip(itemInfo.isNode
|
|
158
|
-
? { data: nodesMap.get(itemInfo.id), type: 'node' }
|
|
159
|
-
: { data: linksMap.get(itemInfo.id), type: 'link' });
|
|
160
|
-
}
|
|
161
|
-
if (itemInfo) {
|
|
162
|
-
const text = (itemInfo.isNode ? nodesMap.get(itemInfo.id) : linksMap.get(itemInfo.id))?.accessibleLabel;
|
|
163
|
-
return {
|
|
164
|
-
content: text
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Creates a map with key id and value node or link data
|
|
171
|
-
*/
|
|
172
|
-
function createItemMap(items) {
|
|
173
|
-
const itemIdToDataMap = new Map();
|
|
174
|
-
const itemIdToIndexMap = new Map();
|
|
175
|
-
const itemIndexToIdMap = new Map();
|
|
176
|
-
for (let i = 0; i < items.length; i++) {
|
|
177
|
-
itemIdToDataMap.set(items[i].id, items[i]);
|
|
178
|
-
itemIdToIndexMap.set(items[i].id, i);
|
|
179
|
-
itemIndexToIdMap.set(i, items[i].id);
|
|
180
|
-
}
|
|
181
|
-
return {
|
|
182
|
-
itemIdToDataMap,
|
|
183
|
-
itemIdToIndexMap,
|
|
184
|
-
itemIndexToIdMap
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Filter out links with no start or end nodes
|
|
189
|
-
*/
|
|
190
|
-
function filterLinksWithNoEndNodes(links, nodesMap) {
|
|
191
|
-
const newLinks = [];
|
|
192
|
-
for (let i = 0; i < links.length; i++) {
|
|
193
|
-
const link = links[i];
|
|
194
|
-
if (nodesMap.get(link.startNode) && nodesMap.get(link.endNode)) {
|
|
195
|
-
newLinks.push(link);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
return newLinks;
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Pulls out the dimensions from an array of bounds
|
|
202
|
-
*/
|
|
203
|
-
function getDimensionsFromBounds(bounds) {
|
|
204
|
-
const dims = [];
|
|
205
|
-
for (let i = 0; i < bounds.length; i++) {
|
|
206
|
-
dims.push({ w: bounds[i].w, h: bounds[i].h });
|
|
207
|
-
}
|
|
208
|
-
return dims;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Returns the center position of the node or link
|
|
212
|
-
* For links, draws a straight line between the centers of the start/end node
|
|
213
|
-
* and returns the center of that line
|
|
214
|
-
*/
|
|
215
|
-
function getFocusedItemBounds(focusedItemInfo, bounds, links, nodeIdToIndexMap, linkIdToIndexMap) {
|
|
216
|
-
if (focusedItemInfo.isNode) {
|
|
217
|
-
const idx = nodeIdToIndexMap.get(focusedItemInfo.id);
|
|
218
|
-
// Return the first element if cannot find the Node index
|
|
219
|
-
return bounds[idx || 0];
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
// Center of a straight line between start/end node centers
|
|
223
|
-
const link = links[linkIdToIndexMap.get(focusedItemInfo.id) || 0];
|
|
224
|
-
const startNB = bounds[nodeIdToIndexMap.get(link.startNode) || 0];
|
|
225
|
-
const endNB = bounds[nodeIdToIndexMap.get(link.endNode) || 0];
|
|
226
|
-
const startNCenter = { x: startNB.x + startNB.w / 2, y: startNB.y + startNB.h / 2 };
|
|
227
|
-
const endNCenter = { x: endNB.x + endNB.w / 2, y: endNB.y + endNB.h / 2 };
|
|
228
|
-
const minX = Math.min(startNCenter.x, endNCenter.x);
|
|
229
|
-
const minY = Math.min(startNCenter.y, endNCenter.y);
|
|
230
|
-
return {
|
|
231
|
-
x: minX,
|
|
232
|
-
y: minY,
|
|
233
|
-
w: Math.abs(startNCenter.x - endNCenter.x),
|
|
234
|
-
h: Math.abs(startNCenter.y - endNCenter.y)
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Combines the node and link ids into one array
|
|
240
|
-
*/
|
|
241
|
-
function combineIds(nodeIds, linkIds) {
|
|
242
|
-
const combinedIds = [];
|
|
243
|
-
if (nodeIds) {
|
|
244
|
-
for (let i = 0; i < nodeIds.length; i++) {
|
|
245
|
-
combinedIds.push(nodeIds[i]);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
if (linkIds) {
|
|
249
|
-
for (let i = 0; i < linkIds.length; i++) {
|
|
250
|
-
combinedIds.push(linkIds[i]);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
return combinedIds;
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Returns the bounds of the diagram content
|
|
257
|
-
*/
|
|
258
|
-
function getContentBounds(nodeBounds, labelBounds) {
|
|
259
|
-
if (nodeBounds.length === 0)
|
|
260
|
-
return { x: 0, w: Infinity, y: 0, h: Infinity };
|
|
261
|
-
let minX = Infinity;
|
|
262
|
-
let minY = Infinity;
|
|
263
|
-
let maxX = -Infinity;
|
|
264
|
-
let maxY = -Infinity;
|
|
265
|
-
let dims;
|
|
266
|
-
for (let i = 0; i < nodeBounds.length; i++) {
|
|
267
|
-
dims = nodeBounds[i];
|
|
268
|
-
minX = dims.x < minX ? dims.x : minX;
|
|
269
|
-
minY = dims.y < minY ? dims.y : minY;
|
|
270
|
-
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
271
|
-
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
272
|
-
}
|
|
273
|
-
if (labelBounds) {
|
|
274
|
-
minX = labelBounds.x < minX ? labelBounds.x : minX;
|
|
275
|
-
minY = labelBounds.y < minY ? labelBounds.y : minY;
|
|
276
|
-
maxX = labelBounds.x + labelBounds.w > maxX ? labelBounds.x + labelBounds.w : maxX;
|
|
277
|
-
maxY = labelBounds.y + labelBounds.h > maxY ? labelBounds.y + labelBounds.h : maxY;
|
|
278
|
-
}
|
|
279
|
-
return { x: minX, w: maxX - minX, y: minY, h: maxY - minY };
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Returns the label bounds
|
|
283
|
-
*/
|
|
284
|
-
function getAllLabelBounds(labelDims, nodes, links, nodeLabelPos = [], linkLabelPos = [], isRTL) {
|
|
285
|
-
if (nodeLabelPos.length === 0 && linkLabelPos.length === 0)
|
|
286
|
-
return undefined;
|
|
287
|
-
let minX = Infinity;
|
|
288
|
-
let minY = Infinity;
|
|
289
|
-
let maxX = -Infinity;
|
|
290
|
-
let maxY = -Infinity;
|
|
291
|
-
let dims, label;
|
|
292
|
-
for (let i = 0; i < nodeLabelPos.length; i++) {
|
|
293
|
-
label = nodeLabelPos[i];
|
|
294
|
-
if (!label)
|
|
295
|
-
continue;
|
|
296
|
-
dims = getLabelBounds(label, labelDims.get(nodes[i].id), isRTL);
|
|
297
|
-
minX = dims.x < minX ? dims.x : minX;
|
|
298
|
-
minY = dims.y < minY ? dims.y : minY;
|
|
299
|
-
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
300
|
-
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
301
|
-
}
|
|
302
|
-
for (let i = 0; i < linkLabelPos.length; i++) {
|
|
303
|
-
label = linkLabelPos[i];
|
|
304
|
-
if (!label)
|
|
305
|
-
continue;
|
|
306
|
-
dims = getLabelBounds(label, labelDims.get(links[i].id), isRTL);
|
|
307
|
-
minX = dims.x < minX ? dims.x : minX;
|
|
308
|
-
minY = dims.y < minY ? dims.y : minY;
|
|
309
|
-
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
310
|
-
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
311
|
-
}
|
|
312
|
-
return { x: minX, w: maxX - minX, y: minY, h: maxY - minY };
|
|
313
|
-
}
|
|
314
|
-
function getLabelBounds(label, dims, isRTL) {
|
|
315
|
-
const labelPos = getLabelPosition(dims, label, isRTL);
|
|
316
|
-
const isRotating = label.rotationAngle;
|
|
317
|
-
if (!isRotating) {
|
|
318
|
-
return { x: labelPos.x, y: labelPos.y, w: dims.width, h: dims.height };
|
|
319
|
-
}
|
|
320
|
-
else {
|
|
321
|
-
// Find the 4 corners of the label bounds relative to the rotation point
|
|
322
|
-
const rotationPoint = label.rotationPoint
|
|
323
|
-
? label.rotationPoint
|
|
324
|
-
: { x: dims.width / 2, y: dims.height / 2 };
|
|
325
|
-
const angle = label.rotationAngle;
|
|
326
|
-
const topLeft = getCoordsRelToRotPoint({ x: 0, y: 0 }, rotationPoint);
|
|
327
|
-
const topRight = getCoordsRelToRotPoint({ x: dims.width, y: 0 }, rotationPoint);
|
|
328
|
-
const bottomLeft = getCoordsRelToRotPoint({ x: 0, y: dims.height }, rotationPoint);
|
|
329
|
-
const bottomRight = getCoordsRelToRotPoint({ x: dims.width, y: dims.height }, rotationPoint);
|
|
330
|
-
const rotTopLeft = rotatePoint(topLeft, angle);
|
|
331
|
-
const rotBotLeft = rotatePoint(bottomLeft, angle);
|
|
332
|
-
const rotTopRight = rotatePoint(topRight, angle);
|
|
333
|
-
const rotBotRight = rotatePoint(bottomRight, angle);
|
|
334
|
-
const points = [rotTopLeft, rotBotLeft, rotTopRight, rotBotRight].map((pos) => {
|
|
335
|
-
return {
|
|
336
|
-
x: pos.x + labelPos.x + rotationPoint.x,
|
|
337
|
-
y: pos.y + labelPos.y + rotationPoint.y
|
|
338
|
-
};
|
|
339
|
-
});
|
|
340
|
-
return getBoundsFromPoints(points);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
function getCoordsRelToRotPoint(labelPoint, rotPoint) {
|
|
344
|
-
return { x: labelPoint.x - rotPoint.x, y: labelPoint.y - rotPoint.y };
|
|
345
|
-
}
|
|
346
|
-
function rotatePoint(pos, angle) {
|
|
347
|
-
return {
|
|
348
|
-
x: pos.x * Math.cos(angle) - pos.y * Math.sin(angle),
|
|
349
|
-
y: pos.x * Math.sin(angle) + pos.y * Math.cos(angle)
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
function getBoundsFromPoints(points) {
|
|
353
|
-
let minX = points[0].x;
|
|
354
|
-
let minY = points[0].y;
|
|
355
|
-
let maxX = points[0].x;
|
|
356
|
-
let maxY = points[0].y;
|
|
357
|
-
for (let i = 1; i < points.length; i++) {
|
|
358
|
-
const point = points[i];
|
|
359
|
-
if (point.x < minX)
|
|
360
|
-
minX = point.x;
|
|
361
|
-
else if (point.x > maxX)
|
|
362
|
-
maxX = point.x;
|
|
363
|
-
if (point.y < minY)
|
|
364
|
-
minY = point.y;
|
|
365
|
-
else if (point.y > maxY)
|
|
366
|
-
maxY = point.y;
|
|
367
|
-
}
|
|
368
|
-
return {
|
|
369
|
-
x: minX,
|
|
370
|
-
y: minY,
|
|
371
|
-
w: maxX - minX,
|
|
372
|
-
h: maxY - minY
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* Returns the position of the label
|
|
377
|
-
* @param dimensions
|
|
378
|
-
* @param positionProps
|
|
379
|
-
* @returns position of the label
|
|
380
|
-
*/
|
|
381
|
-
function getLabelPosition(dimensions, positionProps, isRTL) {
|
|
382
|
-
const position = positionProps.position;
|
|
383
|
-
const hAlign = positionProps.hAlign ? positionProps.hAlign : isRTL ? 'right' : 'left';
|
|
384
|
-
const vAlign = positionProps.vAlign;
|
|
385
|
-
let x, y;
|
|
386
|
-
if (hAlign === 'center') {
|
|
387
|
-
x = position.x - dimensions.width / 2;
|
|
388
|
-
}
|
|
389
|
-
else if (hAlign === 'right') {
|
|
390
|
-
x = position.x - dimensions.width;
|
|
391
|
-
}
|
|
392
|
-
else {
|
|
393
|
-
x = position.x;
|
|
394
|
-
}
|
|
395
|
-
if (vAlign === 'middle') {
|
|
396
|
-
y = position.y - dimensions.height / 2;
|
|
397
|
-
}
|
|
398
|
-
else if (vAlign === 'bottom') {
|
|
399
|
-
y = position.y - dimensions.height;
|
|
400
|
-
}
|
|
401
|
-
else if (vAlign === 'baseline') {
|
|
402
|
-
y = position.y + dimensions.y;
|
|
403
|
-
}
|
|
404
|
-
else {
|
|
405
|
-
y = position.y;
|
|
406
|
-
}
|
|
407
|
-
return {
|
|
408
|
-
x: x,
|
|
409
|
-
y: y
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* Converts centerX,Y coordinates to panX,Y coordinates
|
|
414
|
-
*/
|
|
415
|
-
function centerXYToPanXY(centerX, centerY, zoom, width, height) {
|
|
416
|
-
return {
|
|
417
|
-
panX: width / 2 - centerX * zoom,
|
|
418
|
-
panY: height / 2 - centerY * zoom
|
|
419
|
-
};
|
|
420
|
-
}
|
|
421
|
-
/**
|
|
422
|
-
* Converts panX,Y coordinates to centerX,Y coordinates
|
|
423
|
-
*/
|
|
424
|
-
function panXYToCenterXY(panX, panY, zoom, width, height) {
|
|
425
|
-
return {
|
|
426
|
-
centerX: (width / 2 - panX) / zoom,
|
|
427
|
-
centerY: (height / 2 - panY) / zoom
|
|
428
|
-
};
|
|
429
|
-
}
|
|
430
|
-
/**
|
|
431
|
-
* Compares if two ItemInfo are equal
|
|
432
|
-
*/
|
|
433
|
-
function isEqualItem(item1, item2) {
|
|
434
|
-
return item1?.id === item2?.id && item1?.isNode === item2?.isNode;
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* Returns the item info of the data-oj-node or data-oj-link attribute for a given element.
|
|
438
|
-
*/
|
|
439
|
-
function getNavigableInfo(element, rootElementRef) {
|
|
440
|
-
let isNode = false;
|
|
441
|
-
let elem = element;
|
|
442
|
-
let navigableId;
|
|
443
|
-
while (!navigableId) {
|
|
444
|
-
navigableId = elem.dataset['node'];
|
|
445
|
-
if (navigableId) {
|
|
446
|
-
isNode = true;
|
|
447
|
-
}
|
|
448
|
-
else {
|
|
449
|
-
navigableId = elem.dataset['link'];
|
|
450
|
-
}
|
|
451
|
-
if (!navigableId) {
|
|
452
|
-
if (elem.parentElement && elem.parentElement !== rootElementRef?.current) {
|
|
453
|
-
elem = elem.parentElement;
|
|
454
|
-
}
|
|
455
|
-
else {
|
|
456
|
-
break;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
return {
|
|
461
|
-
id: navigableId,
|
|
462
|
-
isNode: isNode
|
|
463
|
-
};
|
|
464
|
-
}
|
|
465
|
-
/**
|
|
466
|
-
* Returns the aria label
|
|
467
|
-
*/
|
|
468
|
-
function getItemAriaLabel(translations, supportsSelection, isSelected, accessibleLabel) {
|
|
469
|
-
return accUtils.generateAriaLabel(translations, accessibleLabel || '', {
|
|
470
|
-
isSelected: !supportsSelection ? undefined : isSelected
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
/**
|
|
474
|
-
* Returns the zoom to fit zoom level
|
|
475
|
-
*/
|
|
476
|
-
function getZoomToFitZoom(width, height, contentBounds) {
|
|
477
|
-
const zoomX = (width - 2 * ZOOM_TO_FIT_PADDING) / contentBounds.w;
|
|
478
|
-
const zoomY = (height - 2 * ZOOM_TO_FIT_PADDING) / contentBounds.h;
|
|
479
|
-
return Math.min(zoomX, zoomY);
|
|
480
|
-
}
|
|
481
|
-
/**
|
|
482
|
-
* Constrains the zoom level
|
|
483
|
-
*/
|
|
484
|
-
function constrainZoom(zoom, minZoom, maxZoom) {
|
|
485
|
-
let newZoom = Math.max(minZoom, zoom);
|
|
486
|
-
newZoom = Math.min(maxZoom, newZoom);
|
|
487
|
-
return newZoom;
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* Returns the font props for a node or link
|
|
491
|
-
*/
|
|
492
|
-
function _getFontProps(styles) {
|
|
493
|
-
const fontProps = {};
|
|
494
|
-
if (!styles)
|
|
495
|
-
return fontProps;
|
|
496
|
-
if (styles.fontFamily)
|
|
497
|
-
fontProps.fontFamily = styles.fontFamily;
|
|
498
|
-
if (styles.fontSize)
|
|
499
|
-
fontProps.fontSize = styles.fontSize;
|
|
500
|
-
if (styles.fontStyle)
|
|
501
|
-
fontProps.fontStyle = styles.fontStyle;
|
|
502
|
-
if (styles.fontWeight)
|
|
503
|
-
fontProps.fontWeight = styles.fontWeight;
|
|
504
|
-
return fontProps;
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
* Returns the panX, panY, and zoom when zooming and centering an item
|
|
508
|
-
*/
|
|
509
|
-
function zoomAndCenterItemFromInfo(info, linkIdToDataMap, bounds, nodeIdToIndex, width, height, maxZoom) {
|
|
510
|
-
const isNode = info.isNode;
|
|
511
|
-
let totalBounds;
|
|
512
|
-
if (isNode) {
|
|
513
|
-
const nodeIndex = nodeIdToIndex.get(info.id);
|
|
514
|
-
totalBounds = bounds[nodeIndex];
|
|
515
|
-
}
|
|
516
|
-
else {
|
|
517
|
-
const link = linkIdToDataMap.get(info.id);
|
|
518
|
-
const startNodeBounds = bounds[nodeIdToIndex.get(link.startNode)];
|
|
519
|
-
const endNodeBounds = bounds[nodeIdToIndex.get(link.endNode)];
|
|
520
|
-
const minX = Math.min(startNodeBounds.x, endNodeBounds.x);
|
|
521
|
-
const minY = Math.min(startNodeBounds.y, endNodeBounds.y);
|
|
522
|
-
const maxX = Math.max(startNodeBounds.x + startNodeBounds.w, endNodeBounds.x + startNodeBounds.w);
|
|
523
|
-
const maxY = Math.max(startNodeBounds.y + startNodeBounds.h, endNodeBounds.y + endNodeBounds.h);
|
|
524
|
-
totalBounds = { x: minX, y: minY, w: maxX - minX, h: maxY - minY };
|
|
525
|
-
}
|
|
526
|
-
return getPanZoomToCenterNode(totalBounds, maxZoom, width, height);
|
|
527
|
-
}
|
|
528
|
-
/**
|
|
529
|
-
* Returns the pan and zoom values in order
|
|
530
|
-
* to center a node or link
|
|
531
|
-
*/
|
|
532
|
-
function getPanZoomToCenterNode(bounds, maxZoom, width, height) {
|
|
533
|
-
const zoomX = (width - 2 * ZOOM_TO_FIT_PADDING) / bounds.w;
|
|
534
|
-
const zoomY = (height - 2 * ZOOM_TO_FIT_PADDING) / bounds.h;
|
|
535
|
-
const zoom = Math.min(zoomX, zoomY, maxZoom);
|
|
536
|
-
const cX = bounds.w / 2 + bounds.x;
|
|
537
|
-
const cY = bounds.h / 2 + bounds.y;
|
|
538
|
-
return { centerX: cX, centerY: cY, zoom: zoom };
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
const DiagramNodeElement = ({ id, state, previousState, position, activeId, nodeRenderer, onNodeSizeChanged, nodeIndex, data, accessibleLabel, isDimmed, supportsSelection }) => {
|
|
542
|
-
const { nodeStyles, dimmedItemStyle } = UNSAFE_Diagram_themes_DiagramStyles_css.itemStyles;
|
|
543
|
-
const context = {
|
|
544
|
-
state: state,
|
|
545
|
-
previousState: previousState,
|
|
546
|
-
data: data
|
|
547
|
-
};
|
|
548
|
-
const translations = useTranslationBundle.useTranslationBundle('@oracle/oraclejet-preact');
|
|
549
|
-
const ref = hooks.useRef(null);
|
|
550
|
-
// TODO JET-62472 change to one resize observer function
|
|
551
|
-
const optionsRef = hooks.useRef({ box: 'border-box' });
|
|
552
|
-
useResizeObserver.useResizeObserver(ref, hooks.useCallback((entry) => {
|
|
553
|
-
const boxSize = entry.borderBoxSize;
|
|
554
|
-
const width = boxSize[0].inlineSize;
|
|
555
|
-
const height = boxSize[0].blockSize;
|
|
556
|
-
onNodeSizeChanged(width, height, nodeIndex);
|
|
557
|
-
}, [nodeIndex, onNodeSizeChanged]), optionsRef.current);
|
|
558
|
-
return (jsxRuntime.jsx("div", { ref: ref, class: classNames.classNames([nodeStyles, isDimmed ? dimmedItemStyle : undefined]), "data-node": id, role: "img", "aria-label": getItemAriaLabel(translations, supportsSelection, state.selected, accessibleLabel), style: {
|
|
559
|
-
top: position.y,
|
|
560
|
-
left: position.x
|
|
561
|
-
}, id: state.focused || state.hovered ? activeId : undefined, children: nodeRenderer(context) }, id));
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
function DiagramNodeLayer({ nodes, states, previousStates, nodeRenderer, nodeBounds, onNodeSizeChanged, supportsSelection }) {
|
|
565
|
-
return (jsxRuntime.jsx("div", { class: UNSAFE_Diagram_themes_DiagramStyles_css.layerStyles, children: nodes.map((node, i) => {
|
|
566
|
-
// this is for initial render before the layout function so render all nodes at 0,0
|
|
567
|
-
const position = nodeBounds && nodeBounds[i] ? { x: nodeBounds[i].x, y: nodeBounds[i].y } : { x: 0, y: 0 };
|
|
568
|
-
const state = {
|
|
569
|
-
selected: states.selectedNodeIds.includes(node.id),
|
|
570
|
-
focused: states.focusedId === node.id,
|
|
571
|
-
hovered: states.hoveredId === node.id,
|
|
572
|
-
zoom: states.zoom
|
|
573
|
-
};
|
|
574
|
-
const previousState = {
|
|
575
|
-
selected: previousStates.selectedNodeIds.includes(node.id),
|
|
576
|
-
focused: previousStates.focusedId === node.id,
|
|
577
|
-
hovered: previousStates.hoveredId === node.id,
|
|
578
|
-
zoom: previousStates.zoom
|
|
579
|
-
};
|
|
580
|
-
return (jsxRuntime.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 }));
|
|
581
|
-
}) }));
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
const DiagramLinkElement = ({ id, state, previousState, activeId, data, linkRenderer, accessibleLabel, isDimmed, supportsSelection }) => {
|
|
585
|
-
const translations = useTranslationBundle.useTranslationBundle('@oracle/oraclejet-preact');
|
|
586
|
-
const { dimmedItemStyle, linkStyles } = UNSAFE_Diagram_themes_DiagramStyles_css.itemStyles;
|
|
587
|
-
const context = {
|
|
588
|
-
state: state,
|
|
589
|
-
previousState: previousState,
|
|
590
|
-
data: data
|
|
591
|
-
};
|
|
592
|
-
return (jsxRuntime.jsx("g", { id: state.focused ? activeId : undefined, "aria-label": getItemAriaLabel(translations, supportsSelection, state.selected, accessibleLabel), "data-link": id, role: "img", class: classNames.classNames([linkStyles, isDimmed && dimmedItemStyle]), children: linkRenderer(context) }, id));
|
|
593
|
-
};
|
|
594
|
-
|
|
595
|
-
function DiagramLinkLayer({ links, states, previousStates, linkRenderer, width, height, supportsSelection }) {
|
|
596
|
-
return (jsxRuntime.jsx("svg", { class: UNSAFE_Diagram_themes_DiagramStyles_css.layerStyles, width: width, height: height, children: links.map((link) => {
|
|
597
|
-
const state = {
|
|
598
|
-
selected: states.selectedLinkIds.includes(link.id),
|
|
599
|
-
focused: states.focusedId === link.id,
|
|
600
|
-
hovered: states.hoveredId === link.id,
|
|
601
|
-
zoom: states.zoom
|
|
602
|
-
};
|
|
603
|
-
const previousState = {
|
|
604
|
-
selected: previousStates.selectedLinkIds.includes(link.id),
|
|
605
|
-
focused: previousStates.focusedId === link.id,
|
|
606
|
-
hovered: previousStates.hoveredId === link.id,
|
|
607
|
-
zoom: previousStates.zoom
|
|
608
|
-
};
|
|
609
|
-
return (jsxRuntime.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 }));
|
|
610
|
-
}) }));
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
const DiagramLabel = ({ text, position, styles, dimensions, isRTL }) => {
|
|
614
|
-
const { labelStyle, labelBorderStyle } = UNSAFE_Diagram_themes_DiagramStyles_css.labelStyles;
|
|
615
|
-
const labelPosition = getLabelPosition(dimensions, position, isRTL);
|
|
616
|
-
const labelRotation = getLabelRotation(position);
|
|
617
|
-
return (jsxRuntime.jsx("div", { class: classNames.classNames([labelStyle, styles && styles.borderColor && labelBorderStyle]), style: {
|
|
618
|
-
top: labelPosition.y,
|
|
619
|
-
left: labelPosition.x,
|
|
620
|
-
...styles,
|
|
621
|
-
...labelRotation
|
|
622
|
-
}, children: text }));
|
|
623
|
-
};
|
|
624
|
-
/**
|
|
625
|
-
* Returns the label rotation props
|
|
626
|
-
* @param position
|
|
627
|
-
* @returns rotation props
|
|
628
|
-
*/
|
|
629
|
-
function getLabelRotation(position) {
|
|
630
|
-
const rotationAngle = position.rotationAngle;
|
|
631
|
-
const rotationPoint = position.rotationPoint;
|
|
632
|
-
const rotation = {};
|
|
633
|
-
if (rotationAngle) {
|
|
634
|
-
rotation['transform'] = `rotate(${rotationAngle}deg)`;
|
|
635
|
-
}
|
|
636
|
-
if (rotationPoint) {
|
|
637
|
-
rotation['transform-origin'] = `${rotationPoint.x}px ${rotationPoint.y}px`;
|
|
638
|
-
}
|
|
639
|
-
return rotation;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
function DiagramLabelLayer({ labelPosition, itemProps, labelDimensions }) {
|
|
643
|
-
const { direction } = useUser.useUser();
|
|
644
|
-
return (jsxRuntime.jsx("div", { class: UNSAFE_Diagram_themes_DiagramStyles_css.layerStyles, children: itemProps.map((item, i) => {
|
|
645
|
-
if (item.label && labelPosition[i]) {
|
|
646
|
-
return (jsxRuntime.jsx(DiagramLabel, { styles: item.labelStyle, text: item.label, position: labelPosition[i], dimensions: labelDimensions.get(item.id), isRTL: direction === 'rtl' }));
|
|
647
|
-
}
|
|
648
|
-
return undefined;
|
|
649
|
-
}) }));
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
function DiagramLayers({ nodes, links, nodeRenderer, linkRenderer, states, previousStates, nodeBounds, onNodeSizeChanged, width, height, nodeLabelPositions, linkLabelPositions, labelDimensions, supportsSelection }) {
|
|
653
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [links.length > 0 && linkRenderer && width !== Infinity && (jsxRuntime.jsx(DiagramLinkLayer, { links: links, states: states, previousStates: previousStates, linkRenderer: linkRenderer, width: width, height: height, supportsSelection: supportsSelection })), jsxRuntime.jsx(DiagramNodeLayer, { nodes: nodes, nodeBounds: nodeBounds, states: states, previousStates: previousStates, nodeRenderer: nodeRenderer, onNodeSizeChanged: onNodeSizeChanged, supportsSelection: supportsSelection }), labelDimensions ? (jsxRuntime.jsxs("div", { children: [nodeLabelPositions ? (jsxRuntime.jsx(DiagramLabelLayer, { labelPosition: nodeLabelPositions, itemProps: nodes, labelDimensions: labelDimensions })) : undefined, links && linkLabelPositions ? (jsxRuntime.jsx(DiagramLabelLayer, { labelPosition: linkLabelPositions, itemProps: links, labelDimensions: labelDimensions })) : undefined] })) : undefined] }));
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
function DiagramPanZoomContainer({ centerX, centerY, children, zoom, width, height }) {
|
|
657
|
-
const panValues = centerXYToPanXY(centerX, centerY, zoom, width, height);
|
|
658
|
-
return (jsxRuntime.jsx("div", { class: UNSAFE_Diagram_themes_DiagramStyles_css.panZoomStyles, style: {
|
|
659
|
-
//TODO JET-62471 look at using matrices or both in transform instead
|
|
660
|
-
translate: `${panValues.panX}px ${panValues.panY}px`,
|
|
661
|
-
transform: `scale(${zoom})`
|
|
662
|
-
}, children: children }));
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
/**
|
|
666
|
-
* @license
|
|
667
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
668
|
-
* The Universal Permissive License (UPL), Version 1.0
|
|
669
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
670
|
-
* @ignore
|
|
671
|
-
*/
|
|
672
|
-
/**
|
|
673
|
-
* Returns the node data based on node info in a diagram.
|
|
674
|
-
* @param itemInfo
|
|
675
|
-
* @returns
|
|
676
|
-
*/
|
|
677
|
-
function getNodeDetailFromInfo(itemInfo, nodes) {
|
|
678
|
-
let node;
|
|
679
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
680
|
-
node = nodes[i];
|
|
681
|
-
if (itemInfo.id === node.id) {
|
|
682
|
-
return node;
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
return undefined;
|
|
686
|
-
}
|
|
687
|
-
/**
|
|
688
|
-
* Returns the link data based on link info in a diagram.
|
|
689
|
-
* @param itemInfo
|
|
690
|
-
* @returns
|
|
691
|
-
*/
|
|
692
|
-
function getLinkDetailFromInfo(itemInfo, links) {
|
|
693
|
-
let link;
|
|
694
|
-
for (let i = 0; i < links.length; i++) {
|
|
695
|
-
link = links[i];
|
|
696
|
-
if (itemInfo.id === link.id) {
|
|
697
|
-
return link;
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
return undefined;
|
|
701
|
-
}
|
|
702
|
-
/**
|
|
703
|
-
* Creates a map with key node id and value node bounds
|
|
704
|
-
*/
|
|
705
|
-
function createNodeBoundsMap(nodes, bounds) {
|
|
706
|
-
const nodeBounds = new Map();
|
|
707
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
708
|
-
nodeBounds.set(nodes[i].id, bounds[i]);
|
|
709
|
-
}
|
|
710
|
-
return nodeBounds;
|
|
711
|
-
}
|
|
712
|
-
/**
|
|
713
|
-
* Utility method that adds sorting attributes of each link to an array
|
|
714
|
-
*/
|
|
715
|
-
function addSortingAttributes(node, listOfLinks, nodes, nodeBounds) {
|
|
716
|
-
let angle, distance, direction;
|
|
717
|
-
const linkDetail = [];
|
|
718
|
-
for (let i = 0; i < listOfLinks.length; i++) {
|
|
719
|
-
const link = listOfLinks[i];
|
|
720
|
-
angle = _getClockwiseAngle(node, link, nodes, nodeBounds);
|
|
721
|
-
distance = _getNodesDistance(link, nodes, nodeBounds);
|
|
722
|
-
direction = _getLinkDirection(node, link);
|
|
723
|
-
linkDetail.push({ id: link.id, angle: angle, distance: distance, direction: direction });
|
|
724
|
-
}
|
|
725
|
-
return linkDetail;
|
|
726
|
-
}
|
|
727
|
-
/**
|
|
728
|
-
* Returns a function that compares two link around a given node
|
|
729
|
-
* The links are analyzed by angle, distance from the node and direction. The sorting attributes are added to the links before sorting.
|
|
730
|
-
*/
|
|
731
|
-
function getLinkComparator() {
|
|
732
|
-
return (link1, link2) => {
|
|
733
|
-
const { angle: linkAngle1, distance: linkDistance1, direction: linkDirection1 } = link1;
|
|
734
|
-
const { angle: linkAngle2, distance: linkDistance2, direction: linkDirection2 } = link2;
|
|
735
|
-
let res = -1;
|
|
736
|
-
if (!_anglesAreEqualWithinTolerance(linkAngle1, linkAngle2) && linkAngle1 > linkAngle2) {
|
|
737
|
-
res = 1;
|
|
738
|
-
}
|
|
739
|
-
else if (_anglesAreEqualWithinTolerance(linkAngle1, linkAngle2)) {
|
|
740
|
-
//check distance and direction
|
|
741
|
-
if (linkDistance1 > linkDistance2) {
|
|
742
|
-
res = 1;
|
|
743
|
-
}
|
|
744
|
-
else if (linkDistance2 == linkDistance1 && linkDirection1 > linkDirection2) {
|
|
745
|
-
//outgoing to ingoing
|
|
746
|
-
res = 1;
|
|
747
|
-
}
|
|
748
|
-
else if (linkDistance2 == linkDistance1 && linkDirection1 == linkDirection2) {
|
|
749
|
-
res = 0;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
return res;
|
|
753
|
-
};
|
|
754
|
-
}
|
|
755
|
-
/**
|
|
756
|
-
* Returns navigable links for a given node
|
|
757
|
-
*/
|
|
758
|
-
function getNavigableLinksForNodeId(nodeId, listOfLinks) {
|
|
759
|
-
const links = [];
|
|
760
|
-
listOfLinks.forEach((link) => {
|
|
761
|
-
const startId = link.startNode;
|
|
762
|
-
const endId = link.endNode;
|
|
763
|
-
if (startId == nodeId || endId == nodeId)
|
|
764
|
-
links.push(link);
|
|
765
|
-
});
|
|
766
|
-
return links;
|
|
767
|
-
}
|
|
768
|
-
/**
|
|
769
|
-
* Get the clockwise angle for the link given node as a center
|
|
770
|
-
*/
|
|
771
|
-
function _getClockwiseAngle(node, link, nodes, nodeBounds) {
|
|
772
|
-
//find opposite node
|
|
773
|
-
let currNode;
|
|
774
|
-
let startNode = nodes[0];
|
|
775
|
-
let endNode = nodes[0];
|
|
776
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
777
|
-
currNode = nodes[i];
|
|
778
|
-
if (currNode.id === link.startNode) {
|
|
779
|
-
startNode = currNode;
|
|
780
|
-
}
|
|
781
|
-
else if (currNode.id === link.endNode) {
|
|
782
|
-
endNode = currNode;
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
const oppositeNode = node.id == startNode.id ? endNode : startNode;
|
|
786
|
-
const p1 = _getNodeCenter(node, nodeBounds);
|
|
787
|
-
const p2 = _getNodeCenter(oppositeNode, nodeBounds);
|
|
788
|
-
let angle = Math.atan2(p2.y - p1.y, p2.x - p1.x);
|
|
789
|
-
angle = angle < 0 ? angle + Math.PI * 2 : angle;
|
|
790
|
-
return angle;
|
|
791
|
-
}
|
|
792
|
-
/**
|
|
793
|
-
* Get the distance between start and end nodes for the given link
|
|
794
|
-
*/
|
|
795
|
-
function _getNodesDistance(link, nodes, nodeBounds) {
|
|
796
|
-
let currNode;
|
|
797
|
-
let startNode = nodes[0];
|
|
798
|
-
let endNode = nodes[0];
|
|
799
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
800
|
-
currNode = nodes[i];
|
|
801
|
-
if (currNode.id === link.startNode) {
|
|
802
|
-
startNode = currNode;
|
|
803
|
-
}
|
|
804
|
-
else if (currNode.id === link.endNode) {
|
|
805
|
-
endNode = currNode;
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
const p1 = _getNodeCenter(startNode, nodeBounds);
|
|
809
|
-
const p2 = _getNodeCenter(endNode, nodeBounds);
|
|
810
|
-
return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));
|
|
811
|
-
}
|
|
812
|
-
/**
|
|
813
|
-
* Get link direction for the given node. 1 if the node is the end node
|
|
814
|
-
* and 0 if it is the start node
|
|
815
|
-
*/
|
|
816
|
-
function _getLinkDirection(node, link) {
|
|
817
|
-
if (link.endNode === node.id) {
|
|
818
|
-
return 1;
|
|
819
|
-
}
|
|
820
|
-
return 0;
|
|
821
|
-
}
|
|
822
|
-
/**
|
|
823
|
-
* Get node center
|
|
824
|
-
*/
|
|
825
|
-
function _getNodeCenter(node, nodeBounds) {
|
|
826
|
-
const nodeBB = nodeBounds.get(node.id);
|
|
827
|
-
return { x: nodeBB.x + nodeBB.w / 2, y: nodeBB.y + nodeBB.h / 2 };
|
|
828
|
-
}
|
|
829
|
-
/**
|
|
830
|
-
* Calculates the angle weighted by distance
|
|
831
|
-
*/
|
|
832
|
-
function calcDistanceAngleWeighted(objectBB, currentBB, direction) {
|
|
833
|
-
// Variables used for calculating penalties when calculating distances between two navigables.
|
|
834
|
-
const optimalAngle1 = (15 / 180) * Math.PI;
|
|
835
|
-
const optimalAngle2 = (40 / 180) * Math.PI;
|
|
836
|
-
const suboptimalAnglePenalty1 = 2; // multiplier to the distance
|
|
837
|
-
const suboptimalAnglePenalty2 = 6; // multiplier to the distance
|
|
838
|
-
const objCenterX = objectBB.x + objectBB.w / 2;
|
|
839
|
-
const objCenterY = objectBB.y + objectBB.h / 2;
|
|
840
|
-
const curCenterX = currentBB.x + currentBB.w / 2;
|
|
841
|
-
const curCenterY = currentBB.y + currentBB.h / 2;
|
|
842
|
-
const x_dist = Math.abs(objCenterX - curCenterX);
|
|
843
|
-
const y_dist = Math.abs(objCenterY - curCenterY);
|
|
844
|
-
const angle = Math.atan2(y_dist, x_dist);
|
|
845
|
-
let distance = Math.sqrt(x_dist * x_dist + y_dist * y_dist);
|
|
846
|
-
// Angle penalty based on direction
|
|
847
|
-
if ((angle > optimalAngle1 && (direction == 'right' || direction == 'left')) ||
|
|
848
|
-
(angle < Math.PI / 2 - optimalAngle1 && (direction == 'up' || direction == 'down'))) {
|
|
849
|
-
if ((angle > optimalAngle2 && (direction == 'right' || direction == 'left')) ||
|
|
850
|
-
(angle < Math.PI / 2 - optimalAngle2 && (direction == 'up' || direction == 'down'))) {
|
|
851
|
-
distance *= suboptimalAnglePenalty2;
|
|
852
|
-
}
|
|
853
|
-
else {
|
|
854
|
-
distance *= suboptimalAnglePenalty1;
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
return distance;
|
|
858
|
-
}
|
|
859
|
-
/**
|
|
860
|
-
* Given a direction, is a certain node is a valid destination to navigate to
|
|
861
|
-
*/
|
|
862
|
-
function isValidDestination(objBB, curBB, direction, compareCenters) {
|
|
863
|
-
// compare the centers of the navigable and to be valid, the navigable must be in the right direction
|
|
864
|
-
// without tolerance
|
|
865
|
-
if (compareCenters) {
|
|
866
|
-
const objCenterX = objBB.x + 0.5 * objBB.w;
|
|
867
|
-
const curCenterX = curBB.x + 0.5 * curBB.w;
|
|
868
|
-
const objCenterY = objBB.y + 0.5 * objBB.h;
|
|
869
|
-
const curCenterY = curBB.y + 0.5 * curBB.h;
|
|
870
|
-
switch (direction) {
|
|
871
|
-
case 'up':
|
|
872
|
-
return objCenterY < curCenterY;
|
|
873
|
-
case 'down':
|
|
874
|
-
return objBB.y > curCenterY;
|
|
875
|
-
case 'right':
|
|
876
|
-
return objCenterX > curCenterX;
|
|
877
|
-
case 'left':
|
|
878
|
-
return objCenterX < curCenterX;
|
|
879
|
-
}
|
|
880
|
-
return true;
|
|
881
|
-
}
|
|
882
|
-
switch (direction) {
|
|
883
|
-
case 'up':
|
|
884
|
-
return objBB.y < curBB.y || _areEqualWithinTolerance(objBB.y, curBB.y);
|
|
885
|
-
case 'down':
|
|
886
|
-
return objBB.y > curBB.y || _areEqualWithinTolerance(objBB.y, curBB.y);
|
|
887
|
-
case 'right':
|
|
888
|
-
return objBB.x > curBB.x || _areEqualWithinTolerance(objBB.x, curBB.x);
|
|
889
|
-
case 'left':
|
|
890
|
-
return objBB.x < curBB.x || _areEqualWithinTolerance(objBB.x, curBB.x);
|
|
891
|
-
}
|
|
892
|
-
return true;
|
|
893
|
-
}
|
|
894
|
-
/**
|
|
895
|
-
* Returns true if two nodes are in contact
|
|
896
|
-
*/
|
|
897
|
-
function calcInContact(objRect, curRect, direction) {
|
|
898
|
-
switch (direction) {
|
|
899
|
-
case 'up':
|
|
900
|
-
return (_isVerticallyAligned(objRect, curRect) &&
|
|
901
|
-
(curRect.y <= objRect.y + objRect.h ||
|
|
902
|
-
_areEqualWithinTolerance(curRect.y, objRect.y + objRect.h)));
|
|
903
|
-
case 'down':
|
|
904
|
-
return (_isVerticallyAligned(objRect, curRect) &&
|
|
905
|
-
(objRect.y <= curRect.y + curRect.h ||
|
|
906
|
-
_areEqualWithinTolerance(objRect.y, curRect.y + curRect.h)));
|
|
907
|
-
case 'right':
|
|
908
|
-
return (_isHorizontallyAligned(objRect, curRect) &&
|
|
909
|
-
(objRect.x <= curRect.x + curRect.w ||
|
|
910
|
-
_areEqualWithinTolerance(objRect.x, curRect.x + curRect.w)));
|
|
911
|
-
case 'left':
|
|
912
|
-
return (_isHorizontallyAligned(objRect, curRect) &&
|
|
913
|
-
(curRect.x <= objRect.x + objRect.w ||
|
|
914
|
-
_areEqualWithinTolerance(curRect.x, objRect.x + objRect.w)));
|
|
915
|
-
}
|
|
916
|
-
return false;
|
|
917
|
-
}
|
|
918
|
-
function _isVerticallyAligned(rect1, rect2) {
|
|
919
|
-
return ((rect1.x >= rect2.x && rect1.x <= rect2.x + rect2.w) ||
|
|
920
|
-
(rect2.x >= rect1.x && rect2.x <= rect1.x + rect1.w));
|
|
921
|
-
}
|
|
922
|
-
function _isHorizontallyAligned(rect1, rect2) {
|
|
923
|
-
return ((rect1.y >= rect2.y && rect1.y <= rect2.y + rect2.h) ||
|
|
924
|
-
(rect2.y >= rect1.y && rect2.y <= rect1.y + rect1.h));
|
|
925
|
-
}
|
|
926
|
-
function _areEqualWithinTolerance(a, b) {
|
|
927
|
-
return Math.abs(a - b) <= 0.0000001;
|
|
928
|
-
}
|
|
929
|
-
function _anglesAreEqualWithinTolerance(a1, a2) {
|
|
930
|
-
let res = Math.abs(a1 - a2) <= 0.0000001;
|
|
931
|
-
if (!res) {
|
|
932
|
-
res = Math.abs(Math.PI * 2 + Math.min(a1, a2) - Math.max(a1, a2)) <= 0.0000001;
|
|
933
|
-
}
|
|
934
|
-
return res;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
/**
|
|
938
|
-
* @license
|
|
939
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
940
|
-
* The Universal Permissive License (UPL), Version 1.0
|
|
941
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
942
|
-
* @ignore
|
|
943
|
-
*/
|
|
944
|
-
function useDiagramNavigation(nodes, links, bounds, linkIdToDataMap) {
|
|
945
|
-
const currentKeyboardFocusNode = hooks.useRef();
|
|
946
|
-
const nodeBoundsById = createNodeBoundsMap(nodes, bounds);
|
|
947
|
-
function getNextNavigableNode(direction, compareCenters, current, listOfObjects) {
|
|
948
|
-
if (!listOfObjects)
|
|
949
|
-
return current;
|
|
950
|
-
if (!current)
|
|
951
|
-
return listOfObjects[0];
|
|
952
|
-
const currBB = nodeBoundsById.get(current.id);
|
|
953
|
-
if (!currBB)
|
|
954
|
-
return listOfObjects[0];
|
|
955
|
-
let nextObject = current; //init to current object
|
|
956
|
-
let nextDistance = Number.MAX_VALUE;
|
|
957
|
-
// If an object is in contact it overrules all other attributes
|
|
958
|
-
// Only another in contact object with better attributes will have higher precedence
|
|
959
|
-
let nextInContact = false;
|
|
960
|
-
// Whether or not the for loop has encountered the current object
|
|
961
|
-
let hasFoundCurrent = false;
|
|
962
|
-
let object, inContact, distance;
|
|
963
|
-
for (let i = 0; i < listOfObjects.length; i++) {
|
|
964
|
-
object = listOfObjects[i];
|
|
965
|
-
if (object === current) {
|
|
966
|
-
hasFoundCurrent = true;
|
|
967
|
-
continue;
|
|
968
|
-
}
|
|
969
|
-
const objBB = nodeBoundsById.get(object.id);
|
|
970
|
-
if (!objBB)
|
|
971
|
-
continue;
|
|
972
|
-
const objBounds = { x: objBB.x, y: objBB.y, w: objBB.w, h: objBB.h };
|
|
973
|
-
const currBounds = { x: currBB.x, y: currBB.y, w: currBB.w, h: currBB.h };
|
|
974
|
-
if (!isValidDestination(objBounds, currBounds, direction, compareCenters))
|
|
975
|
-
continue;
|
|
976
|
-
inContact = calcInContact(objBounds, currBounds, direction);
|
|
977
|
-
if (nextInContact && !inContact)
|
|
978
|
-
continue;
|
|
979
|
-
distance = calcDistanceAngleWeighted(objBounds, currBounds, direction);
|
|
980
|
-
if (distance == 0 && !hasFoundCurrent)
|
|
981
|
-
continue;
|
|
982
|
-
// Make sure incontact flag have highest precedence
|
|
983
|
-
if ((!nextInContact && inContact) ||
|
|
984
|
-
(distance < nextDistance && ((nextInContact && inContact) || !nextInContact))) {
|
|
985
|
-
nextDistance = distance;
|
|
986
|
-
nextObject = object;
|
|
987
|
-
nextInContact = inContact;
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
return nextObject;
|
|
991
|
-
}
|
|
992
|
-
/**
|
|
993
|
-
* Get next navigavle link depending on direction - clockwise or conter clockwise.
|
|
994
|
-
* The decision is made based on location of nodes centers rather than link paths or link angles.
|
|
995
|
-
*/
|
|
996
|
-
function getNextNavigableLink(direction, listOfNodes, currentLink, listOfLinks) {
|
|
997
|
-
if (!listOfLinks)
|
|
998
|
-
return currentLink;
|
|
999
|
-
if (!currentLink)
|
|
1000
|
-
return listOfLinks[0];
|
|
1001
|
-
const keyboardFocusNode = currentKeyboardFocusNode.current;
|
|
1002
|
-
const nodeId = keyboardFocusNode ? keyboardFocusNode : currentLink.startNode;
|
|
1003
|
-
const node = getNodeDetailFromInfo({ id: nodeId, isNode: true }, listOfNodes);
|
|
1004
|
-
if (!node)
|
|
1005
|
-
return currentLink;
|
|
1006
|
-
const adjLinks = getNavigableLinksForNodeId(node.id, listOfLinks);
|
|
1007
|
-
listOfLinks = adjLinks;
|
|
1008
|
-
const linksWithSortingAttributes = addSortingAttributes(node, listOfLinks, listOfNodes, nodeBoundsById);
|
|
1009
|
-
linksWithSortingAttributes.sort(getLinkComparator());
|
|
1010
|
-
//clockwise direction
|
|
1011
|
-
const bForward = direction == 'down' ? true : false;
|
|
1012
|
-
let index = 0;
|
|
1013
|
-
for (let i = 0; i < linksWithSortingAttributes.length; i++) {
|
|
1014
|
-
const link = linksWithSortingAttributes[i];
|
|
1015
|
-
if (link.id === currentLink.id) {
|
|
1016
|
-
if (bForward)
|
|
1017
|
-
index = i == linksWithSortingAttributes.length - 1 ? 0 : i + 1;
|
|
1018
|
-
else
|
|
1019
|
-
index = i == 0 ? linksWithSortingAttributes.length - 1 : i - 1;
|
|
1020
|
-
break;
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
return linksWithSortingAttributes[index];
|
|
1024
|
-
}
|
|
1025
|
-
/**
|
|
1026
|
-
* Returns the link detail when a node to link navigation occurs
|
|
1027
|
-
*/
|
|
1028
|
-
function navigateFromNodeToLink(listOfLinks, event, node) {
|
|
1029
|
-
if (!node)
|
|
1030
|
-
return undefined;
|
|
1031
|
-
const adjLinks = getNavigableLinksForNodeId(node.id, listOfLinks);
|
|
1032
|
-
if (adjLinks.length < 1)
|
|
1033
|
-
return undefined;
|
|
1034
|
-
let link = adjLinks[0];
|
|
1035
|
-
const nodeBB = nodeBoundsById.get(node.id);
|
|
1036
|
-
let object, currNode, currNodeBB, currNodeBBCenterX;
|
|
1037
|
-
const nodeCenterX = nodeBB.x + nodeBB.w / 2;
|
|
1038
|
-
currentKeyboardFocusNode.current = node.id;
|
|
1039
|
-
for (let i = 0; i < adjLinks.length; i++) {
|
|
1040
|
-
object = adjLinks[i];
|
|
1041
|
-
currNode = object.startNode === node.id ? object.endNode : object.startNode;
|
|
1042
|
-
currNodeBB = nodeBoundsById.get(currNode);
|
|
1043
|
-
currNodeBBCenterX = currNodeBB.x + currNodeBB.w / 2;
|
|
1044
|
-
if (
|
|
1045
|
-
// equivalent of ≤ and ≥
|
|
1046
|
-
(event.altKey && event.code === 'Comma' && currNodeBBCenterX <= nodeCenterX) ||
|
|
1047
|
-
(event.altKey && event.code === 'Period' && currNodeBBCenterX >= nodeCenterX)) {
|
|
1048
|
-
link = object;
|
|
1049
|
-
break;
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
return { id: link.id, isNode: false };
|
|
1053
|
-
}
|
|
1054
|
-
/**
|
|
1055
|
-
* Returns the node detail when a link to node navigation occurs
|
|
1056
|
-
*/
|
|
1057
|
-
function navigateFromLinkToNode(linkId, event) {
|
|
1058
|
-
const key = event.key;
|
|
1059
|
-
const linkData = linkIdToDataMap.get(linkId);
|
|
1060
|
-
const startNodeBB = nodeBoundsById.get(linkData.startNode);
|
|
1061
|
-
const endNodeBB = nodeBoundsById.get(linkData.endNode);
|
|
1062
|
-
if (!startNodeBB || !endNodeBB)
|
|
1063
|
-
return undefined;
|
|
1064
|
-
const startNodeCenterX = startNodeBB.x + startNodeBB.w / 2;
|
|
1065
|
-
const endNodeCenterX = endNodeBB.x + endNodeBB.w / 2;
|
|
1066
|
-
const newNode = (endNodeCenterX > startNodeCenterX && key === 'ArrowRight') ||
|
|
1067
|
-
(endNodeCenterX < startNodeCenterX && key === 'ArrowLeft')
|
|
1068
|
-
? linkData.endNode
|
|
1069
|
-
: linkData.startNode;
|
|
1070
|
-
return { id: newNode, isNode: true };
|
|
1071
|
-
}
|
|
1072
|
-
return {
|
|
1073
|
-
isNode: (itemInfo) => {
|
|
1074
|
-
let node, link;
|
|
1075
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
1076
|
-
node = nodes[i];
|
|
1077
|
-
link = links[i];
|
|
1078
|
-
if (itemInfo.id === node.id) {
|
|
1079
|
-
return true;
|
|
1080
|
-
}
|
|
1081
|
-
if (itemInfo.id === link.id) {
|
|
1082
|
-
return true;
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
return false;
|
|
1086
|
-
},
|
|
1087
|
-
getNextNavigableNode,
|
|
1088
|
-
getNextNavigableLink,
|
|
1089
|
-
navigateFromNodeToLink,
|
|
1090
|
-
navigateFromLinkToNode
|
|
1091
|
-
};
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
const DEFAULT_KB_PAN = 15;
|
|
1095
|
-
const DEFAULT_KB_ZOOM = 0.15;
|
|
1096
|
-
function useEvents(touchResponse, initNode, nodes, links, nodeBounds, linkIdToDataMap, nodeIdToDataMap, nodeIdToIndexMap, width, height, maxZoom, onItemHover, onItemFocus, kbPanCallback, kbZoomCallback) {
|
|
1097
|
-
const { getNextNavigableNode, getNextNavigableLink, navigateFromNodeToLink, navigateFromLinkToNode } = useDiagramNavigation(nodes, links, nodeBounds, linkIdToDataMap);
|
|
1098
|
-
const [focusedItemInfo, setfocusedItemInfo] = hooks.useState({
|
|
1099
|
-
id: initNode.id,
|
|
1100
|
-
isNode: true
|
|
1101
|
-
});
|
|
1102
|
-
const [hoveredItemInfo, sethoveredItemInfo] = hooks.useState();
|
|
1103
|
-
const activeId = hooks.useRef();
|
|
1104
|
-
const cancelEvent = (event) => {
|
|
1105
|
-
event.preventDefault();
|
|
1106
|
-
event.stopPropagation();
|
|
1107
|
-
};
|
|
1108
|
-
const keyDownHandler = (event) => {
|
|
1109
|
-
const key = event.key;
|
|
1110
|
-
let eventConsumed = false;
|
|
1111
|
-
// tabbing out of the diagram
|
|
1112
|
-
if (key === 'TAB') {
|
|
1113
|
-
return;
|
|
1114
|
-
}
|
|
1115
|
-
// if this a switch from node to link or vice versa
|
|
1116
|
-
if (isChangeItemType(event)) {
|
|
1117
|
-
const nextItemInfo = focusedItemInfo.isNode
|
|
1118
|
-
? navigateFromNodeToLink(links, event, getNodeDetailFromInfo(focusedItemInfo, nodes))
|
|
1119
|
-
: navigateFromLinkToNode(focusedItemInfo.id, event);
|
|
1120
|
-
handleKeyboardInput(nextItemInfo);
|
|
1121
|
-
eventConsumed = true;
|
|
1122
|
-
}
|
|
1123
|
-
else if (isNavigationEvent(key)) {
|
|
1124
|
-
const nextItemInfo = handleKeyboardNavigationEvent(key);
|
|
1125
|
-
handleKeyboardInput(nextItemInfo);
|
|
1126
|
-
eventConsumed = true;
|
|
1127
|
-
}
|
|
1128
|
-
else {
|
|
1129
|
-
switch (key) {
|
|
1130
|
-
case 'PageUp': {
|
|
1131
|
-
kbPanCallback &&
|
|
1132
|
-
kbPanCallback({
|
|
1133
|
-
dPan: {
|
|
1134
|
-
dx: event.shiftKey ? -DEFAULT_KB_PAN : 0,
|
|
1135
|
-
dy: event.shiftKey ? 0 : -DEFAULT_KB_PAN
|
|
1136
|
-
}
|
|
1137
|
-
});
|
|
1138
|
-
eventConsumed = true;
|
|
1139
|
-
break;
|
|
1140
|
-
}
|
|
1141
|
-
case 'PageDown': {
|
|
1142
|
-
kbPanCallback &&
|
|
1143
|
-
kbPanCallback({
|
|
1144
|
-
dPan: {
|
|
1145
|
-
dx: event.shiftKey ? DEFAULT_KB_PAN : 0,
|
|
1146
|
-
dy: event.shiftKey ? 0 : DEFAULT_KB_PAN
|
|
1147
|
-
}
|
|
1148
|
-
});
|
|
1149
|
-
eventConsumed = true;
|
|
1150
|
-
eventConsumed = true;
|
|
1151
|
-
break;
|
|
1152
|
-
}
|
|
1153
|
-
case '+':
|
|
1154
|
-
case '=': {
|
|
1155
|
-
kbZoomCallback && kbZoomCallback({ dZoom: DEFAULT_KB_ZOOM });
|
|
1156
|
-
eventConsumed = true;
|
|
1157
|
-
break;
|
|
1158
|
-
}
|
|
1159
|
-
case '-':
|
|
1160
|
-
case '_': {
|
|
1161
|
-
kbZoomCallback && kbZoomCallback({ dZoom: -DEFAULT_KB_ZOOM });
|
|
1162
|
-
eventConsumed = true;
|
|
1163
|
-
break;
|
|
1164
|
-
}
|
|
1165
|
-
case '0': {
|
|
1166
|
-
if (event.ctrlKey && event.altKey) {
|
|
1167
|
-
const { centerX, centerY, zoom } = zoomAndCenterItemFromInfo(focusedItemInfo, linkIdToDataMap, nodeBounds, nodeIdToIndexMap, width, height, maxZoom);
|
|
1168
|
-
kbZoomCallback && kbZoomCallback({ nZoom: zoom });
|
|
1169
|
-
kbPanCallback && kbPanCallback({ nPan: { cx: centerX, cy: centerY } });
|
|
1170
|
-
}
|
|
1171
|
-
else {
|
|
1172
|
-
// zoom to fit
|
|
1173
|
-
kbZoomCallback && kbZoomCallback({});
|
|
1174
|
-
kbPanCallback && kbPanCallback({ center: true });
|
|
1175
|
-
}
|
|
1176
|
-
eventConsumed = true;
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
if (eventConsumed) {
|
|
1181
|
-
cancelEvent(event);
|
|
1182
|
-
}
|
|
1183
|
-
};
|
|
1184
|
-
const keyUpHandler = (event) => {
|
|
1185
|
-
const key = event.code;
|
|
1186
|
-
switch (key) {
|
|
1187
|
-
case 'Tab': {
|
|
1188
|
-
updatefocusedItemInfo({
|
|
1189
|
-
...focusedItemInfo,
|
|
1190
|
-
isCurrent: true,
|
|
1191
|
-
isFocusVisible: true
|
|
1192
|
-
});
|
|
1193
|
-
break;
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
};
|
|
1197
|
-
const blurHandler = () => {
|
|
1198
|
-
if (hoveredItemInfo != null || focusedItemInfo.isCurrent) {
|
|
1199
|
-
onItemFocus?.({ id: undefined, data: undefined });
|
|
1200
|
-
}
|
|
1201
|
-
const itemInfo = { ...focusedItemInfo, isCurrent: false, isFocusVisible: false };
|
|
1202
|
-
setfocusedItemInfo(itemInfo);
|
|
1203
|
-
};
|
|
1204
|
-
const onHover = (event) => {
|
|
1205
|
-
const itemInfo = getNavigableInfo(event.target);
|
|
1206
|
-
if (itemInfo && !isEqualItem(itemInfo, hoveredItemInfo)) {
|
|
1207
|
-
sethoveredItemInfo({ ...itemInfo, isCurrent: true });
|
|
1208
|
-
activeId.current = layoutUtils.getRandomId();
|
|
1209
|
-
setfocusedItemInfo({ ...focusedItemInfo, isCurrent: false });
|
|
1210
|
-
if (itemInfo.isNode) {
|
|
1211
|
-
onItemHover?.({
|
|
1212
|
-
id: itemInfo.id,
|
|
1213
|
-
type: 'node',
|
|
1214
|
-
data: nodeIdToDataMap.get(itemInfo.id)
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
else {
|
|
1218
|
-
onItemHover?.({
|
|
1219
|
-
id: itemInfo.id,
|
|
1220
|
-
type: 'link',
|
|
1221
|
-
data: linkIdToDataMap.get(itemInfo.id)
|
|
1222
|
-
});
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
};
|
|
1226
|
-
const onHoverLeave = () => {
|
|
1227
|
-
sethoveredItemInfo(undefined);
|
|
1228
|
-
activeId.current = undefined;
|
|
1229
|
-
onItemHover?.({ id: undefined, data: undefined });
|
|
1230
|
-
};
|
|
1231
|
-
const hoverHandlers = useVisHover.useVisHover(onHover, undefined, onHoverLeave, touchResponse);
|
|
1232
|
-
const pointerUpHandler = (event) => {
|
|
1233
|
-
const itemInfo = getNavigableInfo(event.target);
|
|
1234
|
-
if (itemInfo.id != null) {
|
|
1235
|
-
setfocusedItemInfo(itemInfo);
|
|
1236
|
-
activeId.current = layoutUtils.getRandomId();
|
|
1237
|
-
}
|
|
1238
|
-
};
|
|
1239
|
-
function updatefocusedItemInfo(itemInfo) {
|
|
1240
|
-
if (itemInfo.isNode) {
|
|
1241
|
-
onItemFocus?.({
|
|
1242
|
-
id: itemInfo.id,
|
|
1243
|
-
type: 'node',
|
|
1244
|
-
data: nodeIdToDataMap.get(itemInfo.id)
|
|
1245
|
-
});
|
|
1246
|
-
}
|
|
1247
|
-
else {
|
|
1248
|
-
onItemFocus?.({
|
|
1249
|
-
id: itemInfo.id,
|
|
1250
|
-
type: 'link',
|
|
1251
|
-
data: linkIdToDataMap.get(itemInfo.id)
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
activeId.current = layoutUtils.getRandomId();
|
|
1255
|
-
setfocusedItemInfo(itemInfo);
|
|
1256
|
-
}
|
|
1257
|
-
function handleKeyboardInput(item) {
|
|
1258
|
-
if (!item)
|
|
1259
|
-
return;
|
|
1260
|
-
if (!isEqualItem(item, focusedItemInfo)) {
|
|
1261
|
-
item.isCurrent = true;
|
|
1262
|
-
item.isFocusVisible = true;
|
|
1263
|
-
if (hoveredItemInfo) {
|
|
1264
|
-
sethoveredItemInfo({ ...hoveredItemInfo, isCurrent: false });
|
|
1265
|
-
}
|
|
1266
|
-
updatefocusedItemInfo(item);
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
function isNavigationEvent(key) {
|
|
1270
|
-
switch (key) {
|
|
1271
|
-
case 'ArrowDown':
|
|
1272
|
-
case 'ArrowUp':
|
|
1273
|
-
case 'ArrowRight':
|
|
1274
|
-
case 'ArrowLeft': {
|
|
1275
|
-
return true;
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
return false;
|
|
1279
|
-
}
|
|
1280
|
-
function isChangeItemType(event) {
|
|
1281
|
-
const key = event.code;
|
|
1282
|
-
// check if switching from node to link
|
|
1283
|
-
// equivalent of ≤ and ≥
|
|
1284
|
-
if (focusedItemInfo.isNode && event.altKey && (key === 'Period' || key === 'Comma')) {
|
|
1285
|
-
return true;
|
|
1286
|
-
// check if switching from link to node
|
|
1287
|
-
}
|
|
1288
|
-
else if (!focusedItemInfo.isNode && (key === 'ArrowLeft' || key === 'ArrowRight')) {
|
|
1289
|
-
return true;
|
|
1290
|
-
}
|
|
1291
|
-
return false;
|
|
1292
|
-
}
|
|
1293
|
-
function handleKeyboardNavigationEvent(key) {
|
|
1294
|
-
let direction = 'down';
|
|
1295
|
-
switch (key) {
|
|
1296
|
-
case 'ArrowDown': {
|
|
1297
|
-
direction = 'down';
|
|
1298
|
-
break;
|
|
1299
|
-
}
|
|
1300
|
-
case 'ArrowUp': {
|
|
1301
|
-
direction = 'up';
|
|
1302
|
-
break;
|
|
1303
|
-
}
|
|
1304
|
-
case 'ArrowRight': {
|
|
1305
|
-
direction = 'right';
|
|
1306
|
-
break;
|
|
1307
|
-
}
|
|
1308
|
-
case 'ArrowLeft': {
|
|
1309
|
-
direction = 'left';
|
|
1310
|
-
break;
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
if (focusedItemInfo.isNode) {
|
|
1314
|
-
const itemDetail = getNextNavigableNode(direction, true, getNodeDetailFromInfo(focusedItemInfo, nodes), nodes);
|
|
1315
|
-
return itemDetail ? { id: itemDetail.id, isNode: true } : focusedItemInfo;
|
|
1316
|
-
}
|
|
1317
|
-
else {
|
|
1318
|
-
const linkDetail = getLinkDetailFromInfo(focusedItemInfo, links);
|
|
1319
|
-
const itemDetail = getNextNavigableLink(direction, nodes, linkDetail, links);
|
|
1320
|
-
return itemDetail ? { id: itemDetail.id } : { id: focusedItemInfo.id };
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
return {
|
|
1324
|
-
focusedItemInfo,
|
|
1325
|
-
hoveredItemInfo,
|
|
1326
|
-
activeId: activeId.current,
|
|
1327
|
-
eventsProps: mergeProps.mergeProps(hoverHandlers, {
|
|
1328
|
-
onKeyUp: keyUpHandler,
|
|
1329
|
-
onKeyDown: keyDownHandler,
|
|
1330
|
-
onBlur: blurHandler,
|
|
1331
|
-
onPointerUp: pointerUpHandler
|
|
1332
|
-
})
|
|
1333
|
-
};
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
/**
|
|
1337
|
-
* Returns the datatip.
|
|
1338
|
-
* @param text The text string for the diagram item.
|
|
1339
|
-
* @param rootRef The ref for root of the diagram.
|
|
1340
|
-
* @param focusedItemBoundsRef The ref for focused item bounds.
|
|
1341
|
-
* @param focusedItemInfo The ItemInfo for focused item.
|
|
1342
|
-
* @returns
|
|
1343
|
-
*/
|
|
1344
|
-
const useDiagramDatatip = ({ touchResponse, datatip, focusedItemBoundsRef, focusedItemInfo, panState, zoom, width, nodesMap, linksMap, hoveredItem }) => {
|
|
1345
|
-
const { direction } = useUser.useUser();
|
|
1346
|
-
const isRtl = direction === 'rtl';
|
|
1347
|
-
const datatipC = getDatatipContent(nodesMap, linksMap, focusedItemInfo, hoveredItem, datatip);
|
|
1348
|
-
const elementBounds = focusedItemInfo?.isCurrent
|
|
1349
|
-
? {
|
|
1350
|
-
x: focusedItemBoundsRef.current.x * zoom + panState.panX,
|
|
1351
|
-
y: focusedItemBoundsRef.current.y * zoom + panState.panY,
|
|
1352
|
-
width: focusedItemBoundsRef.current.w * zoom,
|
|
1353
|
-
height: focusedItemBoundsRef.current.h * zoom
|
|
1354
|
-
}
|
|
1355
|
-
: undefined;
|
|
1356
|
-
const { datatipContent, datatipProps } = useDatatip.useDatatip({
|
|
1357
|
-
content: datatipC?.content,
|
|
1358
|
-
borderColor: datatipC?.borderColor,
|
|
1359
|
-
placement: 'top-start',
|
|
1360
|
-
offset: util.calculateOffset(isRtl, width, elementBounds),
|
|
1361
|
-
anchor: focusedItemInfo?.isCurrent ? 'element' : 'pointer',
|
|
1362
|
-
touchResponse
|
|
1363
|
-
});
|
|
1364
|
-
return { datatipContent: datatipContent, datatipProps: datatipProps };
|
|
1365
|
-
};
|
|
1366
|
-
|
|
1367
|
-
/**
|
|
1368
|
-
* @license
|
|
1369
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1370
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1371
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1372
|
-
* @ignore
|
|
1373
|
-
*/
|
|
1374
|
-
const usePointerGesture = ({ captureTargetRef, numPointers = 1, onPointerGestureDown, onPointerGestureMove, onPointerGestureEnd, onExtraneousPointerDown, isDisabled = false }) => {
|
|
1375
|
-
const activePointers = hooks.useRef([]);
|
|
1376
|
-
if (isDisabled) {
|
|
1377
|
-
activePointers.current = [];
|
|
1378
|
-
}
|
|
1379
|
-
const onPointerDown = (e) => {
|
|
1380
|
-
activePointers.current.push(e);
|
|
1381
|
-
if (activePointers.current.length === numPointers) {
|
|
1382
|
-
onPointerGestureDown && onPointerGestureDown({ pointers: activePointers.current });
|
|
1383
|
-
}
|
|
1384
|
-
else if (activePointers.current.length > numPointers) {
|
|
1385
|
-
onExtraneousPointerDown && onExtraneousPointerDown({ pointers: activePointers.current });
|
|
1386
|
-
}
|
|
1387
|
-
};
|
|
1388
|
-
const onPointerMove = (e) => {
|
|
1389
|
-
if (activePointers.current.length === 0)
|
|
1390
|
-
return;
|
|
1391
|
-
const index = activePointers.current.findIndex((pointerEvent) => pointerEvent.pointerId === e.pointerId);
|
|
1392
|
-
if (index === -1)
|
|
1393
|
-
return;
|
|
1394
|
-
activePointers.current[index] = e;
|
|
1395
|
-
if (activePointers.current.length === numPointers) {
|
|
1396
|
-
activePointers.current.forEach((e) => captureTargetRef.current.setPointerCapture(e.pointerId));
|
|
1397
|
-
onPointerGestureMove && onPointerGestureMove({ pointers: activePointers.current });
|
|
1398
|
-
}
|
|
1399
|
-
};
|
|
1400
|
-
const onPointerUp = (e) => {
|
|
1401
|
-
const index = activePointers.current.findIndex((pointerEvent) => pointerEvent.pointerId === e.pointerId);
|
|
1402
|
-
if (index === -1)
|
|
1403
|
-
return;
|
|
1404
|
-
activePointers.current[index] = e;
|
|
1405
|
-
if (activePointers.current.length === numPointers) {
|
|
1406
|
-
onPointerGestureEnd && onPointerGestureEnd({ pointers: activePointers.current });
|
|
1407
|
-
}
|
|
1408
|
-
activePointers.current.splice(index, 1);
|
|
1409
|
-
};
|
|
1410
|
-
const onPointerCancel = onPointerUp;
|
|
1411
|
-
const onPointerLeave = onPointerUp;
|
|
1412
|
-
return isDisabled
|
|
1413
|
-
? {}
|
|
1414
|
-
: {
|
|
1415
|
-
onPointerDown,
|
|
1416
|
-
onPointerMove,
|
|
1417
|
-
onPointerUp,
|
|
1418
|
-
onPointerCancel,
|
|
1419
|
-
onPointerLeave
|
|
1420
|
-
};
|
|
1421
|
-
};
|
|
1422
|
-
|
|
1423
|
-
/**
|
|
1424
|
-
* @license
|
|
1425
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1426
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1427
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1428
|
-
* @ignore
|
|
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 = hooks.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 || panX < panBounds.minX ? previousPan.panX : panX,
|
|
1489
|
-
panY: panY > panBounds.maxY || panY < panBounds.minY ? previousPan.panY : 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, panType, zoom, minZoom, initPanZoomState) => {
|
|
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 = hooks.useRef({ panX: 0, panY: 0 });
|
|
1574
|
-
const initialPanState = hooks.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
|
-
/**
|
|
1673
|
-
* @license
|
|
1674
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1675
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1676
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1677
|
-
* @ignore
|
|
1678
|
-
*/
|
|
1679
|
-
const getMidpoint = (p1, p2) => ({ x: (p1.x + p2.x) / 2, y: (p1.y + p2.y) / 2 });
|
|
1680
|
-
const getDistance = (p1, p2) => Math.sqrt((p2.x - p1.x) ** 2 + (p2.y - p2.y) ** 2);
|
|
1681
|
-
const usePinch = ({ captureTargetRef, onPinchZoomStart, onPinchZoomChange, onPinchZoomEnd, isDisabled = false }) => {
|
|
1682
|
-
const origin = hooks.useRef({ x: -1, y: -1 });
|
|
1683
|
-
const prevDistance = hooks.useRef(-1);
|
|
1684
|
-
const reset = () => {
|
|
1685
|
-
origin.current = { x: -1, y: -1 };
|
|
1686
|
-
prevDistance.current = -1;
|
|
1687
|
-
};
|
|
1688
|
-
if (isDisabled)
|
|
1689
|
-
reset();
|
|
1690
|
-
const pinchProps = usePointerGesture({
|
|
1691
|
-
captureTargetRef,
|
|
1692
|
-
numPointers: 2, // Pinch gesture requires 2 pointers
|
|
1693
|
-
onPointerGestureDown: ({ pointers: [pointer1, pointer2] }) => {
|
|
1694
|
-
const p1 = { x: pointer1.offsetX, y: pointer1.offsetY };
|
|
1695
|
-
const p2 = { x: pointer2.offsetX, y: pointer2.offsetY };
|
|
1696
|
-
origin.current = getMidpoint(p1, p2);
|
|
1697
|
-
prevDistance.current = getDistance(p1, p2);
|
|
1698
|
-
onPinchZoomStart &&
|
|
1699
|
-
onPinchZoomStart({
|
|
1700
|
-
origin: origin.current,
|
|
1701
|
-
delta: 0
|
|
1702
|
-
});
|
|
1703
|
-
},
|
|
1704
|
-
onPointerGestureMove: ({ pointers: [pointer1, pointer2] }) => {
|
|
1705
|
-
const p1 = { x: pointer1.offsetX, y: pointer1.offsetY };
|
|
1706
|
-
const p2 = { x: pointer2.offsetX, y: pointer2.offsetY };
|
|
1707
|
-
const distance = getDistance(p1, p2);
|
|
1708
|
-
const delta = distance - prevDistance.current;
|
|
1709
|
-
prevDistance.current = distance;
|
|
1710
|
-
onPinchZoomChange &&
|
|
1711
|
-
onPinchZoomChange({
|
|
1712
|
-
origin: origin.current,
|
|
1713
|
-
delta
|
|
1714
|
-
});
|
|
1715
|
-
},
|
|
1716
|
-
onPointerGestureEnd: () => {
|
|
1717
|
-
reset();
|
|
1718
|
-
onPinchZoomEnd && onPinchZoomEnd();
|
|
1719
|
-
}
|
|
1720
|
-
});
|
|
1721
|
-
return isDisabled ? {} : pinchProps;
|
|
1722
|
-
};
|
|
1723
|
-
|
|
1724
|
-
const usePinchZoom = ({ captureTargetRef, zooming, minZoom, maxZoom, zoomValue, onZoom }) => {
|
|
1725
|
-
const pinchProps = usePinch({
|
|
1726
|
-
captureTargetRef,
|
|
1727
|
-
onPinchZoomChange: ({ delta }) => {
|
|
1728
|
-
const newZoom = zoomValue * (1 + ZOOM_INCREMENT * delta);
|
|
1729
|
-
zoom(newZoom, zoomValue, minZoom, maxZoom, onZoom);
|
|
1730
|
-
},
|
|
1731
|
-
isDisabled: zooming === 'off'
|
|
1732
|
-
});
|
|
1733
|
-
return pinchProps;
|
|
1734
|
-
};
|
|
1735
|
-
|
|
1736
|
-
const usePanZoom = ({ props, captureTargetRef, width, height, contentBounds }) => {
|
|
1737
|
-
const [cursor, setCursor] = hooks.useState();
|
|
1738
|
-
const zoomProps = getZoomProps(props, width, height, contentBounds);
|
|
1739
|
-
const panProps = getPanProps(props, contentBounds);
|
|
1740
|
-
const panBounds = hooks.useRef();
|
|
1741
|
-
const prevZoom = hooks.useRef();
|
|
1742
|
-
const panning = hooks.useRef();
|
|
1743
|
-
const initPanZoomState = hooks.useRef({
|
|
1744
|
-
zoom: props.zoomValue || 0,
|
|
1745
|
-
centerX: props.centerX,
|
|
1746
|
-
centerY: props.centerY
|
|
1747
|
-
});
|
|
1748
|
-
if (contentBounds.w !== Infinity &&
|
|
1749
|
-
(zoomProps.zoomValue !== prevZoom.current || panProps.panning !== panning.current)) {
|
|
1750
|
-
panBounds.current = getPanBounds(width, height, contentBounds, panProps.panning, zoomProps.zoomValue, zoomProps.minZoom, initPanZoomState.current);
|
|
1751
|
-
prevZoom.current = zoomProps.zoomValue;
|
|
1752
|
-
panning.current = panProps.panning;
|
|
1753
|
-
}
|
|
1754
|
-
const dragPanProps = useDragPan({
|
|
1755
|
-
panProps: panProps,
|
|
1756
|
-
captureTargetRef: captureTargetRef,
|
|
1757
|
-
panBounds: panBounds.current,
|
|
1758
|
-
zoom: zoomProps.zoomValue,
|
|
1759
|
-
width,
|
|
1760
|
-
height,
|
|
1761
|
-
onDragPanStart: () => setCursor('grabbing'),
|
|
1762
|
-
onDragPanEnd: () => setCursor('auto')
|
|
1763
|
-
});
|
|
1764
|
-
//dZoom or nZoom is required
|
|
1765
|
-
const kbZoomCallback = (props) => {
|
|
1766
|
-
const newZoom = props.dZoom
|
|
1767
|
-
? zoomProps.zoomValue + props.dZoom
|
|
1768
|
-
: getZoomToFitZoom(width, height, contentBounds);
|
|
1769
|
-
zoom(props.nZoom ? props.nZoom : newZoom, zoomProps.zoomValue, zoomProps.minZoom, zoomProps.maxZoom, zoomProps.onZoom);
|
|
1770
|
-
};
|
|
1771
|
-
const prevPanState = hooks.useRef({ panX: 0, panY: 0 });
|
|
1772
|
-
// dPan or nPan is required
|
|
1773
|
-
const kbPanCallback = (props) => {
|
|
1774
|
-
let centerX;
|
|
1775
|
-
let centerY;
|
|
1776
|
-
if (props.center) {
|
|
1777
|
-
centerX = contentBounds.x + contentBounds.w / 2;
|
|
1778
|
-
centerY = contentBounds.y + contentBounds.h / 2;
|
|
1779
|
-
}
|
|
1780
|
-
else if (props.dPan) {
|
|
1781
|
-
centerX = panProps.centerX + props.dPan.dx;
|
|
1782
|
-
centerY = panProps.centerY + props.dPan.dy;
|
|
1783
|
-
}
|
|
1784
|
-
else {
|
|
1785
|
-
centerX = props.nPan.cx;
|
|
1786
|
-
centerY = props.nPan.cy;
|
|
1787
|
-
}
|
|
1788
|
-
const panValues = centerXYToPanXY(centerX, centerY, zoomProps.zoomValue, width, height);
|
|
1789
|
-
const { newPan } = pan(prevPanState.current, panValues, panProps.panDirection, zoomProps.zoomValue, width, height, panBounds.current, panProps.onPan);
|
|
1790
|
-
prevPanState.current = newPan;
|
|
1791
|
-
};
|
|
1792
|
-
const wheelZoomProps = useWheelZoom(zoomProps);
|
|
1793
|
-
const pinchZoomProps = usePinchZoom({
|
|
1794
|
-
captureTargetRef,
|
|
1795
|
-
zooming: zoomProps.zooming,
|
|
1796
|
-
minZoom: zoomProps.minZoom,
|
|
1797
|
-
maxZoom: zoomProps.maxZoom,
|
|
1798
|
-
zoomValue: zoomProps.zoomValue,
|
|
1799
|
-
onZoom: zoomProps.onZoom
|
|
1800
|
-
});
|
|
1801
|
-
const panZoomProps = mergeProps.mergeProps(dragPanProps, wheelZoomProps, pinchZoomProps);
|
|
1802
|
-
return {
|
|
1803
|
-
panZoomProps,
|
|
1804
|
-
cursor,
|
|
1805
|
-
centerX: panProps.centerX,
|
|
1806
|
-
centerY: panProps.centerY,
|
|
1807
|
-
zoomValue: zoomProps.zoomValue,
|
|
1808
|
-
kbPanCallback: panProps.panning !== 'off' ? kbPanCallback : undefined,
|
|
1809
|
-
kbZoomCallback: zoomProps.zooming !== 'off' ? kbZoomCallback : undefined
|
|
1810
|
-
};
|
|
1811
|
-
};
|
|
1812
|
-
|
|
1813
|
-
function useDiagramSelection({ selectedIds, selectionMode, nodeMap, linkMap, focusedItemInfo, onSelectionChange, rootRef }) {
|
|
1814
|
-
const nodeIdToIndexMap = nodeMap.itemIdToIndexMap;
|
|
1815
|
-
const nodeIndexToIdMap = nodeMap.itemIndexToIdMap;
|
|
1816
|
-
const linkIdToIndexMap = linkMap.itemIdToIndexMap;
|
|
1817
|
-
const linkIndexToIdMap = linkMap.itemIndexToIdMap;
|
|
1818
|
-
const encodeNodeId = (id) => `N_${nodeIdToIndexMap.get(id)}`;
|
|
1819
|
-
const decodeNodeId = (id) => nodeIndexToIdMap.get(Number(id.slice(2)));
|
|
1820
|
-
const encodeLinkId = (id) => `L_${linkIdToIndexMap.get(id)}`;
|
|
1821
|
-
const decodeLinkId = (id) => linkIndexToIdMap.get(Number(id.slice(2)));
|
|
1822
|
-
const encodedNodesSelection = selectedIds.nodes ? selectedIds.nodes.map(encodeNodeId) : [];
|
|
1823
|
-
const encodedLinksSelection = selectedIds.links ? selectedIds.links.map(encodeLinkId) : [];
|
|
1824
|
-
const encodedSelection = [...encodedNodesSelection, ...encodedLinksSelection];
|
|
1825
|
-
const idExtracter = (event) => {
|
|
1826
|
-
// return encodeNodeId(id) or encodeLinkId(id) depending on node or link selection or undefined if clicked on empty space
|
|
1827
|
-
const info = event.type === 'keyup'
|
|
1828
|
-
? focusedItemInfo
|
|
1829
|
-
: getNavigableInfo(event.target, rootRef);
|
|
1830
|
-
return info.id !== undefined
|
|
1831
|
-
? info.isNode
|
|
1832
|
-
? encodeNodeId(info.id)
|
|
1833
|
-
: encodeLinkId(info.id)
|
|
1834
|
-
: undefined;
|
|
1835
|
-
};
|
|
1836
|
-
const onEncodedSelectionChange = (detail) => {
|
|
1837
|
-
const newSelectedNodeIds = detail.ids
|
|
1838
|
-
.filter((encId) => encId[0] === 'N')
|
|
1839
|
-
.map((encId) => decodeNodeId(encId));
|
|
1840
|
-
const newSelectedLinkIds = detail.ids
|
|
1841
|
-
.filter((encId) => encId[0] === 'L')
|
|
1842
|
-
.map((encId) => decodeLinkId(encId));
|
|
1843
|
-
const nodeData = newSelectedNodeIds.map((selectedId) => {
|
|
1844
|
-
return nodeMap.itemIdToDataMap.get(selectedId);
|
|
1845
|
-
});
|
|
1846
|
-
const linkData = newSelectedLinkIds.map((selectedId) => {
|
|
1847
|
-
return linkMap.itemIdToDataMap.get(selectedId);
|
|
1848
|
-
});
|
|
1849
|
-
return (onSelectionChange &&
|
|
1850
|
-
onSelectionChange({
|
|
1851
|
-
nodes: newSelectedNodeIds,
|
|
1852
|
-
links: newSelectedLinkIds,
|
|
1853
|
-
nodeData,
|
|
1854
|
-
linkData
|
|
1855
|
-
}));
|
|
1856
|
-
};
|
|
1857
|
-
const getDataById = (id) => {
|
|
1858
|
-
let data;
|
|
1859
|
-
if (id[0] === 'N') {
|
|
1860
|
-
const nodeId = decodeNodeId(id);
|
|
1861
|
-
data = nodeMap.itemIdToDataMap.get(nodeId);
|
|
1862
|
-
}
|
|
1863
|
-
else if (id[0] === 'L') {
|
|
1864
|
-
const linkId = decodeLinkId(id);
|
|
1865
|
-
data = linkMap.itemIdToDataMap.get(linkId);
|
|
1866
|
-
}
|
|
1867
|
-
return data;
|
|
1868
|
-
};
|
|
1869
|
-
const { selectionContent, selectionProps } = useSelection.useSelection({
|
|
1870
|
-
selection: encodedSelection,
|
|
1871
|
-
idExtracter,
|
|
1872
|
-
selectionMode,
|
|
1873
|
-
getDataById,
|
|
1874
|
-
onChange: onEncodedSelectionChange
|
|
1875
|
-
});
|
|
1876
|
-
return { selectionContent, selectionProps };
|
|
1877
|
-
}
|
|
1878
|
-
|
|
1879
|
-
function DiagramWithDimensions({ nodes = [], links = [], width, height, selectedIds = {}, selectionMode = 'none', layout, nodeRenderer, linkRenderer, onSelectionChange, onItemHover, onItemFocus, highlightedIds = {}, datatip, ...otherProps }) {
|
|
1880
|
-
const focusedItemBoundsRef = hooks.useRef(null);
|
|
1881
|
-
const rootRef = hooks.useRef(null);
|
|
1882
|
-
//TODO JET-62563 change bounds to a MAP
|
|
1883
|
-
const [bounds, setBounds] = hooks.useState([]);
|
|
1884
|
-
const [combinedLabelBounds, setCombinedLabelBounds] = hooks.useState();
|
|
1885
|
-
const { direction } = useUser.useUser();
|
|
1886
|
-
const diagramNodes = nodes;
|
|
1887
|
-
const nodeMap = createItemMap(diagramNodes);
|
|
1888
|
-
const nodeIdToDataMap = nodeMap.itemIdToDataMap;
|
|
1889
|
-
const diagramLinks = filterLinksWithNoEndNodes(links, nodeIdToDataMap);
|
|
1890
|
-
const linkMap = createItemMap(diagramLinks);
|
|
1891
|
-
const linkIdToDataMap = linkMap.itemIdToDataMap;
|
|
1892
|
-
const resizeThrottling = hooks.useRef(false);
|
|
1893
|
-
const newDimensions = getDimensionsFromBounds(bounds);
|
|
1894
|
-
const { textMeasureContent, getTextDimensions } = useTextDimensions.useTextDimensions();
|
|
1895
|
-
const labelDimensions = hooks.useRef(new Map());
|
|
1896
|
-
const nodeLabelPosRef = hooks.useRef([]);
|
|
1897
|
-
const linkLabelPosRef = hooks.useRef([]);
|
|
1898
|
-
const contentBounds = getContentBounds(bounds, combinedLabelBounds);
|
|
1899
|
-
const { panZoomProps, cursor, centerX, centerY, zoomValue, kbPanCallback, kbZoomCallback } = usePanZoom({
|
|
1900
|
-
props: otherProps,
|
|
1901
|
-
captureTargetRef: rootRef,
|
|
1902
|
-
width: width,
|
|
1903
|
-
height: height,
|
|
1904
|
-
contentBounds
|
|
1905
|
-
});
|
|
1906
|
-
const { touchResponse, touchResponseStyle } = useVisTouchResponse.useVisTouchResponse({
|
|
1907
|
-
type: 'auto',
|
|
1908
|
-
supportsTouchDragGestures: otherProps.zooming === 'on' || (!!otherProps.panning && otherProps.panning !== 'off'),
|
|
1909
|
-
rootRef
|
|
1910
|
-
});
|
|
1911
|
-
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);
|
|
1912
|
-
const { selectionProps, selectionContent } = useDiagramSelection({
|
|
1913
|
-
selectedIds,
|
|
1914
|
-
selectionMode,
|
|
1915
|
-
nodeMap,
|
|
1916
|
-
linkMap,
|
|
1917
|
-
focusedItemInfo,
|
|
1918
|
-
onSelectionChange,
|
|
1919
|
-
rootRef
|
|
1920
|
-
});
|
|
1921
|
-
// This is for the datatip kb position
|
|
1922
|
-
if (focusedItemInfo && bounds.length > 0) {
|
|
1923
|
-
focusedItemBoundsRef.current = getFocusedItemBounds(focusedItemInfo, bounds, diagramLinks, nodeMap.itemIdToIndexMap, linkMap.itemIdToIndexMap);
|
|
1924
|
-
}
|
|
1925
|
-
const { datatipContent, datatipProps: { 'aria-describedby': datatipAriaDescribedby, ...datatipProps } } = useDiagramDatatip({
|
|
1926
|
-
touchResponse,
|
|
1927
|
-
datatip,
|
|
1928
|
-
focusedItemInfo,
|
|
1929
|
-
focusedItemBoundsRef,
|
|
1930
|
-
panState: centerXYToPanXY(centerX, centerY, zoomValue, width, height),
|
|
1931
|
-
zoom: zoomValue,
|
|
1932
|
-
width: width,
|
|
1933
|
-
nodesMap: nodeIdToDataMap,
|
|
1934
|
-
linksMap: linkIdToDataMap,
|
|
1935
|
-
hoveredItem: hoveredItemInfo
|
|
1936
|
-
});
|
|
1937
|
-
const style = {
|
|
1938
|
-
width: width,
|
|
1939
|
-
height: height,
|
|
1940
|
-
cursor: cursor,
|
|
1941
|
-
...touchResponseStyle
|
|
1942
|
-
};
|
|
1943
|
-
const states = hooks.useRef();
|
|
1944
|
-
const previousState = states.current // states.current is previous state
|
|
1945
|
-
? states.current
|
|
1946
|
-
: {
|
|
1947
|
-
selectedNodeIds: [],
|
|
1948
|
-
selectedLinkIds: [],
|
|
1949
|
-
focusedId: undefined,
|
|
1950
|
-
hoveredId: undefined,
|
|
1951
|
-
activeId: undefined,
|
|
1952
|
-
highlightedIds: [],
|
|
1953
|
-
zoom: 0
|
|
1954
|
-
};
|
|
1955
|
-
states.current = {
|
|
1956
|
-
// update states to new state
|
|
1957
|
-
selectedNodeIds: selectedIds.nodes ?? [],
|
|
1958
|
-
selectedLinkIds: selectedIds.links ?? [],
|
|
1959
|
-
focusedId: focusedItemInfo.isCurrent && focusedItemInfo.isFocusVisible ? focusedItemInfo.id : undefined,
|
|
1960
|
-
hoveredId: hoveredItemInfo?.isCurrent ? hoveredItemInfo.id : undefined,
|
|
1961
|
-
activeId,
|
|
1962
|
-
highlightedIds: combineIds(highlightedIds.nodes, highlightedIds.links),
|
|
1963
|
-
zoom: zoomValue
|
|
1964
|
-
};
|
|
1965
|
-
const mergedEventProps = mergeProps.mergeProps(panZoomProps, eventsProps, selectionProps, datatipProps);
|
|
1966
|
-
// Called anytime node changes size
|
|
1967
|
-
const onNodeSizeChanged = (nodeWidth, nodeHeight, idx) => {
|
|
1968
|
-
newDimensions[idx] = { w: nodeWidth, h: nodeHeight };
|
|
1969
|
-
if (resizeThrottling.current) {
|
|
1970
|
-
return;
|
|
1971
|
-
}
|
|
1972
|
-
resizeThrottling.current = true;
|
|
1973
|
-
// performs layout at the next available animation frame when all measurements should be ready
|
|
1974
|
-
window.requestAnimationFrame(() => {
|
|
1975
|
-
const { labelDims, layoutJSON } = constructLayoutJSON(diagramNodes, nodeIdToDataMap, linkIdToDataMap, newDimensions, width, height, getTextDimensions);
|
|
1976
|
-
labelDimensions.current = labelDims;
|
|
1977
|
-
const { nodePoints, nodeLabelPos, linkLabelPos } = deconstructLayoutJSON(layout(layoutJSON), diagramNodes, diagramLinks);
|
|
1978
|
-
nodeLabelPosRef.current = nodeLabelPos;
|
|
1979
|
-
linkLabelPosRef.current = linkLabelPos;
|
|
1980
|
-
const nodeBounds = mergeDimensions(newDimensions, nodePoints);
|
|
1981
|
-
setBounds(nodeBounds);
|
|
1982
|
-
const labelBounds = getAllLabelBounds(labelDims, diagramNodes, diagramLinks, nodeLabelPos, linkLabelPos, direction === 'rtl');
|
|
1983
|
-
setCombinedLabelBounds(labelBounds);
|
|
1984
|
-
resizeThrottling.current = false;
|
|
1985
|
-
});
|
|
1986
|
-
};
|
|
1987
|
-
return (jsxRuntime.jsxs("div", { ref: rootRef, class: UNSAFE_Diagram_themes_DiagramStyles_css.outerStyles, ...mergedEventProps, style: style, tabIndex: 0, role: "application", "aria-label": otherProps['aria-label'], "aria-labelledby": otherProps['aria-labelledby'], "aria-describedby": stringUtils.merge([otherProps['aria-describedby'], datatipAriaDescribedby]), "aria-activedescendant": activeId, children: [getTextDimensions ? (jsxRuntime.jsx(DiagramPanZoomContainer, { centerX: centerX, centerY: centerY, zoom: zoomValue, width: width, height: height, children: jsxRuntime.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' ||
|
|
1988
|
-
!!(selectedIds?.nodes && selectedIds.nodes.length > 0) ||
|
|
1989
|
-
!!(selectedIds?.links && selectedIds.links.length > 0) }) })) : undefined, textMeasureContent, datatipContent, selectionContent] }));
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
-
/**
|
|
1993
|
-
* Diagrams are used to display a set of nodes and the links between them.
|
|
1994
|
-
*/
|
|
1995
|
-
function Diagram({ width, height, ...otherProps }) {
|
|
1996
|
-
return otherProps.nodes && otherProps.nodes.length > 0 ? (jsxRuntime.jsx(TrackResizeContainer.TrackResizeContainer, { width: width, height: height, class: UNSAFE_Diagram_themes_DiagramStyles_css.dimensionStyle, children: (width, height) => jsxRuntime.jsx(DiagramWithDimensions, { width: width, height: height, ...otherProps }) })) : null;
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
exports.Diagram = Diagram;
|
|
2000
|
-
//# sourceMappingURL=Diagram-522fe974.js.map
|