@oracle/oraclejet-preact 17.1.0 → 17.1.1
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-01322111.js +1 -1
- package/amd/BarChart-aba4a793.js +1 -1
- package/amd/BaseButton-51e50f77.js +1 -1
- package/amd/BaseCardView-c5624c8a.js +1 -1
- package/amd/BaseCardViewSelectionTest-9627e4ab.js +2 -0
- package/amd/BaseCardViewSelectionTest-9627e4ab.js.map +1 -0
- package/amd/BaseNavigationListItem-368284be.js +1 -1
- package/amd/ButtonSet-c389d5c7.js +1 -1
- package/amd/ButtonSetIconButton-141a8745.js +1 -1
- package/amd/Center-b449a95c.js +2 -0
- package/amd/Center-b449a95c.js.map +1 -0
- package/amd/Chart-1046ac5b.js +1 -1
- package/amd/CheckboxControl-74a7fead.js +1 -1
- package/amd/CheckboxRadioField-005a110c.js +1 -1
- package/amd/Chip-3062b3d3.js +1 -1
- package/amd/ClearIcon-c13664cd.js +1 -1
- package/amd/CollapseIcon-38899da0.js +1 -1
- package/amd/Collapsible-ba4eef8f.js +1 -1
- package/amd/CompactHelpSource-be790e15.js +1 -1
- package/amd/CompactLabelAssistance-7db2fde2.js +2 -0
- package/amd/CompactLabelAssistance-7db2fde2.js.map +1 -0
- package/amd/CompactUserAssistance-a7b3ffc0.js +1 -1
- package/amd/ComponentMessageContainer-3b691959.js +1 -1
- package/amd/ConveyorBeltItem-bc128f62.js +1 -1
- package/amd/DatePicker-d7802b3e.js +2 -0
- package/amd/DatePicker-d7802b3e.js.map +1 -0
- package/amd/DatePickerHeader-c03ca6b4.js +1 -1
- package/amd/Diagram-14fd94c3.js +2 -0
- package/amd/Diagram-14fd94c3.js.map +1 -0
- package/amd/Dialog-f6da299c.js +2 -0
- package/amd/Dialog-f6da299c.js.map +1 -0
- package/amd/DirectionalCollapseArrowIcon-1c72e459.js +1 -1
- package/amd/DirectionalExpandArrowIcon-198cec2b.js +1 -1
- package/amd/DragHandle-e4959d2b.js +1 -1
- package/amd/Dropdown-5f68516d.js +2 -0
- package/amd/Dropdown-5f68516d.js.map +1 -0
- package/amd/EnvironmentProvider-8f6fc388.js +2 -0
- package/amd/EnvironmentProvider-8f6fc388.js.map +1 -0
- package/amd/FilePicker-e13f405f.js +1 -1
- package/amd/Flex-56ecdf4c.js +2 -0
- package/amd/Flex-56ecdf4c.js.map +1 -0
- package/amd/Floating-a658b79c.js +2 -0
- package/amd/Floating-a658b79c.js.map +1 -0
- package/amd/FormLayout-c6f1fdff.js +1 -1
- package/amd/Gantt-7be8d8bc.js +1 -1
- package/amd/Grid-160f4885.js +2 -0
- package/amd/Grid-160f4885.js.map +1 -0
- package/amd/Gridlines-b1d59999.js +2 -0
- package/amd/Gridlines-b1d59999.js.map +1 -0
- package/amd/GroupLoadingIndicator-cd9192c9.js +1 -1
- package/amd/HighlightText-bd4c0101.js +2 -0
- package/amd/HighlightText-bd4c0101.js.map +1 -0
- package/amd/Icon-2d805acb.js +1 -1
- package/amd/IconButton-81c8463f.js +1 -1
- package/amd/IconMenuButton-3e3db121.js +1 -1
- package/amd/IconProgressButton-04979469.js +1 -1
- package/amd/IconSwitchButton-bc007cbd.js +1 -1
- package/amd/IconToggleButton-28960894.js +1 -1
- package/amd/IconUserAssistance-2f809060.js +2 -0
- package/amd/IconUserAssistance-2f809060.js.map +1 -0
- package/amd/Indexer-74c989ce.js +1 -1
- package/amd/InlineHelpSource-85961e81.js +1 -1
- package/amd/InlineUserAssistance-2a480664.js +1 -1
- package/amd/InputDateMask-9aba967d.js +1 -1
- package/amd/InputDatePicker-6167ff45.js +2 -0
- package/amd/InputDatePicker-6167ff45.js.map +1 -0
- package/amd/InputPassword-bf533999.js +1 -1
- package/amd/InputText-a4234d1f.js +1 -1
- package/amd/Label-a4172af7.js +1 -1
- package/amd/LabelValueLayout-194e64d9.js +1 -1
- package/amd/Layer-276d62e8.js +2 -0
- package/amd/Layer-276d62e8.js.map +1 -0
- package/amd/LayerHost-e95c5f30.js +2 -0
- package/amd/LayerHost-e95c5f30.js.map +1 -0
- package/amd/LayerManager-76fcfb58.js +2 -0
- package/amd/LayerManager-76fcfb58.js.map +1 -0
- package/amd/Legend-cd2f78b2.js +1 -1
- package/amd/LineAreaChart-07630832.js +2 -0
- package/amd/LineAreaChart-07630832.js.map +1 -0
- package/amd/Link-cb232696.js +1 -1
- package/amd/List-61d64cd6.js +1 -1
- package/amd/ListItemLayout-90873fb8.js +2 -0
- package/amd/ListItemLayout-90873fb8.js.map +1 -0
- package/amd/ListView-a49e52c3.js +1 -1
- package/amd/LiveRegion-8142ed0d.js +2 -0
- package/amd/LiveRegion-8142ed0d.js.map +1 -0
- package/amd/MaxLengthLiveRegion-8954fc30.js +2 -0
- package/amd/MaxLengthLiveRegion-8954fc30.js.map +1 -0
- package/amd/Menu-8f3a1e8c.js +2 -0
- package/amd/Menu-8f3a1e8c.js.map +1 -0
- package/amd/MenuButton-e4d7ec34.js +1 -1
- package/amd/MenuItem-44b2547b.js +1 -1
- package/amd/Message-1b166e4f.js +1 -1
- package/amd/MessageLayer-cf9265e0.js +2 -0
- package/amd/MessageLayer-cf9265e0.js.map +1 -0
- package/amd/MessageToast-7aba4a66.js +1 -1
- package/amd/MessagesManager-d6d43884.js +1 -1
- package/amd/MeterBar-90569d10.js +1 -1
- package/amd/MeterCircle-b14ff590.js +1 -1
- package/amd/Modal-36acfc12.js +2 -0
- package/amd/Modal-36acfc12.js.map +1 -0
- package/amd/MonthView-ac27389f.js +2 -0
- package/amd/MonthView-ac27389f.js.map +1 -0
- package/amd/NavigationListItem-1742f912.js +1 -1
- package/amd/NumberInputText-83ba7a58.js +1 -1
- package/amd/OverflowTabBarItem-4c4b75e0.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-98b54953.js +1 -1
- package/amd/PieChart-cbe2806f.js +2 -0
- package/amd/PieChart-cbe2806f.js.map +1 -0
- package/amd/Popup-956e6d7d.js +2 -0
- package/amd/Popup-956e6d7d.js.map +1 -0
- package/amd/ProgressBar-d7cfdb63.js +2 -0
- package/amd/ProgressBar-d7cfdb63.js.map +1 -0
- package/amd/ProgressButton-c98e276b.js +1 -1
- package/amd/ProgressButtonLabelLayout-3a78ba61.js +1 -1
- package/amd/ProgressCircle-1e4cefde.js +2 -0
- package/amd/ProgressCircle-1e4cefde.js.map +1 -0
- package/amd/RadioItem-ce699d94.js +1 -1
- package/amd/RatingGauge-138a7d8b.js +1 -1
- package/amd/ReadonlyTextFieldInput-608bddc1.js +1 -1
- package/amd/RemovableNavigationListItem-dd14305f.js +1 -1
- package/amd/RemovableTabBarItem-6a25d890.js +1 -1
- package/amd/ReorderableTabBar-e40ffae9.js +1 -1
- package/amd/RevealToggleIcon-c5b17f49.js +1 -1
- package/amd/SectionalLegend-5d4afed4.js +1 -1
- package/amd/SectionedContent-6031f8f7.js +2 -0
- package/amd/SectionedContent-6031f8f7.js.map +1 -0
- package/amd/SelectMultiple-1ff92cc3.js +1 -1
- package/amd/SelectSingle-641a4cac.js +1 -1
- package/amd/SelectionCard-062e1c6f.js +2 -0
- package/amd/SelectionCard-062e1c6f.js.map +1 -0
- package/amd/Selector-039f7481.js +1 -1
- package/amd/SelectorAll-53efae22.js +2 -0
- package/amd/SelectorAll-53efae22.js.map +1 -0
- package/amd/Sheet-e6308643.js +2 -0
- package/amd/Sheet-e6308643.js.map +1 -0
- package/amd/SplitMenuButton-09d7b66f.js +1 -1
- package/amd/StyledTextField-a51060bb.js +1 -1
- package/amd/Submenu-8cb31b61.js +1 -1
- package/amd/TabBar-1c002b5b.js +1 -1
- package/amd/TabBarItem-16383a92.js +1 -1
- package/amd/TabBarLayout-685ac295.js +1 -1
- package/amd/TabBarMixed-4e0326f5.js +1 -1
- package/amd/TabBarMixedSeparator-8c278254.js +2 -0
- package/amd/TabBarMixedSeparator-8c278254.js.map +1 -0
- package/amd/Table-986ae70c.js +1 -1
- package/amd/TagCloud-58b4a81b.js +1 -1
- package/amd/TextArea-916c5bb1.js +2 -0
- package/amd/TextArea-916c5bb1.js.map +1 -0
- package/amd/TextAreaAutosize-1f47b470.js +2 -0
- package/amd/TextAreaAutosize-1f47b470.js.map +1 -0
- package/amd/TextField-51daf13e.js +1 -1
- package/amd/TextFieldInput-d6645f5b.js +1 -1
- package/amd/Theme-redwood/theme.css +266 -266
- package/amd/Theme-stable/theme.css +240 -240
- package/amd/TimeComponentCanvas2D-2f1cede4.js +1 -1
- package/amd/Toolbar-e84c90ac.js +1 -1
- package/amd/TruncatingBadge-5b720ad3.js +2 -0
- package/amd/TruncatingBadge-5b720ad3.js.map +1 -0
- package/amd/TruncatingText-17a6d4b6.js +2 -0
- package/amd/TruncatingText-17a6d4b6.js.map +1 -0
- package/amd/UNSAFE_ActionCard.js +1 -1
- package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
- package/amd/UNSAFE_BarChart.js +1 -1
- package/amd/UNSAFE_BaseButton.js +1 -1
- package/amd/UNSAFE_Button.js +1 -1
- package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
- package/amd/UNSAFE_ButtonSet.js +1 -1
- package/amd/UNSAFE_ButtonSetButton.js +1 -1
- package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
- package/amd/UNSAFE_ButtonSetItem.js +1 -1
- package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
- package/amd/UNSAFE_ButtonSetSingle.js +1 -1
- package/amd/UNSAFE_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_IconProgressButton.js +1 -1
- package/amd/UNSAFE_IconToggleButton.js +1 -1
- package/amd/UNSAFE_Indexer.js +1 -1
- package/amd/UNSAFE_InputDateMask.js +1 -1
- package/amd/UNSAFE_InputDatePicker.js +1 -1
- package/amd/UNSAFE_InputPassword.js +1 -1
- package/amd/UNSAFE_InputSensitiveText.js +1 -1
- package/amd/UNSAFE_InputText.js +1 -1
- package/amd/UNSAFE_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_ProgressButton.js +1 -1
- package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
- package/amd/UNSAFE_ProgressCircle.js +1 -1
- package/amd/UNSAFE_RadioItem.js +1 -1
- package/amd/UNSAFE_RadioSet.js +1 -1
- package/amd/UNSAFE_RatingGauge.js +1 -1
- package/amd/UNSAFE_ReorderableTabBar.js +1 -1
- package/amd/UNSAFE_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-ce970ed7.js +2 -0
- package/amd/View-ce970ed7.js.map +1 -0
- package/amd/VisNoData-7d5f77c3.js +2 -0
- package/amd/VisNoData-7d5f77c3.js.map +1 -0
- package/amd/VisProgressiveLoader-68d8d8b3.js +2 -0
- package/amd/VisProgressiveLoader-68d8d8b3.js.map +1 -0
- package/amd/VisTabularDatatip-1051eaca.js +2 -0
- package/amd/VisTabularDatatip-1051eaca.js.map +1 -0
- package/amd/WindowOverlay-a2d80d55.js +2 -0
- package/amd/WindowOverlay-a2d80d55.js.map +1 -0
- package/amd/YearsGridView-e758c73a.js +2 -0
- package/amd/YearsGridView-e758c73a.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_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-735cad6d.js +2 -0
- package/amd/index-735cad6d.js.map +1 -0
- package/amd/listViewSelectionTests-a8209843.js +1 -1
- package/amd/render-4250c759.js +2 -0
- package/amd/render-4250c759.js.map +1 -0
- package/amd/tabbableUtils-9887f50b.js +2 -0
- package/amd/tabbableUtils-9887f50b.js.map +1 -0
- package/amd/testData-71364772.js +2 -0
- package/amd/testData-71364772.js.map +1 -0
- package/amd/tooltipUtils-3b34c2bc.js +2 -0
- package/amd/tooltipUtils-3b34c2bc.js.map +1 -0
- package/amd/useCellNavigation-1feec094.js +1 -1
- package/amd/useChartContextMenu-673e3de0.js +1 -1
- package/amd/useChartDatatip-c702890c.js +2 -0
- package/amd/useChartDatatip-c702890c.js.map +1 -0
- package/amd/useChartMarquee-62e7676c.js +1 -1
- package/amd/useColorScheme-10dc88de.js +2 -0
- package/amd/useColorScheme-10dc88de.js.map +1 -0
- package/amd/useContextMenu-57f18e97.js +1 -1
- package/amd/useCssVars-c043f8da.js +2 -0
- package/amd/useCssVars-c043f8da.js.map +1 -0
- package/amd/useCurrentBgColor-2426ee24.js +2 -0
- package/amd/useCurrentBgColor-2426ee24.js.map +1 -0
- package/amd/useCurrentKey-1d869ff4.js +2 -0
- package/amd/useCurrentKey-1d869ff4.js.map +1 -0
- package/amd/useDatatip-87792500.js +2 -0
- package/amd/useDatatip-87792500.js.map +1 -0
- package/amd/useDensity-c83df7b4.js +2 -0
- package/amd/useDensity-c83df7b4.js.map +1 -0
- package/amd/useFloating-8726c4bb.js +2 -0
- package/amd/useFloating-8726c4bb.js.map +1 -0
- package/amd/useKeyboardEvents-d87e3587.js +2 -0
- package/amd/useKeyboardEvents-d87e3587.js.map +1 -0
- package/amd/useLegendContextMenu-09c7a5a9.js +1 -1
- package/amd/useMeterDatatip-3abdf66a.js +2 -0
- package/amd/useMeterDatatip-3abdf66a.js.map +1 -0
- package/amd/useOutsideClick-5c2a47be.js +2 -0
- package/amd/useOutsideClick-5c2a47be.js.map +1 -0
- package/amd/usePopupAnimation-916ff96d.js +2 -0
- package/amd/usePopupAnimation-916ff96d.js.map +1 -0
- package/amd/usePrefixSuffix-09bd5925.js +2 -0
- package/amd/usePrefixSuffix-09bd5925.js.map +1 -0
- package/amd/useReorderableItem-7fd4d629.js +1 -1
- package/amd/useRovingTabIndexContainer-05e87912.js +2 -0
- package/amd/useRovingTabIndexContainer-05e87912.js.map +1 -0
- package/amd/useScale-37d42c9d.js +2 -0
- package/amd/useScale-37d42c9d.js.map +1 -0
- package/amd/useSelectCommon-4e256cf0.js +1 -1
- package/amd/useSelectDrill-a7d833b6.js +2 -0
- package/amd/useSelectDrill-a7d833b6.js.map +1 -0
- package/amd/useSelection-396ce75f.js +2 -0
- package/amd/useSelection-396ce75f.js.map +1 -0
- package/amd/useSelection-e2791513.js +2 -0
- package/amd/useSelection-e2791513.js.map +1 -0
- package/amd/useTabBar-423a0c03.js +2 -0
- package/amd/useTabBar-423a0c03.js.map +1 -0
- package/amd/useTestId-3a316499.js +2 -0
- package/amd/useTestId-3a316499.js.map +1 -0
- package/amd/useTheme-ac980f9a.js +2 -0
- package/amd/useTheme-ac980f9a.js.map +1 -0
- package/amd/useThemeInterpolations-b1d98ea4.js +2 -0
- package/amd/useThemeInterpolations-b1d98ea4.js.map +1 -0
- package/amd/useTooltip-6a5fedfa.js +2 -0
- package/amd/useTooltip-6a5fedfa.js.map +1 -0
- package/amd/useTooltipControlled-fb57eb02.js +2 -0
- package/amd/useTooltipControlled-fb57eb02.js.map +1 -0
- package/amd/useTranslationBundle-516b1b83.js +2 -0
- package/amd/useTranslationBundle-516b1b83.js.map +1 -0
- package/amd/useUser-85c781ea.js +2 -0
- package/amd/useUser-85c781ea.js.map +1 -0
- package/amd/useVisEvents-954dcd88.js +2 -0
- package/amd/useVisEvents-954dcd88.js.map +1 -0
- package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
- package/amd/utils/PRIVATE_visTestUtils.js +1 -1
- package/amd/withDirectionIcon-ce0c7432.js +2 -0
- package/amd/withDirectionIcon-ce0c7432.js.map +1 -0
- package/amd/withThemeProps-4c23997e.js +1 -1
- package/cjs/ActionCard-ad0ecc2f.js +1 -1
- package/cjs/BarChart-f132cd7c.js +2 -2
- package/cjs/BaseButton-ae653e88.js +2 -2
- package/cjs/BaseCardView-55bc5e6f.js +633 -0
- package/cjs/BaseCardView-55bc5e6f.js.map +1 -0
- package/cjs/BaseCardViewSelectionTest-361f021d.js +696 -0
- package/cjs/BaseCardViewSelectionTest-361f021d.js.map +1 -0
- package/cjs/BaseNavigationListItem-4b28f14e.js +1 -1
- package/cjs/ButtonSet-ce6a890f.js +2 -2
- package/cjs/ButtonSetIconButton-d1fb3616.js +3 -3
- package/cjs/CardFlexView-ae79f8f1.js +29 -0
- package/cjs/CardFlexView-ae79f8f1.js.map +1 -0
- package/cjs/CardGridView-4936ffd6.js +17 -0
- package/cjs/CardGridView-4936ffd6.js.map +1 -0
- package/cjs/Center-c0baccb0.js +18 -0
- package/cjs/Center-c0baccb0.js.map +1 -0
- package/cjs/Chart-42a979a7.js +9 -9
- package/cjs/CheckboxControl-2e5aac8b.js +6 -6
- package/cjs/CheckboxRadioField-0242222e.js +6 -6
- package/cjs/CheckboxSet-368b907b.js +53 -0
- package/cjs/CheckboxSet-368b907b.js.map +1 -0
- package/cjs/Chip-c49b21a5.js +1 -1
- package/cjs/ClearIcon-c8a14c1e.js +1 -1
- package/cjs/CollapseIcon-9480e8dd.js +1 -1
- package/cjs/Collapsible-ab17d063.js +2 -2
- package/cjs/CompactHelpSource-42019592.js +2 -2
- package/cjs/CompactLabelAssistance-fa0fd800.js +36 -0
- package/cjs/CompactLabelAssistance-fa0fd800.js.map +1 -0
- package/cjs/CompactUserAssistance-62055a51.js +4 -4
- package/cjs/ComponentMessageContainer-b6683330.js +4 -4
- package/cjs/ConveyorBeltItem-6ec033ae.js +2 -2
- package/cjs/DatePicker-433b80d2.js +566 -0
- package/cjs/DatePicker-433b80d2.js.map +1 -0
- package/cjs/DatePickerHeader-1030b799.js +3 -3
- package/cjs/Diagram-5fd0306a.js +2004 -0
- package/cjs/Diagram-5fd0306a.js.map +1 -0
- package/cjs/Dialog-c75ebc82.js +121 -0
- package/cjs/Dialog-c75ebc82.js.map +1 -0
- package/cjs/DirectionalCollapseArrowIcon-6f4b267e.js +1 -1
- package/cjs/DirectionalExpandArrowIcon-da3e55cc.js +1 -1
- package/cjs/DragHandle-473e7e10.js +1 -1
- package/cjs/Dropdown-4554e9f9.js +82 -0
- package/cjs/Dropdown-4554e9f9.js.map +1 -0
- package/cjs/EnvironmentProvider-75eb79f3.js +61 -0
- package/cjs/EnvironmentProvider-75eb79f3.js.map +1 -0
- package/cjs/FilePicker-7414764e.js +2 -2
- package/cjs/Flex-e7a85bef.js +33 -0
- package/cjs/Flex-e7a85bef.js.map +1 -0
- package/cjs/Floating-25f4e655.js +464 -0
- package/cjs/Floating-25f4e655.js.map +1 -0
- package/cjs/FormLayout-a7ac29be.js +1 -1
- package/cjs/Gantt-efe026b9.js +9 -9
- package/cjs/Grid-a7316edd.js +29 -0
- package/cjs/Grid-a7316edd.js.map +1 -0
- package/cjs/Gridlines-b69b67fb.js +123 -0
- package/cjs/Gridlines-b69b67fb.js.map +1 -0
- package/cjs/GroupLoadingIndicator-397feb37.js +2 -2
- package/cjs/HighlightText-dd11dd32.js +33 -0
- package/cjs/HighlightText-dd11dd32.js.map +1 -0
- package/cjs/Icon-0420d662.js +3 -3
- package/cjs/IconButton-e120d23e.js +3 -3
- package/cjs/IconMenuButton-64fa2ef1.js +4 -4
- package/cjs/IconProgressButton-d6e5198e.js +3 -3
- package/cjs/IconSwitchButton-7ff785b5.js +3 -3
- package/cjs/IconToggleButton-2661226f.js +3 -3
- package/cjs/IconUserAssistance-4728958a.js +75 -0
- package/cjs/IconUserAssistance-4728958a.js.map +1 -0
- package/cjs/Indexer-1dfa7ec4.js +339 -0
- package/cjs/Indexer-1dfa7ec4.js.map +1 -0
- package/cjs/InlineHelpSource-0549100d.js +1 -1
- package/cjs/InlineUserAssistance-5c7fe16e.js +5 -5
- package/cjs/InputDateMask-3642bfa3.js +7 -7
- package/cjs/InputDatePicker-fe21408c.js +8 -8
- package/cjs/InputPassword-ed0dcf1a.js +4 -4
- package/cjs/InputText-77261829.js +6 -6
- package/cjs/Label-47446013.js +5 -5
- package/cjs/LabelValueLayout-4049c1a1.js +1 -1
- package/cjs/Layer-06ec1119.js +87 -0
- package/cjs/Layer-06ec1119.js.map +1 -0
- package/cjs/LayerHost-a8c7f182.js +45 -0
- package/cjs/LayerHost-a8c7f182.js.map +1 -0
- package/cjs/LayerManager-2d0b83ac.js +36 -0
- package/cjs/LayerManager-2d0b83ac.js.map +1 -0
- package/cjs/Legend-fe6cc085.js +3 -3
- package/cjs/LineAreaChart-70fae163.js +250 -0
- package/cjs/LineAreaChart-70fae163.js.map +1 -0
- package/cjs/Link-41805241.js +1 -1
- package/cjs/List-2baf37ae.js +633 -0
- package/cjs/List-2baf37ae.js.map +1 -0
- package/cjs/ListItemLayout-a4f562c6.js +92 -0
- package/cjs/ListItemLayout-a4f562c6.js.map +1 -0
- package/cjs/ListView-4db96cfd.js +426 -0
- package/cjs/ListView-4db96cfd.js.map +1 -0
- package/cjs/LiveRegion-567427c5.js +41 -0
- package/cjs/LiveRegion-567427c5.js.map +1 -0
- package/cjs/LoadMoreCollection-73112ff0.js +34 -0
- package/cjs/LoadMoreCollection-73112ff0.js.map +1 -0
- package/cjs/MaxLengthCounter-a5370f66.js +27 -0
- package/cjs/MaxLengthCounter-a5370f66.js.map +1 -0
- package/cjs/MaxLengthLiveRegion-f03f07c6.js +25 -0
- package/cjs/MaxLengthLiveRegion-f03f07c6.js.map +1 -0
- package/cjs/Menu-f3a85f19.js +317 -0
- package/cjs/Menu-f3a85f19.js.map +1 -0
- package/cjs/MenuButton-03bc20b0.js +3 -3
- package/cjs/MenuItem-45d2edd5.js +1 -1
- package/cjs/Message-2c831019.js +2 -2
- package/cjs/MessageLayer-a3792fec.js +61 -0
- package/cjs/MessageLayer-a3792fec.js.map +1 -0
- package/cjs/MessageToast-3596e8d2.js +8 -8
- package/cjs/MessagesManager-a607a228.js +3 -3
- package/cjs/MeterBar-48231b79.js +5 -5
- package/cjs/MeterCircle-54562c98.js +5 -5
- package/cjs/Modal-1c5c46ca.js +258 -0
- package/cjs/Modal-1c5c46ca.js.map +1 -0
- package/cjs/MonthView-f587275e.js +188 -0
- package/cjs/MonthView-f587275e.js.map +1 -0
- package/cjs/NavigationListItem-7550547a.js +5 -5
- package/cjs/NumberInputText-17d50e9d.js +6 -6
- package/cjs/OverflowTabBarItem-76059bad.js +3 -3
- package/cjs/PRIVATE_BaseCardView.js +23 -23
- package/cjs/PRIVATE_Chart.js +30 -30
- package/cjs/PRIVATE_CheckboxControl.js +22 -22
- package/cjs/PRIVATE_CheckboxRadioField.js +23 -23
- package/cjs/PRIVATE_ClearIcon.js +17 -17
- package/cjs/PRIVATE_DatePickerHeader.js +19 -19
- package/cjs/PRIVATE_DatePickerLayout.js +4 -4
- package/cjs/PRIVATE_EmbeddedIconButton.js +3 -3
- package/cjs/PRIVATE_FormControls.js +19 -19
- package/cjs/PRIVATE_IconSwitchButton.js +15 -15
- package/cjs/PRIVATE_Icons/CheckboxMixed.js +15 -15
- package/cjs/PRIVATE_Icons/CheckboxOff.js +15 -15
- package/cjs/PRIVATE_Icons/CheckboxOn.js +15 -15
- package/cjs/PRIVATE_Icons/RadiobuttonOff.js +15 -15
- package/cjs/PRIVATE_Icons/RadiobuttonOn.js +15 -15
- package/cjs/PRIVATE_Icons/WarningS.js +15 -15
- package/cjs/PRIVATE_List.js +23 -23
- package/cjs/PRIVATE_LoadMoreCollection.js +2 -2
- package/cjs/PRIVATE_Message.js +18 -18
- 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 +16 -16
- package/cjs/PRIVATE_SelectCommon.js +32 -32
- package/cjs/PRIVATE_StyledCheckbox.js +15 -15
- package/cjs/PRIVATE_Table.js +21 -21
- package/cjs/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
- package/cjs/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/SortDefaultIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
- package/cjs/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
- package/cjs/PRIVATE_TimeComponent.js +18 -18
- package/cjs/PRIVATE_VirtualizedCollection.js +2 -2
- package/cjs/PRIVATE_VisTabularDatatip.js +4 -4
- package/cjs/PictoChart-e9be6f36.js +6 -6
- package/cjs/PieChart-31a4d639.js +435 -0
- package/cjs/PieChart-31a4d639.js.map +1 -0
- package/cjs/Popup-5bf59d47.js +242 -0
- package/cjs/Popup-5bf59d47.js.map +1 -0
- package/cjs/ProgressBar-8a5dc398.js +60 -0
- package/cjs/ProgressBar-8a5dc398.js.map +1 -0
- package/cjs/ProgressButton-b33d7947.js +3 -3
- package/cjs/ProgressButtonLabelLayout-26719e28.js +3 -3
- package/cjs/ProgressCircle-ea17b6f7.js +46 -0
- package/cjs/ProgressCircle-ea17b6f7.js.map +1 -0
- package/cjs/RadioItem-b15d604f.js +6 -6
- package/cjs/RatingGauge-0e0b34d4.js +7 -7
- package/cjs/ReadonlyTextFieldInput-af4ddced.js +1 -1
- package/cjs/ReadonlyTextFieldVariants.styles.css +20 -20
- package/cjs/ReadonlyTextFieldVariants.styles2.css +20 -20
- package/cjs/RemovableNavigationListItem-727e53e8.js +1 -1
- package/cjs/RemovableTabBarItem-da075122.js +2 -2
- package/cjs/ReorderableTabBar-ded69f11.js +2 -2
- package/cjs/RevealToggleIcon-02ef5d24.js +1 -1
- package/cjs/SectionalLegend-fba43a68.js +4 -4
- package/cjs/SectionedContent-855ddd57.js +67 -0
- package/cjs/SectionedContent-855ddd57.js.map +1 -0
- package/cjs/SelectMultiple-2d4eba14.js +1305 -0
- package/cjs/SelectMultiple-2d4eba14.js.map +1 -0
- package/cjs/SelectSingle-731c2ecd.js +731 -0
- package/cjs/SelectSingle-731c2ecd.js.map +1 -0
- package/cjs/SelectionCard-f26fdc87.js +40 -0
- package/cjs/SelectionCard-f26fdc87.js.map +1 -0
- package/cjs/Selector-66230e31.js +1 -1
- package/cjs/SelectorAll-f391f675.js +71 -0
- package/cjs/SelectorAll-f391f675.js.map +1 -0
- package/cjs/Sheet-d9371321.js +161 -0
- package/cjs/Sheet-d9371321.js.map +1 -0
- package/cjs/SplitMenuButton-0cf8e5a6.js +3 -3
- package/cjs/StyledTextField-c9e9ba81.js +3 -3
- package/cjs/Submenu-fbcfb818.js +1 -1
- package/cjs/TabBar-c13ce35f.js +6 -6
- package/cjs/TabBarItem-5a7d5d03.js +3 -3
- package/cjs/TabBarLayout-846a4d9a.js +1 -1
- package/cjs/TabBarMixed-81309400.js +6 -6
- package/cjs/TabBarMixedSeparator-0e258647.js +21 -0
- package/cjs/TabBarMixedSeparator-0e258647.js.map +1 -0
- package/cjs/Table-b137c360.js +4885 -0
- package/cjs/Table-b137c360.js.map +1 -0
- package/cjs/TableView-3a1f0c38.js +29 -0
- package/cjs/TableView-3a1f0c38.js.map +1 -0
- package/cjs/TagCloud-013c9587.js +9 -9
- package/cjs/TextArea-096f18ad.js +161 -0
- package/cjs/TextArea-096f18ad.js.map +1 -0
- package/cjs/TextAreaAutosize-4d30faec.js +245 -0
- package/cjs/TextAreaAutosize-4d30faec.js.map +1 -0
- package/cjs/TextField-bb91aeef.js +3 -3
- package/cjs/TextFieldInput-a2e8dd01.js +1 -1
- package/cjs/Theme-redwood/theme.css +138 -138
- package/cjs/Theme-stable/theme.css +383 -383
- package/cjs/TimeComponentCanvas2D-4de3cd67.js +5 -5
- package/cjs/Toolbar-3be490b0.js +1 -1
- package/cjs/TruncatingBadge-bc95a171.js +35 -0
- package/cjs/TruncatingBadge-bc95a171.js.map +1 -0
- package/cjs/TruncatingText-ba11c4fe.js +46 -0
- package/cjs/TruncatingText-ba11c4fe.js.map +1 -0
- package/cjs/UNSAFE_ActionCard.js +2 -2
- package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +30 -30
- package/cjs/UNSAFE_BarChart.js +30 -30
- package/cjs/UNSAFE_BaseButton.js +3 -3
- package/cjs/UNSAFE_Button.js +3 -3
- package/cjs/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +19 -19
- package/cjs/UNSAFE_ButtonSet.js +4 -4
- package/cjs/UNSAFE_ButtonSetButton.js +3 -3
- package/cjs/UNSAFE_ButtonSetIconButton.js +15 -15
- package/cjs/UNSAFE_ButtonSetItem.js +15 -15
- package/cjs/UNSAFE_ButtonSetMultiple.js +4 -4
- package/cjs/UNSAFE_ButtonSetSingle.js +4 -4
- package/cjs/UNSAFE_CardFlexView.js +24 -24
- package/cjs/UNSAFE_CardGridView.js +24 -24
- package/cjs/UNSAFE_Center.js +5 -5
- package/cjs/UNSAFE_ChartWithLegend.js +4 -4
- package/cjs/UNSAFE_Checkbox.js +22 -22
- package/cjs/UNSAFE_CheckboxItem.js +101 -51
- package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
- package/cjs/UNSAFE_CheckboxSet.js +37 -66
- package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_Chip.js +2 -2
- package/cjs/UNSAFE_Collapsible.js +17 -17
- package/cjs/UNSAFE_ComponentMessage.js +18 -18
- package/cjs/UNSAFE_ConveyorBelt.js +15 -15
- package/cjs/UNSAFE_DatePicker.js +24 -24
- package/cjs/UNSAFE_Diagram.js +15 -15
- package/cjs/UNSAFE_Dialog.js +11 -11
- package/cjs/UNSAFE_DragHandle.js +16 -16
- 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 +25 -25
- 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 +22 -22
- package/cjs/UNSAFE_Grid.js +4 -4
- package/cjs/UNSAFE_HighlightText.js +4 -4
- package/cjs/UNSAFE_Icon.js +15 -15
- package/cjs/UNSAFE_IconButton.js +15 -15
- package/cjs/UNSAFE_IconMenuButton.js +19 -19
- package/cjs/UNSAFE_IconProgressButton.js +19 -19
- package/cjs/UNSAFE_IconToggleButton.js +15 -15
- package/cjs/UNSAFE_Indexer.js +8 -8
- package/cjs/UNSAFE_InputDateMask.js +23 -23
- package/cjs/UNSAFE_InputDatePicker.js +32 -32
- package/cjs/UNSAFE_InputPassword.js +22 -22
- package/cjs/UNSAFE_InputSensitiveText.js +24 -24
- package/cjs/UNSAFE_InputText.js +25 -25
- package/cjs/UNSAFE_Label.js +22 -22
- package/cjs/UNSAFE_LabelValueLayout.js +4 -4
- package/cjs/UNSAFE_LabelledLink.js +24 -24
- package/cjs/UNSAFE_Layer.js +7 -7
- package/cjs/UNSAFE_Legend.js +22 -22
- package/cjs/UNSAFE_LineAreaChart/__test__/LineChart.spec.js +30 -30
- package/cjs/UNSAFE_LineAreaChart.js +31 -31
- package/cjs/UNSAFE_Link.js +2 -2
- package/cjs/UNSAFE_ListItemLayout.js +5 -5
- package/cjs/UNSAFE_ListView.js +30 -30
- package/cjs/UNSAFE_LiveRegion.js +4 -4
- package/cjs/UNSAFE_Menu.js +21 -21
- package/cjs/UNSAFE_MenuButton.js +19 -19
- package/cjs/UNSAFE_MessageBanner.js +18 -18
- package/cjs/UNSAFE_MessageToast.js +21 -21
- package/cjs/UNSAFE_MeterBar.js +16 -16
- package/cjs/UNSAFE_MeterCircle.js +16 -16
- package/cjs/UNSAFE_Modal.js +7 -7
- package/cjs/UNSAFE_NavigationList.js +19 -19
- package/cjs/UNSAFE_NavigationListCommon.js +17 -17
- package/cjs/UNSAFE_NumberInputText.js +24 -24
- package/cjs/UNSAFE_OverflowTabBar.js +24 -24
- 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_ProgressButton.js +19 -19
- package/cjs/UNSAFE_ProgressButtonLabelLayout.js +10 -10
- package/cjs/UNSAFE_ProgressCircle.js +4 -4
- package/cjs/UNSAFE_RadioItem.js +22 -22
- package/cjs/UNSAFE_RadioSet.js +22 -22
- package/cjs/UNSAFE_RatingGauge.js +16 -16
- package/cjs/UNSAFE_ReorderableTabBar.js +21 -21
- package/cjs/UNSAFE_SectionalLegend.js +23 -23
- package/cjs/UNSAFE_SelectMultiple.js +36 -36
- package/cjs/UNSAFE_SelectSingle.js +36 -36
- package/cjs/UNSAFE_SelectionCard.js +4 -4
- package/cjs/UNSAFE_Selector.js +15 -15
- package/cjs/UNSAFE_SelectorAll.js +19 -19
- package/cjs/UNSAFE_Sheet/__test__/Sheet.spec.js +13 -13
- package/cjs/UNSAFE_Sheet.js +10 -10
- package/cjs/UNSAFE_SplitMenuButton.js +19 -19
- package/cjs/UNSAFE_TabBar.js +25 -25
- package/cjs/UNSAFE_TabBarCommon.js +24 -24
- package/cjs/UNSAFE_TabBarMixed.js +28 -28
- package/cjs/UNSAFE_TableView.js +22 -22
- package/cjs/UNSAFE_TagCloud.js +22 -22
- package/cjs/UNSAFE_TextArea.js +28 -27
- package/cjs/UNSAFE_TextArea.js.map +1 -1
- package/cjs/UNSAFE_TextAreaAutosize.js +27 -27
- package/cjs/UNSAFE_TextField.js +7 -7
- package/cjs/UNSAFE_ToggleButton.js +3 -3
- package/cjs/UNSAFE_Toolbar/tests/Toolbar.spec.js +21 -21
- package/cjs/UNSAFE_Toolbar.js +4 -4
- package/cjs/UNSAFE_Train.js +16 -16
- package/cjs/UNSAFE_TruncatingBadge.js +17 -17
- package/cjs/UNSAFE_TruncatingText.js +17 -17
- package/cjs/UNSAFE_UserAssistance.js +23 -23
- package/cjs/UNSAFE_View.js +7 -7
- package/cjs/UNSAFE_VirtualizedListView.js +24 -24
- 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-5930179e.js +170 -0
- package/cjs/View-5930179e.js.map +1 -0
- package/cjs/VirtualizedCollection-00aedb8b.js +180 -0
- package/cjs/VirtualizedCollection-00aedb8b.js.map +1 -0
- package/cjs/VirtualizedListView-75610c90.js +16 -0
- package/cjs/VirtualizedListView-75610c90.js.map +1 -0
- package/cjs/VisNoData-2a2477d9.js +35 -0
- package/cjs/VisNoData-2a2477d9.js.map +1 -0
- package/cjs/VisProgressiveLoader-dacfe618.js +53 -0
- package/cjs/VisProgressiveLoader-dacfe618.js.map +1 -0
- package/cjs/VisTabularDatatip-eca8aa8f.js +26 -0
- package/cjs/VisTabularDatatip-eca8aa8f.js.map +1 -0
- package/cjs/WindowOverlay-06408f56.js +112 -0
- package/cjs/WindowOverlay-06408f56.js.map +1 -0
- package/cjs/YearsGridView-a80db2d0.js +190 -0
- package/cjs/YearsGridView-a80db2d0.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 +17 -17
- 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 +16 -16
- package/cjs/hooks/UNSAFE_useTranslationBundle.js +3 -3
- package/cjs/hooks/UNSAFE_useUser.js +3 -3
- package/cjs/index-3be205e4.js +13 -0
- package/cjs/index-3be205e4.js.map +1 -0
- package/cjs/listViewSelectionTests-b4a48819.js +4 -4
- package/cjs/render-1f26ad67.js +41 -0
- package/cjs/render-1f26ad67.js.map +1 -0
- package/cjs/tabbableUtils-885d29a2.js +81 -0
- package/cjs/tabbableUtils-885d29a2.js.map +1 -0
- package/cjs/testData-d3502546.js +271 -0
- package/cjs/testData-d3502546.js.map +1 -0
- package/cjs/tooltipUtils-80224e2c.js +95 -0
- package/cjs/tooltipUtils-80224e2c.js.map +1 -0
- package/cjs/useCellNavigation-6f7cd4c8.js +1 -1
- package/cjs/useChartContextMenu-1b415a9b.js +3 -3
- package/cjs/useChartDatatip-95ef7e3b.js +144 -0
- package/cjs/useChartDatatip-95ef7e3b.js.map +1 -0
- package/cjs/useChartMarquee-0900e36a.js +1 -1
- package/cjs/useColorScheme-ce2a88b1.js +21 -0
- package/cjs/useColorScheme-ce2a88b1.js.map +1 -0
- package/cjs/useContextMenu-0b63c292.js +3 -3
- package/cjs/useCssVars-bd95e715.js +60 -0
- package/cjs/useCssVars-bd95e715.js.map +1 -0
- package/cjs/useCurrentBgColor-6e39eb3a.js +21 -0
- package/cjs/useCurrentBgColor-6e39eb3a.js.map +1 -0
- package/cjs/useCurrentKey-821dd4cf.js +83 -0
- package/cjs/useCurrentKey-821dd4cf.js.map +1 -0
- package/cjs/useDatatip-3d87ecae.js +89 -0
- package/cjs/useDatatip-3d87ecae.js.map +1 -0
- package/cjs/useDensity-1f8cc921.js +21 -0
- package/cjs/useDensity-1f8cc921.js.map +1 -0
- package/cjs/useFloating-f89e60f9.js +1926 -0
- package/cjs/useFloating-f89e60f9.js.map +1 -0
- package/cjs/useKeyboardEvents-5e808fe3.js +81 -0
- package/cjs/useKeyboardEvents-5e808fe3.js.map +1 -0
- package/cjs/useLegendContextMenu-44b38b7d.js +5 -5
- package/cjs/useMeterDatatip-bb4cbbdb.js +85 -0
- package/cjs/useMeterDatatip-bb4cbbdb.js.map +1 -0
- package/cjs/useOutsideClick-fe4d642b.js +87 -0
- package/cjs/useOutsideClick-fe4d642b.js.map +1 -0
- package/cjs/usePopupAnimation-db67ce3c.js +87 -0
- package/cjs/usePopupAnimation-db67ce3c.js.map +1 -0
- package/cjs/usePrefixSuffix-23341de3.js +72 -0
- package/cjs/usePrefixSuffix-23341de3.js.map +1 -0
- package/cjs/useReorderableItem-bd9f073e.js +2 -2
- package/cjs/useRovingTabIndexContainer-1e61d935.js +100 -0
- package/cjs/useRovingTabIndexContainer-1e61d935.js.map +1 -0
- package/cjs/useScale-a681a5cb.js +21 -0
- package/cjs/useScale-a681a5cb.js.map +1 -0
- package/cjs/useSelectCommon-12313cdd.js +713 -0
- package/cjs/useSelectCommon-12313cdd.js.map +1 -0
- package/cjs/useSelectDrill-46b40346.js +105 -0
- package/cjs/useSelectDrill-46b40346.js.map +1 -0
- package/cjs/useSelection-b45ea7ae.js +243 -0
- package/cjs/useSelection-b45ea7ae.js.map +1 -0
- package/cjs/useSelection-c2d93034.js +183 -0
- package/cjs/useSelection-c2d93034.js.map +1 -0
- package/cjs/useTabBar-336e81bf.js +154 -0
- package/cjs/useTabBar-336e81bf.js.map +1 -0
- package/cjs/useTestId-5e6af45d.js +23 -0
- package/cjs/useTestId-5e6af45d.js.map +1 -0
- package/cjs/useTheme-8fb5546b.js +21 -0
- package/cjs/useTheme-8fb5546b.js.map +1 -0
- package/cjs/useThemeInterpolations-799504a1.js +33 -0
- package/cjs/useThemeInterpolations-799504a1.js.map +1 -0
- package/cjs/useTooltip-f27c5cd0.js +51 -0
- package/cjs/useTooltip-f27c5cd0.js.map +1 -0
- package/cjs/useTooltipControlled-31213955.js +393 -0
- package/cjs/useTooltipControlled-31213955.js.map +1 -0
- package/cjs/useTranslationBundle-51f4c22c.js +31 -0
- package/cjs/useTranslationBundle-51f4c22c.js.map +1 -0
- package/cjs/useUser-a4bfc560.js +21 -0
- package/cjs/useUser-a4bfc560.js.map +1 -0
- package/cjs/useVisEvents-fe2344c8.js +155 -0
- package/cjs/useVisEvents-fe2344c8.js.map +1 -0
- package/cjs/utils/PRIVATE_tooltipUtils.js +13 -13
- package/cjs/utils/PRIVATE_visTestUtils.js +5 -5
- package/cjs/withDirectionIcon-1affce30.js +16 -0
- package/cjs/withDirectionIcon-1affce30.js.map +1 -0
- package/cjs/withThemeProps-6e15f1c3.js +2 -2
- package/es/ActionCard-ba1c946e.js +1 -1
- package/es/BarChart-c68a559c.js +2 -2
- package/es/BaseButton-5a3335d9.js +2 -2
- package/es/BaseCardView-e0e8a69b.js +6 -6
- package/es/BaseCardViewSelectionTest-120542e8.js +683 -0
- package/es/BaseCardViewSelectionTest-120542e8.js.map +1 -0
- package/es/BaseNavigationListItem-d2a00c8f.js +47 -0
- package/es/BaseNavigationListItem-d2a00c8f.js.map +1 -0
- package/es/ButtonSet-ac76e6e2.js +2 -2
- package/es/ButtonSetIconButton-9241b9fb.js +3 -3
- package/es/Center-8b48ab02.js +16 -0
- package/es/Center-8b48ab02.js.map +1 -0
- package/es/Chart-f2438968.js +9 -9
- package/es/CheckboxControl-f5e36d0d.js +6 -6
- package/es/CheckboxRadioField-bdda2573.js +6 -6
- package/es/Chip-f2df2078.js +1 -1
- package/es/ClearIcon-b5083cc8.js +1 -1
- package/es/CollapseIcon-de129943.js +1 -1
- package/es/Collapsible-09cc493a.js +2 -2
- package/es/CompactHelpSource-1686edf6.js +2 -2
- package/es/CompactLabelAssistance-fa8264fa.js +34 -0
- package/es/CompactLabelAssistance-fa8264fa.js.map +1 -0
- package/es/CompactUserAssistance-3a10afd4.js +4 -4
- package/es/ComponentMessageContainer-18e7fe34.js +4 -4
- package/es/ConveyorBeltItem-c8d4ba1b.js +2 -2
- package/es/DatePicker-26b8d37b.js +564 -0
- package/es/DatePicker-26b8d37b.js.map +1 -0
- package/es/DatePickerHeader-79f0b61b.js +3 -3
- package/es/Diagram-6f1ad2ea.js +2002 -0
- package/es/Diagram-6f1ad2ea.js.map +1 -0
- package/es/Dialog-5e92dcd1.js +119 -0
- package/es/Dialog-5e92dcd1.js.map +1 -0
- package/es/DirectionalCollapseArrowIcon-20259aab.js +1 -1
- package/es/DirectionalExpandArrowIcon-36ba273c.js +1 -1
- package/es/DragHandle-3b768189.js +1 -1
- package/es/Dropdown-f45f823c.js +80 -0
- package/es/Dropdown-f45f823c.js.map +1 -0
- package/es/EnvironmentProvider-0fc2fd0c.js +58 -0
- package/es/EnvironmentProvider-0fc2fd0c.js.map +1 -0
- package/es/FilePicker-f4582615.js +2 -2
- package/es/Flex-8696b27b.js +30 -0
- package/es/Flex-8696b27b.js.map +1 -0
- package/es/Floating-f9bbd276.js +462 -0
- package/es/Floating-f9bbd276.js.map +1 -0
- package/es/FormLayout-221e1aa8.js +1 -1
- package/es/Gantt-46f5f954.js +9 -9
- package/es/Grid-7fd29a9e.js +27 -0
- package/es/Grid-7fd29a9e.js.map +1 -0
- package/es/Gridlines-dcdc34bc.js +120 -0
- package/es/Gridlines-dcdc34bc.js.map +1 -0
- package/es/GroupLoadingIndicator-2bfdba44.js +1 -1
- package/es/HighlightText-cc043982.js +31 -0
- package/es/HighlightText-cc043982.js.map +1 -0
- package/es/Icon-4171c0d7.js +3 -3
- package/es/IconButton-451a225c.js +3 -3
- package/es/IconMenuButton-e46f8d54.js +4 -4
- package/es/IconProgressButton-8f2f6b27.js +3 -3
- package/es/IconSwitchButton-5ff7b0fe.js +3 -3
- package/es/IconToggleButton-375f006f.js +3 -3
- package/es/IconUserAssistance-dd56b812.js +73 -0
- package/es/IconUserAssistance-dd56b812.js.map +1 -0
- package/es/Indexer-658cee69.js +4 -4
- package/es/InlineHelpSource-fcdcd122.js +1 -1
- package/es/InlineUserAssistance-e6deb149.js +5 -5
- package/es/InputDateMask-3d511e39.js +7 -7
- package/es/InputDatePicker-6a5d95c8.js +307 -0
- package/es/InputDatePicker-6a5d95c8.js.map +1 -0
- package/es/InputPassword-47130b3c.js +4 -4
- package/es/InputText-4799b2ed.js +6 -6
- package/es/Label-ab276ca9.js +5 -5
- package/es/LabelValueLayout-bcf482be.js +1 -1
- package/es/Layer-71fc666f.js +84 -0
- package/es/Layer-71fc666f.js.map +1 -0
- package/es/LayerHost-15b42a3e.js +40 -0
- package/es/LayerHost-15b42a3e.js.map +1 -0
- package/es/LayerManager-af39e736.js +34 -0
- package/es/LayerManager-af39e736.js.map +1 -0
- package/es/Legend-ae0296f0.js +3 -3
- package/es/LineAreaChart-3a7bc509.js +248 -0
- package/es/LineAreaChart-3a7bc509.js.map +1 -0
- package/es/Link-9072aa54.js +1 -1
- package/es/List-1d23e84f.js +5 -5
- package/es/ListItemLayout-32895900.js +90 -0
- package/es/ListItemLayout-32895900.js.map +1 -0
- package/es/ListView-8eba90e8.js +3 -3
- package/es/LiveRegion-cb4f8a54.js +39 -0
- package/es/LiveRegion-cb4f8a54.js.map +1 -0
- package/es/MaxLengthLiveRegion-59087064.js +23 -0
- package/es/MaxLengthLiveRegion-59087064.js.map +1 -0
- package/es/Menu-b5deea24.js +313 -0
- package/es/Menu-b5deea24.js.map +1 -0
- package/es/MenuButton-49b7965d.js +3 -3
- package/es/MenuItem-be46866f.js +1 -1
- package/es/Message-322f8d63.js +2 -2
- package/es/MessageLayer-34a390eb.js +58 -0
- package/es/MessageLayer-34a390eb.js.map +1 -0
- package/es/MessageToast-66bdffe6.js +8 -8
- package/es/MessagesManager-a1c3e92e.js +3 -3
- package/es/MeterBar-9ad34b98.js +5 -5
- package/es/MeterCircle-6bd257c8.js +5 -5
- package/es/Modal-3fd86d5a.js +255 -0
- package/es/Modal-3fd86d5a.js.map +1 -0
- package/es/MonthView-7521b583.js +186 -0
- package/es/MonthView-7521b583.js.map +1 -0
- package/es/NavigationList-d8f472fe.js +146 -0
- package/es/NavigationList-d8f472fe.js.map +1 -0
- package/es/NavigationListItem-20ff5d75.js +10 -0
- package/es/NavigationListItem-20ff5d75.js.map +1 -0
- package/es/NumberInputText-eca11601.js +6 -6
- package/es/OverflowTabBar-5f7698bb.js +78 -0
- package/es/OverflowTabBar-5f7698bb.js.map +1 -0
- package/es/OverflowTabBarItem-c0ef2c6b.js +87 -0
- package/es/OverflowTabBarItem-c0ef2c6b.js.map +1 -0
- package/es/PRIVATE_BaseCardView.js +20 -20
- package/es/PRIVATE_Chart.js +30 -30
- package/es/PRIVATE_CheckboxControl.js +22 -22
- package/es/PRIVATE_CheckboxRadioField.js +23 -23
- package/es/PRIVATE_ClearIcon.js +17 -17
- package/es/PRIVATE_DatePickerHeader.js +19 -19
- package/es/PRIVATE_DatePickerLayout.js +4 -4
- package/es/PRIVATE_EmbeddedIconButton.js +3 -3
- package/es/PRIVATE_FormControls.js +19 -19
- package/es/PRIVATE_IconSwitchButton.js +15 -15
- package/es/PRIVATE_Icons/CheckboxMixed.js +15 -15
- package/es/PRIVATE_Icons/CheckboxOff.js +15 -15
- package/es/PRIVATE_Icons/CheckboxOn.js +15 -15
- package/es/PRIVATE_Icons/RadiobuttonOff.js +15 -15
- package/es/PRIVATE_Icons/RadiobuttonOn.js +15 -15
- package/es/PRIVATE_Icons/WarningS.js +15 -15
- package/es/PRIVATE_List.js +19 -19
- package/es/PRIVATE_Message.js +18 -18
- package/es/PRIVATE_MessageLayer.js +11 -11
- package/es/PRIVATE_MonthView.js +15 -15
- package/es/PRIVATE_MonthYearGridView.js +13 -13
- package/es/PRIVATE_PlotArea.js +4 -4
- package/es/PRIVATE_RevealToggleIcon.js +16 -16
- package/es/PRIVATE_SelectCommon.js +27 -27
- package/es/PRIVATE_StyledCheckbox.js +15 -15
- package/es/PRIVATE_Table.js +18 -18
- package/es/PRIVATE_ThemedIcons/CalendarIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ChartPanIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ChartZoomIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckboxOffIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CheckboxOnIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CloseIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/CollapseIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/CollapseUpIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DecrementIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DeleteIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +16 -16
- package/es/PRIVATE_ThemedIcons/DropdownArrowIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ExpandIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/HelpIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/IncrementIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageErrorIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageInfoIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MessageWarningIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/MinusIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/NavDownIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/PlusIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/RadioOffIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/RadioOnIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/SortAscendingIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/SortDefaultIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/SortDescendingIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ViewHideIcon.js +15 -15
- package/es/PRIVATE_ThemedIcons/ViewIcon.js +15 -15
- package/es/PRIVATE_TimeComponent.js +18 -18
- package/es/PRIVATE_VisTabularDatatip.js +4 -4
- package/es/PictoChart-3dd90503.js +6 -6
- package/es/PieChart-cdb56906.js +433 -0
- package/es/PieChart-cdb56906.js.map +1 -0
- package/es/Popup-8becd87a.js +240 -0
- package/es/Popup-8becd87a.js.map +1 -0
- package/es/ProgressBar-2565d814.js +58 -0
- package/es/ProgressBar-2565d814.js.map +1 -0
- package/es/ProgressButton-645ce827.js +3 -3
- package/es/ProgressButtonLabelLayout-6cf150e0.js +3 -3
- package/es/ProgressCircle-c7f945c0.js +44 -0
- package/es/ProgressCircle-c7f945c0.js.map +1 -0
- package/es/RadioItem-af1bbece.js +6 -6
- package/es/RatingGauge-82a6a416.js +7 -7
- package/es/ReadonlyTextFieldInput-a15badb6.js +1 -1
- package/es/RemovableNavigationListItem-1675a880.js +25 -0
- package/es/RemovableNavigationListItem-1675a880.js.map +1 -0
- package/es/RemovableTabBarItem-16d04210.js +2 -2
- package/es/ReorderableTabBar-8b432272.js +80 -0
- package/es/ReorderableTabBar-8b432272.js.map +1 -0
- package/es/RevealToggleIcon-563c241c.js +1 -1
- package/es/SectionalLegend-a9b719ff.js +4 -4
- package/es/SectionedContent-237bf539.js +64 -0
- package/es/SectionedContent-237bf539.js.map +1 -0
- package/es/SelectMultiple-c1264885.js +8 -8
- package/es/SelectSingle-8336ec24.js +7 -7
- package/es/SelectionCard-1711aae6.js +38 -0
- package/es/SelectionCard-1711aae6.js.map +1 -0
- package/es/Selector-9f40e909.js +1 -1
- package/es/SelectorAll-42ce8707.js +69 -0
- package/es/SelectorAll-42ce8707.js.map +1 -0
- package/es/Sheet-f7117b12.js +158 -0
- package/es/Sheet-f7117b12.js.map +1 -0
- package/es/SplitMenuButton-74913bcc.js +3 -3
- package/es/StyledTextField-9df27ab4.js +3 -3
- package/es/Submenu-c6663c1d.js +1 -1
- package/es/TabBar-dd778e55.js +71 -0
- package/es/TabBar-dd778e55.js.map +1 -0
- package/es/TabBarItem-ba695c75.js +3 -3
- package/es/TabBarLayout-8caaa060.js +1 -1
- package/es/TabBarMixed-995f2781.js +81 -0
- package/es/TabBarMixed-995f2781.js.map +1 -0
- package/es/TabBarMixedSeparator-da56f4c0.js +19 -0
- package/es/TabBarMixedSeparator-da56f4c0.js.map +1 -0
- package/es/Table-3d484e2c.js +8 -8
- package/es/TagCloud-823b3d82.js +9 -9
- package/es/TextArea-6f18b955.js +5 -5
- package/es/TextAreaAutosize-4cf2754b.js +5 -5
- package/es/TextField-d4b4661d.js +3 -3
- package/es/TextFieldInput-84280715.js +1 -1
- package/es/Theme-redwood/theme.css +476 -476
- package/es/Theme-stable/theme.css +889 -889
- package/es/TimeComponentCanvas2D-72f4af98.js +5 -5
- package/es/Toolbar-85379f64.js +1 -1
- package/es/TruncatingBadge-7eb77ed3.js +33 -0
- package/es/TruncatingBadge-7eb77ed3.js.map +1 -0
- package/es/TruncatingText-93807530.js +44 -0
- package/es/TruncatingText-93807530.js.map +1 -0
- package/es/UNSAFE_ActionCard.js +2 -2
- package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +30 -30
- package/es/UNSAFE_BarChart.js +30 -30
- package/es/UNSAFE_BaseButton.js +3 -3
- package/es/UNSAFE_Button.js +3 -3
- package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +19 -19
- package/es/UNSAFE_ButtonSet.js +4 -4
- package/es/UNSAFE_ButtonSetButton.js +3 -3
- package/es/UNSAFE_ButtonSetIconButton.js +15 -15
- package/es/UNSAFE_ButtonSetItem.js +15 -15
- package/es/UNSAFE_ButtonSetMultiple.js +4 -4
- package/es/UNSAFE_ButtonSetSingle.js +4 -4
- package/es/UNSAFE_CardFlexView.js +20 -20
- package/es/UNSAFE_CardGridView.js +20 -20
- package/es/UNSAFE_Center.js +5 -5
- package/es/UNSAFE_ChartWithLegend.js +4 -4
- package/es/UNSAFE_Checkbox.js +22 -22
- package/es/UNSAFE_CheckboxItem.js +23 -23
- package/es/UNSAFE_CheckboxSet.js +22 -22
- package/es/UNSAFE_Chip.js +2 -2
- package/es/UNSAFE_Collapsible.js +17 -17
- package/es/UNSAFE_ComponentMessage.js +18 -18
- package/es/UNSAFE_ConveyorBelt.js +15 -15
- package/es/UNSAFE_DatePicker.js +27 -27
- package/es/UNSAFE_Diagram.js +15 -15
- package/es/UNSAFE_Dialog.js +11 -11
- package/es/UNSAFE_DragHandle.js +16 -16
- 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 +22 -22
- 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 +22 -22
- package/es/UNSAFE_Grid.js +4 -4
- package/es/UNSAFE_HighlightText.js +4 -4
- package/es/UNSAFE_Icon.js +15 -15
- package/es/UNSAFE_IconButton.js +15 -15
- package/es/UNSAFE_IconMenuButton.js +19 -19
- package/es/UNSAFE_IconProgressButton.js +19 -19
- package/es/UNSAFE_IconToggleButton.js +15 -15
- package/es/UNSAFE_Indexer.js +6 -6
- package/es/UNSAFE_InputDateMask.js +23 -23
- package/es/UNSAFE_InputDatePicker.js +112 -112
- package/es/UNSAFE_InputPassword.js +22 -22
- package/es/UNSAFE_InputSensitiveText.js +24 -24
- package/es/UNSAFE_InputText.js +25 -25
- package/es/UNSAFE_Label.js +22 -22
- package/es/UNSAFE_LabelValueLayout.js +4 -4
- package/es/UNSAFE_LabelledLink.js +24 -24
- package/es/UNSAFE_Layer.js +7 -7
- package/es/UNSAFE_Legend.js +22 -22
- package/es/UNSAFE_LineAreaChart/__test__/LineChart.spec.js +30 -30
- package/es/UNSAFE_LineAreaChart.js +31 -31
- package/es/UNSAFE_Link.js +2 -2
- package/es/UNSAFE_ListItemLayout.js +5 -5
- package/es/UNSAFE_ListView.js +25 -25
- package/es/UNSAFE_LiveRegion.js +4 -4
- package/es/UNSAFE_Menu.js +21 -21
- package/es/UNSAFE_MenuButton.js +19 -19
- package/es/UNSAFE_MessageBanner.js +18 -18
- package/es/UNSAFE_MessageToast.js +21 -21
- package/es/UNSAFE_MeterBar.js +16 -16
- package/es/UNSAFE_MeterCircle.js +16 -16
- package/es/UNSAFE_Modal.js +7 -7
- package/es/UNSAFE_NavigationList.js +34 -32
- package/es/UNSAFE_NavigationList.js.map +1 -1
- package/es/UNSAFE_NavigationListCommon.js +68 -67
- package/es/UNSAFE_NavigationListCommon.js.map +1 -1
- package/es/UNSAFE_NumberInputText.js +24 -24
- package/es/UNSAFE_OverflowTabBar.js +52 -50
- 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_ProgressButton.js +19 -19
- package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
- package/es/UNSAFE_ProgressCircle.js +4 -4
- package/es/UNSAFE_RadioItem.js +22 -22
- package/es/UNSAFE_RadioSet.js +22 -22
- package/es/UNSAFE_RatingGauge.js +16 -16
- package/es/UNSAFE_ReorderableTabBar.js +45 -29
- package/es/UNSAFE_ReorderableTabBar.js.map +1 -1
- package/es/UNSAFE_SectionalLegend.js +23 -23
- package/es/UNSAFE_SelectMultiple.js +30 -30
- package/es/UNSAFE_SelectSingle.js +30 -30
- package/es/UNSAFE_SelectionCard.js +4 -4
- package/es/UNSAFE_Selector.js +15 -15
- package/es/UNSAFE_SelectorAll.js +19 -19
- package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +13 -13
- package/es/UNSAFE_Sheet.js +10 -10
- package/es/UNSAFE_SplitMenuButton.js +19 -19
- package/es/UNSAFE_TabBar.js +52 -50
- package/es/UNSAFE_TabBar.js.map +1 -1
- package/es/UNSAFE_TabBarCommon.js +43 -41
- package/es/UNSAFE_TabBarCommon.js.map +1 -1
- package/es/UNSAFE_TabBarMixed.js +55 -53
- package/es/UNSAFE_TabBarMixed.js.map +1 -1
- package/es/UNSAFE_TableView.js +18 -18
- package/es/UNSAFE_TagCloud.js +22 -22
- package/es/UNSAFE_TextArea.js +24 -24
- package/es/UNSAFE_TextAreaAutosize.js +24 -24
- package/es/UNSAFE_TextField.js +7 -7
- package/es/UNSAFE_ToggleButton.js +3 -3
- package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +21 -21
- package/es/UNSAFE_Toolbar.js +4 -4
- package/es/UNSAFE_Train.js +16 -16
- package/es/UNSAFE_TruncatingBadge.js +17 -17
- package/es/UNSAFE_TruncatingText.js +17 -17
- package/es/UNSAFE_UserAssistance.js +23 -23
- package/es/UNSAFE_View.js +7 -7
- package/es/UNSAFE_VirtualizedListView.js +19 -19
- 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-63980a9b.js +167 -0
- package/es/View-63980a9b.js.map +1 -0
- package/es/VisNoData-da540cbd.js +32 -0
- package/es/VisNoData-da540cbd.js.map +1 -0
- package/es/VisProgressiveLoader-2b2103c8.js +51 -0
- package/es/VisProgressiveLoader-2b2103c8.js.map +1 -0
- package/es/VisTabularDatatip-2ae7ee48.js +24 -0
- package/es/VisTabularDatatip-2ae7ee48.js.map +1 -0
- package/es/WindowOverlay-9b43e658.js +110 -0
- package/es/WindowOverlay-9b43e658.js.map +1 -0
- package/es/YearsGridView-e3bde50c.js +187 -0
- package/es/YearsGridView-e3bde50c.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 +17 -17
- 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_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 +16 -16
- package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
- package/es/hooks/UNSAFE_useUser.js +3 -3
- package/es/index-e65c9009.js +11 -0
- package/es/index-e65c9009.js.map +1 -0
- package/es/listViewSelectionTests-0dfdcc5d.js +4 -4
- package/es/render-ff141a3d.js +34 -0
- package/es/render-ff141a3d.js.map +1 -0
- package/es/tabbableUtils-375a33ee.js +79 -0
- package/es/tabbableUtils-375a33ee.js.map +1 -0
- package/es/testData-748c19ef.js +256 -0
- package/es/testData-748c19ef.js.map +1 -0
- package/es/tooltipUtils-1131b3ca.js +91 -0
- package/es/tooltipUtils-1131b3ca.js.map +1 -0
- package/es/useCellNavigation-00d575ca.js +1 -1
- package/es/useChartContextMenu-8c49f584.js +3 -3
- package/es/useChartDatatip-25f6bc69.js +142 -0
- package/es/useChartDatatip-25f6bc69.js.map +1 -0
- package/es/useChartMarquee-08025a83.js +1 -1
- package/es/useColorScheme-d8a80e2b.js +19 -0
- package/es/useColorScheme-d8a80e2b.js.map +1 -0
- package/es/useContextMenu-12845847.js +3 -3
- package/es/useCssVars-8e6932f8.js +58 -0
- package/es/useCssVars-8e6932f8.js.map +1 -0
- package/es/useCurrentBgColor-5418492b.js +19 -0
- package/es/useCurrentBgColor-5418492b.js.map +1 -0
- package/es/useCurrentKey-76e7d7b1.js +81 -0
- package/es/useCurrentKey-76e7d7b1.js.map +1 -0
- package/es/useDatatip-73566627.js +87 -0
- package/es/useDatatip-73566627.js.map +1 -0
- package/es/useDensity-64ecb649.js +19 -0
- package/es/useDensity-64ecb649.js.map +1 -0
- package/es/useFloating-d60cc8b4.js +1916 -0
- package/es/useFloating-d60cc8b4.js.map +1 -0
- package/es/useKeyboardEvents-5c311766.js +78 -0
- package/es/useKeyboardEvents-5c311766.js.map +1 -0
- package/es/useLegendContextMenu-926aca66.js +5 -5
- package/es/useMeterDatatip-2cedbd5c.js +82 -0
- package/es/useMeterDatatip-2cedbd5c.js.map +1 -0
- package/es/useNavigationListItem-31226722.js +81 -0
- package/es/useNavigationListItem-31226722.js.map +1 -0
- package/es/useOutsideClick-725542a2.js +85 -0
- package/es/useOutsideClick-725542a2.js.map +1 -0
- package/es/usePopupAnimation-340f04b6.js +85 -0
- package/es/usePopupAnimation-340f04b6.js.map +1 -0
- package/es/usePrefixSuffix-435a9c59.js +70 -0
- package/es/usePrefixSuffix-435a9c59.js.map +1 -0
- package/es/useReorderableItem-c715c504.js +2 -2
- package/es/useRovingTabIndexContainer-b9833086.js +98 -0
- package/es/useRovingTabIndexContainer-b9833086.js.map +1 -0
- package/es/useScale-c86ecc6e.js +19 -0
- package/es/useScale-c86ecc6e.js.map +1 -0
- package/es/useSelectCommon-7ebc86eb.js +11 -11
- package/es/useSelectDrill-fbe57d95.js +102 -0
- package/es/useSelectDrill-fbe57d95.js.map +1 -0
- package/es/useSelection-1e1e89df.js +241 -0
- package/es/useSelection-1e1e89df.js.map +1 -0
- package/es/useSelection-dfbd140d.js +181 -0
- package/es/useSelection-dfbd140d.js.map +1 -0
- package/es/useTabBar-b826570d.js +152 -0
- package/es/useTabBar-b826570d.js.map +1 -0
- package/es/useTestId-3bc3958c.js +21 -0
- package/es/useTestId-3bc3958c.js.map +1 -0
- package/es/useTheme-4b0f211c.js +19 -0
- package/es/useTheme-4b0f211c.js.map +1 -0
- package/es/useThemeInterpolations-41ac870d.js +31 -0
- package/es/useThemeInterpolations-41ac870d.js.map +1 -0
- package/es/useTooltip-227887ea.js +49 -0
- package/es/useTooltip-227887ea.js.map +1 -0
- package/es/useTooltipControlled-7ccb5919.js +390 -0
- package/es/useTooltipControlled-7ccb5919.js.map +1 -0
- package/es/useTranslationBundle-98df6291.js +29 -0
- package/es/useTranslationBundle-98df6291.js.map +1 -0
- package/es/useUser-a15426fc.js +19 -0
- package/es/useUser-a15426fc.js.map +1 -0
- package/es/useVisEvents-ff4204b5.js +153 -0
- package/es/useVisEvents-ff4204b5.js.map +1 -0
- package/es/utils/PRIVATE_tooltipUtils.js +13 -13
- package/es/utils/PRIVATE_visTestUtils.js +6 -6
- package/es/withDirectionIcon-90d7c798.js +14 -0
- package/es/withDirectionIcon-90d7c798.js.map +1 -0
- package/es/withThemeProps-6545df54.js +2 -2
- package/package.json +2 -2
- package/amd/BaseCardViewSelectionTest-b80dd91b.js +0 -2
- package/amd/BaseCardViewSelectionTest-b80dd91b.js.map +0 -1
- package/amd/Center-9ec5524e.js +0 -2
- package/amd/Center-9ec5524e.js.map +0 -1
- package/amd/CompactLabelAssistance-bc14e060.js +0 -2
- package/amd/CompactLabelAssistance-bc14e060.js.map +0 -1
- package/amd/DatePicker-dd358026.js +0 -2
- package/amd/DatePicker-dd358026.js.map +0 -1
- package/amd/Diagram-1b48168a.js +0 -2
- package/amd/Diagram-1b48168a.js.map +0 -1
- package/amd/Dialog-c34f9e89.js +0 -2
- package/amd/Dialog-c34f9e89.js.map +0 -1
- package/amd/Dropdown-b36aa071.js +0 -2
- package/amd/Dropdown-b36aa071.js.map +0 -1
- package/amd/EnvironmentProvider-c0e1e39b.js +0 -2
- package/amd/EnvironmentProvider-c0e1e39b.js.map +0 -1
- package/amd/Flex-3421f0df.js +0 -2
- package/amd/Flex-3421f0df.js.map +0 -1
- package/amd/Floating-25e0092b.js +0 -2
- package/amd/Floating-25e0092b.js.map +0 -1
- package/amd/Grid-8911aa0f.js +0 -2
- package/amd/Grid-8911aa0f.js.map +0 -1
- package/amd/Gridlines-071ff524.js +0 -2
- package/amd/Gridlines-071ff524.js.map +0 -1
- package/amd/HighlightText-644bc74e.js +0 -2
- package/amd/HighlightText-644bc74e.js.map +0 -1
- package/amd/IconUserAssistance-dda606e6.js +0 -2
- package/amd/IconUserAssistance-dda606e6.js.map +0 -1
- package/amd/InputDatePicker-97756bcd.js +0 -2
- package/amd/InputDatePicker-97756bcd.js.map +0 -1
- package/amd/Layer-e835aed8.js +0 -2
- package/amd/Layer-e835aed8.js.map +0 -1
- package/amd/LayerHost-639b3284.js +0 -2
- package/amd/LayerHost-639b3284.js.map +0 -1
- package/amd/LayerManager-2972de92.js +0 -2
- package/amd/LayerManager-2972de92.js.map +0 -1
- package/amd/LineAreaChart-5224fce6.js +0 -2
- package/amd/LineAreaChart-5224fce6.js.map +0 -1
- package/amd/ListItemLayout-1d8f166a.js +0 -2
- package/amd/ListItemLayout-1d8f166a.js.map +0 -1
- package/amd/LiveRegion-9a362373.js +0 -2
- package/amd/LiveRegion-9a362373.js.map +0 -1
- package/amd/MaxLengthCounter-caafceef.js +0 -2
- package/amd/MaxLengthCounter-caafceef.js.map +0 -1
- package/amd/MaxLengthLiveRegion-bb956138.js +0 -2
- package/amd/MaxLengthLiveRegion-bb956138.js.map +0 -1
- package/amd/Menu-e682ccb9.js +0 -2
- package/amd/Menu-e682ccb9.js.map +0 -1
- package/amd/MessageLayer-3742e608.js +0 -2
- package/amd/MessageLayer-3742e608.js.map +0 -1
- package/amd/Modal-2b6ce101.js +0 -2
- package/amd/Modal-2b6ce101.js.map +0 -1
- package/amd/MonthView-8a1fde80.js +0 -2
- package/amd/MonthView-8a1fde80.js.map +0 -1
- package/amd/PieChart-45cc3798.js +0 -2
- package/amd/PieChart-45cc3798.js.map +0 -1
- package/amd/Popup-059eb48a.js +0 -2
- package/amd/Popup-059eb48a.js.map +0 -1
- package/amd/ProgressBar-479b35e5.js +0 -2
- package/amd/ProgressBar-479b35e5.js.map +0 -1
- package/amd/ProgressCircle-365c4568.js +0 -2
- package/amd/ProgressCircle-365c4568.js.map +0 -1
- package/amd/SectionedContent-2b89af7b.js +0 -2
- package/amd/SectionedContent-2b89af7b.js.map +0 -1
- package/amd/SelectionCard-3973de1b.js +0 -2
- package/amd/SelectionCard-3973de1b.js.map +0 -1
- package/amd/SelectorAll-7288e923.js +0 -2
- package/amd/SelectorAll-7288e923.js.map +0 -1
- package/amd/Sheet-c6fc15b2.js +0 -2
- package/amd/Sheet-c6fc15b2.js.map +0 -1
- package/amd/TabBarMixedSeparator-ed764207.js +0 -2
- package/amd/TabBarMixedSeparator-ed764207.js.map +0 -1
- package/amd/TextArea-259d741c.js +0 -2
- package/amd/TextArea-259d741c.js.map +0 -1
- package/amd/TextAreaAutosize-e8dc13b4.js +0 -2
- package/amd/TextAreaAutosize-e8dc13b4.js.map +0 -1
- package/amd/TruncatingBadge-b6a271ea.js +0 -2
- package/amd/TruncatingBadge-b6a271ea.js.map +0 -1
- package/amd/TruncatingText-e1aceee7.js +0 -2
- package/amd/TruncatingText-e1aceee7.js.map +0 -1
- package/amd/View-bd5c7fa7.js +0 -2
- package/amd/View-bd5c7fa7.js.map +0 -1
- package/amd/VisNoData-ed2bd5cf.js +0 -2
- package/amd/VisNoData-ed2bd5cf.js.map +0 -1
- package/amd/VisProgressiveLoader-06a60c8f.js +0 -2
- package/amd/VisProgressiveLoader-06a60c8f.js.map +0 -1
- package/amd/VisTabularDatatip-55bbd19f.js +0 -2
- package/amd/VisTabularDatatip-55bbd19f.js.map +0 -1
- package/amd/WindowOverlay-43c10424.js +0 -2
- package/amd/WindowOverlay-43c10424.js.map +0 -1
- package/amd/YearsGridView-ddc90c36.js +0 -2
- package/amd/YearsGridView-ddc90c36.js.map +0 -1
- package/amd/index-a444ef75.js +0 -2
- package/amd/index-a444ef75.js.map +0 -1
- package/amd/render-a1ae323f.js +0 -2
- package/amd/render-a1ae323f.js.map +0 -1
- package/amd/tabbableUtils-f5e521c8.js +0 -2
- package/amd/tabbableUtils-f5e521c8.js.map +0 -1
- package/amd/testData-b22c8f34.js +0 -2
- package/amd/testData-b22c8f34.js.map +0 -1
- package/amd/tooltipUtils-79293e46.js +0 -2
- package/amd/tooltipUtils-79293e46.js.map +0 -1
- package/amd/useChartDatatip-04fa72c7.js +0 -2
- package/amd/useChartDatatip-04fa72c7.js.map +0 -1
- package/amd/useColorScheme-443e7cc7.js +0 -2
- package/amd/useColorScheme-443e7cc7.js.map +0 -1
- package/amd/useCssVars-dc52806c.js +0 -2
- package/amd/useCssVars-dc52806c.js.map +0 -1
- package/amd/useCurrentBgColor-50142bd8.js +0 -2
- package/amd/useCurrentBgColor-50142bd8.js.map +0 -1
- package/amd/useCurrentKey-db6f418a.js +0 -2
- package/amd/useCurrentKey-db6f418a.js.map +0 -1
- package/amd/useDatatip-748e233f.js +0 -2
- package/amd/useDatatip-748e233f.js.map +0 -1
- package/amd/useDensity-f0f7ae9a.js +0 -2
- package/amd/useDensity-f0f7ae9a.js.map +0 -1
- package/amd/useFloating-a2399a51.js +0 -2
- package/amd/useFloating-a2399a51.js.map +0 -1
- package/amd/useKeyboardEvents-8ada7a1f.js +0 -2
- package/amd/useKeyboardEvents-8ada7a1f.js.map +0 -1
- package/amd/useMeterDatatip-3b5a5112.js +0 -2
- package/amd/useMeterDatatip-3b5a5112.js.map +0 -1
- package/amd/useOutsideClick-476e0577.js +0 -2
- package/amd/useOutsideClick-476e0577.js.map +0 -1
- package/amd/usePopupAnimation-6445a247.js +0 -2
- package/amd/usePopupAnimation-6445a247.js.map +0 -1
- package/amd/usePrefixSuffix-f7544e05.js +0 -2
- package/amd/usePrefixSuffix-f7544e05.js.map +0 -1
- package/amd/useRovingTabIndexContainer-94cc3710.js +0 -2
- package/amd/useRovingTabIndexContainer-94cc3710.js.map +0 -1
- package/amd/useScale-e311d35f.js +0 -2
- package/amd/useScale-e311d35f.js.map +0 -1
- package/amd/useSelectDrill-65d98139.js +0 -2
- package/amd/useSelectDrill-65d98139.js.map +0 -1
- package/amd/useSelection-4d3a1ea8.js +0 -2
- package/amd/useSelection-4d3a1ea8.js.map +0 -1
- package/amd/useSelection-a6fd13cf.js +0 -2
- package/amd/useSelection-a6fd13cf.js.map +0 -1
- package/amd/useTabBar-40842fb9.js +0 -2
- package/amd/useTabBar-40842fb9.js.map +0 -1
- package/amd/useTestId-b5cd4766.js +0 -2
- package/amd/useTestId-b5cd4766.js.map +0 -1
- package/amd/useTheme-a8334e06.js +0 -2
- package/amd/useTheme-a8334e06.js.map +0 -1
- package/amd/useThemeInterpolations-e20f8cfa.js +0 -2
- package/amd/useThemeInterpolations-e20f8cfa.js.map +0 -1
- package/amd/useTooltip-e4089d1a.js +0 -2
- package/amd/useTooltip-e4089d1a.js.map +0 -1
- package/amd/useTooltipControlled-fafb2f01.js +0 -2
- package/amd/useTooltipControlled-fafb2f01.js.map +0 -1
- package/amd/useTranslationBundle-d07d4b20.js +0 -2
- package/amd/useTranslationBundle-d07d4b20.js.map +0 -1
- package/amd/useUser-3ef25571.js +0 -2
- package/amd/useUser-3ef25571.js.map +0 -1
- package/amd/useVisEvents-48144382.js +0 -2
- package/amd/useVisEvents-48144382.js.map +0 -1
- package/amd/withDirectionIcon-74c39ee3.js +0 -2
- package/amd/withDirectionIcon-74c39ee3.js.map +0 -1
- package/cjs/BaseCardView-b5471a69.js +0 -633
- package/cjs/BaseCardView-b5471a69.js.map +0 -1
- package/cjs/BaseCardViewSelectionTest-7b06bd30.js +0 -696
- package/cjs/BaseCardViewSelectionTest-7b06bd30.js.map +0 -1
- package/cjs/CardFlexView-075d4013.js +0 -29
- package/cjs/CardFlexView-075d4013.js.map +0 -1
- package/cjs/CardGridView-3c07cf2a.js +0 -17
- package/cjs/CardGridView-3c07cf2a.js.map +0 -1
- package/cjs/Center-9f407cb2.js +0 -18
- package/cjs/Center-9f407cb2.js.map +0 -1
- package/cjs/CheckboxSetContext-c62db26d.js +0 -12
- package/cjs/CheckboxSetContext-c62db26d.js.map +0 -1
- package/cjs/CompactLabelAssistance-2e1cd369.js +0 -36
- package/cjs/CompactLabelAssistance-2e1cd369.js.map +0 -1
- package/cjs/DatePicker-670a2473.js +0 -566
- package/cjs/DatePicker-670a2473.js.map +0 -1
- package/cjs/Diagram-240bfa89.js +0 -2004
- package/cjs/Diagram-240bfa89.js.map +0 -1
- package/cjs/Dialog-be0da1e4.js +0 -121
- package/cjs/Dialog-be0da1e4.js.map +0 -1
- package/cjs/Dropdown-62cd15ca.js +0 -82
- package/cjs/Dropdown-62cd15ca.js.map +0 -1
- package/cjs/EnvironmentProvider-bfd5febc.js +0 -61
- package/cjs/EnvironmentProvider-bfd5febc.js.map +0 -1
- package/cjs/Flex-ce16a2fa.js +0 -33
- package/cjs/Flex-ce16a2fa.js.map +0 -1
- package/cjs/Floating-43033e19.js +0 -464
- package/cjs/Floating-43033e19.js.map +0 -1
- package/cjs/Grid-b8fadf4a.js +0 -29
- package/cjs/Grid-b8fadf4a.js.map +0 -1
- package/cjs/Gridlines-2dfe546a.js +0 -123
- package/cjs/Gridlines-2dfe546a.js.map +0 -1
- package/cjs/HighlightText-2061d12d.js +0 -33
- package/cjs/HighlightText-2061d12d.js.map +0 -1
- package/cjs/IconUserAssistance-9cb25135.js +0 -75
- package/cjs/IconUserAssistance-9cb25135.js.map +0 -1
- package/cjs/Indexer-8ba89fa5.js +0 -339
- package/cjs/Indexer-8ba89fa5.js.map +0 -1
- package/cjs/Layer-c0d7bdec.js +0 -87
- package/cjs/Layer-c0d7bdec.js.map +0 -1
- package/cjs/LayerHost-7182bfaf.js +0 -45
- package/cjs/LayerHost-7182bfaf.js.map +0 -1
- package/cjs/LayerManager-db087520.js +0 -36
- package/cjs/LayerManager-db087520.js.map +0 -1
- package/cjs/LineAreaChart-4f443939.js +0 -250
- package/cjs/LineAreaChart-4f443939.js.map +0 -1
- package/cjs/List-5374e621.js +0 -632
- package/cjs/List-5374e621.js.map +0 -1
- package/cjs/ListItemLayout-b29d8e9c.js +0 -92
- package/cjs/ListItemLayout-b29d8e9c.js.map +0 -1
- package/cjs/ListView-a8278334.js +0 -426
- package/cjs/ListView-a8278334.js.map +0 -1
- package/cjs/LiveRegion-3bc583c6.js +0 -41
- package/cjs/LiveRegion-3bc583c6.js.map +0 -1
- package/cjs/LoadMoreCollection-69bc038c.js +0 -34
- package/cjs/LoadMoreCollection-69bc038c.js.map +0 -1
- package/cjs/MaxLengthLiveRegion-5e31c44e.js +0 -25
- package/cjs/MaxLengthLiveRegion-5e31c44e.js.map +0 -1
- package/cjs/Menu-748e93bd.js +0 -317
- package/cjs/Menu-748e93bd.js.map +0 -1
- package/cjs/MessageLayer-4e21820a.js +0 -61
- package/cjs/MessageLayer-4e21820a.js.map +0 -1
- package/cjs/Modal-3a5d6576.js +0 -258
- package/cjs/Modal-3a5d6576.js.map +0 -1
- package/cjs/MonthView-dea031e2.js +0 -188
- package/cjs/MonthView-dea031e2.js.map +0 -1
- package/cjs/PieChart-6d6e6330.js +0 -435
- package/cjs/PieChart-6d6e6330.js.map +0 -1
- package/cjs/Popup-cc742f4a.js +0 -242
- package/cjs/Popup-cc742f4a.js.map +0 -1
- package/cjs/ProgressBar-3fa6bb2c.js +0 -60
- package/cjs/ProgressBar-3fa6bb2c.js.map +0 -1
- package/cjs/ProgressCircle-d5c3fb49.js +0 -46
- package/cjs/ProgressCircle-d5c3fb49.js.map +0 -1
- package/cjs/SectionedContent-97955b41.js +0 -67
- package/cjs/SectionedContent-97955b41.js.map +0 -1
- package/cjs/SelectMultiple-79cebd04.js +0 -1305
- package/cjs/SelectMultiple-79cebd04.js.map +0 -1
- package/cjs/SelectSingle-d8cf56db.js +0 -731
- package/cjs/SelectSingle-d8cf56db.js.map +0 -1
- package/cjs/SelectionCard-45a56f1b.js +0 -40
- package/cjs/SelectionCard-45a56f1b.js.map +0 -1
- package/cjs/SelectorAll-f2d03afc.js +0 -71
- package/cjs/SelectorAll-f2d03afc.js.map +0 -1
- package/cjs/Sheet-1650f94c.js +0 -161
- package/cjs/Sheet-1650f94c.js.map +0 -1
- package/cjs/TabBarMixedSeparator-0f55c6f6.js +0 -21
- package/cjs/TabBarMixedSeparator-0f55c6f6.js.map +0 -1
- package/cjs/Table-d70de040.js +0 -4885
- package/cjs/Table-d70de040.js.map +0 -1
- package/cjs/TableView-d91ebb19.js +0 -29
- package/cjs/TableView-d91ebb19.js.map +0 -1
- package/cjs/TextArea-792069d7.js +0 -179
- package/cjs/TextArea-792069d7.js.map +0 -1
- package/cjs/TextAreaAutosize-1989de68.js +0 -245
- package/cjs/TextAreaAutosize-1989de68.js.map +0 -1
- package/cjs/TruncatingBadge-6e6a04cd.js +0 -35
- package/cjs/TruncatingBadge-6e6a04cd.js.map +0 -1
- package/cjs/TruncatingText-c7ab9968.js +0 -46
- package/cjs/TruncatingText-c7ab9968.js.map +0 -1
- package/cjs/View-145a402d.js +0 -170
- package/cjs/View-145a402d.js.map +0 -1
- package/cjs/VirtualizedCollection-9e8c48b9.js +0 -180
- package/cjs/VirtualizedCollection-9e8c48b9.js.map +0 -1
- package/cjs/VirtualizedListView-16222e22.js +0 -16
- package/cjs/VirtualizedListView-16222e22.js.map +0 -1
- package/cjs/VisNoData-d9717007.js +0 -35
- package/cjs/VisNoData-d9717007.js.map +0 -1
- package/cjs/VisProgressiveLoader-5ed4eb9d.js +0 -53
- package/cjs/VisProgressiveLoader-5ed4eb9d.js.map +0 -1
- package/cjs/VisTabularDatatip-a06f4ca3.js +0 -26
- package/cjs/VisTabularDatatip-a06f4ca3.js.map +0 -1
- package/cjs/WindowOverlay-de3bd373.js +0 -112
- package/cjs/WindowOverlay-de3bd373.js.map +0 -1
- package/cjs/YearsGridView-c0c0a96d.js +0 -190
- package/cjs/YearsGridView-c0c0a96d.js.map +0 -1
- package/cjs/index-0693e95d.js +0 -13
- package/cjs/index-0693e95d.js.map +0 -1
- package/cjs/render-0c893805.js +0 -41
- package/cjs/render-0c893805.js.map +0 -1
- package/cjs/tabbableUtils-63f5918b.js +0 -81
- package/cjs/tabbableUtils-63f5918b.js.map +0 -1
- package/cjs/testData-f0b1927d.js +0 -271
- package/cjs/testData-f0b1927d.js.map +0 -1
- package/cjs/tooltipUtils-7857f698.js +0 -95
- package/cjs/tooltipUtils-7857f698.js.map +0 -1
- package/cjs/useChartDatatip-bbe0ccc2.js +0 -144
- package/cjs/useChartDatatip-bbe0ccc2.js.map +0 -1
- package/cjs/useColorScheme-e6bef5a4.js +0 -21
- package/cjs/useColorScheme-e6bef5a4.js.map +0 -1
- package/cjs/useCssVars-9bea15a9.js +0 -60
- package/cjs/useCssVars-9bea15a9.js.map +0 -1
- package/cjs/useCurrentBgColor-6835bf45.js +0 -21
- package/cjs/useCurrentBgColor-6835bf45.js.map +0 -1
- package/cjs/useCurrentKey-3c1736a2.js +0 -83
- package/cjs/useCurrentKey-3c1736a2.js.map +0 -1
- package/cjs/useDatatip-36741e5a.js +0 -89
- package/cjs/useDatatip-36741e5a.js.map +0 -1
- package/cjs/useDensity-38283c57.js +0 -21
- package/cjs/useDensity-38283c57.js.map +0 -1
- package/cjs/useFloating-2b73fcfb.js +0 -1926
- package/cjs/useFloating-2b73fcfb.js.map +0 -1
- package/cjs/useKeyboardEvents-7ab0d8ee.js +0 -81
- package/cjs/useKeyboardEvents-7ab0d8ee.js.map +0 -1
- package/cjs/useMeterDatatip-7a14c350.js +0 -85
- package/cjs/useMeterDatatip-7a14c350.js.map +0 -1
- package/cjs/useOutsideClick-cc17641a.js +0 -87
- package/cjs/useOutsideClick-cc17641a.js.map +0 -1
- package/cjs/usePopupAnimation-c88cbb64.js +0 -87
- package/cjs/usePopupAnimation-c88cbb64.js.map +0 -1
- package/cjs/usePrefixSuffix-1de3a724.js +0 -72
- package/cjs/usePrefixSuffix-1de3a724.js.map +0 -1
- package/cjs/useRovingTabIndexContainer-fcf1e77b.js +0 -100
- package/cjs/useRovingTabIndexContainer-fcf1e77b.js.map +0 -1
- package/cjs/useScale-a47864b4.js +0 -21
- package/cjs/useScale-a47864b4.js.map +0 -1
- package/cjs/useSelectCommon-309c1746.js +0 -713
- package/cjs/useSelectCommon-309c1746.js.map +0 -1
- package/cjs/useSelectDrill-fef4f69b.js +0 -105
- package/cjs/useSelectDrill-fef4f69b.js.map +0 -1
- package/cjs/useSelection-53bc100d.js +0 -243
- package/cjs/useSelection-53bc100d.js.map +0 -1
- package/cjs/useSelection-82cc9108.js +0 -183
- package/cjs/useSelection-82cc9108.js.map +0 -1
- package/cjs/useTabBar-c4835f2d.js +0 -154
- package/cjs/useTabBar-c4835f2d.js.map +0 -1
- package/cjs/useTestId-e267a39d.js +0 -23
- package/cjs/useTestId-e267a39d.js.map +0 -1
- package/cjs/useTheme-6cedf9c8.js +0 -21
- package/cjs/useTheme-6cedf9c8.js.map +0 -1
- package/cjs/useThemeInterpolations-67125573.js +0 -33
- package/cjs/useThemeInterpolations-67125573.js.map +0 -1
- package/cjs/useTooltip-e96e07ae.js +0 -51
- package/cjs/useTooltip-e96e07ae.js.map +0 -1
- package/cjs/useTooltipControlled-24a9c567.js +0 -393
- package/cjs/useTooltipControlled-24a9c567.js.map +0 -1
- package/cjs/useTranslationBundle-6b0281a9.js +0 -31
- package/cjs/useTranslationBundle-6b0281a9.js.map +0 -1
- package/cjs/useUser-8aaad5a7.js +0 -21
- package/cjs/useUser-8aaad5a7.js.map +0 -1
- package/cjs/useVisEvents-63ddac11.js +0 -155
- package/cjs/useVisEvents-63ddac11.js.map +0 -1
- package/cjs/withDirectionIcon-7f758093.js +0 -16
- package/cjs/withDirectionIcon-7f758093.js.map +0 -1
- package/es/BaseCardViewSelectionTest-2159b609.js +0 -683
- package/es/BaseCardViewSelectionTest-2159b609.js.map +0 -1
- package/es/BaseNavigationListItem-ac7ef3c3.js +0 -119
- package/es/BaseNavigationListItem-ac7ef3c3.js.map +0 -1
- package/es/Center-9f355d44.js +0 -16
- package/es/Center-9f355d44.js.map +0 -1
- package/es/CompactLabelAssistance-61df6dbf.js +0 -34
- package/es/CompactLabelAssistance-61df6dbf.js.map +0 -1
- package/es/DatePicker-d4e027c2.js +0 -564
- package/es/DatePicker-d4e027c2.js.map +0 -1
- package/es/Diagram-d7fdc75f.js +0 -2002
- package/es/Diagram-d7fdc75f.js.map +0 -1
- package/es/Dialog-cf69547f.js +0 -119
- package/es/Dialog-cf69547f.js.map +0 -1
- package/es/Dropdown-d017dd0a.js +0 -80
- package/es/Dropdown-d017dd0a.js.map +0 -1
- package/es/EnvironmentProvider-a3819bde.js +0 -58
- package/es/EnvironmentProvider-a3819bde.js.map +0 -1
- package/es/Flex-2d51e914.js +0 -30
- package/es/Flex-2d51e914.js.map +0 -1
- package/es/Floating-aebc0f85.js +0 -462
- package/es/Floating-aebc0f85.js.map +0 -1
- package/es/Grid-c2385b22.js +0 -27
- package/es/Grid-c2385b22.js.map +0 -1
- package/es/Gridlines-0e7b33f5.js +0 -120
- package/es/Gridlines-0e7b33f5.js.map +0 -1
- package/es/HighlightText-d505bf35.js +0 -31
- package/es/HighlightText-d505bf35.js.map +0 -1
- package/es/IconUserAssistance-7cfd1ed2.js +0 -73
- package/es/IconUserAssistance-7cfd1ed2.js.map +0 -1
- package/es/InputDatePicker-81a18a57.js +0 -307
- package/es/InputDatePicker-81a18a57.js.map +0 -1
- package/es/Layer-915d986a.js +0 -84
- package/es/Layer-915d986a.js.map +0 -1
- package/es/LayerHost-7a2149f5.js +0 -40
- package/es/LayerHost-7a2149f5.js.map +0 -1
- package/es/LayerManager-be34be40.js +0 -34
- package/es/LayerManager-be34be40.js.map +0 -1
- package/es/LineAreaChart-e2e762e8.js +0 -248
- package/es/LineAreaChart-e2e762e8.js.map +0 -1
- package/es/ListItemLayout-01286b56.js +0 -90
- package/es/ListItemLayout-01286b56.js.map +0 -1
- package/es/LiveRegion-5302331c.js +0 -39
- package/es/LiveRegion-5302331c.js.map +0 -1
- package/es/MaxLengthLiveRegion-9b386b63.js +0 -23
- package/es/MaxLengthLiveRegion-9b386b63.js.map +0 -1
- package/es/Menu-e44a3e0b.js +0 -313
- package/es/Menu-e44a3e0b.js.map +0 -1
- package/es/MessageLayer-f09b0a1b.js +0 -58
- package/es/MessageLayer-f09b0a1b.js.map +0 -1
- package/es/Modal-862b8167.js +0 -255
- package/es/Modal-862b8167.js.map +0 -1
- package/es/MonthView-3d90f424.js +0 -186
- package/es/MonthView-3d90f424.js.map +0 -1
- package/es/NavigationListItem-a336f06f.js +0 -163
- package/es/NavigationListItem-a336f06f.js.map +0 -1
- package/es/OverflowTabBar-7d5212e3.js +0 -78
- package/es/OverflowTabBar-7d5212e3.js.map +0 -1
- package/es/OverflowTabBarItem-12249753.js +0 -86
- package/es/OverflowTabBarItem-12249753.js.map +0 -1
- package/es/PieChart-d4f63bd8.js +0 -433
- package/es/PieChart-d4f63bd8.js.map +0 -1
- package/es/Popup-7cc4028b.js +0 -240
- package/es/Popup-7cc4028b.js.map +0 -1
- package/es/ProgressBar-d647bba4.js +0 -58
- package/es/ProgressBar-d647bba4.js.map +0 -1
- package/es/ProgressCircle-13dc0e4f.js +0 -44
- package/es/ProgressCircle-13dc0e4f.js.map +0 -1
- package/es/RemovableNavigationListItem-7032ce3e.js +0 -24
- package/es/RemovableNavigationListItem-7032ce3e.js.map +0 -1
- package/es/ReorderableTabBar-981af0f2.js +0 -80
- package/es/ReorderableTabBar-981af0f2.js.map +0 -1
- package/es/SectionedContent-7e36073f.js +0 -64
- package/es/SectionedContent-7e36073f.js.map +0 -1
- package/es/SelectionCard-a27bce15.js +0 -38
- package/es/SelectionCard-a27bce15.js.map +0 -1
- package/es/SelectorAll-40c76f0b.js +0 -69
- package/es/SelectorAll-40c76f0b.js.map +0 -1
- package/es/Sheet-34f3bcb4.js +0 -158
- package/es/Sheet-34f3bcb4.js.map +0 -1
- package/es/TabBar-90cea652.js +0 -66
- package/es/TabBar-90cea652.js.map +0 -1
- package/es/TabBarMixed-52ac388e.js +0 -76
- package/es/TabBarMixed-52ac388e.js.map +0 -1
- package/es/TabBarMixedSeparator-16c88691.js +0 -19
- package/es/TabBarMixedSeparator-16c88691.js.map +0 -1
- package/es/TruncatingBadge-e5f38bc8.js +0 -33
- package/es/TruncatingBadge-e5f38bc8.js.map +0 -1
- package/es/TruncatingText-c3719839.js +0 -44
- package/es/TruncatingText-c3719839.js.map +0 -1
- package/es/View-a8a64eb1.js +0 -167
- package/es/View-a8a64eb1.js.map +0 -1
- package/es/VisNoData-673b58e9.js +0 -32
- package/es/VisNoData-673b58e9.js.map +0 -1
- package/es/VisProgressiveLoader-66dde1ff.js +0 -51
- package/es/VisProgressiveLoader-66dde1ff.js.map +0 -1
- package/es/VisTabularDatatip-6aa607bb.js +0 -24
- package/es/VisTabularDatatip-6aa607bb.js.map +0 -1
- package/es/WindowOverlay-de5d0819.js +0 -110
- package/es/WindowOverlay-de5d0819.js.map +0 -1
- package/es/YearsGridView-5b5c1746.js +0 -187
- package/es/YearsGridView-5b5c1746.js.map +0 -1
- package/es/index-fee93bf9.js +0 -11
- package/es/index-fee93bf9.js.map +0 -1
- package/es/render-d92a7051.js +0 -34
- package/es/render-d92a7051.js.map +0 -1
- package/es/tabbableUtils-1b4c2eea.js +0 -79
- package/es/tabbableUtils-1b4c2eea.js.map +0 -1
- package/es/testData-ca9503e6.js +0 -256
- package/es/testData-ca9503e6.js.map +0 -1
- package/es/tooltipUtils-06c93436.js +0 -91
- package/es/tooltipUtils-06c93436.js.map +0 -1
- package/es/useChartDatatip-82dba484.js +0 -142
- package/es/useChartDatatip-82dba484.js.map +0 -1
- package/es/useColorScheme-f69d53b5.js +0 -19
- package/es/useColorScheme-f69d53b5.js.map +0 -1
- package/es/useCssVars-48595cd2.js +0 -58
- package/es/useCssVars-48595cd2.js.map +0 -1
- package/es/useCurrentBgColor-894d059b.js +0 -19
- package/es/useCurrentBgColor-894d059b.js.map +0 -1
- package/es/useCurrentKey-55123e83.js +0 -81
- package/es/useCurrentKey-55123e83.js.map +0 -1
- package/es/useDatatip-01d7ddeb.js +0 -87
- package/es/useDatatip-01d7ddeb.js.map +0 -1
- package/es/useDensity-04a01caf.js +0 -19
- package/es/useDensity-04a01caf.js.map +0 -1
- package/es/useFloating-c9278755.js +0 -1916
- package/es/useFloating-c9278755.js.map +0 -1
- package/es/useKeyboardEvents-b02e5fda.js +0 -78
- package/es/useKeyboardEvents-b02e5fda.js.map +0 -1
- package/es/useMeterDatatip-43e31c05.js +0 -82
- package/es/useMeterDatatip-43e31c05.js.map +0 -1
- package/es/useOutsideClick-388c62bd.js +0 -85
- package/es/useOutsideClick-388c62bd.js.map +0 -1
- package/es/usePopupAnimation-b4577940.js +0 -85
- package/es/usePopupAnimation-b4577940.js.map +0 -1
- package/es/usePrefixSuffix-995d4cda.js +0 -70
- package/es/usePrefixSuffix-995d4cda.js.map +0 -1
- package/es/useRovingTabIndexContainer-097f96a6.js +0 -98
- package/es/useRovingTabIndexContainer-097f96a6.js.map +0 -1
- package/es/useScale-3b323ab2.js +0 -19
- package/es/useScale-3b323ab2.js.map +0 -1
- package/es/useSelectDrill-8b53d932.js +0 -102
- package/es/useSelectDrill-8b53d932.js.map +0 -1
- package/es/useSelection-7c94a24f.js +0 -241
- package/es/useSelection-7c94a24f.js.map +0 -1
- package/es/useSelection-b7c3e75e.js +0 -181
- package/es/useSelection-b7c3e75e.js.map +0 -1
- package/es/useTabBar-6c6847ef.js +0 -152
- package/es/useTabBar-6c6847ef.js.map +0 -1
- package/es/useTestId-af32a9eb.js +0 -21
- package/es/useTestId-af32a9eb.js.map +0 -1
- package/es/useTheme-73aca0e4.js +0 -19
- package/es/useTheme-73aca0e4.js.map +0 -1
- package/es/useThemeInterpolations-4f6cc83c.js +0 -31
- package/es/useThemeInterpolations-4f6cc83c.js.map +0 -1
- package/es/useTooltip-e258ea41.js +0 -49
- package/es/useTooltip-e258ea41.js.map +0 -1
- package/es/useTooltipControlled-50d5dac9.js +0 -390
- package/es/useTooltipControlled-50d5dac9.js.map +0 -1
- package/es/useTranslationBundle-6da03e52.js +0 -29
- package/es/useTranslationBundle-6da03e52.js.map +0 -1
- package/es/useUser-bca8cf2d.js +0 -19
- package/es/useUser-bca8cf2d.js.map +0 -1
- package/es/useVisEvents-cd3616aa.js +0 -153
- package/es/useVisEvents-cd3616aa.js.map +0 -1
- package/es/withDirectionIcon-389870a2.js +0 -14
- package/es/withDirectionIcon-389870a2.js.map +0 -1
package/es/Diagram-d7fdc75f.js
DELETED
|
@@ -1,2002 +0,0 @@
|
|
|
1
|
-
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
-
import { jsx, jsxs, Fragment } from 'preact/jsx-runtime';
|
|
3
|
-
import { T as TrackResizeContainer } from './TrackResizeContainer-6a6eb330.js';
|
|
4
|
-
import { itemStyles, layerStyles, labelStyles, panZoomStyles, outerStyles, dimensionStyle } from './UNSAFE_Diagram/themes/DiagramStyles.css.js';
|
|
5
|
-
import { u as useResizeObserver } from './useResizeObserver-260ee12b.js';
|
|
6
|
-
import { useRef, useCallback, useState } from 'preact/hooks';
|
|
7
|
-
import { g as generateAriaLabel } from './accUtils-dc32d20b.js';
|
|
8
|
-
import { c as classNames } from './classNames-4e12b00d.js';
|
|
9
|
-
import { u as useTranslationBundle } from './useTranslationBundle-6da03e52.js';
|
|
10
|
-
import { u as useUser } from './useUser-bca8cf2d.js';
|
|
11
|
-
import { g as getRandomId } from './layoutUtils-2374ab3e.js';
|
|
12
|
-
import { u as useVisHover } from './useVisHover-d7a0b2f3.js';
|
|
13
|
-
import { m as mergeProps } from './mergeProps-88ea8306.js';
|
|
14
|
-
import { u as useDatatip } from './useDatatip-01d7ddeb.js';
|
|
15
|
-
import { c as calculateOffset } from './util-c1d41418.js';
|
|
16
|
-
import { u as useTextDimensions } from './useTextDimensions-e48f2781.js';
|
|
17
|
-
import { u as useSelection } from './useSelection-b7c3e75e.js';
|
|
18
|
-
import { u as useVisTouchResponse } from './useVisTouchResponse-e9ca4766.js';
|
|
19
|
-
import { m as merge } from './stringUtils-16f617bc.js';
|
|
20
|
-
|
|
21
|
-
const ZOOM_TO_FIT_PADDING = 20;
|
|
22
|
-
/**
|
|
23
|
-
* Returns the pan properties for the diagram.
|
|
24
|
-
*/
|
|
25
|
-
function getPanProps(props, contentBounds) {
|
|
26
|
-
return {
|
|
27
|
-
panning: props.panning ? props.panning : 'off',
|
|
28
|
-
panDirection: props.panDirection ? props.panDirection : 'any',
|
|
29
|
-
centerX: props.centerX !== undefined ? props.centerX : contentBounds.w / 2 + contentBounds.x,
|
|
30
|
-
centerY: props.centerY !== undefined ? props.centerY : contentBounds.h / 2 + contentBounds.y,
|
|
31
|
-
onPan: props.onPan
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Returns the zoom properties for the diagram.
|
|
36
|
-
*/
|
|
37
|
-
function getZoomProps(props, width, height, contentBounds) {
|
|
38
|
-
const minZoom = props.minZoom ? props.minZoom : getZoomToFitZoom(width, height, contentBounds);
|
|
39
|
-
const maxZoom = props.maxZoom !== undefined ? props.maxZoom : 1;
|
|
40
|
-
const zoom = props.zoomValue ? props.zoomValue : getZoomToFitZoom(width, height, contentBounds);
|
|
41
|
-
return {
|
|
42
|
-
zooming: props.zooming ? props.zooming : 'off',
|
|
43
|
-
// default value of 0 indicates zoom-to-fit level
|
|
44
|
-
minZoom: minZoom,
|
|
45
|
-
maxZoom: maxZoom,
|
|
46
|
-
// zoom value of 0 will default to zoom to fit
|
|
47
|
-
zoomValue: constrainZoom(zoom, minZoom, maxZoom),
|
|
48
|
-
onZoom: props.onZoom
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Constructs the json object to be passed into the layout function
|
|
53
|
-
*/
|
|
54
|
-
function constructLayoutJSON(nodes, nodeItems, linkItems, dimensions, width, height, getTextDimensions) {
|
|
55
|
-
const labelDims = new Map();
|
|
56
|
-
const nodeKeys = Array.from(nodeItems.keys());
|
|
57
|
-
for (const id of nodeKeys) {
|
|
58
|
-
const item = nodeItems.get(id);
|
|
59
|
-
if (item && getTextDimensions && item.label) {
|
|
60
|
-
const label = item.label;
|
|
61
|
-
const fontProps = _getFontProps(item.labelStyle);
|
|
62
|
-
labelDims.set(id, getTextDimensions(label, fontProps));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
const linkKeys = Array.from(linkItems.keys());
|
|
66
|
-
for (const id of linkKeys) {
|
|
67
|
-
const item = linkItems.get(id);
|
|
68
|
-
if (item && getTextDimensions && item.label) {
|
|
69
|
-
const label = item.label;
|
|
70
|
-
const fontProps = _getFontProps(item.labelStyle);
|
|
71
|
-
labelDims.set(id, getTextDimensions(label, fontProps));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
const getLabelDimensions = function (data) {
|
|
75
|
-
return labelDims.get(data.id);
|
|
76
|
-
};
|
|
77
|
-
const getNodeDimensions = function (data) {
|
|
78
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
79
|
-
if (data.id === nodes[i].id) {
|
|
80
|
-
return dimensions[i];
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return dimensions[0];
|
|
84
|
-
};
|
|
85
|
-
return {
|
|
86
|
-
layoutJSON: {
|
|
87
|
-
getNodeDimensions: getNodeDimensions,
|
|
88
|
-
getLabelDimensions: getLabelDimensions,
|
|
89
|
-
componentSize: {
|
|
90
|
-
width: width,
|
|
91
|
-
height: height
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
labelDims: labelDims
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Deconstructs the output of the layout function
|
|
99
|
-
*/
|
|
100
|
-
function deconstructLayoutJSON(layoutJSON, nodeData, linkData) {
|
|
101
|
-
const nodes = layoutJSON.nodes;
|
|
102
|
-
const links = layoutJSON.links;
|
|
103
|
-
const positions = [];
|
|
104
|
-
const nodeLabelPos = [];
|
|
105
|
-
const linkLabelPos = [];
|
|
106
|
-
let hasNodeLabels = false;
|
|
107
|
-
let hasLinkLabels = false;
|
|
108
|
-
let node, link;
|
|
109
|
-
for (let i = 0; i < nodeData.length; i++) {
|
|
110
|
-
node = nodes[nodeData[i].id];
|
|
111
|
-
positions.push(node.position);
|
|
112
|
-
if (node.label)
|
|
113
|
-
hasNodeLabels = true;
|
|
114
|
-
nodeLabelPos.push(node.label);
|
|
115
|
-
}
|
|
116
|
-
if (links) {
|
|
117
|
-
for (let i = 0; i < linkData.length; i++) {
|
|
118
|
-
link = links[linkData[i].id];
|
|
119
|
-
if (link.label)
|
|
120
|
-
hasLinkLabels = true;
|
|
121
|
-
linkLabelPos.push(link.label);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return {
|
|
125
|
-
nodePoints: positions,
|
|
126
|
-
nodeLabelPos: hasNodeLabels ? nodeLabelPos : undefined,
|
|
127
|
-
linkLabelPos: hasLinkLabels ? linkLabelPos : undefined
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Merges the node points into the dimensions
|
|
132
|
-
*/
|
|
133
|
-
function mergeDimensions(dimensions, nodePoints) {
|
|
134
|
-
const newBounds = [];
|
|
135
|
-
for (let i = 0; i < dimensions.length; i++) {
|
|
136
|
-
const point = nodePoints[i];
|
|
137
|
-
const dim = dimensions[i];
|
|
138
|
-
newBounds.push({ x: point.x, y: point.y, w: dim.w, h: dim.h });
|
|
139
|
-
}
|
|
140
|
-
return newBounds;
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Returns the text for the diagram datatip.
|
|
144
|
-
*/
|
|
145
|
-
function getDatatipContent(nodesMap, linksMap, focusedItem, hoveredItem, datatip) {
|
|
146
|
-
let itemInfo;
|
|
147
|
-
const isPointerActive = hoveredItem?.isCurrent;
|
|
148
|
-
if (isPointerActive && hoveredItem.id != null) {
|
|
149
|
-
itemInfo = hoveredItem;
|
|
150
|
-
}
|
|
151
|
-
if (focusedItem && focusedItem.isCurrent) {
|
|
152
|
-
itemInfo = focusedItem;
|
|
153
|
-
}
|
|
154
|
-
if (itemInfo && datatip) {
|
|
155
|
-
return datatip(itemInfo.isNode
|
|
156
|
-
? { data: nodesMap.get(itemInfo.id), type: 'node' }
|
|
157
|
-
: { data: linksMap.get(itemInfo.id), type: 'link' });
|
|
158
|
-
}
|
|
159
|
-
if (itemInfo) {
|
|
160
|
-
const text = (itemInfo.isNode ? nodesMap.get(itemInfo.id) : linksMap.get(itemInfo.id))?.accessibleLabel;
|
|
161
|
-
return {
|
|
162
|
-
content: text
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Creates a map with key id and value node or link data
|
|
169
|
-
*/
|
|
170
|
-
function createItemMap(items) {
|
|
171
|
-
const itemIdToDataMap = new Map();
|
|
172
|
-
const itemIdToIndexMap = new Map();
|
|
173
|
-
const itemIndexToIdMap = new Map();
|
|
174
|
-
for (let i = 0; i < items.length; i++) {
|
|
175
|
-
itemIdToDataMap.set(items[i].id, items[i]);
|
|
176
|
-
itemIdToIndexMap.set(items[i].id, i);
|
|
177
|
-
itemIndexToIdMap.set(i, items[i].id);
|
|
178
|
-
}
|
|
179
|
-
return {
|
|
180
|
-
itemIdToDataMap,
|
|
181
|
-
itemIdToIndexMap,
|
|
182
|
-
itemIndexToIdMap
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Filter out links with no start or end nodes
|
|
187
|
-
*/
|
|
188
|
-
function filterLinksWithNoEndNodes(links, nodesMap) {
|
|
189
|
-
const newLinks = [];
|
|
190
|
-
for (let i = 0; i < links.length; i++) {
|
|
191
|
-
const link = links[i];
|
|
192
|
-
if (nodesMap.get(link.startNode) && nodesMap.get(link.endNode)) {
|
|
193
|
-
newLinks.push(link);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
return newLinks;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Pulls out the dimensions from an array of bounds
|
|
200
|
-
*/
|
|
201
|
-
function getDimensionsFromBounds(bounds) {
|
|
202
|
-
const dims = [];
|
|
203
|
-
for (let i = 0; i < bounds.length; i++) {
|
|
204
|
-
dims.push({ w: bounds[i].w, h: bounds[i].h });
|
|
205
|
-
}
|
|
206
|
-
return dims;
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Returns the center position of the node or link
|
|
210
|
-
* For links, draws a straight line between the centers of the start/end node
|
|
211
|
-
* and returns the center of that line
|
|
212
|
-
*/
|
|
213
|
-
function getFocusedItemBounds(focusedItemInfo, bounds, links, nodeIdToIndexMap, linkIdToIndexMap) {
|
|
214
|
-
if (focusedItemInfo.isNode) {
|
|
215
|
-
const idx = nodeIdToIndexMap.get(focusedItemInfo.id);
|
|
216
|
-
// Return the first element if cannot find the Node index
|
|
217
|
-
return bounds[idx || 0];
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
// Center of a straight line between start/end node centers
|
|
221
|
-
const link = links[linkIdToIndexMap.get(focusedItemInfo.id) || 0];
|
|
222
|
-
const startNB = bounds[nodeIdToIndexMap.get(link.startNode) || 0];
|
|
223
|
-
const endNB = bounds[nodeIdToIndexMap.get(link.endNode) || 0];
|
|
224
|
-
const startNCenter = { x: startNB.x + startNB.w / 2, y: startNB.y + startNB.h / 2 };
|
|
225
|
-
const endNCenter = { x: endNB.x + endNB.w / 2, y: endNB.y + endNB.h / 2 };
|
|
226
|
-
const minX = Math.min(startNCenter.x, endNCenter.x);
|
|
227
|
-
const minY = Math.min(startNCenter.y, endNCenter.y);
|
|
228
|
-
return {
|
|
229
|
-
x: minX,
|
|
230
|
-
y: minY,
|
|
231
|
-
w: Math.abs(startNCenter.x - endNCenter.x),
|
|
232
|
-
h: Math.abs(startNCenter.y - endNCenter.y)
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Combines the node and link ids into one array
|
|
238
|
-
*/
|
|
239
|
-
function combineIds(nodeIds, linkIds) {
|
|
240
|
-
const combinedIds = [];
|
|
241
|
-
if (nodeIds) {
|
|
242
|
-
for (let i = 0; i < nodeIds.length; i++) {
|
|
243
|
-
combinedIds.push(nodeIds[i]);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
if (linkIds) {
|
|
247
|
-
for (let i = 0; i < linkIds.length; i++) {
|
|
248
|
-
combinedIds.push(linkIds[i]);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return combinedIds;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Returns the bounds of the diagram content
|
|
255
|
-
*/
|
|
256
|
-
function getContentBounds(nodeBounds, labelBounds) {
|
|
257
|
-
if (nodeBounds.length === 0)
|
|
258
|
-
return { x: 0, w: Infinity, y: 0, h: Infinity };
|
|
259
|
-
let minX = Infinity;
|
|
260
|
-
let minY = Infinity;
|
|
261
|
-
let maxX = -Infinity;
|
|
262
|
-
let maxY = -Infinity;
|
|
263
|
-
let dims;
|
|
264
|
-
for (let i = 0; i < nodeBounds.length; i++) {
|
|
265
|
-
dims = nodeBounds[i];
|
|
266
|
-
minX = dims.x < minX ? dims.x : minX;
|
|
267
|
-
minY = dims.y < minY ? dims.y : minY;
|
|
268
|
-
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
269
|
-
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
270
|
-
}
|
|
271
|
-
if (labelBounds) {
|
|
272
|
-
minX = labelBounds.x < minX ? labelBounds.x : minX;
|
|
273
|
-
minY = labelBounds.y < minY ? labelBounds.y : minY;
|
|
274
|
-
maxX = labelBounds.x + labelBounds.w > maxX ? labelBounds.x + labelBounds.w : maxX;
|
|
275
|
-
maxY = labelBounds.y + labelBounds.h > maxY ? labelBounds.y + labelBounds.h : maxY;
|
|
276
|
-
}
|
|
277
|
-
return { x: minX, w: maxX - minX, y: minY, h: maxY - minY };
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Returns the label bounds
|
|
281
|
-
*/
|
|
282
|
-
function getAllLabelBounds(labelDims, nodes, links, nodeLabelPos = [], linkLabelPos = [], isRTL) {
|
|
283
|
-
if (nodeLabelPos.length === 0 && linkLabelPos.length === 0)
|
|
284
|
-
return undefined;
|
|
285
|
-
let minX = Infinity;
|
|
286
|
-
let minY = Infinity;
|
|
287
|
-
let maxX = -Infinity;
|
|
288
|
-
let maxY = -Infinity;
|
|
289
|
-
let dims, label;
|
|
290
|
-
for (let i = 0; i < nodeLabelPos.length; i++) {
|
|
291
|
-
label = nodeLabelPos[i];
|
|
292
|
-
if (!label)
|
|
293
|
-
continue;
|
|
294
|
-
dims = getLabelBounds(label, labelDims.get(nodes[i].id), isRTL);
|
|
295
|
-
minX = dims.x < minX ? dims.x : minX;
|
|
296
|
-
minY = dims.y < minY ? dims.y : minY;
|
|
297
|
-
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
298
|
-
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
299
|
-
}
|
|
300
|
-
for (let i = 0; i < linkLabelPos.length; i++) {
|
|
301
|
-
label = linkLabelPos[i];
|
|
302
|
-
if (!label)
|
|
303
|
-
continue;
|
|
304
|
-
dims = getLabelBounds(label, labelDims.get(links[i].id), isRTL);
|
|
305
|
-
minX = dims.x < minX ? dims.x : minX;
|
|
306
|
-
minY = dims.y < minY ? dims.y : minY;
|
|
307
|
-
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
308
|
-
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
309
|
-
}
|
|
310
|
-
return { x: minX, w: maxX - minX, y: minY, h: maxY - minY };
|
|
311
|
-
}
|
|
312
|
-
function getLabelBounds(label, dims, isRTL) {
|
|
313
|
-
const labelPos = getLabelPosition(dims, label, isRTL);
|
|
314
|
-
const isRotating = label.rotationAngle;
|
|
315
|
-
if (!isRotating) {
|
|
316
|
-
return { x: labelPos.x, y: labelPos.y, w: dims.width, h: dims.height };
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
// Find the 4 corners of the label bounds relative to the rotation point
|
|
320
|
-
const rotationPoint = label.rotationPoint
|
|
321
|
-
? label.rotationPoint
|
|
322
|
-
: { x: dims.width / 2, y: dims.height / 2 };
|
|
323
|
-
const angle = label.rotationAngle;
|
|
324
|
-
const topLeft = getCoordsRelToRotPoint({ x: 0, y: 0 }, rotationPoint);
|
|
325
|
-
const topRight = getCoordsRelToRotPoint({ x: dims.width, y: 0 }, rotationPoint);
|
|
326
|
-
const bottomLeft = getCoordsRelToRotPoint({ x: 0, y: dims.height }, rotationPoint);
|
|
327
|
-
const bottomRight = getCoordsRelToRotPoint({ x: dims.width, y: dims.height }, rotationPoint);
|
|
328
|
-
const rotTopLeft = rotatePoint(topLeft, angle);
|
|
329
|
-
const rotBotLeft = rotatePoint(bottomLeft, angle);
|
|
330
|
-
const rotTopRight = rotatePoint(topRight, angle);
|
|
331
|
-
const rotBotRight = rotatePoint(bottomRight, angle);
|
|
332
|
-
const points = [rotTopLeft, rotBotLeft, rotTopRight, rotBotRight].map((pos) => {
|
|
333
|
-
return {
|
|
334
|
-
x: pos.x + labelPos.x + rotationPoint.x,
|
|
335
|
-
y: pos.y + labelPos.y + rotationPoint.y
|
|
336
|
-
};
|
|
337
|
-
});
|
|
338
|
-
return getBoundsFromPoints(points);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
function getCoordsRelToRotPoint(labelPoint, rotPoint) {
|
|
342
|
-
return { x: labelPoint.x - rotPoint.x, y: labelPoint.y - rotPoint.y };
|
|
343
|
-
}
|
|
344
|
-
function rotatePoint(pos, angle) {
|
|
345
|
-
return {
|
|
346
|
-
x: pos.x * Math.cos(angle) - pos.y * Math.sin(angle),
|
|
347
|
-
y: pos.x * Math.sin(angle) + pos.y * Math.cos(angle)
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
function getBoundsFromPoints(points) {
|
|
351
|
-
let minX = points[0].x;
|
|
352
|
-
let minY = points[0].y;
|
|
353
|
-
let maxX = points[0].x;
|
|
354
|
-
let maxY = points[0].y;
|
|
355
|
-
for (let i = 1; i < points.length; i++) {
|
|
356
|
-
const point = points[i];
|
|
357
|
-
if (point.x < minX)
|
|
358
|
-
minX = point.x;
|
|
359
|
-
else if (point.x > maxX)
|
|
360
|
-
maxX = point.x;
|
|
361
|
-
if (point.y < minY)
|
|
362
|
-
minY = point.y;
|
|
363
|
-
else if (point.y > maxY)
|
|
364
|
-
maxY = point.y;
|
|
365
|
-
}
|
|
366
|
-
return {
|
|
367
|
-
x: minX,
|
|
368
|
-
y: minY,
|
|
369
|
-
w: maxX - minX,
|
|
370
|
-
h: maxY - minY
|
|
371
|
-
};
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Returns the position of the label
|
|
375
|
-
* @param dimensions
|
|
376
|
-
* @param positionProps
|
|
377
|
-
* @returns position of the label
|
|
378
|
-
*/
|
|
379
|
-
function getLabelPosition(dimensions, positionProps, isRTL) {
|
|
380
|
-
const position = positionProps.position;
|
|
381
|
-
const hAlign = positionProps.hAlign ? positionProps.hAlign : isRTL ? 'right' : 'left';
|
|
382
|
-
const vAlign = positionProps.vAlign;
|
|
383
|
-
let x, y;
|
|
384
|
-
if (hAlign === 'center') {
|
|
385
|
-
x = position.x - dimensions.width / 2;
|
|
386
|
-
}
|
|
387
|
-
else if (hAlign === 'right') {
|
|
388
|
-
x = position.x - dimensions.width;
|
|
389
|
-
}
|
|
390
|
-
else {
|
|
391
|
-
x = position.x;
|
|
392
|
-
}
|
|
393
|
-
if (vAlign === 'middle') {
|
|
394
|
-
y = position.y - dimensions.height / 2;
|
|
395
|
-
}
|
|
396
|
-
else if (vAlign === 'bottom') {
|
|
397
|
-
y = position.y - dimensions.height;
|
|
398
|
-
}
|
|
399
|
-
else if (vAlign === 'baseline') {
|
|
400
|
-
y = position.y + dimensions.y;
|
|
401
|
-
}
|
|
402
|
-
else {
|
|
403
|
-
y = position.y;
|
|
404
|
-
}
|
|
405
|
-
return {
|
|
406
|
-
x: x,
|
|
407
|
-
y: y
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* Converts centerX,Y coordinates to panX,Y coordinates
|
|
412
|
-
*/
|
|
413
|
-
function centerXYToPanXY(centerX, centerY, zoom, width, height) {
|
|
414
|
-
return {
|
|
415
|
-
panX: width / 2 - centerX * zoom,
|
|
416
|
-
panY: height / 2 - centerY * zoom
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
/**
|
|
420
|
-
* Converts panX,Y coordinates to centerX,Y coordinates
|
|
421
|
-
*/
|
|
422
|
-
function panXYToCenterXY(panX, panY, zoom, width, height) {
|
|
423
|
-
return {
|
|
424
|
-
centerX: (width / 2 - panX) / zoom,
|
|
425
|
-
centerY: (height / 2 - panY) / zoom
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
/**
|
|
429
|
-
* Compares if two ItemInfo are equal
|
|
430
|
-
*/
|
|
431
|
-
function isEqualItem(item1, item2) {
|
|
432
|
-
return item1?.id === item2?.id && item1?.isNode === item2?.isNode;
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* Returns the item info of the data-oj-node or data-oj-link attribute for a given element.
|
|
436
|
-
*/
|
|
437
|
-
function getNavigableInfo(element, rootElementRef) {
|
|
438
|
-
let isNode = false;
|
|
439
|
-
let elem = element;
|
|
440
|
-
let navigableId;
|
|
441
|
-
while (!navigableId) {
|
|
442
|
-
navigableId = elem.dataset['node'];
|
|
443
|
-
if (navigableId) {
|
|
444
|
-
isNode = true;
|
|
445
|
-
}
|
|
446
|
-
else {
|
|
447
|
-
navigableId = elem.dataset['link'];
|
|
448
|
-
}
|
|
449
|
-
if (!navigableId) {
|
|
450
|
-
if (elem.parentElement && elem.parentElement !== rootElementRef?.current) {
|
|
451
|
-
elem = elem.parentElement;
|
|
452
|
-
}
|
|
453
|
-
else {
|
|
454
|
-
break;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
return {
|
|
459
|
-
id: navigableId,
|
|
460
|
-
isNode: isNode
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
/**
|
|
464
|
-
* Returns the aria label
|
|
465
|
-
*/
|
|
466
|
-
function getItemAriaLabel(translations, supportsSelection, isSelected, accessibleLabel) {
|
|
467
|
-
return generateAriaLabel(translations, accessibleLabel || '', {
|
|
468
|
-
isSelected: !supportsSelection ? undefined : isSelected
|
|
469
|
-
});
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Returns the zoom to fit zoom level
|
|
473
|
-
*/
|
|
474
|
-
function getZoomToFitZoom(width, height, contentBounds) {
|
|
475
|
-
const zoomX = (width - 2 * ZOOM_TO_FIT_PADDING) / contentBounds.w;
|
|
476
|
-
const zoomY = (height - 2 * ZOOM_TO_FIT_PADDING) / contentBounds.h;
|
|
477
|
-
return Math.min(zoomX, zoomY);
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* Constrains the zoom level
|
|
481
|
-
*/
|
|
482
|
-
function constrainZoom(zoom, minZoom, maxZoom) {
|
|
483
|
-
let newZoom = Math.max(minZoom, zoom);
|
|
484
|
-
newZoom = Math.min(maxZoom, newZoom);
|
|
485
|
-
return newZoom;
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* Returns the font props for a node or link
|
|
489
|
-
*/
|
|
490
|
-
function _getFontProps(styles) {
|
|
491
|
-
const fontProps = {};
|
|
492
|
-
if (!styles)
|
|
493
|
-
return fontProps;
|
|
494
|
-
if (styles.fontFamily)
|
|
495
|
-
fontProps.fontFamily = styles.fontFamily;
|
|
496
|
-
if (styles.fontSize)
|
|
497
|
-
fontProps.fontSize = styles.fontSize;
|
|
498
|
-
if (styles.fontStyle)
|
|
499
|
-
fontProps.fontStyle = styles.fontStyle;
|
|
500
|
-
if (styles.fontWeight)
|
|
501
|
-
fontProps.fontWeight = styles.fontWeight;
|
|
502
|
-
return fontProps;
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* Returns the panX, panY, and zoom when zooming and centering an item
|
|
506
|
-
*/
|
|
507
|
-
function zoomAndCenterItemFromInfo(info, linkIdToDataMap, bounds, nodeIdToIndex, width, height, maxZoom) {
|
|
508
|
-
const isNode = info.isNode;
|
|
509
|
-
let totalBounds;
|
|
510
|
-
if (isNode) {
|
|
511
|
-
const nodeIndex = nodeIdToIndex.get(info.id);
|
|
512
|
-
totalBounds = bounds[nodeIndex];
|
|
513
|
-
}
|
|
514
|
-
else {
|
|
515
|
-
const link = linkIdToDataMap.get(info.id);
|
|
516
|
-
const startNodeBounds = bounds[nodeIdToIndex.get(link.startNode)];
|
|
517
|
-
const endNodeBounds = bounds[nodeIdToIndex.get(link.endNode)];
|
|
518
|
-
const minX = Math.min(startNodeBounds.x, endNodeBounds.x);
|
|
519
|
-
const minY = Math.min(startNodeBounds.y, endNodeBounds.y);
|
|
520
|
-
const maxX = Math.max(startNodeBounds.x + startNodeBounds.w, endNodeBounds.x + startNodeBounds.w);
|
|
521
|
-
const maxY = Math.max(startNodeBounds.y + startNodeBounds.h, endNodeBounds.y + endNodeBounds.h);
|
|
522
|
-
totalBounds = { x: minX, y: minY, w: maxX - minX, h: maxY - minY };
|
|
523
|
-
}
|
|
524
|
-
return getPanZoomToCenterNode(totalBounds, maxZoom, width, height);
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
* Returns the pan and zoom values in order
|
|
528
|
-
* to center a node or link
|
|
529
|
-
*/
|
|
530
|
-
function getPanZoomToCenterNode(bounds, maxZoom, width, height) {
|
|
531
|
-
const zoomX = (width - 2 * ZOOM_TO_FIT_PADDING) / bounds.w;
|
|
532
|
-
const zoomY = (height - 2 * ZOOM_TO_FIT_PADDING) / bounds.h;
|
|
533
|
-
const zoom = Math.min(zoomX, zoomY, maxZoom);
|
|
534
|
-
const cX = bounds.w / 2 + bounds.x;
|
|
535
|
-
const cY = bounds.h / 2 + bounds.y;
|
|
536
|
-
return { centerX: cX, centerY: cY, zoom: zoom };
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
const DiagramNodeElement = ({ id, state, previousState, position, activeId, nodeRenderer, onNodeSizeChanged, nodeIndex, data, accessibleLabel, isDimmed, supportsSelection }) => {
|
|
540
|
-
const { nodeStyles, dimmedItemStyle } = itemStyles;
|
|
541
|
-
const context = {
|
|
542
|
-
state: state,
|
|
543
|
-
previousState: previousState,
|
|
544
|
-
data: data
|
|
545
|
-
};
|
|
546
|
-
const translations = useTranslationBundle('@oracle/oraclejet-preact');
|
|
547
|
-
const ref = useRef(null);
|
|
548
|
-
// TODO JET-62472 change to one resize observer function
|
|
549
|
-
const optionsRef = useRef({ box: 'border-box' });
|
|
550
|
-
useResizeObserver(ref, useCallback((entry) => {
|
|
551
|
-
const boxSize = entry.borderBoxSize;
|
|
552
|
-
const width = boxSize[0].inlineSize;
|
|
553
|
-
const height = boxSize[0].blockSize;
|
|
554
|
-
onNodeSizeChanged(width, height, nodeIndex);
|
|
555
|
-
}, [nodeIndex, onNodeSizeChanged]), optionsRef.current);
|
|
556
|
-
return (jsx("div", { ref: ref, class: classNames([nodeStyles, isDimmed ? dimmedItemStyle : undefined]), "data-node": id, role: "img", "aria-label": getItemAriaLabel(translations, supportsSelection, state.selected, accessibleLabel), style: {
|
|
557
|
-
top: position.y,
|
|
558
|
-
left: position.x
|
|
559
|
-
}, id: state.focused || state.hovered ? activeId : undefined, children: nodeRenderer(context) }, id));
|
|
560
|
-
};
|
|
561
|
-
|
|
562
|
-
function DiagramNodeLayer({ nodes, states, previousStates, nodeRenderer, nodeBounds, onNodeSizeChanged, supportsSelection }) {
|
|
563
|
-
return (jsx("div", { class: layerStyles, children: nodes.map((node, i) => {
|
|
564
|
-
// this is for initial render before the layout function so render all nodes at 0,0
|
|
565
|
-
const position = nodeBounds && nodeBounds[i] ? { x: nodeBounds[i].x, y: nodeBounds[i].y } : { x: 0, y: 0 };
|
|
566
|
-
const state = {
|
|
567
|
-
selected: states.selectedNodeIds.includes(node.id),
|
|
568
|
-
focused: states.focusedId === node.id,
|
|
569
|
-
hovered: states.hoveredId === node.id,
|
|
570
|
-
zoom: states.zoom
|
|
571
|
-
};
|
|
572
|
-
const previousState = {
|
|
573
|
-
selected: previousStates.selectedNodeIds.includes(node.id),
|
|
574
|
-
focused: previousStates.focusedId === node.id,
|
|
575
|
-
hovered: previousStates.hoveredId === node.id,
|
|
576
|
-
zoom: previousStates.zoom
|
|
577
|
-
};
|
|
578
|
-
return (jsx(DiagramNodeElement, { id: node.id, position: position, state: state, previousState: previousState, isDimmed: states.highlightedIds.length !== 0 && !states.highlightedIds.includes(node.id), activeId: states.activeId, nodeRenderer: nodeRenderer, onNodeSizeChanged: onNodeSizeChanged, nodeIndex: i, accessibleLabel: node.accessibleLabel, data: node, supportsSelection: supportsSelection }));
|
|
579
|
-
}) }));
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
const DiagramLinkElement = ({ id, state, previousState, activeId, data, linkRenderer, accessibleLabel, isDimmed, supportsSelection, layoutOutput }) => {
|
|
583
|
-
const translations = useTranslationBundle('@oracle/oraclejet-preact');
|
|
584
|
-
const { dimmedItemStyle, linkStyles } = itemStyles;
|
|
585
|
-
const context = {
|
|
586
|
-
state: state,
|
|
587
|
-
previousState: previousState,
|
|
588
|
-
data: data,
|
|
589
|
-
layoutOutput: layoutOutput
|
|
590
|
-
};
|
|
591
|
-
return (jsx("g", { id: state.focused ? activeId : undefined, "aria-label": getItemAriaLabel(translations, supportsSelection, state.selected, accessibleLabel), "data-link": id, role: "img", class: classNames([linkStyles, isDimmed && dimmedItemStyle]), children: linkRenderer(context) }, id));
|
|
592
|
-
};
|
|
593
|
-
|
|
594
|
-
function DiagramLinkLayer({ links, states, previousStates, linkRenderer, width, height, supportsSelection, layoutOutput }) {
|
|
595
|
-
return (jsx("svg", { class: layerStyles, width: width, height: height, children: links.map((link) => {
|
|
596
|
-
const state = {
|
|
597
|
-
selected: states.selectedLinkIds.includes(link.id),
|
|
598
|
-
focused: states.focusedId === link.id,
|
|
599
|
-
hovered: states.hoveredId === link.id,
|
|
600
|
-
zoom: states.zoom
|
|
601
|
-
};
|
|
602
|
-
const previousState = {
|
|
603
|
-
selected: previousStates.selectedLinkIds.includes(link.id),
|
|
604
|
-
focused: previousStates.focusedId === link.id,
|
|
605
|
-
hovered: previousStates.hoveredId === link.id,
|
|
606
|
-
zoom: previousStates.zoom
|
|
607
|
-
};
|
|
608
|
-
return (jsx(DiagramLinkElement, { id: link.id, label: link.label, state: state, previousState: previousState, isDimmed: states.highlightedIds.length !== 0 && !states.highlightedIds.includes(link.id), activeId: states.activeId, accessibleLabel: link.accessibleLabel, data: link, linkRenderer: linkRenderer, supportsSelection: supportsSelection, layoutOutput: layoutOutput }));
|
|
609
|
-
}) }));
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
const DiagramLabel = ({ text, position, styles, dimensions, isRTL }) => {
|
|
613
|
-
const { labelStyle, labelBorderStyle } = labelStyles;
|
|
614
|
-
const labelPosition = getLabelPosition(dimensions, position, isRTL);
|
|
615
|
-
const labelRotation = getLabelRotation(position);
|
|
616
|
-
return (jsx("div", { class: classNames([labelStyle, styles && styles.borderColor && labelBorderStyle]), style: {
|
|
617
|
-
top: labelPosition.y,
|
|
618
|
-
left: labelPosition.x,
|
|
619
|
-
...styles,
|
|
620
|
-
...labelRotation
|
|
621
|
-
}, children: text }));
|
|
622
|
-
};
|
|
623
|
-
/**
|
|
624
|
-
* Returns the label rotation props
|
|
625
|
-
* @param position
|
|
626
|
-
* @returns rotation props
|
|
627
|
-
*/
|
|
628
|
-
function getLabelRotation(position) {
|
|
629
|
-
const rotationAngle = position.rotationAngle;
|
|
630
|
-
const rotationPoint = position.rotationPoint;
|
|
631
|
-
const rotation = {};
|
|
632
|
-
if (rotationAngle) {
|
|
633
|
-
rotation['transform'] = `rotate(${rotationAngle}deg)`;
|
|
634
|
-
}
|
|
635
|
-
if (rotationPoint) {
|
|
636
|
-
rotation['transform-origin'] = `${rotationPoint.x}px ${rotationPoint.y}px`;
|
|
637
|
-
}
|
|
638
|
-
return rotation;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
function DiagramLabelLayer({ labelPosition, itemProps, labelDimensions }) {
|
|
642
|
-
const { direction } = useUser();
|
|
643
|
-
return (jsx("div", { class: layerStyles, children: itemProps.map((item, i) => {
|
|
644
|
-
if (item.label && labelPosition[i]) {
|
|
645
|
-
return (jsx(DiagramLabel, { styles: item.labelStyle, text: item.label, position: labelPosition[i], dimensions: labelDimensions.get(item.id), isRTL: direction === 'rtl' }));
|
|
646
|
-
}
|
|
647
|
-
return undefined;
|
|
648
|
-
}) }));
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
function DiagramLayers({ nodes, links, nodeRenderer, linkRenderer, states, previousStates, nodeBounds, onNodeSizeChanged, width, height, nodeLabelPositions, linkLabelPositions, labelDimensions, supportsSelection, layoutOutput }) {
|
|
652
|
-
return (jsxs(Fragment, { children: [links.length > 0 && layoutOutput && linkRenderer && width !== Infinity && (jsx(DiagramLinkLayer, { links: links, states: states, previousStates: previousStates, linkRenderer: linkRenderer, width: width, height: height, supportsSelection: supportsSelection, layoutOutput: layoutOutput })), jsx(DiagramNodeLayer, { nodes: nodes, nodeBounds: nodeBounds, states: states, previousStates: previousStates, nodeRenderer: nodeRenderer, onNodeSizeChanged: onNodeSizeChanged, supportsSelection: supportsSelection }), labelDimensions ? (jsxs("div", { children: [nodeLabelPositions ? (jsx(DiagramLabelLayer, { labelPosition: nodeLabelPositions, itemProps: nodes, labelDimensions: labelDimensions })) : undefined, links && linkLabelPositions ? (jsx(DiagramLabelLayer, { labelPosition: linkLabelPositions, itemProps: links, labelDimensions: labelDimensions })) : undefined] })) : undefined] }));
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
function DiagramPanZoomContainer({ centerX, centerY, children, zoom, width, height }) {
|
|
656
|
-
const panValues = centerXYToPanXY(centerX, centerY, zoom, width, height);
|
|
657
|
-
return (jsx("div", { class: panZoomStyles, style: {
|
|
658
|
-
//TODO JET-62471 look at using matrices or both in transform instead
|
|
659
|
-
translate: `${panValues.panX}px ${panValues.panY}px`,
|
|
660
|
-
transform: `scale(${zoom})`
|
|
661
|
-
}, children: children }));
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* @license
|
|
666
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
667
|
-
* The Universal Permissive License (UPL), Version 1.0
|
|
668
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
669
|
-
* @ignore
|
|
670
|
-
*/
|
|
671
|
-
/**
|
|
672
|
-
* Returns the node data based on node info in a diagram.
|
|
673
|
-
* @param itemInfo
|
|
674
|
-
* @returns
|
|
675
|
-
*/
|
|
676
|
-
function getNodeDetailFromInfo(itemInfo, nodes) {
|
|
677
|
-
let node;
|
|
678
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
679
|
-
node = nodes[i];
|
|
680
|
-
if (itemInfo.id === node.id) {
|
|
681
|
-
return node;
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
return undefined;
|
|
685
|
-
}
|
|
686
|
-
/**
|
|
687
|
-
* Returns the link data based on link info in a diagram.
|
|
688
|
-
* @param itemInfo
|
|
689
|
-
* @returns
|
|
690
|
-
*/
|
|
691
|
-
function getLinkDetailFromInfo(itemInfo, links) {
|
|
692
|
-
let link;
|
|
693
|
-
for (let i = 0; i < links.length; i++) {
|
|
694
|
-
link = links[i];
|
|
695
|
-
if (itemInfo.id === link.id) {
|
|
696
|
-
return link;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
return undefined;
|
|
700
|
-
}
|
|
701
|
-
/**
|
|
702
|
-
* Creates a map with key node id and value node bounds
|
|
703
|
-
*/
|
|
704
|
-
function createNodeBoundsMap(nodes, bounds) {
|
|
705
|
-
const nodeBounds = new Map();
|
|
706
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
707
|
-
nodeBounds.set(nodes[i].id, bounds[i]);
|
|
708
|
-
}
|
|
709
|
-
return nodeBounds;
|
|
710
|
-
}
|
|
711
|
-
/**
|
|
712
|
-
* Utility method that adds sorting attributes of each link to an array
|
|
713
|
-
*/
|
|
714
|
-
function addSortingAttributes(node, listOfLinks, nodes, nodeBounds) {
|
|
715
|
-
let angle, distance, direction;
|
|
716
|
-
const linkDetail = [];
|
|
717
|
-
for (let i = 0; i < listOfLinks.length; i++) {
|
|
718
|
-
const link = listOfLinks[i];
|
|
719
|
-
angle = _getClockwiseAngle(node, link, nodes, nodeBounds);
|
|
720
|
-
distance = _getNodesDistance(link, nodes, nodeBounds);
|
|
721
|
-
direction = _getLinkDirection(node, link);
|
|
722
|
-
linkDetail.push({ id: link.id, angle: angle, distance: distance, direction: direction });
|
|
723
|
-
}
|
|
724
|
-
return linkDetail;
|
|
725
|
-
}
|
|
726
|
-
/**
|
|
727
|
-
* Returns a function that compares two link around a given node
|
|
728
|
-
* The links are analyzed by angle, distance from the node and direction. The sorting attributes are added to the links before sorting.
|
|
729
|
-
*/
|
|
730
|
-
function getLinkComparator() {
|
|
731
|
-
return (link1, link2) => {
|
|
732
|
-
const { angle: linkAngle1, distance: linkDistance1, direction: linkDirection1 } = link1;
|
|
733
|
-
const { angle: linkAngle2, distance: linkDistance2, direction: linkDirection2 } = link2;
|
|
734
|
-
let res = -1;
|
|
735
|
-
if (!_anglesAreEqualWithinTolerance(linkAngle1, linkAngle2) && linkAngle1 > linkAngle2) {
|
|
736
|
-
res = 1;
|
|
737
|
-
}
|
|
738
|
-
else if (_anglesAreEqualWithinTolerance(linkAngle1, linkAngle2)) {
|
|
739
|
-
//check distance and direction
|
|
740
|
-
if (linkDistance1 > linkDistance2) {
|
|
741
|
-
res = 1;
|
|
742
|
-
}
|
|
743
|
-
else if (linkDistance2 == linkDistance1 && linkDirection1 > linkDirection2) {
|
|
744
|
-
//outgoing to ingoing
|
|
745
|
-
res = 1;
|
|
746
|
-
}
|
|
747
|
-
else if (linkDistance2 == linkDistance1 && linkDirection1 == linkDirection2) {
|
|
748
|
-
res = 0;
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
return res;
|
|
752
|
-
};
|
|
753
|
-
}
|
|
754
|
-
/**
|
|
755
|
-
* Returns navigable links for a given node
|
|
756
|
-
*/
|
|
757
|
-
function getNavigableLinksForNodeId(nodeId, listOfLinks) {
|
|
758
|
-
const links = [];
|
|
759
|
-
listOfLinks.forEach((link) => {
|
|
760
|
-
const startId = link.startNode;
|
|
761
|
-
const endId = link.endNode;
|
|
762
|
-
if (startId == nodeId || endId == nodeId)
|
|
763
|
-
links.push(link);
|
|
764
|
-
});
|
|
765
|
-
return links;
|
|
766
|
-
}
|
|
767
|
-
/**
|
|
768
|
-
* Get the clockwise angle for the link given node as a center
|
|
769
|
-
*/
|
|
770
|
-
function _getClockwiseAngle(node, link, nodes, nodeBounds) {
|
|
771
|
-
//find opposite node
|
|
772
|
-
let currNode;
|
|
773
|
-
let startNode = nodes[0];
|
|
774
|
-
let endNode = nodes[0];
|
|
775
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
776
|
-
currNode = nodes[i];
|
|
777
|
-
if (currNode.id === link.startNode) {
|
|
778
|
-
startNode = currNode;
|
|
779
|
-
}
|
|
780
|
-
else if (currNode.id === link.endNode) {
|
|
781
|
-
endNode = currNode;
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
const oppositeNode = node.id == startNode.id ? endNode : startNode;
|
|
785
|
-
const p1 = _getNodeCenter(node, nodeBounds);
|
|
786
|
-
const p2 = _getNodeCenter(oppositeNode, nodeBounds);
|
|
787
|
-
let angle = Math.atan2(p2.y - p1.y, p2.x - p1.x);
|
|
788
|
-
angle = angle < 0 ? angle + Math.PI * 2 : angle;
|
|
789
|
-
return angle;
|
|
790
|
-
}
|
|
791
|
-
/**
|
|
792
|
-
* Get the distance between start and end nodes for the given link
|
|
793
|
-
*/
|
|
794
|
-
function _getNodesDistance(link, nodes, nodeBounds) {
|
|
795
|
-
let currNode;
|
|
796
|
-
let startNode = nodes[0];
|
|
797
|
-
let endNode = nodes[0];
|
|
798
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
799
|
-
currNode = nodes[i];
|
|
800
|
-
if (currNode.id === link.startNode) {
|
|
801
|
-
startNode = currNode;
|
|
802
|
-
}
|
|
803
|
-
else if (currNode.id === link.endNode) {
|
|
804
|
-
endNode = currNode;
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
const p1 = _getNodeCenter(startNode, nodeBounds);
|
|
808
|
-
const p2 = _getNodeCenter(endNode, nodeBounds);
|
|
809
|
-
return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));
|
|
810
|
-
}
|
|
811
|
-
/**
|
|
812
|
-
* Get link direction for the given node. 1 if the node is the end node
|
|
813
|
-
* and 0 if it is the start node
|
|
814
|
-
*/
|
|
815
|
-
function _getLinkDirection(node, link) {
|
|
816
|
-
if (link.endNode === node.id) {
|
|
817
|
-
return 1;
|
|
818
|
-
}
|
|
819
|
-
return 0;
|
|
820
|
-
}
|
|
821
|
-
/**
|
|
822
|
-
* Get node center
|
|
823
|
-
*/
|
|
824
|
-
function _getNodeCenter(node, nodeBounds) {
|
|
825
|
-
const nodeBB = nodeBounds.get(node.id);
|
|
826
|
-
return { x: nodeBB.x + nodeBB.w / 2, y: nodeBB.y + nodeBB.h / 2 };
|
|
827
|
-
}
|
|
828
|
-
/**
|
|
829
|
-
* Calculates the angle weighted by distance
|
|
830
|
-
*/
|
|
831
|
-
function calcDistanceAngleWeighted(objectBB, currentBB, direction) {
|
|
832
|
-
// Variables used for calculating penalties when calculating distances between two navigables.
|
|
833
|
-
const optimalAngle1 = (15 / 180) * Math.PI;
|
|
834
|
-
const optimalAngle2 = (40 / 180) * Math.PI;
|
|
835
|
-
const suboptimalAnglePenalty1 = 2; // multiplier to the distance
|
|
836
|
-
const suboptimalAnglePenalty2 = 6; // multiplier to the distance
|
|
837
|
-
const objCenterX = objectBB.x + objectBB.w / 2;
|
|
838
|
-
const objCenterY = objectBB.y + objectBB.h / 2;
|
|
839
|
-
const curCenterX = currentBB.x + currentBB.w / 2;
|
|
840
|
-
const curCenterY = currentBB.y + currentBB.h / 2;
|
|
841
|
-
const x_dist = Math.abs(objCenterX - curCenterX);
|
|
842
|
-
const y_dist = Math.abs(objCenterY - curCenterY);
|
|
843
|
-
const angle = Math.atan2(y_dist, x_dist);
|
|
844
|
-
let distance = Math.sqrt(x_dist * x_dist + y_dist * y_dist);
|
|
845
|
-
// Angle penalty based on direction
|
|
846
|
-
if ((angle > optimalAngle1 && (direction == 'right' || direction == 'left')) ||
|
|
847
|
-
(angle < Math.PI / 2 - optimalAngle1 && (direction == 'up' || direction == 'down'))) {
|
|
848
|
-
if ((angle > optimalAngle2 && (direction == 'right' || direction == 'left')) ||
|
|
849
|
-
(angle < Math.PI / 2 - optimalAngle2 && (direction == 'up' || direction == 'down'))) {
|
|
850
|
-
distance *= suboptimalAnglePenalty2;
|
|
851
|
-
}
|
|
852
|
-
else {
|
|
853
|
-
distance *= suboptimalAnglePenalty1;
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
return distance;
|
|
857
|
-
}
|
|
858
|
-
/**
|
|
859
|
-
* Given a direction, is a certain node is a valid destination to navigate to
|
|
860
|
-
*/
|
|
861
|
-
function isValidDestination(objBB, curBB, direction, compareCenters) {
|
|
862
|
-
// compare the centers of the navigable and to be valid, the navigable must be in the right direction
|
|
863
|
-
// without tolerance
|
|
864
|
-
if (compareCenters) {
|
|
865
|
-
const objCenterX = objBB.x + 0.5 * objBB.w;
|
|
866
|
-
const curCenterX = curBB.x + 0.5 * curBB.w;
|
|
867
|
-
const objCenterY = objBB.y + 0.5 * objBB.h;
|
|
868
|
-
const curCenterY = curBB.y + 0.5 * curBB.h;
|
|
869
|
-
switch (direction) {
|
|
870
|
-
case 'up':
|
|
871
|
-
return objCenterY < curCenterY;
|
|
872
|
-
case 'down':
|
|
873
|
-
return objBB.y > curCenterY;
|
|
874
|
-
case 'right':
|
|
875
|
-
return objCenterX > curCenterX;
|
|
876
|
-
case 'left':
|
|
877
|
-
return objCenterX < curCenterX;
|
|
878
|
-
}
|
|
879
|
-
return true;
|
|
880
|
-
}
|
|
881
|
-
switch (direction) {
|
|
882
|
-
case 'up':
|
|
883
|
-
return objBB.y < curBB.y || _areEqualWithinTolerance(objBB.y, curBB.y);
|
|
884
|
-
case 'down':
|
|
885
|
-
return objBB.y > curBB.y || _areEqualWithinTolerance(objBB.y, curBB.y);
|
|
886
|
-
case 'right':
|
|
887
|
-
return objBB.x > curBB.x || _areEqualWithinTolerance(objBB.x, curBB.x);
|
|
888
|
-
case 'left':
|
|
889
|
-
return objBB.x < curBB.x || _areEqualWithinTolerance(objBB.x, curBB.x);
|
|
890
|
-
}
|
|
891
|
-
return true;
|
|
892
|
-
}
|
|
893
|
-
/**
|
|
894
|
-
* Returns true if two nodes are in contact
|
|
895
|
-
*/
|
|
896
|
-
function calcInContact(objRect, curRect, direction) {
|
|
897
|
-
switch (direction) {
|
|
898
|
-
case 'up':
|
|
899
|
-
return (_isVerticallyAligned(objRect, curRect) &&
|
|
900
|
-
(curRect.y <= objRect.y + objRect.h ||
|
|
901
|
-
_areEqualWithinTolerance(curRect.y, objRect.y + objRect.h)));
|
|
902
|
-
case 'down':
|
|
903
|
-
return (_isVerticallyAligned(objRect, curRect) &&
|
|
904
|
-
(objRect.y <= curRect.y + curRect.h ||
|
|
905
|
-
_areEqualWithinTolerance(objRect.y, curRect.y + curRect.h)));
|
|
906
|
-
case 'right':
|
|
907
|
-
return (_isHorizontallyAligned(objRect, curRect) &&
|
|
908
|
-
(objRect.x <= curRect.x + curRect.w ||
|
|
909
|
-
_areEqualWithinTolerance(objRect.x, curRect.x + curRect.w)));
|
|
910
|
-
case 'left':
|
|
911
|
-
return (_isHorizontallyAligned(objRect, curRect) &&
|
|
912
|
-
(curRect.x <= objRect.x + objRect.w ||
|
|
913
|
-
_areEqualWithinTolerance(curRect.x, objRect.x + objRect.w)));
|
|
914
|
-
}
|
|
915
|
-
return false;
|
|
916
|
-
}
|
|
917
|
-
function _isVerticallyAligned(rect1, rect2) {
|
|
918
|
-
return ((rect1.x >= rect2.x && rect1.x <= rect2.x + rect2.w) ||
|
|
919
|
-
(rect2.x >= rect1.x && rect2.x <= rect1.x + rect1.w));
|
|
920
|
-
}
|
|
921
|
-
function _isHorizontallyAligned(rect1, rect2) {
|
|
922
|
-
return ((rect1.y >= rect2.y && rect1.y <= rect2.y + rect2.h) ||
|
|
923
|
-
(rect2.y >= rect1.y && rect2.y <= rect1.y + rect1.h));
|
|
924
|
-
}
|
|
925
|
-
function _areEqualWithinTolerance(a, b) {
|
|
926
|
-
return Math.abs(a - b) <= 0.0000001;
|
|
927
|
-
}
|
|
928
|
-
function _anglesAreEqualWithinTolerance(a1, a2) {
|
|
929
|
-
let res = Math.abs(a1 - a2) <= 0.0000001;
|
|
930
|
-
if (!res) {
|
|
931
|
-
res = Math.abs(Math.PI * 2 + Math.min(a1, a2) - Math.max(a1, a2)) <= 0.0000001;
|
|
932
|
-
}
|
|
933
|
-
return res;
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
/**
|
|
937
|
-
* @license
|
|
938
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
939
|
-
* The Universal Permissive License (UPL), Version 1.0
|
|
940
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
941
|
-
* @ignore
|
|
942
|
-
*/
|
|
943
|
-
function useDiagramNavigation(nodes, links, bounds, linkIdToDataMap) {
|
|
944
|
-
const currentKeyboardFocusNode = useRef();
|
|
945
|
-
const nodeBoundsById = createNodeBoundsMap(nodes, bounds);
|
|
946
|
-
function getNextNavigableNode(direction, compareCenters, current, listOfObjects) {
|
|
947
|
-
if (!listOfObjects)
|
|
948
|
-
return current;
|
|
949
|
-
if (!current)
|
|
950
|
-
return listOfObjects[0];
|
|
951
|
-
const currBB = nodeBoundsById.get(current.id);
|
|
952
|
-
if (!currBB)
|
|
953
|
-
return listOfObjects[0];
|
|
954
|
-
let nextObject = current; //init to current object
|
|
955
|
-
let nextDistance = Number.MAX_VALUE;
|
|
956
|
-
// If an object is in contact it overrules all other attributes
|
|
957
|
-
// Only another in contact object with better attributes will have higher precedence
|
|
958
|
-
let nextInContact = false;
|
|
959
|
-
// Whether or not the for loop has encountered the current object
|
|
960
|
-
let hasFoundCurrent = false;
|
|
961
|
-
let object, inContact, distance;
|
|
962
|
-
for (let i = 0; i < listOfObjects.length; i++) {
|
|
963
|
-
object = listOfObjects[i];
|
|
964
|
-
if (object === current) {
|
|
965
|
-
hasFoundCurrent = true;
|
|
966
|
-
continue;
|
|
967
|
-
}
|
|
968
|
-
const objBB = nodeBoundsById.get(object.id);
|
|
969
|
-
if (!objBB)
|
|
970
|
-
continue;
|
|
971
|
-
const objBounds = { x: objBB.x, y: objBB.y, w: objBB.w, h: objBB.h };
|
|
972
|
-
const currBounds = { x: currBB.x, y: currBB.y, w: currBB.w, h: currBB.h };
|
|
973
|
-
if (!isValidDestination(objBounds, currBounds, direction, compareCenters))
|
|
974
|
-
continue;
|
|
975
|
-
inContact = calcInContact(objBounds, currBounds, direction);
|
|
976
|
-
if (nextInContact && !inContact)
|
|
977
|
-
continue;
|
|
978
|
-
distance = calcDistanceAngleWeighted(objBounds, currBounds, direction);
|
|
979
|
-
if (distance == 0 && !hasFoundCurrent)
|
|
980
|
-
continue;
|
|
981
|
-
// Make sure incontact flag have highest precedence
|
|
982
|
-
if ((!nextInContact && inContact) ||
|
|
983
|
-
(distance < nextDistance && ((nextInContact && inContact) || !nextInContact))) {
|
|
984
|
-
nextDistance = distance;
|
|
985
|
-
nextObject = object;
|
|
986
|
-
nextInContact = inContact;
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
return nextObject;
|
|
990
|
-
}
|
|
991
|
-
/**
|
|
992
|
-
* Get next navigavle link depending on direction - clockwise or conter clockwise.
|
|
993
|
-
* The decision is made based on location of nodes centers rather than link paths or link angles.
|
|
994
|
-
*/
|
|
995
|
-
function getNextNavigableLink(direction, listOfNodes, currentLink, listOfLinks) {
|
|
996
|
-
if (!listOfLinks)
|
|
997
|
-
return currentLink;
|
|
998
|
-
if (!currentLink)
|
|
999
|
-
return listOfLinks[0];
|
|
1000
|
-
const keyboardFocusNode = currentKeyboardFocusNode.current;
|
|
1001
|
-
const nodeId = keyboardFocusNode ? keyboardFocusNode : currentLink.startNode;
|
|
1002
|
-
const node = getNodeDetailFromInfo({ id: nodeId, isNode: true }, listOfNodes);
|
|
1003
|
-
if (!node)
|
|
1004
|
-
return currentLink;
|
|
1005
|
-
const adjLinks = getNavigableLinksForNodeId(node.id, listOfLinks);
|
|
1006
|
-
listOfLinks = adjLinks;
|
|
1007
|
-
const linksWithSortingAttributes = addSortingAttributes(node, listOfLinks, listOfNodes, nodeBoundsById);
|
|
1008
|
-
linksWithSortingAttributes.sort(getLinkComparator());
|
|
1009
|
-
//clockwise direction
|
|
1010
|
-
const bForward = direction == 'down' ? true : false;
|
|
1011
|
-
let index = 0;
|
|
1012
|
-
for (let i = 0; i < linksWithSortingAttributes.length; i++) {
|
|
1013
|
-
const link = linksWithSortingAttributes[i];
|
|
1014
|
-
if (link.id === currentLink.id) {
|
|
1015
|
-
if (bForward)
|
|
1016
|
-
index = i == linksWithSortingAttributes.length - 1 ? 0 : i + 1;
|
|
1017
|
-
else
|
|
1018
|
-
index = i == 0 ? linksWithSortingAttributes.length - 1 : i - 1;
|
|
1019
|
-
break;
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
return linksWithSortingAttributes[index];
|
|
1023
|
-
}
|
|
1024
|
-
/**
|
|
1025
|
-
* Returns the link detail when a node to link navigation occurs
|
|
1026
|
-
*/
|
|
1027
|
-
function navigateFromNodeToLink(listOfLinks, event, node) {
|
|
1028
|
-
if (!node)
|
|
1029
|
-
return undefined;
|
|
1030
|
-
const adjLinks = getNavigableLinksForNodeId(node.id, listOfLinks);
|
|
1031
|
-
if (adjLinks.length < 1)
|
|
1032
|
-
return undefined;
|
|
1033
|
-
let link = adjLinks[0];
|
|
1034
|
-
const nodeBB = nodeBoundsById.get(node.id);
|
|
1035
|
-
let object, currNode, currNodeBB, currNodeBBCenterX;
|
|
1036
|
-
const nodeCenterX = nodeBB.x + nodeBB.w / 2;
|
|
1037
|
-
currentKeyboardFocusNode.current = node.id;
|
|
1038
|
-
for (let i = 0; i < adjLinks.length; i++) {
|
|
1039
|
-
object = adjLinks[i];
|
|
1040
|
-
currNode = object.startNode === node.id ? object.endNode : object.startNode;
|
|
1041
|
-
currNodeBB = nodeBoundsById.get(currNode);
|
|
1042
|
-
currNodeBBCenterX = currNodeBB.x + currNodeBB.w / 2;
|
|
1043
|
-
if (
|
|
1044
|
-
// equivalent of ≤ and ≥
|
|
1045
|
-
(event.altKey && event.code === 'Comma' && currNodeBBCenterX <= nodeCenterX) ||
|
|
1046
|
-
(event.altKey && event.code === 'Period' && currNodeBBCenterX >= nodeCenterX)) {
|
|
1047
|
-
link = object;
|
|
1048
|
-
break;
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
return { id: link.id, isNode: false };
|
|
1052
|
-
}
|
|
1053
|
-
/**
|
|
1054
|
-
* Returns the node detail when a link to node navigation occurs
|
|
1055
|
-
*/
|
|
1056
|
-
function navigateFromLinkToNode(linkId, event) {
|
|
1057
|
-
const key = event.key;
|
|
1058
|
-
const linkData = linkIdToDataMap.get(linkId);
|
|
1059
|
-
const startNodeBB = nodeBoundsById.get(linkData.startNode);
|
|
1060
|
-
const endNodeBB = nodeBoundsById.get(linkData.endNode);
|
|
1061
|
-
if (!startNodeBB || !endNodeBB)
|
|
1062
|
-
return undefined;
|
|
1063
|
-
const startNodeCenterX = startNodeBB.x + startNodeBB.w / 2;
|
|
1064
|
-
const endNodeCenterX = endNodeBB.x + endNodeBB.w / 2;
|
|
1065
|
-
const newNode = (endNodeCenterX > startNodeCenterX && key === 'ArrowRight') ||
|
|
1066
|
-
(endNodeCenterX < startNodeCenterX && key === 'ArrowLeft')
|
|
1067
|
-
? linkData.endNode
|
|
1068
|
-
: linkData.startNode;
|
|
1069
|
-
return { id: newNode, isNode: true };
|
|
1070
|
-
}
|
|
1071
|
-
return {
|
|
1072
|
-
isNode: (itemInfo) => {
|
|
1073
|
-
let node, link;
|
|
1074
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
1075
|
-
node = nodes[i];
|
|
1076
|
-
link = links[i];
|
|
1077
|
-
if (itemInfo.id === node.id) {
|
|
1078
|
-
return true;
|
|
1079
|
-
}
|
|
1080
|
-
if (itemInfo.id === link.id) {
|
|
1081
|
-
return true;
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
return false;
|
|
1085
|
-
},
|
|
1086
|
-
getNextNavigableNode,
|
|
1087
|
-
getNextNavigableLink,
|
|
1088
|
-
navigateFromNodeToLink,
|
|
1089
|
-
navigateFromLinkToNode
|
|
1090
|
-
};
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
const DEFAULT_KB_PAN = 15;
|
|
1094
|
-
const DEFAULT_KB_ZOOM = 0.15;
|
|
1095
|
-
function useEvents(touchResponse, initNode, nodes, links, nodeBounds, linkIdToDataMap, nodeIdToDataMap, nodeIdToIndexMap, width, height, maxZoom, onItemHover, onItemFocus, kbPanCallback, kbZoomCallback) {
|
|
1096
|
-
const { getNextNavigableNode, getNextNavigableLink, navigateFromNodeToLink, navigateFromLinkToNode } = useDiagramNavigation(nodes, links, nodeBounds, linkIdToDataMap);
|
|
1097
|
-
const [focusedItemInfo, setfocusedItemInfo] = useState({
|
|
1098
|
-
id: initNode.id,
|
|
1099
|
-
isNode: true
|
|
1100
|
-
});
|
|
1101
|
-
const [hoveredItemInfo, sethoveredItemInfo] = useState();
|
|
1102
|
-
const activeId = useRef();
|
|
1103
|
-
const cancelEvent = (event) => {
|
|
1104
|
-
event.preventDefault();
|
|
1105
|
-
event.stopPropagation();
|
|
1106
|
-
};
|
|
1107
|
-
const keyDownHandler = (event) => {
|
|
1108
|
-
const key = event.key;
|
|
1109
|
-
let eventConsumed = false;
|
|
1110
|
-
// tabbing out of the diagram
|
|
1111
|
-
if (key === 'TAB') {
|
|
1112
|
-
return;
|
|
1113
|
-
}
|
|
1114
|
-
// if this a switch from node to link or vice versa
|
|
1115
|
-
if (isChangeItemType(event)) {
|
|
1116
|
-
const nextItemInfo = focusedItemInfo.isNode
|
|
1117
|
-
? navigateFromNodeToLink(links, event, getNodeDetailFromInfo(focusedItemInfo, nodes))
|
|
1118
|
-
: navigateFromLinkToNode(focusedItemInfo.id, event);
|
|
1119
|
-
handleKeyboardInput(nextItemInfo);
|
|
1120
|
-
eventConsumed = true;
|
|
1121
|
-
}
|
|
1122
|
-
else if (isNavigationEvent(key)) {
|
|
1123
|
-
const nextItemInfo = handleKeyboardNavigationEvent(key);
|
|
1124
|
-
handleKeyboardInput(nextItemInfo);
|
|
1125
|
-
eventConsumed = true;
|
|
1126
|
-
}
|
|
1127
|
-
else {
|
|
1128
|
-
switch (key) {
|
|
1129
|
-
case 'PageUp': {
|
|
1130
|
-
kbPanCallback &&
|
|
1131
|
-
kbPanCallback({
|
|
1132
|
-
dPan: {
|
|
1133
|
-
dx: event.shiftKey ? -DEFAULT_KB_PAN : 0,
|
|
1134
|
-
dy: event.shiftKey ? 0 : -DEFAULT_KB_PAN
|
|
1135
|
-
}
|
|
1136
|
-
});
|
|
1137
|
-
eventConsumed = true;
|
|
1138
|
-
break;
|
|
1139
|
-
}
|
|
1140
|
-
case 'PageDown': {
|
|
1141
|
-
kbPanCallback &&
|
|
1142
|
-
kbPanCallback({
|
|
1143
|
-
dPan: {
|
|
1144
|
-
dx: event.shiftKey ? DEFAULT_KB_PAN : 0,
|
|
1145
|
-
dy: event.shiftKey ? 0 : DEFAULT_KB_PAN
|
|
1146
|
-
}
|
|
1147
|
-
});
|
|
1148
|
-
eventConsumed = true;
|
|
1149
|
-
eventConsumed = true;
|
|
1150
|
-
break;
|
|
1151
|
-
}
|
|
1152
|
-
case '+':
|
|
1153
|
-
case '=': {
|
|
1154
|
-
kbZoomCallback && kbZoomCallback({ dZoom: DEFAULT_KB_ZOOM });
|
|
1155
|
-
eventConsumed = true;
|
|
1156
|
-
break;
|
|
1157
|
-
}
|
|
1158
|
-
case '-':
|
|
1159
|
-
case '_': {
|
|
1160
|
-
kbZoomCallback && kbZoomCallback({ dZoom: -DEFAULT_KB_ZOOM });
|
|
1161
|
-
eventConsumed = true;
|
|
1162
|
-
break;
|
|
1163
|
-
}
|
|
1164
|
-
case '0': {
|
|
1165
|
-
if (event.ctrlKey && event.altKey) {
|
|
1166
|
-
const { centerX, centerY, zoom } = zoomAndCenterItemFromInfo(focusedItemInfo, linkIdToDataMap, nodeBounds, nodeIdToIndexMap, width, height, maxZoom);
|
|
1167
|
-
kbZoomCallback && kbZoomCallback({ nZoom: zoom });
|
|
1168
|
-
kbPanCallback && kbPanCallback({ nPan: { cx: centerX, cy: centerY } });
|
|
1169
|
-
}
|
|
1170
|
-
else {
|
|
1171
|
-
// zoom to fit
|
|
1172
|
-
kbZoomCallback && kbZoomCallback({});
|
|
1173
|
-
kbPanCallback && kbPanCallback({ center: true });
|
|
1174
|
-
}
|
|
1175
|
-
eventConsumed = true;
|
|
1176
|
-
}
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
if (eventConsumed) {
|
|
1180
|
-
cancelEvent(event);
|
|
1181
|
-
}
|
|
1182
|
-
};
|
|
1183
|
-
const keyUpHandler = (event) => {
|
|
1184
|
-
const key = event.code;
|
|
1185
|
-
switch (key) {
|
|
1186
|
-
case 'Tab': {
|
|
1187
|
-
updatefocusedItemInfo({
|
|
1188
|
-
...focusedItemInfo,
|
|
1189
|
-
isCurrent: true,
|
|
1190
|
-
isFocusVisible: true
|
|
1191
|
-
});
|
|
1192
|
-
break;
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
};
|
|
1196
|
-
const blurHandler = () => {
|
|
1197
|
-
if (hoveredItemInfo != null || focusedItemInfo.isCurrent) {
|
|
1198
|
-
onItemFocus?.({ id: undefined, data: undefined });
|
|
1199
|
-
}
|
|
1200
|
-
const itemInfo = { ...focusedItemInfo, isCurrent: false, isFocusVisible: false };
|
|
1201
|
-
setfocusedItemInfo(itemInfo);
|
|
1202
|
-
};
|
|
1203
|
-
const onHover = (event) => {
|
|
1204
|
-
const itemInfo = getNavigableInfo(event.target);
|
|
1205
|
-
if (itemInfo && !isEqualItem(itemInfo, hoveredItemInfo)) {
|
|
1206
|
-
sethoveredItemInfo({ ...itemInfo, isCurrent: true });
|
|
1207
|
-
activeId.current = getRandomId();
|
|
1208
|
-
setfocusedItemInfo({ ...focusedItemInfo, isCurrent: false });
|
|
1209
|
-
if (itemInfo.isNode) {
|
|
1210
|
-
onItemHover?.({
|
|
1211
|
-
id: itemInfo.id,
|
|
1212
|
-
type: 'node',
|
|
1213
|
-
data: nodeIdToDataMap.get(itemInfo.id)
|
|
1214
|
-
});
|
|
1215
|
-
}
|
|
1216
|
-
else {
|
|
1217
|
-
onItemHover?.({
|
|
1218
|
-
id: itemInfo.id,
|
|
1219
|
-
type: 'link',
|
|
1220
|
-
data: linkIdToDataMap.get(itemInfo.id)
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
};
|
|
1225
|
-
const onHoverLeave = () => {
|
|
1226
|
-
sethoveredItemInfo(undefined);
|
|
1227
|
-
activeId.current = undefined;
|
|
1228
|
-
onItemHover?.({ id: undefined, data: undefined });
|
|
1229
|
-
};
|
|
1230
|
-
const hoverHandlers = useVisHover(onHover, undefined, onHoverLeave, touchResponse);
|
|
1231
|
-
const pointerUpHandler = (event) => {
|
|
1232
|
-
const itemInfo = getNavigableInfo(event.target);
|
|
1233
|
-
if (itemInfo.id != null) {
|
|
1234
|
-
setfocusedItemInfo(itemInfo);
|
|
1235
|
-
activeId.current = getRandomId();
|
|
1236
|
-
}
|
|
1237
|
-
};
|
|
1238
|
-
function updatefocusedItemInfo(itemInfo) {
|
|
1239
|
-
if (itemInfo.isNode) {
|
|
1240
|
-
onItemFocus?.({
|
|
1241
|
-
id: itemInfo.id,
|
|
1242
|
-
type: 'node',
|
|
1243
|
-
data: nodeIdToDataMap.get(itemInfo.id)
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
|
-
else {
|
|
1247
|
-
onItemFocus?.({
|
|
1248
|
-
id: itemInfo.id,
|
|
1249
|
-
type: 'link',
|
|
1250
|
-
data: linkIdToDataMap.get(itemInfo.id)
|
|
1251
|
-
});
|
|
1252
|
-
}
|
|
1253
|
-
activeId.current = getRandomId();
|
|
1254
|
-
setfocusedItemInfo(itemInfo);
|
|
1255
|
-
}
|
|
1256
|
-
function handleKeyboardInput(item) {
|
|
1257
|
-
if (!item)
|
|
1258
|
-
return;
|
|
1259
|
-
if (!isEqualItem(item, focusedItemInfo)) {
|
|
1260
|
-
item.isCurrent = true;
|
|
1261
|
-
item.isFocusVisible = true;
|
|
1262
|
-
if (hoveredItemInfo) {
|
|
1263
|
-
sethoveredItemInfo({ ...hoveredItemInfo, isCurrent: false });
|
|
1264
|
-
}
|
|
1265
|
-
updatefocusedItemInfo(item);
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
function isNavigationEvent(key) {
|
|
1269
|
-
switch (key) {
|
|
1270
|
-
case 'ArrowDown':
|
|
1271
|
-
case 'ArrowUp':
|
|
1272
|
-
case 'ArrowRight':
|
|
1273
|
-
case 'ArrowLeft': {
|
|
1274
|
-
return true;
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
return false;
|
|
1278
|
-
}
|
|
1279
|
-
function isChangeItemType(event) {
|
|
1280
|
-
const key = event.code;
|
|
1281
|
-
// check if switching from node to link
|
|
1282
|
-
// equivalent of ≤ and ≥
|
|
1283
|
-
if (focusedItemInfo.isNode && event.altKey && (key === 'Period' || key === 'Comma')) {
|
|
1284
|
-
return true;
|
|
1285
|
-
// check if switching from link to node
|
|
1286
|
-
}
|
|
1287
|
-
else if (!focusedItemInfo.isNode && (key === 'ArrowLeft' || key === 'ArrowRight')) {
|
|
1288
|
-
return true;
|
|
1289
|
-
}
|
|
1290
|
-
return false;
|
|
1291
|
-
}
|
|
1292
|
-
function handleKeyboardNavigationEvent(key) {
|
|
1293
|
-
let direction = 'down';
|
|
1294
|
-
switch (key) {
|
|
1295
|
-
case 'ArrowDown': {
|
|
1296
|
-
direction = 'down';
|
|
1297
|
-
break;
|
|
1298
|
-
}
|
|
1299
|
-
case 'ArrowUp': {
|
|
1300
|
-
direction = 'up';
|
|
1301
|
-
break;
|
|
1302
|
-
}
|
|
1303
|
-
case 'ArrowRight': {
|
|
1304
|
-
direction = 'right';
|
|
1305
|
-
break;
|
|
1306
|
-
}
|
|
1307
|
-
case 'ArrowLeft': {
|
|
1308
|
-
direction = 'left';
|
|
1309
|
-
break;
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
if (focusedItemInfo.isNode) {
|
|
1313
|
-
const itemDetail = getNextNavigableNode(direction, true, getNodeDetailFromInfo(focusedItemInfo, nodes), nodes);
|
|
1314
|
-
return itemDetail ? { id: itemDetail.id, isNode: true } : focusedItemInfo;
|
|
1315
|
-
}
|
|
1316
|
-
else {
|
|
1317
|
-
const linkDetail = getLinkDetailFromInfo(focusedItemInfo, links);
|
|
1318
|
-
const itemDetail = getNextNavigableLink(direction, nodes, linkDetail, links);
|
|
1319
|
-
return itemDetail ? { id: itemDetail.id } : { id: focusedItemInfo.id };
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
return {
|
|
1323
|
-
focusedItemInfo,
|
|
1324
|
-
hoveredItemInfo,
|
|
1325
|
-
activeId: activeId.current,
|
|
1326
|
-
eventsProps: mergeProps(hoverHandlers, {
|
|
1327
|
-
onKeyUp: keyUpHandler,
|
|
1328
|
-
onKeyDown: keyDownHandler,
|
|
1329
|
-
onBlur: blurHandler,
|
|
1330
|
-
onPointerUp: pointerUpHandler
|
|
1331
|
-
})
|
|
1332
|
-
};
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
/**
|
|
1336
|
-
* Returns the datatip.
|
|
1337
|
-
* @param text The text string for the diagram item.
|
|
1338
|
-
* @param rootRef The ref for root of the diagram.
|
|
1339
|
-
* @param focusedItemBoundsRef The ref for focused item bounds.
|
|
1340
|
-
* @param focusedItemInfo The ItemInfo for focused item.
|
|
1341
|
-
* @returns
|
|
1342
|
-
*/
|
|
1343
|
-
const useDiagramDatatip = ({ touchResponse, datatip, focusedItemBoundsRef, focusedItemInfo, panState, zoom, width, nodesMap, linksMap, hoveredItem }) => {
|
|
1344
|
-
const { direction } = useUser();
|
|
1345
|
-
const isRtl = direction === 'rtl';
|
|
1346
|
-
const datatipC = getDatatipContent(nodesMap, linksMap, focusedItemInfo, hoveredItem, datatip);
|
|
1347
|
-
const elementBounds = focusedItemInfo?.isCurrent
|
|
1348
|
-
? {
|
|
1349
|
-
x: focusedItemBoundsRef.current.x * zoom + panState.panX,
|
|
1350
|
-
y: focusedItemBoundsRef.current.y * zoom + panState.panY,
|
|
1351
|
-
width: focusedItemBoundsRef.current.w * zoom,
|
|
1352
|
-
height: focusedItemBoundsRef.current.h * zoom
|
|
1353
|
-
}
|
|
1354
|
-
: undefined;
|
|
1355
|
-
const { datatipContent, datatipProps } = useDatatip({
|
|
1356
|
-
content: datatipC?.content,
|
|
1357
|
-
borderColor: datatipC?.borderColor,
|
|
1358
|
-
placement: 'top-start',
|
|
1359
|
-
offset: calculateOffset(isRtl, width, elementBounds),
|
|
1360
|
-
anchor: focusedItemInfo?.isCurrent ? 'element' : 'pointer',
|
|
1361
|
-
touchResponse
|
|
1362
|
-
});
|
|
1363
|
-
return { datatipContent: datatipContent, datatipProps: datatipProps };
|
|
1364
|
-
};
|
|
1365
|
-
|
|
1366
|
-
/**
|
|
1367
|
-
* @license
|
|
1368
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1369
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1370
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1371
|
-
* @ignore
|
|
1372
|
-
*/
|
|
1373
|
-
const usePointerGesture = ({ captureTargetRef, numPointers = 1, onPointerGestureDown, onPointerGestureMove, onPointerGestureEnd, onExtraneousPointerDown, isDisabled = false }) => {
|
|
1374
|
-
const activePointers = useRef([]);
|
|
1375
|
-
if (isDisabled) {
|
|
1376
|
-
activePointers.current = [];
|
|
1377
|
-
}
|
|
1378
|
-
const onPointerDown = (e) => {
|
|
1379
|
-
activePointers.current.push(e);
|
|
1380
|
-
if (activePointers.current.length === numPointers) {
|
|
1381
|
-
onPointerGestureDown && onPointerGestureDown({ pointers: activePointers.current });
|
|
1382
|
-
}
|
|
1383
|
-
else if (activePointers.current.length > numPointers) {
|
|
1384
|
-
onExtraneousPointerDown && onExtraneousPointerDown({ pointers: activePointers.current });
|
|
1385
|
-
}
|
|
1386
|
-
};
|
|
1387
|
-
const onPointerMove = (e) => {
|
|
1388
|
-
if (activePointers.current.length === 0)
|
|
1389
|
-
return;
|
|
1390
|
-
const index = activePointers.current.findIndex((pointerEvent) => pointerEvent.pointerId === e.pointerId);
|
|
1391
|
-
if (index === -1)
|
|
1392
|
-
return;
|
|
1393
|
-
activePointers.current[index] = e;
|
|
1394
|
-
if (activePointers.current.length === numPointers) {
|
|
1395
|
-
activePointers.current.forEach((e) => captureTargetRef.current.setPointerCapture(e.pointerId));
|
|
1396
|
-
onPointerGestureMove && onPointerGestureMove({ pointers: activePointers.current });
|
|
1397
|
-
}
|
|
1398
|
-
};
|
|
1399
|
-
const onPointerUp = (e) => {
|
|
1400
|
-
const index = activePointers.current.findIndex((pointerEvent) => pointerEvent.pointerId === e.pointerId);
|
|
1401
|
-
if (index === -1)
|
|
1402
|
-
return;
|
|
1403
|
-
activePointers.current[index] = e;
|
|
1404
|
-
if (activePointers.current.length === numPointers) {
|
|
1405
|
-
onPointerGestureEnd && onPointerGestureEnd({ pointers: activePointers.current });
|
|
1406
|
-
}
|
|
1407
|
-
activePointers.current.splice(index, 1);
|
|
1408
|
-
};
|
|
1409
|
-
const onPointerCancel = onPointerUp;
|
|
1410
|
-
const onPointerLeave = onPointerUp;
|
|
1411
|
-
return isDisabled
|
|
1412
|
-
? {}
|
|
1413
|
-
: {
|
|
1414
|
-
onPointerDown,
|
|
1415
|
-
onPointerMove,
|
|
1416
|
-
onPointerUp,
|
|
1417
|
-
onPointerCancel,
|
|
1418
|
-
onPointerLeave
|
|
1419
|
-
};
|
|
1420
|
-
};
|
|
1421
|
-
|
|
1422
|
-
/**
|
|
1423
|
-
* @license
|
|
1424
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1425
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1426
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1427
|
-
* @ignore
|
|
1428
|
-
*/
|
|
1429
|
-
/**
|
|
1430
|
-
* Whether point with coordinates are in the draggable region
|
|
1431
|
-
*/
|
|
1432
|
-
const inDraggableRegion = (x, y, region) => {
|
|
1433
|
-
if (!region)
|
|
1434
|
-
return true;
|
|
1435
|
-
const { xMin, xMax, yMin, yMax } = region;
|
|
1436
|
-
return x >= xMin && x <= xMax && y >= yMin && y <= yMax;
|
|
1437
|
-
};
|
|
1438
|
-
/**
|
|
1439
|
-
* Returns region offset
|
|
1440
|
-
*/
|
|
1441
|
-
const getRegionOffset = (x, y, region) => {
|
|
1442
|
-
if (!region)
|
|
1443
|
-
return { regionOffsetX: x, regionOffsetY: y };
|
|
1444
|
-
return { regionOffsetX: x - region.xMin, regionOffsetY: y - region.yMin };
|
|
1445
|
-
};
|
|
1446
|
-
const useDrag = ({ captureTargetRef, draggableRegion, onDragStart, onDragMove, onDragEnd, isDisabled = false }) => {
|
|
1447
|
-
const inactiveState = { isDragging: false, x0: -1, y0: -1, regionOffsetX: -1, regionOffsetY: -1 };
|
|
1448
|
-
const dragState = useRef(inactiveState);
|
|
1449
|
-
const handlePointerEvent = (e, cb) => {
|
|
1450
|
-
const { isDragging, x0, y0, regionOffsetX, regionOffsetY } = dragState.current;
|
|
1451
|
-
if (!isDragging)
|
|
1452
|
-
return;
|
|
1453
|
-
const x = e.pageX;
|
|
1454
|
-
const y = e.pageY;
|
|
1455
|
-
cb && cb({ x, y, dx: x - x0, dy: y - y0, regionOffsetX, regionOffsetY, originalEvent: e });
|
|
1456
|
-
};
|
|
1457
|
-
const dragProps = usePointerGesture({
|
|
1458
|
-
captureTargetRef,
|
|
1459
|
-
numPointers: 1, // Only allow 1 pointer dragging
|
|
1460
|
-
onExtraneousPointerDown: () => {
|
|
1461
|
-
dragState.current = inactiveState;
|
|
1462
|
-
},
|
|
1463
|
-
onPointerGestureDown: ({ pointers: [e] }) => {
|
|
1464
|
-
const x = e.pageX;
|
|
1465
|
-
const y = e.pageY;
|
|
1466
|
-
if (e.button !== 0 || !inDraggableRegion(x, y, draggableRegion))
|
|
1467
|
-
return;
|
|
1468
|
-
const { regionOffsetX, regionOffsetY } = getRegionOffset(x, y, draggableRegion);
|
|
1469
|
-
dragState.current = { isDragging: true, x0: x, y0: y, regionOffsetX, regionOffsetY };
|
|
1470
|
-
onDragStart && onDragStart({ x, y, regionOffsetX, regionOffsetY, originalEvent: e });
|
|
1471
|
-
},
|
|
1472
|
-
onPointerGestureMove: ({ pointers: [e] }) => {
|
|
1473
|
-
handlePointerEvent(e, onDragMove);
|
|
1474
|
-
},
|
|
1475
|
-
onPointerGestureEnd: ({ pointers: [e] }) => {
|
|
1476
|
-
handlePointerEvent(e, onDragEnd);
|
|
1477
|
-
dragState.current = inactiveState;
|
|
1478
|
-
}
|
|
1479
|
-
});
|
|
1480
|
-
return isDisabled ? {} : dragProps;
|
|
1481
|
-
};
|
|
1482
|
-
|
|
1483
|
-
const constrainPan = (previousPan, nextPan, panBounds, panDirection) => {
|
|
1484
|
-
const panX = panDirection !== 'y' ? nextPan.panX : previousPan.panX;
|
|
1485
|
-
const panY = panDirection !== 'x' ? nextPan.panY : previousPan.panY;
|
|
1486
|
-
return {
|
|
1487
|
-
panX: panX > panBounds.maxX || panX < panBounds.minX ? previousPan.panX : panX,
|
|
1488
|
-
panY: panY > panBounds.maxY || panY < panBounds.minY ? previousPan.panY : panY
|
|
1489
|
-
};
|
|
1490
|
-
};
|
|
1491
|
-
const pan = (previousPan, nextPan, panDirection, zoom, width, height, panBounds, onPanChange) => {
|
|
1492
|
-
if (!panBounds) {
|
|
1493
|
-
//On initial render before nodes are rendered
|
|
1494
|
-
return { newPan: { panX: 0, panY: 0 } };
|
|
1495
|
-
}
|
|
1496
|
-
const newPan = constrainPan(previousPan, nextPan, panBounds, panDirection);
|
|
1497
|
-
const isPanChanged = newPan.panX !== previousPan.panX || newPan.panY !== previousPan.panY;
|
|
1498
|
-
const center = panXYToCenterXY(newPan.panX, newPan.panY, zoom, width, height);
|
|
1499
|
-
isPanChanged &&
|
|
1500
|
-
onPanChange &&
|
|
1501
|
-
onPanChange({
|
|
1502
|
-
centerX: center.centerX,
|
|
1503
|
-
centerY: center.centerY
|
|
1504
|
-
});
|
|
1505
|
-
return { newPan };
|
|
1506
|
-
};
|
|
1507
|
-
const getPanBounds = (width, height, elemBounds, panType, zoom, minZoom, initPanZoomState) => {
|
|
1508
|
-
const { x, y, w, h } = elemBounds;
|
|
1509
|
-
let minX, maxX, minY, maxY;
|
|
1510
|
-
if (panType === 'centerContent') {
|
|
1511
|
-
minX = width / 2 - (w + x) * zoom;
|
|
1512
|
-
minY = height / 2 - (h + y) * zoom;
|
|
1513
|
-
maxX = width / 2 - x * zoom;
|
|
1514
|
-
maxY = height / 2 - y * zoom;
|
|
1515
|
-
}
|
|
1516
|
-
else {
|
|
1517
|
-
// panType equals fixed
|
|
1518
|
-
const zoomRatio = zoom / minZoom;
|
|
1519
|
-
// Find left corner of the content at min zoom and content is centered
|
|
1520
|
-
const minZoomX = (width - w * minZoom) / 2 - x * minZoom;
|
|
1521
|
-
const minZoomY = (height - h * minZoom) / 2 - y * minZoom;
|
|
1522
|
-
// When we pan all the way to the right, the left corner of displayable area is 0,0 as in min zoom.
|
|
1523
|
-
// When we pan all the way to the left, lets find the corner of the displayable area
|
|
1524
|
-
const leftCornerX = width - width * zoomRatio;
|
|
1525
|
-
const leftCornerY = height - height * zoomRatio;
|
|
1526
|
-
// Now we have everything to calculate pan zoom constraints
|
|
1527
|
-
minX = leftCornerX + minZoomX * zoomRatio;
|
|
1528
|
-
minY = leftCornerY + minZoomY * zoomRatio;
|
|
1529
|
-
maxX = minZoomX * zoomRatio;
|
|
1530
|
-
maxY = minZoomY * zoomRatio;
|
|
1531
|
-
}
|
|
1532
|
-
const initZoom = initPanZoomState.zoom;
|
|
1533
|
-
const initCenterX = initPanZoomState.centerX;
|
|
1534
|
-
const initCenterY = initPanZoomState.centerY;
|
|
1535
|
-
// If an initial panZoomState is set, should expand pan bounds to include it
|
|
1536
|
-
let dx, dy;
|
|
1537
|
-
if (initCenterX) {
|
|
1538
|
-
const boundsX = initCenterX * initZoom - width / 2;
|
|
1539
|
-
if (-boundsX * initZoom < minX) {
|
|
1540
|
-
dx = minX - boundsX * initZoom;
|
|
1541
|
-
minX -= dx;
|
|
1542
|
-
maxX += dx;
|
|
1543
|
-
}
|
|
1544
|
-
else if (-boundsX * initZoom > maxX) {
|
|
1545
|
-
dx = -boundsX * initZoom - maxX;
|
|
1546
|
-
minX -= dx;
|
|
1547
|
-
maxX += dx;
|
|
1548
|
-
}
|
|
1549
|
-
}
|
|
1550
|
-
if (initCenterY) {
|
|
1551
|
-
const boundsY = initCenterY * initZoom - height / 2;
|
|
1552
|
-
if (-boundsY * initZoom < minY) {
|
|
1553
|
-
dy = minY - boundsY * initZoom;
|
|
1554
|
-
minY -= dy;
|
|
1555
|
-
maxY += dy;
|
|
1556
|
-
}
|
|
1557
|
-
else if (-boundsY * initZoom > maxY) {
|
|
1558
|
-
dy = -boundsY * initZoom - maxY;
|
|
1559
|
-
minY -= dy;
|
|
1560
|
-
maxY += dy;
|
|
1561
|
-
}
|
|
1562
|
-
}
|
|
1563
|
-
return {
|
|
1564
|
-
minX: minX,
|
|
1565
|
-
maxX: maxX,
|
|
1566
|
-
minY: minY,
|
|
1567
|
-
maxY: maxY
|
|
1568
|
-
};
|
|
1569
|
-
};
|
|
1570
|
-
|
|
1571
|
-
const useDragPan = ({ panProps, captureTargetRef, panBounds, width, height, zoom, onDragPanStart, onDragPanEnd }) => {
|
|
1572
|
-
const prevPanState = useRef({ panX: 0, panY: 0 });
|
|
1573
|
-
const initialPanState = useRef({ panX: 0, panY: 0 });
|
|
1574
|
-
const dragProps = useDrag({
|
|
1575
|
-
captureTargetRef,
|
|
1576
|
-
onDragStart: () => {
|
|
1577
|
-
const panValues = centerXYToPanXY(panProps.centerX, panProps.centerY, zoom, width, height);
|
|
1578
|
-
initialPanState.current = {
|
|
1579
|
-
panX: panValues.panX,
|
|
1580
|
-
panY: panValues.panY
|
|
1581
|
-
};
|
|
1582
|
-
onDragPanStart && onDragPanStart();
|
|
1583
|
-
},
|
|
1584
|
-
onDragMove: ({ dx, dy }) => {
|
|
1585
|
-
const nextPan = {
|
|
1586
|
-
panX: initialPanState.current.panX + dx,
|
|
1587
|
-
panY: initialPanState.current.panY + dy
|
|
1588
|
-
};
|
|
1589
|
-
const { newPan } = pan(prevPanState.current, nextPan, panProps.panDirection, zoom, width, height, panBounds, panProps.onPan);
|
|
1590
|
-
prevPanState.current = newPan;
|
|
1591
|
-
},
|
|
1592
|
-
onDragEnd: ({ originalEvent }) => {
|
|
1593
|
-
// If panning occurred, call preventDefault to prevent selection from occurring
|
|
1594
|
-
if (initialPanState.current.panX !== prevPanState.current.panX ||
|
|
1595
|
-
initialPanState.current.panY !== prevPanState.current.panY)
|
|
1596
|
-
originalEvent.preventDefault();
|
|
1597
|
-
onDragPanEnd && onDragPanEnd();
|
|
1598
|
-
},
|
|
1599
|
-
isDisabled: panProps.panning === 'off'
|
|
1600
|
-
});
|
|
1601
|
-
return dragProps;
|
|
1602
|
-
};
|
|
1603
|
-
|
|
1604
|
-
const PX_FACTOR_PER_LINE = 15; // Value used in Toolkit
|
|
1605
|
-
const PX_FACTOR_PER_PAGE = 40; // Value copied from datagrid; this is not handled in Toolkit
|
|
1606
|
-
const getNormalizedDelta = (e) => {
|
|
1607
|
-
const { deltaX, deltaY, deltaMode } = e;
|
|
1608
|
-
switch (deltaMode) {
|
|
1609
|
-
case e.DOM_DELTA_PIXEL:
|
|
1610
|
-
return { deltaX: -deltaX, deltaY: -deltaY };
|
|
1611
|
-
case e.DOM_DELTA_LINE:
|
|
1612
|
-
return { deltaX: -deltaX * PX_FACTOR_PER_LINE, deltaY: -deltaY * PX_FACTOR_PER_LINE };
|
|
1613
|
-
case e.DOM_DELTA_PAGE:
|
|
1614
|
-
return { deltaX: -deltaX * PX_FACTOR_PER_PAGE, deltaY: -deltaY * PX_FACTOR_PER_PAGE };
|
|
1615
|
-
default:
|
|
1616
|
-
return { deltaX: -deltaX, deltaY: -deltaY };
|
|
1617
|
-
}
|
|
1618
|
-
};
|
|
1619
|
-
const useWheel = ({ onWheel: onWheelCallback, preventDefault = true, isDisabled = false }) => {
|
|
1620
|
-
const onWheel = (e) => {
|
|
1621
|
-
const { deltaX, deltaY } = getNormalizedDelta(e);
|
|
1622
|
-
if (preventDefault)
|
|
1623
|
-
e.preventDefault();
|
|
1624
|
-
onWheelCallback({
|
|
1625
|
-
x: e.offsetX,
|
|
1626
|
-
y: e.offsetY,
|
|
1627
|
-
deltaX,
|
|
1628
|
-
deltaY,
|
|
1629
|
-
ctrlKey: e.ctrlKey || e.metaKey
|
|
1630
|
-
});
|
|
1631
|
-
};
|
|
1632
|
-
return isDisabled ? {} : { onWheel };
|
|
1633
|
-
};
|
|
1634
|
-
|
|
1635
|
-
/**
|
|
1636
|
-
* @license
|
|
1637
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1638
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1639
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1640
|
-
* @ignore
|
|
1641
|
-
*/
|
|
1642
|
-
const ZOOM_INCREMENT = 0.05;
|
|
1643
|
-
const zoom = (nextZoom, zoom, minZoom, maxZoom, onZoomChange) => {
|
|
1644
|
-
const newZoom = nextZoom > maxZoom || nextZoom < minZoom ? zoom : nextZoom;
|
|
1645
|
-
const isZoomChanged = newZoom !== zoom;
|
|
1646
|
-
isZoomChanged &&
|
|
1647
|
-
onZoomChange &&
|
|
1648
|
-
onZoomChange({
|
|
1649
|
-
zoomValue: newZoom
|
|
1650
|
-
});
|
|
1651
|
-
};
|
|
1652
|
-
|
|
1653
|
-
/**
|
|
1654
|
-
* @license
|
|
1655
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1656
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1657
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1658
|
-
* @ignore
|
|
1659
|
-
*/
|
|
1660
|
-
const useWheelZoom = ({ zooming, minZoom, maxZoom, zoomValue, onZoom }) => {
|
|
1661
|
-
const wheelProps = useWheel({
|
|
1662
|
-
onWheel: ({ deltaY }) => {
|
|
1663
|
-
const newZoom = zoomValue * (1 + ZOOM_INCREMENT * deltaY);
|
|
1664
|
-
zoom(newZoom, zoomValue, minZoom, maxZoom, onZoom);
|
|
1665
|
-
},
|
|
1666
|
-
isDisabled: zooming === 'off'
|
|
1667
|
-
});
|
|
1668
|
-
return wheelProps;
|
|
1669
|
-
};
|
|
1670
|
-
|
|
1671
|
-
/**
|
|
1672
|
-
* @license
|
|
1673
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1674
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1675
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1676
|
-
* @ignore
|
|
1677
|
-
*/
|
|
1678
|
-
const getMidpoint = (p1, p2) => ({ x: (p1.x + p2.x) / 2, y: (p1.y + p2.y) / 2 });
|
|
1679
|
-
const getDistance = (p1, p2) => Math.sqrt((p2.x - p1.x) ** 2 + (p2.y - p2.y) ** 2);
|
|
1680
|
-
const usePinch = ({ captureTargetRef, onPinchZoomStart, onPinchZoomChange, onPinchZoomEnd, isDisabled = false }) => {
|
|
1681
|
-
const origin = useRef({ x: -1, y: -1 });
|
|
1682
|
-
const prevDistance = useRef(-1);
|
|
1683
|
-
const reset = () => {
|
|
1684
|
-
origin.current = { x: -1, y: -1 };
|
|
1685
|
-
prevDistance.current = -1;
|
|
1686
|
-
};
|
|
1687
|
-
if (isDisabled)
|
|
1688
|
-
reset();
|
|
1689
|
-
const pinchProps = usePointerGesture({
|
|
1690
|
-
captureTargetRef,
|
|
1691
|
-
numPointers: 2, // Pinch gesture requires 2 pointers
|
|
1692
|
-
onPointerGestureDown: ({ pointers: [pointer1, pointer2] }) => {
|
|
1693
|
-
const p1 = { x: pointer1.offsetX, y: pointer1.offsetY };
|
|
1694
|
-
const p2 = { x: pointer2.offsetX, y: pointer2.offsetY };
|
|
1695
|
-
origin.current = getMidpoint(p1, p2);
|
|
1696
|
-
prevDistance.current = getDistance(p1, p2);
|
|
1697
|
-
onPinchZoomStart &&
|
|
1698
|
-
onPinchZoomStart({
|
|
1699
|
-
origin: origin.current,
|
|
1700
|
-
delta: 0
|
|
1701
|
-
});
|
|
1702
|
-
},
|
|
1703
|
-
onPointerGestureMove: ({ pointers: [pointer1, pointer2] }) => {
|
|
1704
|
-
const p1 = { x: pointer1.offsetX, y: pointer1.offsetY };
|
|
1705
|
-
const p2 = { x: pointer2.offsetX, y: pointer2.offsetY };
|
|
1706
|
-
const distance = getDistance(p1, p2);
|
|
1707
|
-
const delta = distance - prevDistance.current;
|
|
1708
|
-
prevDistance.current = distance;
|
|
1709
|
-
onPinchZoomChange &&
|
|
1710
|
-
onPinchZoomChange({
|
|
1711
|
-
origin: origin.current,
|
|
1712
|
-
delta
|
|
1713
|
-
});
|
|
1714
|
-
},
|
|
1715
|
-
onPointerGestureEnd: () => {
|
|
1716
|
-
reset();
|
|
1717
|
-
onPinchZoomEnd && onPinchZoomEnd();
|
|
1718
|
-
}
|
|
1719
|
-
});
|
|
1720
|
-
return isDisabled ? {} : pinchProps;
|
|
1721
|
-
};
|
|
1722
|
-
|
|
1723
|
-
const usePinchZoom = ({ captureTargetRef, zooming, minZoom, maxZoom, zoomValue, onZoom }) => {
|
|
1724
|
-
const pinchProps = usePinch({
|
|
1725
|
-
captureTargetRef,
|
|
1726
|
-
onPinchZoomChange: ({ delta }) => {
|
|
1727
|
-
const newZoom = zoomValue * (1 + ZOOM_INCREMENT * delta);
|
|
1728
|
-
zoom(newZoom, zoomValue, minZoom, maxZoom, onZoom);
|
|
1729
|
-
},
|
|
1730
|
-
isDisabled: zooming === 'off'
|
|
1731
|
-
});
|
|
1732
|
-
return pinchProps;
|
|
1733
|
-
};
|
|
1734
|
-
|
|
1735
|
-
const usePanZoom = ({ props, captureTargetRef, width, height, contentBounds }) => {
|
|
1736
|
-
const [cursor, setCursor] = useState();
|
|
1737
|
-
const zoomProps = getZoomProps(props, width, height, contentBounds);
|
|
1738
|
-
const panProps = getPanProps(props, contentBounds);
|
|
1739
|
-
const panBounds = useRef();
|
|
1740
|
-
const prevZoom = useRef();
|
|
1741
|
-
const panning = useRef();
|
|
1742
|
-
const initPanZoomState = useRef({
|
|
1743
|
-
zoom: props.zoomValue || 0,
|
|
1744
|
-
centerX: props.centerX,
|
|
1745
|
-
centerY: props.centerY
|
|
1746
|
-
});
|
|
1747
|
-
if (contentBounds.w !== Infinity &&
|
|
1748
|
-
(zoomProps.zoomValue !== prevZoom.current || panProps.panning !== panning.current)) {
|
|
1749
|
-
panBounds.current = getPanBounds(width, height, contentBounds, panProps.panning, zoomProps.zoomValue, zoomProps.minZoom, initPanZoomState.current);
|
|
1750
|
-
prevZoom.current = zoomProps.zoomValue;
|
|
1751
|
-
panning.current = panProps.panning;
|
|
1752
|
-
}
|
|
1753
|
-
const dragPanProps = useDragPan({
|
|
1754
|
-
panProps: panProps,
|
|
1755
|
-
captureTargetRef: captureTargetRef,
|
|
1756
|
-
panBounds: panBounds.current,
|
|
1757
|
-
zoom: zoomProps.zoomValue,
|
|
1758
|
-
width,
|
|
1759
|
-
height,
|
|
1760
|
-
onDragPanStart: () => setCursor('grabbing'),
|
|
1761
|
-
onDragPanEnd: () => setCursor('auto')
|
|
1762
|
-
});
|
|
1763
|
-
//dZoom or nZoom is required
|
|
1764
|
-
const kbZoomCallback = (props) => {
|
|
1765
|
-
const newZoom = props.dZoom
|
|
1766
|
-
? zoomProps.zoomValue + props.dZoom
|
|
1767
|
-
: getZoomToFitZoom(width, height, contentBounds);
|
|
1768
|
-
zoom(props.nZoom ? props.nZoom : newZoom, zoomProps.zoomValue, zoomProps.minZoom, zoomProps.maxZoom, zoomProps.onZoom);
|
|
1769
|
-
};
|
|
1770
|
-
const prevPanState = useRef({ panX: 0, panY: 0 });
|
|
1771
|
-
// dPan or nPan is required
|
|
1772
|
-
const kbPanCallback = (props) => {
|
|
1773
|
-
let centerX;
|
|
1774
|
-
let centerY;
|
|
1775
|
-
if (props.center) {
|
|
1776
|
-
centerX = contentBounds.x + contentBounds.w / 2;
|
|
1777
|
-
centerY = contentBounds.y + contentBounds.h / 2;
|
|
1778
|
-
}
|
|
1779
|
-
else if (props.dPan) {
|
|
1780
|
-
centerX = panProps.centerX + props.dPan.dx;
|
|
1781
|
-
centerY = panProps.centerY + props.dPan.dy;
|
|
1782
|
-
}
|
|
1783
|
-
else {
|
|
1784
|
-
centerX = props.nPan.cx;
|
|
1785
|
-
centerY = props.nPan.cy;
|
|
1786
|
-
}
|
|
1787
|
-
const panValues = centerXYToPanXY(centerX, centerY, zoomProps.zoomValue, width, height);
|
|
1788
|
-
const { newPan } = pan(prevPanState.current, panValues, panProps.panDirection, zoomProps.zoomValue, width, height, panBounds.current, panProps.onPan);
|
|
1789
|
-
prevPanState.current = newPan;
|
|
1790
|
-
};
|
|
1791
|
-
const wheelZoomProps = useWheelZoom(zoomProps);
|
|
1792
|
-
const pinchZoomProps = usePinchZoom({
|
|
1793
|
-
captureTargetRef,
|
|
1794
|
-
zooming: zoomProps.zooming,
|
|
1795
|
-
minZoom: zoomProps.minZoom,
|
|
1796
|
-
maxZoom: zoomProps.maxZoom,
|
|
1797
|
-
zoomValue: zoomProps.zoomValue,
|
|
1798
|
-
onZoom: zoomProps.onZoom
|
|
1799
|
-
});
|
|
1800
|
-
const panZoomProps = mergeProps(dragPanProps, wheelZoomProps, pinchZoomProps);
|
|
1801
|
-
return {
|
|
1802
|
-
panZoomProps,
|
|
1803
|
-
cursor,
|
|
1804
|
-
centerX: panProps.centerX,
|
|
1805
|
-
centerY: panProps.centerY,
|
|
1806
|
-
zoomValue: zoomProps.zoomValue,
|
|
1807
|
-
kbPanCallback: panProps.panning !== 'off' ? kbPanCallback : undefined,
|
|
1808
|
-
kbZoomCallback: zoomProps.zooming !== 'off' ? kbZoomCallback : undefined
|
|
1809
|
-
};
|
|
1810
|
-
};
|
|
1811
|
-
|
|
1812
|
-
function useDiagramSelection({ selectedIds, selectionMode, nodeMap, linkMap, focusedItemInfo, onSelectionChange, rootRef }) {
|
|
1813
|
-
const nodeIdToIndexMap = nodeMap.itemIdToIndexMap;
|
|
1814
|
-
const nodeIndexToIdMap = nodeMap.itemIndexToIdMap;
|
|
1815
|
-
const linkIdToIndexMap = linkMap.itemIdToIndexMap;
|
|
1816
|
-
const linkIndexToIdMap = linkMap.itemIndexToIdMap;
|
|
1817
|
-
const encodeNodeId = (id) => `N_${nodeIdToIndexMap.get(id)}`;
|
|
1818
|
-
const decodeNodeId = (id) => nodeIndexToIdMap.get(Number(id.slice(2)));
|
|
1819
|
-
const encodeLinkId = (id) => `L_${linkIdToIndexMap.get(id)}`;
|
|
1820
|
-
const decodeLinkId = (id) => linkIndexToIdMap.get(Number(id.slice(2)));
|
|
1821
|
-
const encodedNodesSelection = selectedIds.nodes ? selectedIds.nodes.map(encodeNodeId) : [];
|
|
1822
|
-
const encodedLinksSelection = selectedIds.links ? selectedIds.links.map(encodeLinkId) : [];
|
|
1823
|
-
const encodedSelection = [...encodedNodesSelection, ...encodedLinksSelection];
|
|
1824
|
-
const idExtracter = (event) => {
|
|
1825
|
-
// return encodeNodeId(id) or encodeLinkId(id) depending on node or link selection or undefined if clicked on empty space
|
|
1826
|
-
const info = event.type === 'keyup'
|
|
1827
|
-
? focusedItemInfo
|
|
1828
|
-
: getNavigableInfo(event.target, rootRef);
|
|
1829
|
-
return info.id !== undefined
|
|
1830
|
-
? info.isNode
|
|
1831
|
-
? encodeNodeId(info.id)
|
|
1832
|
-
: encodeLinkId(info.id)
|
|
1833
|
-
: undefined;
|
|
1834
|
-
};
|
|
1835
|
-
const onEncodedSelectionChange = (detail) => {
|
|
1836
|
-
const newSelectedNodeIds = detail.ids
|
|
1837
|
-
.filter((encId) => encId[0] === 'N')
|
|
1838
|
-
.map((encId) => decodeNodeId(encId));
|
|
1839
|
-
const newSelectedLinkIds = detail.ids
|
|
1840
|
-
.filter((encId) => encId[0] === 'L')
|
|
1841
|
-
.map((encId) => decodeLinkId(encId));
|
|
1842
|
-
const nodeData = newSelectedNodeIds.map((selectedId) => {
|
|
1843
|
-
return nodeMap.itemIdToDataMap.get(selectedId);
|
|
1844
|
-
});
|
|
1845
|
-
const linkData = newSelectedLinkIds.map((selectedId) => {
|
|
1846
|
-
return linkMap.itemIdToDataMap.get(selectedId);
|
|
1847
|
-
});
|
|
1848
|
-
return (onSelectionChange &&
|
|
1849
|
-
onSelectionChange({
|
|
1850
|
-
nodes: newSelectedNodeIds,
|
|
1851
|
-
links: newSelectedLinkIds,
|
|
1852
|
-
nodeData,
|
|
1853
|
-
linkData
|
|
1854
|
-
}));
|
|
1855
|
-
};
|
|
1856
|
-
const getDataById = (id) => {
|
|
1857
|
-
let data;
|
|
1858
|
-
if (id[0] === 'N') {
|
|
1859
|
-
const nodeId = decodeNodeId(id);
|
|
1860
|
-
data = nodeMap.itemIdToDataMap.get(nodeId);
|
|
1861
|
-
}
|
|
1862
|
-
else if (id[0] === 'L') {
|
|
1863
|
-
const linkId = decodeLinkId(id);
|
|
1864
|
-
data = linkMap.itemIdToDataMap.get(linkId);
|
|
1865
|
-
}
|
|
1866
|
-
return data;
|
|
1867
|
-
};
|
|
1868
|
-
const { selectionContent, selectionProps } = useSelection({
|
|
1869
|
-
selection: encodedSelection,
|
|
1870
|
-
idExtracter,
|
|
1871
|
-
selectionMode,
|
|
1872
|
-
getDataById,
|
|
1873
|
-
onChange: onEncodedSelectionChange
|
|
1874
|
-
});
|
|
1875
|
-
return { selectionContent, selectionProps };
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
function DiagramWithDimensions({ nodes = [], links = [], width, height, selectedIds = {}, selectionMode = 'none', layout, nodeRenderer, linkRenderer, onSelectionChange, onItemHover, onItemFocus, highlightedIds = {}, datatip, ...otherProps }) {
|
|
1879
|
-
const focusedItemBoundsRef = useRef(null);
|
|
1880
|
-
const rootRef = useRef(null);
|
|
1881
|
-
//TODO JET-62563 change bounds to a MAP
|
|
1882
|
-
const [bounds, setBounds] = useState([]);
|
|
1883
|
-
const [combinedLabelBounds, setCombinedLabelBounds] = useState();
|
|
1884
|
-
const { direction } = useUser();
|
|
1885
|
-
const diagramNodes = nodes;
|
|
1886
|
-
const nodeMap = createItemMap(diagramNodes);
|
|
1887
|
-
const nodeIdToDataMap = nodeMap.itemIdToDataMap;
|
|
1888
|
-
const diagramLinks = filterLinksWithNoEndNodes(links, nodeIdToDataMap);
|
|
1889
|
-
const linkMap = createItemMap(diagramLinks);
|
|
1890
|
-
const linkIdToDataMap = linkMap.itemIdToDataMap;
|
|
1891
|
-
const resizeThrottling = useRef(false);
|
|
1892
|
-
const newDimensions = getDimensionsFromBounds(bounds);
|
|
1893
|
-
const { textMeasureContent, getTextDimensions } = useTextDimensions();
|
|
1894
|
-
const labelDimensions = useRef(new Map());
|
|
1895
|
-
const nodeLabelPosRef = useRef([]);
|
|
1896
|
-
const linkLabelPosRef = useRef([]);
|
|
1897
|
-
const layoutOutputRef = 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({
|
|
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 = 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(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 layoutOutput = layout(layoutJSON);
|
|
1978
|
-
const { nodePoints, nodeLabelPos, linkLabelPos } = deconstructLayoutJSON(layoutOutput, diagramNodes, diagramLinks);
|
|
1979
|
-
nodeLabelPosRef.current = nodeLabelPos;
|
|
1980
|
-
linkLabelPosRef.current = linkLabelPos;
|
|
1981
|
-
layoutOutputRef.current = layoutOutput;
|
|
1982
|
-
const nodeBounds = mergeDimensions(newDimensions, nodePoints);
|
|
1983
|
-
setBounds(nodeBounds);
|
|
1984
|
-
const labelBounds = getAllLabelBounds(labelDims, diagramNodes, diagramLinks, nodeLabelPos, linkLabelPos, direction === 'rtl');
|
|
1985
|
-
setCombinedLabelBounds(labelBounds);
|
|
1986
|
-
resizeThrottling.current = false;
|
|
1987
|
-
});
|
|
1988
|
-
};
|
|
1989
|
-
return (jsxs("div", { ref: rootRef, class: outerStyles, ...mergedEventProps, style: style, tabIndex: 0, role: "application", "aria-label": otherProps['aria-label'], "aria-labelledby": otherProps['aria-labelledby'], "aria-describedby": merge([otherProps['aria-describedby'], datatipAriaDescribedby]), "aria-activedescendant": activeId, children: [getTextDimensions ? (jsx(DiagramPanZoomContainer, { centerX: centerX, centerY: centerY, zoom: zoomValue, width: width, height: height, children: jsx(DiagramLayers, { nodes: diagramNodes, links: diagramLinks, nodeRenderer: nodeRenderer, linkRenderer: linkRenderer, width: width, height: height, nodeBounds: bounds, states: states.current, previousStates: previousState, onNodeSizeChanged: onNodeSizeChanged, nodeLabelPositions: nodeLabelPosRef.current, linkLabelPositions: linkLabelPosRef.current, labelDimensions: labelDimensions.current, supportsSelection: selectionMode !== 'none' ||
|
|
1990
|
-
!!(selectedIds?.nodes && selectedIds.nodes.length > 0) ||
|
|
1991
|
-
!!(selectedIds?.links && selectedIds.links.length > 0), layoutOutput: layoutOutputRef.current }) })) : undefined, textMeasureContent, datatipContent, selectionContent] }));
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
/**
|
|
1995
|
-
* Diagrams are used to display a set of nodes and the links between them.
|
|
1996
|
-
*/
|
|
1997
|
-
function Diagram({ width, height, ...otherProps }) {
|
|
1998
|
-
return otherProps.nodes && otherProps.nodes.length > 0 ? (jsx(TrackResizeContainer, { width: width, height: height, class: dimensionStyle, children: (width, height) => jsx(DiagramWithDimensions, { width: width, height: height, ...otherProps }) })) : null;
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2001
|
-
export { Diagram as D };
|
|
2002
|
-
//# sourceMappingURL=Diagram-d7fdc75f.js.map
|