@oracle/oraclejet-preact 18.1.5 → 18.1.6
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/BarChart-0ad4ca6d.js +2 -0
- package/amd/BarChart-0ad4ca6d.js.map +1 -0
- package/amd/BaseButton-c86afd54.js +2 -0
- package/amd/BaseButton-c86afd54.js.map +1 -0
- package/amd/BaseCardView-a1c5a21d.js +2 -0
- package/amd/BaseCardView-a1c5a21d.js.map +1 -0
- package/amd/BaseCardViewSelectionTest-36a03079.js +2 -0
- package/amd/BaseCardViewSelectionTest-36a03079.js.map +1 -0
- package/amd/BaseRichSelection-33a97275.js +2 -0
- package/amd/BaseRichSelection-33a97275.js.map +1 -0
- package/amd/Button-cb88d20f.js +2 -0
- package/amd/Button-cb88d20f.js.map +1 -0
- package/amd/ButtonSetButton-819e99a8.js +2 -0
- package/amd/ButtonSetButton-819e99a8.js.map +1 -0
- package/amd/ButtonSetIconButton-9f171b1e.js +2 -0
- package/amd/ButtonSetIconButton-9f171b1e.js.map +1 -0
- package/amd/ButtonSetItem-8a51cd2a.js +2 -0
- package/amd/ButtonSetItem-8a51cd2a.js.map +1 -0
- package/amd/CardFlexView-f7fdfac8.js +2 -0
- package/amd/CardFlexView-f7fdfac8.js.map +1 -0
- package/amd/CardGridView-b8a60fae.js +2 -0
- package/amd/CardGridView-b8a60fae.js.map +1 -0
- package/amd/Chart-79cfc878.js +2 -0
- package/amd/Chart-79cfc878.js.map +1 -0
- package/amd/Checkbox-49753599.js +2 -0
- package/amd/Checkbox-49753599.js.map +1 -0
- package/amd/CheckboxControl-c6a380b3.js +2 -0
- package/amd/CheckboxControl-c6a380b3.js.map +1 -0
- package/amd/CheckboxRadioField-1987c75d.js +2 -0
- package/amd/CheckboxRadioField-1987c75d.js.map +1 -0
- package/amd/CheckboxSet-05423d28.js +2 -0
- package/amd/CheckboxSet-05423d28.js.map +1 -0
- package/amd/CheckboxStyles.styles.css +6 -0
- package/amd/ClearIcon-d73689cc.js +2 -0
- package/amd/ClearIcon-d73689cc.js.map +1 -0
- package/amd/ComboChart-72eda15f.js +2 -0
- package/amd/ComboChart-72eda15f.js.map +1 -0
- package/amd/CompactUserAssistance-3799998f.js +2 -0
- package/amd/CompactUserAssistance-3799998f.js.map +1 -0
- package/amd/ComponentMessageContainer-cf186eeb.js +2 -0
- package/amd/ComponentMessageContainer-cf186eeb.js.map +1 -0
- package/amd/ConveyorBeltItem-e3002f4a.js +2 -0
- package/amd/ConveyorBeltItem-e3002f4a.js.map +1 -0
- package/amd/DatePicker-9115226e.js +2 -0
- package/amd/DatePicker-9115226e.js.map +1 -0
- package/amd/DatePickerHeader-a0da70a0.js +2 -0
- package/amd/DatePickerHeader-a0da70a0.js.map +1 -0
- package/amd/Diagram-14fa4924.js +2 -0
- package/amd/Diagram-14fa4924.js.map +1 -0
- package/amd/Dialog-896c0bfd.js +2 -0
- package/amd/Dialog-896c0bfd.js.map +1 -0
- package/amd/EmbeddedIconButton-3608bfb4.js +2 -0
- package/amd/EmbeddedIconButton-3608bfb4.js.map +1 -0
- package/amd/ExpandableList-daabc548.js +2 -0
- package/amd/ExpandableList-daabc548.js.map +1 -0
- package/amd/Gantt-7265d4ce.js +2 -0
- package/amd/Gantt-7265d4ce.js.map +1 -0
- package/amd/GroupLoadingIndicator-9fd33355.js +1 -1
- package/amd/IconButton-368fba34.js +2 -0
- package/amd/IconButton-368fba34.js.map +1 -0
- package/amd/IconMenuButton-3f3c2386.js +2 -0
- package/amd/IconMenuButton-3f3c2386.js.map +1 -0
- package/amd/IconProgressButton-11c44c28.js +2 -0
- package/amd/IconProgressButton-11c44c28.js.map +1 -0
- package/amd/IconSwitchButton-1a400cdf.js +2 -0
- package/amd/IconSwitchButton-1a400cdf.js.map +1 -0
- package/amd/IconToggleButton-ea46b246.js +2 -0
- package/amd/IconToggleButton-ea46b246.js.map +1 -0
- package/amd/Indexer-5df524f2.js +2 -0
- package/amd/Indexer-5df524f2.js.map +1 -0
- package/amd/InlineUserAssistance-a97e0011.js +2 -0
- package/amd/InlineUserAssistance-a97e0011.js.map +1 -0
- package/amd/InputDateMask-09989b51.js +2 -0
- package/amd/InputDateMask-09989b51.js.map +1 -0
- package/amd/InputDatePicker-03bdeb95.js +2 -0
- package/amd/InputDatePicker-03bdeb95.js.map +1 -0
- package/amd/InputPassword-57a5e072.js +2 -0
- package/amd/InputPassword-57a5e072.js.map +1 -0
- package/amd/InputText-a72eb1c3.js +2 -0
- package/amd/InputText-a72eb1c3.js.map +1 -0
- package/amd/Label-41b672b4.js +2 -0
- package/amd/Label-41b672b4.js.map +1 -0
- package/amd/LineAreaChart-3aff0c1a.js +2 -0
- package/amd/LineAreaChart-3aff0c1a.js.map +1 -0
- package/amd/Link-1f126248.js +2 -0
- package/amd/Link-1f126248.js.map +1 -0
- package/amd/LinkVariants.styles.css +2 -1
- package/amd/LinkVariants.styles2.css +2 -1
- package/amd/List-0da6ee9c.js +2 -0
- package/amd/List-0da6ee9c.js.map +1 -0
- package/amd/ListView-cdfac903.js +2 -0
- package/amd/ListView-cdfac903.js.map +1 -0
- package/amd/LoadMoreCollection-a6adbc3f.js +2 -0
- package/amd/LoadMoreCollection-a6adbc3f.js.map +1 -0
- package/amd/MenuButton-66e5430a.js +2 -0
- package/amd/MenuButton-66e5430a.js.map +1 -0
- package/amd/Message-d66cc7e9.js +2 -0
- package/amd/Message-d66cc7e9.js.map +1 -0
- package/amd/MessageToast-19703f73.js +2 -0
- package/amd/MessageToast-19703f73.js.map +1 -0
- package/amd/MonthView-67179db3.js +2 -0
- package/amd/MonthView-67179db3.js.map +1 -0
- package/amd/NumberInputText-e2cf1795.js +2 -0
- package/amd/NumberInputText-e2cf1795.js.map +1 -0
- package/amd/OverflowTabBar-1dd5c327.js +2 -0
- package/amd/OverflowTabBar-1dd5c327.js.map +1 -0
- package/amd/OverflowTabBarItem-f8128e3d.js +2 -0
- package/amd/OverflowTabBarItem-f8128e3d.js.map +1 -0
- package/amd/PRIVATE_BaseCardView.js +1 -1
- package/amd/PRIVATE_Chart.js +1 -1
- package/amd/PRIVATE_CheckboxControl.js +1 -1
- package/amd/PRIVATE_CheckboxRadioField.js +1 -1
- package/amd/PRIVATE_ClearIcon.js +1 -1
- package/amd/PRIVATE_DatePickerHeader.js +1 -1
- package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
- package/amd/PRIVATE_IconSwitchButton.js +1 -1
- package/amd/PRIVATE_List.js +1 -1
- package/amd/PRIVATE_LoadMoreCollection.js +1 -1
- package/amd/PRIVATE_Message.js +1 -1
- package/amd/PRIVATE_MonthView.js +1 -1
- package/amd/PRIVATE_MonthYearGridView.js +1 -1
- package/amd/PRIVATE_RevealToggleIcon.js +1 -1
- package/amd/PRIVATE_RichSelectionCommon.js +1 -1
- package/amd/PRIVATE_SelectCommon.js +1 -1
- package/amd/PRIVATE_Table.js +1 -1
- package/amd/PRIVATE_TimeComponent.js +1 -1
- package/amd/PRIVATE_VirtualizedCollection.js +1 -1
- package/amd/PictoChart-98b892fb.js +2 -0
- package/amd/PictoChart-98b892fb.js.map +1 -0
- package/amd/ProgressButton-cd0c21df.js +2 -0
- package/amd/ProgressButton-cd0c21df.js.map +1 -0
- package/amd/RadioItem-1a02d3dc.js +2 -0
- package/amd/RadioItem-1a02d3dc.js.map +1 -0
- package/amd/RadioSet-94d12876.js +2 -0
- package/amd/RadioSet-94d12876.js.map +1 -0
- package/amd/RemovableNavigationListItem-1f69907c.js +2 -0
- package/amd/RemovableNavigationListItem-1f69907c.js.map +1 -0
- package/amd/RemovableTabBarItem-5c240801.js +2 -0
- package/amd/RemovableTabBarItem-5c240801.js.map +1 -0
- package/amd/RevealToggleIcon-c22626da.js +2 -0
- package/amd/RevealToggleIcon-c22626da.js.map +1 -0
- package/amd/ScatterChart-e6f8d49a.js +2 -0
- package/amd/ScatterChart-e6f8d49a.js.map +1 -0
- package/amd/SelectMultiple-a159ccbf.js +2 -0
- package/amd/SelectMultiple-a159ccbf.js.map +1 -0
- package/amd/SelectSingle-e3d0d8d2.js +2 -0
- package/amd/SelectSingle-e3d0d8d2.js.map +1 -0
- package/amd/SplitMenuButton-a2001b04.js +2 -0
- package/amd/SplitMenuButton-a2001b04.js.map +1 -0
- package/amd/Table-f5ebf3d4.js +2 -0
- package/amd/Table-f5ebf3d4.js.map +1 -0
- package/amd/TableView-e8cab364.js +2 -0
- package/amd/TableView-e8cab364.js.map +1 -0
- package/amd/TagCloud-39552a78.js +2 -0
- package/amd/TagCloud-39552a78.js.map +1 -0
- package/amd/TextArea-0ec1a311.js +2 -0
- package/amd/TextArea-0ec1a311.js.map +1 -0
- package/amd/TextAreaAutosize-8cac0a54.js +2 -0
- package/amd/TextAreaAutosize-8cac0a54.js.map +1 -0
- package/amd/Theme-redwood/theme.css +209 -209
- package/amd/Theme-stable/theme.css +415 -415
- package/amd/TimeComponentCanvas2D-82ebf0c7.js +2 -0
- package/amd/TimeComponentCanvas2D-82ebf0c7.js.map +1 -0
- package/amd/ToggleButton-f8845804.js +2 -0
- package/amd/ToggleButton-f8845804.js.map +1 -0
- 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_ButtonSetButton.js +1 -1
- package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
- package/amd/UNSAFE_ButtonSetItem.js +1 -1
- package/amd/UNSAFE_CardFlexView.js +1 -1
- package/amd/UNSAFE_CardGridView.js +1 -1
- package/amd/UNSAFE_Checkbox/themes/CheckboxStyles.css.js +1 -1
- package/amd/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js +1 -1
- package/amd/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js.map +1 -1
- package/amd/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js +1 -1
- package/amd/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js +1 -1
- package/amd/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js.map +1 -1
- package/amd/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js +1 -1
- package/amd/UNSAFE_Checkbox.js +1 -1
- package/amd/UNSAFE_CheckboxItem.js +1 -1
- package/amd/UNSAFE_CheckboxItem.js.map +1 -1
- package/amd/UNSAFE_CheckboxSet.js +1 -1
- package/amd/UNSAFE_CheckboxSet.js.map +1 -1
- package/amd/UNSAFE_ComboChart.js +1 -1
- package/amd/UNSAFE_ComponentMessage.js +1 -1
- package/amd/UNSAFE_ConveyorBelt.js +1 -1
- package/amd/UNSAFE_DatePicker.js +1 -1
- package/amd/UNSAFE_Diagram.js +1 -1
- package/amd/UNSAFE_Dialog.js +1 -1
- package/amd/UNSAFE_ExpandableList.js +1 -1
- package/amd/UNSAFE_Gantt.js +1 -1
- package/amd/UNSAFE_IconButton.js +1 -1
- package/amd/UNSAFE_IconMenuButton.js +1 -1
- package/amd/UNSAFE_IconProgressButton.js +1 -1
- package/amd/UNSAFE_IconToggleButton.js +1 -1
- package/amd/UNSAFE_Indexer.js +1 -1
- package/amd/UNSAFE_InputDateMask.js +1 -1
- package/amd/UNSAFE_InputDatePicker.js +1 -1
- package/amd/UNSAFE_InputPassword.js +1 -1
- package/amd/UNSAFE_InputSensitiveText.js +1 -1
- package/amd/UNSAFE_InputText.js +1 -1
- package/amd/UNSAFE_InputTimeMask.js +1 -1
- package/amd/UNSAFE_Label.js +1 -1
- package/amd/UNSAFE_LabelledLink.js +1 -1
- package/amd/UNSAFE_LineAreaChart.js +1 -1
- package/amd/UNSAFE_Link/themes/LinkStyles.css.js +1 -1
- package/amd/UNSAFE_Link.js +1 -1
- package/amd/UNSAFE_ListView.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_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_ProgressButton.js +1 -1
- package/amd/UNSAFE_RadioItem.js +1 -1
- package/amd/UNSAFE_RadioSet.js +1 -1
- package/amd/UNSAFE_RichCheckboxSet.js +1 -1
- package/amd/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/amd/UNSAFE_RichRadioSet.js +1 -1
- package/amd/UNSAFE_RichRadioSet.js.map +1 -1
- package/amd/UNSAFE_RichSelectionItem.js +1 -1
- package/amd/UNSAFE_RichSelectionItem.js.map +1 -1
- package/amd/UNSAFE_ScatterChart.js +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -1
- package/amd/UNSAFE_Sheet/__test__/Sheet.spec.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_ToggleButton.js +1 -1
- package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
- package/amd/UNSAFE_UserAssistance.js +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -1
- package/amd/VirtualizedCollection-63223f5e.js +2 -0
- package/amd/VirtualizedCollection-63223f5e.js.map +1 -0
- package/amd/VirtualizedListView-d353d174.js +2 -0
- package/amd/VirtualizedListView-d353d174.js.map +1 -0
- package/amd/YearsGridView-e645d5de.js +2 -0
- package/amd/YearsGridView-e645d5de.js.map +1 -0
- package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
- package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
- package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
- package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
- package/amd/hooks/UNSAFE_usePressClick.js +1 -1
- package/amd/useCellNavigation-4138513e.js +2 -0
- package/amd/useCellNavigation-4138513e.js.map +1 -0
- package/amd/useChartMarquee-2f7d51c4.js +2 -0
- package/amd/useChartMarquee-2f7d51c4.js.map +1 -0
- package/amd/usePressClick-b5bf4243.js +2 -0
- package/amd/usePressClick-b5bf4243.js.map +1 -0
- package/amd/useSelectCommon-380baecd.js +2 -0
- package/amd/useSelectCommon-380baecd.js.map +1 -0
- package/amd/useSelectDrill-113ae3ae.js +2 -0
- package/amd/useSelectDrill-113ae3ae.js.map +1 -0
- package/amd/useSelection-80e262f2.js +2 -0
- package/amd/useSelection-80e262f2.js.map +1 -0
- package/amd/useVisDragModeControls-f187d8b2.js +2 -0
- package/amd/useVisDragModeControls-f187d8b2.js.map +1 -0
- package/cjs/BarChart-66dbe5be.js +181 -0
- package/cjs/BarChart-66dbe5be.js.map +1 -0
- package/cjs/BaseButton-590432e4.js +174 -0
- package/cjs/BaseButton-590432e4.js.map +1 -0
- package/cjs/BaseCardView-5c483f52.js +687 -0
- package/cjs/BaseCardView-5c483f52.js.map +1 -0
- package/cjs/BaseCardViewSelectionTest-f29b3ecf.js +734 -0
- package/cjs/BaseCardViewSelectionTest-f29b3ecf.js.map +1 -0
- package/cjs/BaseRichSelection-07d33b2a.js +344 -0
- package/cjs/BaseRichSelection-07d33b2a.js.map +1 -0
- package/cjs/Button-2427b7df.js +24 -0
- package/cjs/Button-2427b7df.js.map +1 -0
- package/cjs/ButtonSetButton-a23b6b7d.js +35 -0
- package/cjs/ButtonSetButton-a23b6b7d.js.map +1 -0
- package/cjs/ButtonSetIconButton-c632a294.js +42 -0
- package/cjs/ButtonSetIconButton-c632a294.js.map +1 -0
- package/cjs/ButtonSetItem-b260b6a5.js +67 -0
- package/cjs/ButtonSetItem-b260b6a5.js.map +1 -0
- package/cjs/CardFlexView-385f1b2d.js +29 -0
- package/cjs/CardFlexView-385f1b2d.js.map +1 -0
- package/cjs/CardGridView-d337b9f4.js +17 -0
- package/cjs/CardGridView-d337b9f4.js.map +1 -0
- package/cjs/Chart-13ccd345.js +493 -0
- package/cjs/Chart-13ccd345.js.map +1 -0
- package/cjs/Checkbox-07e4794b.js +106 -0
- package/cjs/Checkbox-07e4794b.js.map +1 -0
- package/cjs/CheckboxControl-697725cb.js +111 -0
- package/cjs/CheckboxControl-697725cb.js.map +1 -0
- package/cjs/CheckboxRadioField-1bb0d57d.js +185 -0
- package/cjs/CheckboxRadioField-1bb0d57d.js.map +1 -0
- package/cjs/CheckboxStyles.styles.css +6 -0
- package/cjs/ClearIcon-22a24975.js +23 -0
- package/cjs/ClearIcon-22a24975.js.map +1 -0
- package/cjs/ComboChart-7188af92.js +174 -0
- package/cjs/ComboChart-7188af92.js.map +1 -0
- package/cjs/CompactUserAssistance-54247e7e.js +49 -0
- package/cjs/CompactUserAssistance-54247e7e.js.map +1 -0
- package/cjs/ComponentMessageContainer-f8dc57aa.js +71 -0
- package/cjs/ComponentMessageContainer-f8dc57aa.js.map +1 -0
- package/cjs/ConveyorBeltItem-324014ba.js +641 -0
- package/cjs/ConveyorBeltItem-324014ba.js.map +1 -0
- package/cjs/DatePicker-9c362a68.js +566 -0
- package/cjs/DatePicker-9c362a68.js.map +1 -0
- package/cjs/DatePickerHeader-4223c919.js +46 -0
- package/cjs/DatePickerHeader-4223c919.js.map +1 -0
- package/cjs/Diagram-151103ac.js +2037 -0
- package/cjs/Diagram-151103ac.js.map +1 -0
- package/cjs/Dialog-40a1b708.js +346 -0
- package/cjs/Dialog-40a1b708.js.map +1 -0
- package/cjs/EmbeddedIconButton-f3f6e8f6.js +13 -0
- package/cjs/EmbeddedIconButton-f3f6e8f6.js.map +1 -0
- package/cjs/ExpandableList-0a0d75b3.js +169 -0
- package/cjs/ExpandableList-0a0d75b3.js.map +1 -0
- package/cjs/Gantt-aa6f41d6.js +3819 -0
- package/cjs/Gantt-aa6f41d6.js.map +1 -0
- package/cjs/GroupLoadingIndicator-824d658f.js +1 -1
- package/cjs/IconButton-fad4e4b2.js +39 -0
- package/cjs/IconButton-fad4e4b2.js.map +1 -0
- package/cjs/IconMenuButton-70ef4775.js +58 -0
- package/cjs/IconMenuButton-70ef4775.js.map +1 -0
- package/cjs/IconProgressButton-b4116a09.js +49 -0
- package/cjs/IconProgressButton-b4116a09.js.map +1 -0
- package/cjs/IconSwitchButton-2f946274.js +46 -0
- package/cjs/IconSwitchButton-2f946274.js.map +1 -0
- package/cjs/IconToggleButton-493cf27c.js +45 -0
- package/cjs/IconToggleButton-493cf27c.js.map +1 -0
- package/cjs/Indexer-a4a2d6b8.js +339 -0
- package/cjs/Indexer-a4a2d6b8.js.map +1 -0
- package/cjs/InlineUserAssistance-6c6d3250.js +85 -0
- package/cjs/InlineUserAssistance-6c6d3250.js.map +1 -0
- package/cjs/InputDateMask-d6b1a660.js +1060 -0
- package/cjs/InputDateMask-d6b1a660.js.map +1 -0
- package/cjs/InputDatePicker-7eb5931a.js +309 -0
- package/cjs/InputDatePicker-7eb5931a.js.map +1 -0
- package/cjs/InputPassword-e15aa37b.js +157 -0
- package/cjs/InputPassword-e15aa37b.js.map +1 -0
- package/cjs/InputText-6a6ae7e5.js +199 -0
- package/cjs/InputText-6a6ae7e5.js.map +1 -0
- package/cjs/Label-c51bd5de.js +85 -0
- package/cjs/Label-c51bd5de.js.map +1 -0
- package/cjs/LineAreaChart-05a58ac5.js +172 -0
- package/cjs/LineAreaChart-05a58ac5.js.map +1 -0
- package/cjs/Link-c928d5f1.js +35 -0
- package/cjs/Link-c928d5f1.js.map +1 -0
- package/cjs/LinkVariants.styles.css +2 -1
- package/cjs/LinkVariants.styles2.css +2 -1
- package/cjs/List-bad74e43.js +723 -0
- package/cjs/List-bad74e43.js.map +1 -0
- package/cjs/ListView-80a9c725.js +430 -0
- package/cjs/ListView-80a9c725.js.map +1 -0
- package/cjs/LoadMoreCollection-73112ff0.js +34 -0
- package/cjs/LoadMoreCollection-73112ff0.js.map +1 -0
- package/cjs/MenuButton-e6eb6e3e.js +63 -0
- package/cjs/MenuButton-e6eb6e3e.js.map +1 -0
- package/cjs/Message-20bc90cd.js +208 -0
- package/cjs/Message-20bc90cd.js.map +1 -0
- package/cjs/MessageToast-c0730ed5.js +243 -0
- package/cjs/MessageToast-c0730ed5.js.map +1 -0
- package/cjs/MonthView-03da0bd2.js +210 -0
- package/cjs/MonthView-03da0bd2.js.map +1 -0
- package/cjs/NavigationListItem-0a49d6b5.js +166 -0
- package/cjs/NavigationListItem-0a49d6b5.js.map +1 -0
- package/cjs/NumberInputText-c58f78da.js +223 -0
- package/cjs/NumberInputText-c58f78da.js.map +1 -0
- package/cjs/OverflowTabBar-c70fb3bf.js +71 -0
- package/cjs/OverflowTabBar-c70fb3bf.js.map +1 -0
- package/cjs/OverflowTabBarItem-70484f54.js +88 -0
- package/cjs/OverflowTabBarItem-70484f54.js.map +1 -0
- package/cjs/PRIVATE_BaseCardView.js +3 -3
- package/cjs/PRIVATE_Chart.js +14 -14
- package/cjs/PRIVATE_CheckboxControl.js +5 -4
- package/cjs/PRIVATE_CheckboxControl.js.map +1 -1
- package/cjs/PRIVATE_CheckboxRadioField.js +8 -7
- package/cjs/PRIVATE_CheckboxRadioField.js.map +1 -1
- package/cjs/PRIVATE_ClearIcon.js +4 -4
- package/cjs/PRIVATE_DatePickerHeader.js +5 -5
- package/cjs/PRIVATE_EmbeddedIconButton.js +3 -3
- package/cjs/PRIVATE_IconSwitchButton.js +3 -3
- package/cjs/PRIVATE_List.js +4 -4
- package/cjs/PRIVATE_LoadMoreCollection.js +2 -2
- package/cjs/PRIVATE_Message.js +4 -4
- package/cjs/PRIVATE_MonthView.js +2 -2
- package/cjs/PRIVATE_MonthYearGridView.js +2 -2
- package/cjs/PRIVATE_RevealToggleIcon.js +4 -4
- package/cjs/PRIVATE_RichSelectionCommon.js +8 -7
- package/cjs/PRIVATE_RichSelectionCommon.js.map +1 -1
- package/cjs/PRIVATE_SelectCommon.js +11 -11
- package/cjs/PRIVATE_Table.js +6 -6
- package/cjs/PRIVATE_TimeComponent.js +3 -3
- package/cjs/PRIVATE_VirtualizedCollection.js +2 -2
- package/cjs/PictoChart-fd613c80.js +747 -0
- package/cjs/PictoChart-fd613c80.js.map +1 -0
- package/cjs/ProgressButton-81474622.js +58 -0
- package/cjs/ProgressButton-81474622.js.map +1 -0
- package/cjs/RadioItem-3cc743ff.js +115 -0
- package/cjs/RadioItem-3cc743ff.js.map +1 -0
- package/cjs/RadioSet-f4ee4f80.js +45 -0
- package/cjs/RadioSet-f4ee4f80.js.map +1 -0
- package/cjs/RemovableNavigationListItem-f3ad6e8e.js +26 -0
- package/cjs/RemovableNavigationListItem-f3ad6e8e.js.map +1 -0
- package/cjs/RemovableTabBarItem-5c05fa32.js +38 -0
- package/cjs/RemovableTabBarItem-5c05fa32.js.map +1 -0
- package/cjs/RevealToggleIcon-4ec10dbe.js +28 -0
- package/cjs/RevealToggleIcon-4ec10dbe.js.map +1 -0
- package/cjs/ScatterChart-9226c20d.js +105 -0
- package/cjs/ScatterChart-9226c20d.js.map +1 -0
- package/cjs/SelectMultiple-3569988d.js +1299 -0
- package/cjs/SelectMultiple-3569988d.js.map +1 -0
- package/cjs/SelectSingle-43d6953e.js +732 -0
- package/cjs/SelectSingle-43d6953e.js.map +1 -0
- package/cjs/SplitMenuButton-9c1b081c.js +141 -0
- package/cjs/SplitMenuButton-9c1b081c.js.map +1 -0
- package/cjs/Table-6987731e.js +5499 -0
- package/cjs/Table-6987731e.js.map +1 -0
- package/cjs/TableView-1bed3e0b.js +33 -0
- package/cjs/TableView-1bed3e0b.js.map +1 -0
- package/cjs/TagCloud-2715c0e8.js +826 -0
- package/cjs/TagCloud-2715c0e8.js.map +1 -0
- package/cjs/TextArea-d8516f11.js +162 -0
- package/cjs/TextArea-d8516f11.js.map +1 -0
- package/cjs/TextAreaAutosize-1797d5b7.js +246 -0
- package/cjs/TextAreaAutosize-1797d5b7.js.map +1 -0
- package/cjs/Theme-redwood/theme.css +157 -157
- package/cjs/Theme-stable/theme.css +252 -252
- package/cjs/TimeComponentCanvas2D-13c06086.js +591 -0
- package/cjs/TimeComponentCanvas2D-13c06086.js.map +1 -0
- package/cjs/ToggleButton-c614bbec.js +30 -0
- package/cjs/ToggleButton-c614bbec.js.map +1 -0
- package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +15 -15
- package/cjs/UNSAFE_BarChart.js +15 -15
- package/cjs/UNSAFE_BaseButton.js +2 -2
- package/cjs/UNSAFE_Button.js +3 -3
- package/cjs/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +5 -5
- package/cjs/UNSAFE_ButtonSetButton.js +3 -3
- package/cjs/UNSAFE_ButtonSetIconButton.js +3 -3
- package/cjs/UNSAFE_ButtonSetItem.js +5 -5
- package/cjs/UNSAFE_CardFlexView.js +4 -4
- package/cjs/UNSAFE_CardGridView.js +4 -4
- package/cjs/UNSAFE_Checkbox/themes/CheckboxStyles.css.js +1 -0
- package/cjs/UNSAFE_Checkbox/themes/CheckboxStyles.css.js.map +1 -1
- package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js +1 -0
- package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js.map +1 -1
- package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js +1 -0
- package/cjs/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js.map +1 -1
- package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js +1 -0
- package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js.map +1 -1
- package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js +1 -0
- package/cjs/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js.map +1 -1
- package/cjs/UNSAFE_Checkbox.js +8 -7
- package/cjs/UNSAFE_Checkbox.js.map +1 -1
- package/cjs/UNSAFE_CheckboxItem.js +5 -4
- package/cjs/UNSAFE_CheckboxItem.js.map +1 -1
- package/cjs/UNSAFE_CheckboxSet.js +8 -7
- package/cjs/UNSAFE_CheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_ComboChart.js +15 -15
- package/cjs/UNSAFE_ComponentMessage.js +4 -4
- package/cjs/UNSAFE_ConveyorBelt.js +3 -3
- package/cjs/UNSAFE_DatePicker.js +10 -10
- package/cjs/UNSAFE_Diagram.js +9 -9
- package/cjs/UNSAFE_Dialog.js +4 -4
- package/cjs/UNSAFE_ExpandableList.js +7 -7
- package/cjs/UNSAFE_Gantt.js +5 -5
- package/cjs/UNSAFE_IconButton.js +3 -3
- package/cjs/UNSAFE_IconMenuButton.js +3 -3
- package/cjs/UNSAFE_IconProgressButton.js +3 -3
- package/cjs/UNSAFE_IconToggleButton.js +3 -3
- package/cjs/UNSAFE_Indexer.js +2 -2
- package/cjs/UNSAFE_InputDateMask.js +8 -8
- package/cjs/UNSAFE_InputDatePicker.js +95 -95
- package/cjs/UNSAFE_InputPassword.js +11 -11
- package/cjs/UNSAFE_InputSensitiveText.js +10 -10
- package/cjs/UNSAFE_InputText.js +9 -9
- package/cjs/UNSAFE_InputTimeMask.js +7 -7
- package/cjs/UNSAFE_Label.js +4 -4
- package/cjs/UNSAFE_LabelledLink.js +7 -7
- package/cjs/UNSAFE_LineAreaChart.js +15 -15
- package/cjs/UNSAFE_Link/themes/LinkStyles.css.js +1 -1
- package/cjs/UNSAFE_Link.js +2 -2
- package/cjs/UNSAFE_ListView.js +5 -5
- package/cjs/UNSAFE_MenuButton.js +3 -3
- package/cjs/UNSAFE_MessageBanner.js +4 -4
- package/cjs/UNSAFE_MessageToast.js +5 -5
- package/cjs/UNSAFE_NavigationList.js +8 -8
- package/cjs/UNSAFE_NavigationListCommon.js +4 -4
- package/cjs/UNSAFE_NumberInputText.js +8 -8
- package/cjs/UNSAFE_OverflowTabBar.js +8 -8
- package/cjs/UNSAFE_PictoChart.js +4 -4
- package/cjs/UNSAFE_ProgressButton.js +3 -3
- package/cjs/UNSAFE_RadioItem.js +4 -4
- package/cjs/UNSAFE_RadioSet.js +9 -8
- package/cjs/UNSAFE_RadioSet.js.map +1 -1
- package/cjs/UNSAFE_RichCheckboxSet.js +8 -7
- package/cjs/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/cjs/UNSAFE_RichRadioSet.js +8 -7
- package/cjs/UNSAFE_RichRadioSet.js.map +1 -1
- package/cjs/UNSAFE_ScatterChart.js +15 -15
- package/cjs/UNSAFE_SelectMultiple.js +15 -15
- package/cjs/UNSAFE_SelectSingle.js +14 -14
- package/cjs/UNSAFE_Sheet/__test__/Sheet.spec.js +3 -3
- package/cjs/UNSAFE_SplitMenuButton.js +3 -3
- package/cjs/UNSAFE_TabBar.js +7 -7
- package/cjs/UNSAFE_TabBarCommon.js +7 -7
- package/cjs/UNSAFE_TabBarMixed.js +7 -7
- package/cjs/UNSAFE_TableView.js +7 -7
- package/cjs/UNSAFE_TagCloud.js +4 -4
- package/cjs/UNSAFE_TextArea.js +8 -8
- package/cjs/UNSAFE_TextAreaAutosize.js +8 -8
- package/cjs/UNSAFE_ToggleButton.js +3 -3
- package/cjs/UNSAFE_Toolbar/tests/Toolbar.spec.js +5 -5
- package/cjs/UNSAFE_UserAssistance.js +6 -6
- package/cjs/UNSAFE_VirtualizedListView.js +5 -5
- package/cjs/VirtualizedCollection-00aedb8b.js +180 -0
- package/cjs/VirtualizedCollection-00aedb8b.js.map +1 -0
- package/cjs/VirtualizedListView-ad3219ba.js +16 -0
- package/cjs/VirtualizedListView-ad3219ba.js.map +1 -0
- package/cjs/YearsGridView-67ce0a3a.js +190 -0
- package/cjs/YearsGridView-67ce0a3a.js.map +1 -0
- package/cjs/hooks/PRIVATE_useChartEvents.js +4 -4
- package/cjs/hooks/PRIVATE_useChartMarquee.js +8 -8
- package/cjs/hooks/PRIVATE_useVisDragModeControls.js +7 -7
- package/cjs/hooks/PRIVATE_useVisSelection.js +3 -3
- package/cjs/hooks/UNSAFE_usePressClick.js +1 -1
- package/cjs/useCellNavigation-d503e35f.js +124 -0
- package/cjs/useCellNavigation-d503e35f.js.map +1 -0
- package/cjs/useChartMarquee-7ffcda9e.js +295 -0
- package/cjs/useChartMarquee-7ffcda9e.js.map +1 -0
- package/cjs/usePressClick-7a34624a.js +41 -0
- package/cjs/usePressClick-7a34624a.js.map +1 -0
- package/cjs/useSelectCommon-38a38427.js +709 -0
- package/cjs/useSelectCommon-38a38427.js.map +1 -0
- package/cjs/useSelectDrill-ad5864fd.js +107 -0
- package/cjs/useSelectDrill-ad5864fd.js.map +1 -0
- package/cjs/useSelection-8f68a23a.js +188 -0
- package/cjs/useSelection-8f68a23a.js.map +1 -0
- package/cjs/useVisDragModeControls-d3a7aa57.js +89 -0
- package/cjs/useVisDragModeControls-d3a7aa57.js.map +1 -0
- package/es/ActionCard-bac27bb9.js +1 -1
- package/es/BarChart-43dec3b7.js +179 -0
- package/es/BarChart-43dec3b7.js.map +1 -0
- package/es/BarGroup-dbf70e2c.js +1 -1
- package/es/BaseButton-61f6baa8.js +172 -0
- package/es/BaseButton-61f6baa8.js.map +1 -0
- package/es/BaseCardView-724422f3.js +7 -7
- package/es/BaseCardViewSelectionTest-ef070684.js +721 -0
- package/es/BaseCardViewSelectionTest-ef070684.js.map +1 -0
- package/es/BaseNavigationListItem-1c75c13f.js +47 -0
- package/es/BaseNavigationListItem-1c75c13f.js.map +1 -0
- package/es/BaseRichSelection-72edca7c.js +342 -0
- package/es/BaseRichSelection-72edca7c.js.map +1 -0
- package/es/Button-f90514b2.js +22 -0
- package/es/Button-f90514b2.js.map +1 -0
- package/es/ButtonSet-9b2c41be.js +2 -2
- package/es/ButtonSetButton-974fc462.js +33 -0
- package/es/ButtonSetButton-974fc462.js.map +1 -0
- package/es/ButtonSetIconButton-0081167a.js +40 -0
- package/es/ButtonSetIconButton-0081167a.js.map +1 -0
- package/es/ButtonSetItem-eb2d43d4.js +65 -0
- package/es/ButtonSetItem-eb2d43d4.js.map +1 -0
- package/es/Card-31dc8dc2.js +15 -0
- package/es/Card-31dc8dc2.js.map +1 -0
- package/es/Center-2be68188.js +16 -0
- package/es/Center-2be68188.js.map +1 -0
- package/es/Chart-4ec13697.js +491 -0
- package/es/Chart-4ec13697.js.map +1 -0
- package/es/Checkbox-74259575.js +104 -0
- package/es/Checkbox-74259575.js.map +1 -0
- package/es/CheckboxControl-c3c34028.js +109 -0
- package/es/CheckboxControl-c3c34028.js.map +1 -0
- package/es/CheckboxRadioField-294463ba.js +183 -0
- package/es/CheckboxRadioField-294463ba.js.map +1 -0
- package/es/CheckboxSetContext-1be56556.js +9 -0
- package/es/CheckboxSetContext-1be56556.js.map +1 -0
- package/es/CheckboxStyles.styles.css +6 -0
- package/es/Chip-8fd813ce.js +1 -1
- package/es/ClearIcon-acca9670.js +21 -0
- package/es/ClearIcon-acca9670.js.map +1 -0
- package/es/CollapseIcon-152e59b4.js +1 -1
- package/es/Collapsible-4dddc4f7.js +2 -2
- package/es/ComboChart-d1c3e17a.js +172 -0
- package/es/ComboChart-d1c3e17a.js.map +1 -0
- package/es/CompactHelpSource-c3044924.js +2 -2
- package/es/CompactLabelAssistance-0d70fceb.js +34 -0
- package/es/CompactLabelAssistance-0d70fceb.js.map +1 -0
- package/es/CompactUserAssistance-4f0ff3fc.js +47 -0
- package/es/CompactUserAssistance-4f0ff3fc.js.map +1 -0
- package/es/ComponentMessageContainer-13005c12.js +68 -0
- package/es/ComponentMessageContainer-13005c12.js.map +1 -0
- package/es/ConveyorBeltItem-53f383e1.js +638 -0
- package/es/ConveyorBeltItem-53f383e1.js.map +1 -0
- package/es/DatePicker-a57b08b1.js +564 -0
- package/es/DatePicker-a57b08b1.js.map +1 -0
- package/es/DatePickerHeader-8eee60aa.js +44 -0
- package/es/DatePickerHeader-8eee60aa.js.map +1 -0
- package/es/Diagram-29d78c10.js +2035 -0
- package/es/Diagram-29d78c10.js.map +1 -0
- package/es/Dialog-8a9a90a2.js +344 -0
- package/es/Dialog-8a9a90a2.js.map +1 -0
- package/es/DirectionalCollapseArrowIcon-e1b04846.js +1 -1
- package/es/DirectionalExpandArrowIcon-c9218fa7.js +1 -1
- package/es/DragHandle-198c3118.js +22 -0
- package/es/DragHandle-198c3118.js.map +1 -0
- package/es/DrawerPopup-5292bdfc.js +381 -0
- package/es/DrawerPopup-5292bdfc.js.map +1 -0
- package/es/Dropdown-698afbc6.js +80 -0
- package/es/Dropdown-698afbc6.js.map +1 -0
- package/es/EmbeddedIconButton-7215a912.js +11 -0
- package/es/EmbeddedIconButton-7215a912.js.map +1 -0
- package/es/EnvironmentProvider-713d0dec.js +58 -0
- package/es/EnvironmentProvider-713d0dec.js.map +1 -0
- package/es/ExpandableList-27f4f0d4.js +167 -0
- package/es/ExpandableList-27f4f0d4.js.map +1 -0
- package/es/FilePicker-c3f06d6f.js +2 -2
- package/es/Flex-2d9ebee9.js +30 -0
- package/es/Flex-2d9ebee9.js.map +1 -0
- package/es/Floating-5191a9e6.js +462 -0
- package/es/Floating-5191a9e6.js.map +1 -0
- package/es/FormLayout-b2993e0c.js +1 -1
- package/es/Gantt-e156bd33.js +3817 -0
- package/es/Gantt-e156bd33.js.map +1 -0
- package/es/Grid-238d8757.js +27 -0
- package/es/Grid-238d8757.js.map +1 -0
- package/es/Gridlines-d37f55d2.js +168 -0
- package/es/Gridlines-d37f55d2.js.map +1 -0
- package/es/GroupLoadingIndicator-93bcf33f.js +1 -1
- package/es/HighlightText-fef35694.js +31 -0
- package/es/HighlightText-fef35694.js.map +1 -0
- package/es/Icon-030b6dd4.js +3 -3
- package/es/IconButton-19fcf0a8.js +37 -0
- package/es/IconButton-19fcf0a8.js.map +1 -0
- package/es/IconMenuButton-4118bde6.js +56 -0
- package/es/IconMenuButton-4118bde6.js.map +1 -0
- package/es/IconProgressButton-a595c052.js +47 -0
- package/es/IconProgressButton-a595c052.js.map +1 -0
- package/es/IconSwitchButton-dcafa86c.js +44 -0
- package/es/IconSwitchButton-dcafa86c.js.map +1 -0
- package/es/IconToggleButton-94cbea2b.js +43 -0
- package/es/IconToggleButton-94cbea2b.js.map +1 -0
- package/es/IconUserAssistance-d9bc82d4.js +73 -0
- package/es/IconUserAssistance-d9bc82d4.js.map +1 -0
- package/es/Indexer-18ec7af3.js +4 -4
- package/es/InlineHelpSource-5ed4bb7d.js +1 -1
- package/es/InlineUserAssistance-65ca8810.js +81 -0
- package/es/InlineUserAssistance-65ca8810.js.map +1 -0
- package/es/InputDateMask-8258be53.js +1056 -0
- package/es/InputDateMask-8258be53.js.map +1 -0
- package/es/InputDatePicker-a659ed3a.js +307 -0
- package/es/InputDatePicker-a659ed3a.js.map +1 -0
- package/es/InputPassword-65336899.js +155 -0
- package/es/InputPassword-65336899.js.map +1 -0
- package/es/InputText-21591785.js +197 -0
- package/es/InputText-21591785.js.map +1 -0
- package/es/Label-25eba25e.js +83 -0
- package/es/Label-25eba25e.js.map +1 -0
- package/es/LabelValueLayout-1db91391.js +1 -1
- package/es/Layer-1eb18747.js +91 -0
- package/es/Layer-1eb18747.js.map +1 -0
- package/es/LayerHost-8b98d97d.js +41 -0
- package/es/LayerHost-8b98d97d.js.map +1 -0
- package/es/LayerManager-221afe20.js +34 -0
- package/es/LayerManager-221afe20.js.map +1 -0
- package/es/Legend-0e274097.js +3 -3
- package/es/LineAreaChart-6fabda31.js +170 -0
- package/es/LineAreaChart-6fabda31.js.map +1 -0
- package/es/LineSeries-139bda1a.js +109 -0
- package/es/LineSeries-139bda1a.js.map +1 -0
- package/es/Link-c7061441.js +33 -0
- package/es/Link-c7061441.js.map +1 -0
- package/es/LinkVariants.styles.css +2 -1
- package/es/LinkVariants.styles2.css +2 -1
- package/es/List-58b8d3c9.js +5 -5
- package/es/ListItemLayout-af86b17d.js +110 -0
- package/es/ListItemLayout-af86b17d.js.map +1 -0
- package/es/ListView-be2e2736.js +3 -3
- package/es/LiveRegion-c7bf2f21.js +39 -0
- package/es/LiveRegion-c7bf2f21.js.map +1 -0
- package/es/MaxLengthLiveRegion-d790e55c.js +23 -0
- package/es/MaxLengthLiveRegion-d790e55c.js.map +1 -0
- package/es/Menu-a5bf756f.js +6 -6
- package/es/MenuButton-e012a909.js +61 -0
- package/es/MenuButton-e012a909.js.map +1 -0
- package/es/MenuItem-54015ca3.js +1 -1
- package/es/Message-b0150c6f.js +203 -0
- package/es/Message-b0150c6f.js.map +1 -0
- package/es/MessageLayer-d9129e22.js +58 -0
- package/es/MessageLayer-d9129e22.js.map +1 -0
- package/es/MessageToast-933a0339.js +241 -0
- package/es/MessageToast-933a0339.js.map +1 -0
- package/es/MessagesManager-91ade5dc.js +3 -3
- package/es/MeterBar-732e3b2c.js +5 -5
- package/es/MeterCircle-2156d7ff.js +5 -5
- package/es/Modal-9980f6d1.js +288 -0
- package/es/Modal-9980f6d1.js.map +1 -0
- package/es/MonthView-d60a5df7.js +208 -0
- package/es/MonthView-d60a5df7.js.map +1 -0
- package/es/NavigationList-fb05e081.js +159 -0
- package/es/NavigationList-fb05e081.js.map +1 -0
- package/es/NavigationListItem-193a315a.js +10 -0
- package/es/NavigationListItem-193a315a.js.map +1 -0
- package/es/NumberInputText-2d1aef12.js +220 -0
- package/es/NumberInputText-2d1aef12.js.map +1 -0
- package/es/OverflowTabBar-894c7cd9.js +69 -0
- package/es/OverflowTabBar-894c7cd9.js.map +1 -0
- package/es/OverflowTabBarItem-a578401b.js +87 -0
- package/es/OverflowTabBarItem-a578401b.js.map +1 -0
- package/es/PRIVATE_BaseCardView.js +21 -21
- package/es/PRIVATE_Chart.js +43 -43
- package/es/PRIVATE_CheckboxControl.js +28 -27
- package/es/PRIVATE_CheckboxControl.js.map +1 -1
- package/es/PRIVATE_CheckboxRadioField.js +33 -32
- package/es/PRIVATE_CheckboxRadioField.js.map +1 -1
- package/es/PRIVATE_ClearIcon.js +21 -21
- package/es/PRIVATE_DatePickerHeader.js +23 -23
- package/es/PRIVATE_DatePickerLayout.js +4 -4
- package/es/PRIVATE_EmbeddedIconButton.js +6 -6
- package/es/PRIVATE_FormControls.js +19 -19
- package/es/PRIVATE_IconSwitchButton.js +18 -18
- 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/DragV.js +15 -15
- package/es/PRIVATE_Icons/WarningS.js +15 -15
- package/es/PRIVATE_List.js +19 -19
- package/es/PRIVATE_Message.js +22 -22
- package/es/PRIVATE_MessageLayer.js +12 -12
- package/es/PRIVATE_MonthView.js +8 -8
- package/es/PRIVATE_MonthYearGridView.js +8 -8
- package/es/PRIVATE_PlotArea.js +4 -4
- package/es/PRIVATE_RevealToggleIcon.js +20 -20
- package/es/PRIVATE_RichSelectionCommon.js +34 -33
- package/es/PRIVATE_RichSelectionCommon.js.map +1 -1
- package/es/PRIVATE_SelectCommon.js +35 -35
- package/es/PRIVATE_StyledCard.js +4 -4
- package/es/PRIVATE_StyledCheckbox.js +15 -15
- package/es/PRIVATE_Table.js +28 -28
- 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/DragHandleIcon.js +15 -15
- 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/OverviewHorizontalDragHandleIcon.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/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 +20 -20
- package/es/PRIVATE_VisOverview.js +15 -15
- package/es/PRIVATE_VisTabularDatatip.js +4 -4
- package/es/PictoChart-9624c62e.js +744 -0
- package/es/PictoChart-9624c62e.js.map +1 -0
- package/es/PieChart-87a2913f.js +6 -6
- package/es/Popup-f6774b40.js +258 -0
- package/es/Popup-f6774b40.js.map +1 -0
- package/es/ProgressBar-6d816723.js +62 -0
- package/es/ProgressBar-6d816723.js.map +1 -0
- package/es/ProgressButton-bb52347a.js +56 -0
- package/es/ProgressButton-bb52347a.js.map +1 -0
- package/es/ProgressButtonLabelLayout-f1d097d6.js +3 -3
- package/es/ProgressCircle-bbcf67fd.js +48 -0
- package/es/ProgressCircle-bbcf67fd.js.map +1 -0
- package/es/RadioItem-81e9e082.js +113 -0
- package/es/RadioItem-81e9e082.js.map +1 -0
- package/es/RadioSet-d2820846.js +43 -0
- package/es/RadioSet-d2820846.js.map +1 -0
- package/es/RatingGauge-5e1e75b4.js +8 -8
- package/es/ReadonlyTextFieldInput-f407b86c.js +1 -1
- package/es/RemovableNavigationListItem-21cd36b7.js +25 -0
- package/es/RemovableNavigationListItem-21cd36b7.js.map +1 -0
- package/es/RemovableTabBarItem-60574a52.js +36 -0
- package/es/RemovableTabBarItem-60574a52.js.map +1 -0
- package/es/ReorderableTabBar-c280e7d4.js +77 -0
- package/es/ReorderableTabBar-c280e7d4.js.map +1 -0
- package/es/RevealToggleIcon-8e650973.js +26 -0
- package/es/RevealToggleIcon-8e650973.js.map +1 -0
- package/es/ScatterChart-1f818935.js +103 -0
- package/es/ScatterChart-1f818935.js.map +1 -0
- package/es/SectionalLegend-64670096.js +4 -4
- package/es/SectionedContent-48fa242f.js +64 -0
- package/es/SectionedContent-48fa242f.js.map +1 -0
- package/es/SelectMultiple-c7f9e747.js +1297 -0
- package/es/SelectMultiple-c7f9e747.js.map +1 -0
- package/es/SelectSingle-75270526.js +730 -0
- package/es/SelectSingle-75270526.js.map +1 -0
- package/es/SelectionCard-ce3012e8.js +16 -0
- package/es/SelectionCard-ce3012e8.js.map +1 -0
- package/es/Selector-41618991.js +1 -1
- package/es/SelectorAll-27744634.js +69 -0
- package/es/SelectorAll-27744634.js.map +1 -0
- package/es/Sheet-924cfdab.js +158 -0
- package/es/Sheet-924cfdab.js.map +1 -0
- package/es/SplitMenuButton-5cb6e8db.js +139 -0
- package/es/SplitMenuButton-5cb6e8db.js.map +1 -0
- package/es/StyledCard-c8d9836f.js +105 -0
- package/es/StyledCard-c8d9836f.js.map +1 -0
- package/es/StyledLabelValueLayout-5b9a731a.js +18 -0
- package/es/StyledLabelValueLayout-5b9a731a.js.map +1 -0
- package/es/StyledTextField-6d6dd43e.js +3 -3
- package/es/TabBar-4d7054f7.js +82 -0
- package/es/TabBar-4d7054f7.js.map +1 -0
- package/es/TabBarItem-b97091e4.js +3 -3
- package/es/TabBarLayout-bb3f9f69.js +1 -1
- package/es/TabBarMixed-b8e2427c.js +83 -0
- package/es/TabBarMixed-b8e2427c.js.map +1 -0
- package/es/TabBarMixedSeparator-7669e2f0.js +19 -0
- package/es/TabBarMixedSeparator-7669e2f0.js.map +1 -0
- package/es/Table-b8c41429.js +5497 -0
- package/es/Table-b8c41429.js.map +1 -0
- package/es/TableView-2261b9de.js +31 -0
- package/es/TableView-2261b9de.js.map +1 -0
- package/es/TagCloud-0fe9b648.js +824 -0
- package/es/TagCloud-0fe9b648.js.map +1 -0
- package/es/TextArea-6584935d.js +177 -0
- package/es/TextArea-6584935d.js.map +1 -0
- package/es/TextAreaAutosize-2ca5256e.js +244 -0
- package/es/TextAreaAutosize-2ca5256e.js.map +1 -0
- package/es/TextField-500c0227.js +3 -3
- package/es/TextFieldInput-cb551f4e.js +1 -1
- package/es/Theme-redwood/theme.css +590 -590
- package/es/Theme-stable/theme.css +476 -476
- package/es/TimeComponentCanvas2D-a5baa5f6.js +568 -0
- package/es/TimeComponentCanvas2D-a5baa5f6.js.map +1 -0
- package/es/ToggleButton-c50ac048.js +28 -0
- package/es/ToggleButton-c50ac048.js.map +1 -0
- package/es/Toolbar-35426a1b.js +1 -1
- package/es/TruncatingBadge-69621d89.js +1 -1
- package/es/TruncatingText-fd66e0e0.js +1 -1
- package/es/UNSAFE_ActionCard.js +3 -3
- package/es/UNSAFE_BarChart/__test__/BarChart.spec.js +44 -44
- package/es/UNSAFE_BarChart.js +44 -44
- package/es/UNSAFE_BaseButton.js +5 -5
- package/es/UNSAFE_Button.js +6 -6
- package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +26 -26
- package/es/UNSAFE_ButtonSet.js +4 -4
- package/es/UNSAFE_ButtonSetButton.js +6 -6
- package/es/UNSAFE_ButtonSetIconButton.js +18 -18
- package/es/UNSAFE_ButtonSetItem.js +20 -20
- package/es/UNSAFE_ButtonSetMultiple.js +4 -4
- package/es/UNSAFE_ButtonSetSingle.js +4 -4
- package/es/UNSAFE_Card.js +5 -5
- package/es/UNSAFE_CardFlexView.js +21 -21
- package/es/UNSAFE_CardGridView.js +21 -21
- package/es/UNSAFE_Center.js +5 -5
- package/es/UNSAFE_Checkbox/themes/CheckboxStyles.css.js +1 -0
- package/es/UNSAFE_Checkbox/themes/CheckboxStyles.css.js.map +1 -1
- package/es/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js +1 -0
- package/es/UNSAFE_Checkbox/themes/redwood/CheckboxTheme.js.map +1 -1
- package/es/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js +1 -0
- package/es/UNSAFE_Checkbox/themes/redwood/CheckboxVariants.css.js.map +1 -1
- package/es/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js +1 -0
- package/es/UNSAFE_Checkbox/themes/stable/CheckboxTheme.js.map +1 -1
- package/es/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js +1 -0
- package/es/UNSAFE_Checkbox/themes/stable/CheckboxVariants.css.js.map +1 -1
- package/es/UNSAFE_Checkbox.js +31 -30
- package/es/UNSAFE_Checkbox.js.map +1 -1
- package/es/UNSAFE_CheckboxItem.js +57 -108
- package/es/UNSAFE_CheckboxItem.js.map +1 -1
- package/es/UNSAFE_CheckboxSet.js +75 -40
- package/es/UNSAFE_CheckboxSet.js.map +1 -1
- package/es/UNSAFE_Chip.js +2 -2
- package/es/UNSAFE_Collapsible.js +17 -17
- package/es/UNSAFE_ComboChart.js +46 -46
- package/es/UNSAFE_ComponentMessage.js +22 -22
- package/es/UNSAFE_ConveyorBelt.js +18 -18
- package/es/UNSAFE_DatePicker.js +30 -30
- package/es/UNSAFE_Diagram.js +27 -27
- package/es/UNSAFE_Dialog.js +24 -24
- package/es/UNSAFE_DragHandle.js +17 -17
- package/es/UNSAFE_DrawerLayout.js +12 -12
- package/es/UNSAFE_DrawerPopup.js +13 -13
- package/es/UNSAFE_Dropdown.js +13 -13
- package/es/UNSAFE_Environment.js +4 -4
- package/es/UNSAFE_ExpandableList.js +26 -26
- package/es/UNSAFE_FilePicker.js +4 -4
- package/es/UNSAFE_Flex.js +4 -4
- package/es/UNSAFE_Floating.js +11 -11
- package/es/UNSAFE_FormLayout.js +2 -2
- package/es/UNSAFE_Gantt.js +26 -26
- 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 +18 -18
- package/es/UNSAFE_IconMenuButton.js +24 -24
- package/es/UNSAFE_IconProgressButton.js +21 -21
- package/es/UNSAFE_IconToggleButton.js +18 -18
- package/es/UNSAFE_Indexer.js +6 -6
- package/es/UNSAFE_InputDateMask.js +33 -33
- package/es/UNSAFE_InputDatePicker.js +119 -119
- package/es/UNSAFE_InputPassword.js +35 -35
- package/es/UNSAFE_InputSensitiveText.js +36 -36
- package/es/UNSAFE_InputText.js +36 -36
- package/es/UNSAFE_InputTimeMask.js +32 -32
- package/es/UNSAFE_Label.js +27 -27
- package/es/UNSAFE_LabelValueLayout.js +4 -4
- package/es/UNSAFE_LabelledLink.js +32 -32
- package/es/UNSAFE_Layer.js +8 -8
- package/es/UNSAFE_Legend.js +25 -25
- package/es/UNSAFE_LineAreaChart.js +46 -46
- package/es/UNSAFE_Link/themes/LinkStyles.css.js +1 -1
- package/es/UNSAFE_Link.js +4 -4
- package/es/UNSAFE_ListItemLayout.js +5 -5
- package/es/UNSAFE_ListView.js +28 -28
- package/es/UNSAFE_LiveRegion.js +4 -4
- package/es/UNSAFE_Menu.js +23 -23
- package/es/UNSAFE_MenuButton.js +24 -24
- package/es/UNSAFE_MessageBanner.js +22 -22
- package/es/UNSAFE_MessageToast.js +26 -26
- package/es/UNSAFE_MeterBar.js +16 -16
- package/es/UNSAFE_MeterCircle.js +17 -17
- package/es/UNSAFE_Modal.js +9 -9
- package/es/UNSAFE_NavigationList.js +45 -43
- package/es/UNSAFE_NavigationList.js.map +1 -1
- package/es/UNSAFE_NavigationListCommon.js +74 -73
- package/es/UNSAFE_NavigationListCommon.js.map +1 -1
- package/es/UNSAFE_NumberInputText.js +34 -34
- package/es/UNSAFE_OverflowTabBar.js +56 -54
- package/es/UNSAFE_OverflowTabBar.js.map +1 -1
- package/es/UNSAFE_PictoChart.js +17 -17
- package/es/UNSAFE_PieChart/__test__/PieChart.spec.js +22 -22
- package/es/UNSAFE_PieChart.js +22 -22
- package/es/UNSAFE_Popup.js +17 -17
- package/es/UNSAFE_ProgressBar.js +5 -5
- package/es/UNSAFE_ProgressButton.js +21 -21
- package/es/UNSAFE_ProgressButtonLabelLayout.js +10 -10
- package/es/UNSAFE_ProgressCircle.js +4 -4
- package/es/UNSAFE_RadioItem.js +27 -27
- package/es/UNSAFE_RadioSet.js +33 -32
- package/es/UNSAFE_RadioSet.js.map +1 -1
- package/es/UNSAFE_RatingGauge.js +17 -17
- package/es/UNSAFE_ReorderableTabBar.js +49 -38
- package/es/UNSAFE_ReorderableTabBar.js.map +1 -1
- package/es/UNSAFE_RichCheckboxSet.js +54 -56
- package/es/UNSAFE_RichCheckboxSet.js.map +1 -1
- package/es/UNSAFE_RichRadioSet.js +34 -33
- package/es/UNSAFE_RichRadioSet.js.map +1 -1
- package/es/UNSAFE_RichSelectionItem.js +58 -196
- package/es/UNSAFE_RichSelectionItem.js.map +1 -1
- package/es/UNSAFE_ScatterChart.js +46 -46
- package/es/UNSAFE_SectionalLegend.js +26 -26
- package/es/UNSAFE_SelectMultiple.js +42 -42
- package/es/UNSAFE_SelectSingle.js +41 -41
- package/es/UNSAFE_SelectionCard.js +5 -5
- package/es/UNSAFE_Selector.js +15 -15
- package/es/UNSAFE_SelectorAll.js +19 -19
- package/es/UNSAFE_Sheet/__test__/Sheet.spec.js +18 -18
- package/es/UNSAFE_Sheet.js +12 -12
- package/es/UNSAFE_SplitMenuButton.js +24 -24
- package/es/UNSAFE_TabBar.js +56 -54
- package/es/UNSAFE_TabBar.js.map +1 -1
- package/es/UNSAFE_TabBarCommon.js +48 -46
- package/es/UNSAFE_TabBarCommon.js.map +1 -1
- package/es/UNSAFE_TabBarMixed.js +66 -64
- package/es/UNSAFE_TabBarMixed.js.map +1 -1
- package/es/UNSAFE_TableView.js +29 -29
- package/es/UNSAFE_TagCloud.js +27 -27
- package/es/UNSAFE_TextArea.js +35 -36
- package/es/UNSAFE_TextArea.js.map +1 -1
- package/es/UNSAFE_TextAreaAutosize.js +36 -36
- package/es/UNSAFE_TextField.js +8 -8
- package/es/UNSAFE_ToggleButton.js +6 -6
- package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +28 -28
- package/es/UNSAFE_Toolbar.js +4 -4
- package/es/UNSAFE_Train.js +16 -16
- package/es/UNSAFE_TruncatingBadge.js +16 -16
- package/es/UNSAFE_TruncatingText.js +16 -16
- package/es/UNSAFE_UserAssistance.js +30 -30
- 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-cf6dfd8e.js +167 -0
- package/es/View-cf6dfd8e.js.map +1 -0
- package/es/VisNoData-d6e475d8.js +32 -0
- package/es/VisNoData-d6e475d8.js.map +1 -0
- package/es/VisProgressiveLoader-36053d5a.js +51 -0
- package/es/VisProgressiveLoader-36053d5a.js.map +1 -0
- package/es/VisTabularDatatip-3497f5ff.js +24 -0
- package/es/VisTabularDatatip-3497f5ff.js.map +1 -0
- package/es/WindowOverlay-ca2baa48.js +110 -0
- package/es/WindowOverlay-ca2baa48.js.map +1 -0
- package/es/YearsGridView-2c978d9f.js +187 -0
- package/es/YearsGridView-2c978d9f.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 +21 -21
- package/es/hooks/PRIVATE_useChartDatatip.js +14 -14
- package/es/hooks/PRIVATE_useChartEvents.js +20 -20
- package/es/hooks/PRIVATE_useChartMarquee.js +25 -25
- package/es/hooks/PRIVATE_useCssVars.js +7 -7
- package/es/hooks/PRIVATE_useCurrentKey.js +4 -4
- package/es/hooks/PRIVATE_useDatatip.js +12 -12
- package/es/hooks/PRIVATE_useFloating.js +4 -4
- package/es/hooks/PRIVATE_useReorderable.js +5 -5
- package/es/hooks/PRIVATE_useRovingTabIndexContainer.js +4 -4
- package/es/hooks/PRIVATE_useSelection.js +4 -4
- package/es/hooks/PRIVATE_useTabBar.js +4 -4
- package/es/hooks/PRIVATE_useTooltipOnTruncation.js +16 -16
- package/es/hooks/PRIVATE_useVisContextMenu.js +21 -21
- package/es/hooks/PRIVATE_useVisDragModeControls.js +24 -24
- package/es/hooks/PRIVATE_useVisEvents.js +4 -4
- package/es/hooks/PRIVATE_useVisMeterEvents.js +14 -14
- package/es/hooks/PRIVATE_useVisSelection.js +15 -15
- package/es/hooks/UNSAFE_useColorScheme.js +3 -3
- package/es/hooks/UNSAFE_useCurrentBgColor.js +3 -3
- package/es/hooks/UNSAFE_useDensity.js +3 -3
- package/es/hooks/UNSAFE_useOutsideClick.js +8 -8
- package/es/hooks/UNSAFE_usePrefixSuffix.js +4 -4
- package/es/hooks/UNSAFE_usePressClick.js +1 -1
- package/es/hooks/UNSAFE_useScale.js +3 -3
- package/es/hooks/UNSAFE_useTestId.js +3 -3
- package/es/hooks/UNSAFE_useTheme.js +3 -3
- package/es/hooks/UNSAFE_useThemeInterpolations.js +6 -6
- package/es/hooks/UNSAFE_useTooltip.js +16 -16
- package/es/hooks/UNSAFE_useTranslationBundle.js +3 -3
- package/es/hooks/UNSAFE_useUser.js +3 -3
- package/es/index-3fdaba9a.js +11 -0
- package/es/index-3fdaba9a.js.map +1 -0
- package/es/listViewSelectionTests-d1f64e6f.js +3 -3
- package/es/popupUtils-24a723a0.js +29 -0
- package/es/popupUtils-24a723a0.js.map +1 -0
- package/es/render-4d96f0d2.js +34 -0
- package/es/render-4d96f0d2.js.map +1 -0
- package/es/tabbableUtils-070beeed.js +79 -0
- package/es/tabbableUtils-070beeed.js.map +1 -0
- package/es/testData-e1df8616.js +256 -0
- package/es/testData-e1df8616.js.map +1 -0
- package/es/tooltipUtils-35655bd6.js +93 -0
- package/es/tooltipUtils-35655bd6.js.map +1 -0
- package/es/useCellNavigation-bdb3248d.js +121 -0
- package/es/useCellNavigation-bdb3248d.js.map +1 -0
- package/es/useChartContextMenu-61fe46b8.js +2 -2
- package/es/useChartDatatip-b0d35cfe.js +165 -0
- package/es/useChartDatatip-b0d35cfe.js.map +1 -0
- package/es/useChartMarquee-7cd47205.js +293 -0
- package/es/useChartMarquee-7cd47205.js.map +1 -0
- package/es/useColorScheme-8e5e458d.js +19 -0
- package/es/useColorScheme-8e5e458d.js.map +1 -0
- package/es/useContextMenu-3c62d9eb.js +2 -2
- package/es/useCssVars-608cb842.js +58 -0
- package/es/useCssVars-608cb842.js.map +1 -0
- package/es/useCurrentBgColor-ee671513.js +19 -0
- package/es/useCurrentBgColor-ee671513.js.map +1 -0
- package/es/useCurrentKey-b8e62707.js +81 -0
- package/es/useCurrentKey-b8e62707.js.map +1 -0
- package/es/useDatatip-daec4346.js +90 -0
- package/es/useDatatip-daec4346.js.map +1 -0
- package/es/useDensity-556ca8b2.js +19 -0
- package/es/useDensity-556ca8b2.js.map +1 -0
- package/es/useFloating-abfd69eb.js +1916 -0
- package/es/useFloating-abfd69eb.js.map +1 -0
- package/es/useKeyboardEvents-7202253d.js +78 -0
- package/es/useKeyboardEvents-7202253d.js.map +1 -0
- package/es/useLegendContextMenu-66d6eb7e.js +4 -4
- package/es/useMeterDatatip-dcd2a05e.js +73 -0
- package/es/useMeterDatatip-dcd2a05e.js.map +1 -0
- package/es/useNavigationListItem-a28f2c34.js +81 -0
- package/es/useNavigationListItem-a28f2c34.js.map +1 -0
- package/es/useOutsideClick-817bf098.js +101 -0
- package/es/useOutsideClick-817bf098.js.map +1 -0
- package/es/usePopupAnimation-6e0781b5.js +85 -0
- package/es/usePopupAnimation-6e0781b5.js.map +1 -0
- package/es/usePrefixSuffix-0874343c.js +70 -0
- package/es/usePrefixSuffix-0874343c.js.map +1 -0
- package/es/usePressClick-945cc43b.js +39 -0
- package/es/usePressClick-945cc43b.js.map +1 -0
- package/es/useReorderableItem-99a9dbce.js +268 -0
- package/es/useReorderableItem-99a9dbce.js.map +1 -0
- package/es/useRovingTabIndexContainer-f7972085.js +98 -0
- package/es/useRovingTabIndexContainer-f7972085.js.map +1 -0
- package/es/useScale-1cdb639e.js +19 -0
- package/es/useScale-1cdb639e.js.map +1 -0
- package/es/useSelectCommon-896b594a.js +686 -0
- package/es/useSelectCommon-896b594a.js.map +1 -0
- package/es/useSelectDrill-5525e5a3.js +104 -0
- package/es/useSelectDrill-5525e5a3.js.map +1 -0
- package/es/useSelection-2d26ab04.js +239 -0
- package/es/useSelection-2d26ab04.js.map +1 -0
- package/es/useSelection-8be05a70.js +186 -0
- package/es/useSelection-8be05a70.js.map +1 -0
- package/es/useTabBar-cbac0c2e.js +1 -1
- package/es/useTestId-474ac6ca.js +21 -0
- package/es/useTestId-474ac6ca.js.map +1 -0
- package/es/useTheme-5aa36f52.js +19 -0
- package/es/useTheme-5aa36f52.js.map +1 -0
- package/es/useThemeInterpolations-05e58770.js +57 -0
- package/es/useThemeInterpolations-05e58770.js.map +1 -0
- package/es/useTooltip-138c94ee.js +424 -0
- package/es/useTooltip-138c94ee.js.map +1 -0
- package/es/useTooltipOnTruncation-a97211b6.js +27 -0
- package/es/useTooltipOnTruncation-a97211b6.js.map +1 -0
- package/es/useTranslationBundle-2df40edf.js +29 -0
- package/es/useTranslationBundle-2df40edf.js.map +1 -0
- package/es/useUser-6b2e271a.js +19 -0
- package/es/useUser-6b2e271a.js.map +1 -0
- package/es/useVisDragModeControls-ed260d12.js +87 -0
- package/es/useVisDragModeControls-ed260d12.js.map +1 -0
- package/es/useVisEvents-d8652100.js +153 -0
- package/es/useVisEvents-d8652100.js.map +1 -0
- package/es/utils/PRIVATE_tooltipUtils.js +14 -14
- package/es/utils/PRIVATE_visTestUtils.js +6 -6
- package/es/utils/UNSAFE_popupUtils.js +8 -8
- package/es/withDirectionIcon-fe0b69a7.js +14 -0
- package/es/withDirectionIcon-fe0b69a7.js.map +1 -0
- package/es/withThemeProps-1621f692.js +2 -2
- package/package.json +2 -2
- package/types/UNSAFE_DatePicker/useCellNavigation.d.ts +0 -1
- package/types/UNSAFE_Link/themes/LinkStyles.css.d.ts +2 -1
- package/types/UNSAFE_Link/themes/redwood/LinkVariants.css.d.ts +2 -1
- package/types/UNSAFE_Link/themes/stable/LinkVariants.css.d.ts +2 -1
- package/types/hooks/UNSAFE_usePressClick/usePressClick.d.ts +1 -0
- package/amd/BarChart-1be56919.js +0 -2
- package/amd/BarChart-1be56919.js.map +0 -1
- package/amd/BaseButton-771c5db8.js +0 -2
- package/amd/BaseButton-771c5db8.js.map +0 -1
- package/amd/BaseCardView-4f88499c.js +0 -2
- package/amd/BaseCardView-4f88499c.js.map +0 -1
- package/amd/BaseCardViewSelectionTest-adaca8ca.js +0 -2
- package/amd/BaseCardViewSelectionTest-adaca8ca.js.map +0 -1
- package/amd/BaseRichSelection-eb93f0e2.js +0 -2
- package/amd/BaseRichSelection-eb93f0e2.js.map +0 -1
- package/amd/Button-af88bb81.js +0 -2
- package/amd/Button-af88bb81.js.map +0 -1
- package/amd/ButtonSetButton-00612cdd.js +0 -2
- package/amd/ButtonSetButton-00612cdd.js.map +0 -1
- package/amd/ButtonSetIconButton-d0684966.js +0 -2
- package/amd/ButtonSetIconButton-d0684966.js.map +0 -1
- package/amd/ButtonSetItem-1d88a72d.js +0 -2
- package/amd/ButtonSetItem-1d88a72d.js.map +0 -1
- package/amd/CardFlexView-86cb369a.js +0 -2
- package/amd/CardFlexView-86cb369a.js.map +0 -1
- package/amd/CardGridView-b3f11290.js +0 -2
- package/amd/CardGridView-b3f11290.js.map +0 -1
- package/amd/Chart-0a3205dd.js +0 -2
- package/amd/Chart-0a3205dd.js.map +0 -1
- package/amd/Checkbox-3a25138e.js +0 -2
- package/amd/Checkbox-3a25138e.js.map +0 -1
- package/amd/CheckboxControl-232e227d.js +0 -2
- package/amd/CheckboxControl-232e227d.js.map +0 -1
- package/amd/CheckboxRadioField-9b73f66b.js +0 -2
- package/amd/CheckboxRadioField-9b73f66b.js.map +0 -1
- package/amd/CheckboxSetContext-2e486ea8.js +0 -2
- package/amd/CheckboxSetContext-2e486ea8.js.map +0 -1
- package/amd/ClearIcon-f1befe37.js +0 -2
- package/amd/ClearIcon-f1befe37.js.map +0 -1
- package/amd/ComboChart-5dba7db4.js +0 -2
- package/amd/ComboChart-5dba7db4.js.map +0 -1
- package/amd/CompactUserAssistance-f962b357.js +0 -2
- package/amd/CompactUserAssistance-f962b357.js.map +0 -1
- package/amd/ComponentMessageContainer-13e53260.js +0 -2
- package/amd/ComponentMessageContainer-13e53260.js.map +0 -1
- package/amd/ConveyorBeltItem-1dfb412e.js +0 -2
- package/amd/ConveyorBeltItem-1dfb412e.js.map +0 -1
- package/amd/DatePicker-b907fb97.js +0 -2
- package/amd/DatePicker-b907fb97.js.map +0 -1
- package/amd/DatePickerHeader-d95959a6.js +0 -2
- package/amd/DatePickerHeader-d95959a6.js.map +0 -1
- package/amd/Diagram-92f409e0.js +0 -2
- package/amd/Diagram-92f409e0.js.map +0 -1
- package/amd/Dialog-b9dd8533.js +0 -2
- package/amd/Dialog-b9dd8533.js.map +0 -1
- package/amd/EmbeddedIconButton-8635fed8.js +0 -2
- package/amd/EmbeddedIconButton-8635fed8.js.map +0 -1
- package/amd/ExpandableList-c372fe68.js +0 -2
- package/amd/ExpandableList-c372fe68.js.map +0 -1
- package/amd/Gantt-f6a53a90.js +0 -2
- package/amd/Gantt-f6a53a90.js.map +0 -1
- package/amd/IconButton-05c6b793.js +0 -2
- package/amd/IconButton-05c6b793.js.map +0 -1
- package/amd/IconMenuButton-82a7258c.js +0 -2
- package/amd/IconMenuButton-82a7258c.js.map +0 -1
- package/amd/IconProgressButton-3bff5384.js +0 -2
- package/amd/IconProgressButton-3bff5384.js.map +0 -1
- package/amd/IconSwitchButton-faf2b405.js +0 -2
- package/amd/IconSwitchButton-faf2b405.js.map +0 -1
- package/amd/IconToggleButton-d5112634.js +0 -2
- package/amd/IconToggleButton-d5112634.js.map +0 -1
- package/amd/Indexer-510aaf3a.js +0 -2
- package/amd/Indexer-510aaf3a.js.map +0 -1
- package/amd/InlineUserAssistance-3d3e72a9.js +0 -2
- package/amd/InlineUserAssistance-3d3e72a9.js.map +0 -1
- package/amd/InputDateMask-55fcbf50.js +0 -2
- package/amd/InputDateMask-55fcbf50.js.map +0 -1
- package/amd/InputDatePicker-ecd4a7ce.js +0 -2
- package/amd/InputDatePicker-ecd4a7ce.js.map +0 -1
- package/amd/InputPassword-61090b77.js +0 -2
- package/amd/InputPassword-61090b77.js.map +0 -1
- package/amd/InputText-32954a14.js +0 -2
- package/amd/InputText-32954a14.js.map +0 -1
- package/amd/Label-7cbbe3b7.js +0 -2
- package/amd/Label-7cbbe3b7.js.map +0 -1
- package/amd/LineAreaChart-190b3d46.js +0 -2
- package/amd/LineAreaChart-190b3d46.js.map +0 -1
- package/amd/Link-2dae4de2.js +0 -2
- package/amd/Link-2dae4de2.js.map +0 -1
- package/amd/List-37e37948.js +0 -2
- package/amd/List-37e37948.js.map +0 -1
- package/amd/ListView-325e1814.js +0 -2
- package/amd/ListView-325e1814.js.map +0 -1
- package/amd/LoadMoreCollection-83413a59.js +0 -2
- package/amd/LoadMoreCollection-83413a59.js.map +0 -1
- package/amd/MenuButton-233a631a.js +0 -2
- package/amd/MenuButton-233a631a.js.map +0 -1
- package/amd/Message-40182dfc.js +0 -2
- package/amd/Message-40182dfc.js.map +0 -1
- package/amd/MessageToast-236687bd.js +0 -2
- package/amd/MessageToast-236687bd.js.map +0 -1
- package/amd/MonthView-c8a6ab15.js +0 -2
- package/amd/MonthView-c8a6ab15.js.map +0 -1
- package/amd/NumberInputText-91b73dcb.js +0 -2
- package/amd/NumberInputText-91b73dcb.js.map +0 -1
- package/amd/OverflowTabBar-ef21bcd3.js +0 -2
- package/amd/OverflowTabBar-ef21bcd3.js.map +0 -1
- package/amd/OverflowTabBarItem-db77f3d3.js +0 -2
- package/amd/OverflowTabBarItem-db77f3d3.js.map +0 -1
- package/amd/PictoChart-d5bedf82.js +0 -2
- package/amd/PictoChart-d5bedf82.js.map +0 -1
- package/amd/ProgressButton-e30c909b.js +0 -2
- package/amd/ProgressButton-e30c909b.js.map +0 -1
- package/amd/RadioItem-7ebada33.js +0 -2
- package/amd/RadioItem-7ebada33.js.map +0 -1
- package/amd/RadioSet-5e4b6669.js +0 -2
- package/amd/RadioSet-5e4b6669.js.map +0 -1
- package/amd/RemovableNavigationListItem-9950c473.js +0 -2
- package/amd/RemovableNavigationListItem-9950c473.js.map +0 -1
- package/amd/RemovableTabBarItem-fcada993.js +0 -2
- package/amd/RemovableTabBarItem-fcada993.js.map +0 -1
- package/amd/RevealToggleIcon-411d7a73.js +0 -2
- package/amd/RevealToggleIcon-411d7a73.js.map +0 -1
- package/amd/ScatterChart-3f6024a2.js +0 -2
- package/amd/ScatterChart-3f6024a2.js.map +0 -1
- package/amd/SelectMultiple-d3196bcd.js +0 -2
- package/amd/SelectMultiple-d3196bcd.js.map +0 -1
- package/amd/SelectSingle-007ab01c.js +0 -2
- package/amd/SelectSingle-007ab01c.js.map +0 -1
- package/amd/SplitMenuButton-65acf4d4.js +0 -2
- package/amd/SplitMenuButton-65acf4d4.js.map +0 -1
- package/amd/Table-52c72d48.js +0 -2
- package/amd/Table-52c72d48.js.map +0 -1
- package/amd/TableView-dc0766a7.js +0 -2
- package/amd/TableView-dc0766a7.js.map +0 -1
- package/amd/TagCloud-6afc73f7.js +0 -2
- package/amd/TagCloud-6afc73f7.js.map +0 -1
- package/amd/TextArea-f6b13c73.js +0 -2
- package/amd/TextArea-f6b13c73.js.map +0 -1
- package/amd/TextAreaAutosize-af350c32.js +0 -2
- package/amd/TextAreaAutosize-af350c32.js.map +0 -1
- package/amd/TimeComponentCanvas2D-27e55de9.js +0 -2
- package/amd/TimeComponentCanvas2D-27e55de9.js.map +0 -1
- package/amd/ToggleButton-a999647d.js +0 -2
- package/amd/ToggleButton-a999647d.js.map +0 -1
- package/amd/VirtualizedCollection-897516a5.js +0 -2
- package/amd/VirtualizedCollection-897516a5.js.map +0 -1
- package/amd/VirtualizedListView-0b9e1c53.js +0 -2
- package/amd/VirtualizedListView-0b9e1c53.js.map +0 -1
- package/amd/YearsGridView-c09d1d19.js +0 -2
- package/amd/YearsGridView-c09d1d19.js.map +0 -1
- package/amd/useCellNavigation-47060bc3.js +0 -2
- package/amd/useCellNavigation-47060bc3.js.map +0 -1
- package/amd/useChartMarquee-8ce16d57.js +0 -2
- package/amd/useChartMarquee-8ce16d57.js.map +0 -1
- package/amd/usePressClick-b7b38da2.js +0 -2
- package/amd/usePressClick-b7b38da2.js.map +0 -1
- package/amd/useSelectCommon-fd0e7664.js +0 -2
- package/amd/useSelectCommon-fd0e7664.js.map +0 -1
- package/amd/useSelectDrill-332195a7.js +0 -2
- package/amd/useSelectDrill-332195a7.js.map +0 -1
- package/amd/useSelection-04d131fa.js +0 -2
- package/amd/useSelection-04d131fa.js.map +0 -1
- package/amd/useVisDragModeControls-69001c64.js +0 -2
- package/amd/useVisDragModeControls-69001c64.js.map +0 -1
- package/cjs/BarChart-fae84003.js +0 -181
- package/cjs/BarChart-fae84003.js.map +0 -1
- package/cjs/BaseButton-97ec7696.js +0 -174
- package/cjs/BaseButton-97ec7696.js.map +0 -1
- package/cjs/BaseCardView-0be36db0.js +0 -687
- package/cjs/BaseCardView-0be36db0.js.map +0 -1
- package/cjs/BaseCardViewSelectionTest-d91b3015.js +0 -734
- package/cjs/BaseCardViewSelectionTest-d91b3015.js.map +0 -1
- package/cjs/BaseRichSelection-e2a38380.js +0 -344
- package/cjs/BaseRichSelection-e2a38380.js.map +0 -1
- package/cjs/Button-371573d5.js +0 -24
- package/cjs/Button-371573d5.js.map +0 -1
- package/cjs/ButtonSetButton-c6621073.js +0 -35
- package/cjs/ButtonSetButton-c6621073.js.map +0 -1
- package/cjs/ButtonSetIconButton-8645f3a5.js +0 -42
- package/cjs/ButtonSetIconButton-8645f3a5.js.map +0 -1
- package/cjs/ButtonSetItem-aa4211b4.js +0 -67
- package/cjs/ButtonSetItem-aa4211b4.js.map +0 -1
- package/cjs/CardFlexView-2547fc13.js +0 -29
- package/cjs/CardFlexView-2547fc13.js.map +0 -1
- package/cjs/CardGridView-c355e9d4.js +0 -17
- package/cjs/CardGridView-c355e9d4.js.map +0 -1
- package/cjs/Chart-b79289a8.js +0 -493
- package/cjs/Chart-b79289a8.js.map +0 -1
- package/cjs/Checkbox-5bfd221f.js +0 -106
- package/cjs/Checkbox-5bfd221f.js.map +0 -1
- package/cjs/CheckboxControl-3be46530.js +0 -111
- package/cjs/CheckboxControl-3be46530.js.map +0 -1
- package/cjs/CheckboxRadioField-037cddb9.js +0 -185
- package/cjs/CheckboxRadioField-037cddb9.js.map +0 -1
- package/cjs/ClearIcon-02e093be.js +0 -23
- package/cjs/ClearIcon-02e093be.js.map +0 -1
- package/cjs/ComboChart-e17d5863.js +0 -174
- package/cjs/ComboChart-e17d5863.js.map +0 -1
- package/cjs/CompactUserAssistance-b3c3929e.js +0 -49
- package/cjs/CompactUserAssistance-b3c3929e.js.map +0 -1
- package/cjs/ComponentMessageContainer-1cea67f6.js +0 -71
- package/cjs/ComponentMessageContainer-1cea67f6.js.map +0 -1
- package/cjs/ConveyorBeltItem-2577c86d.js +0 -641
- package/cjs/ConveyorBeltItem-2577c86d.js.map +0 -1
- package/cjs/DatePicker-c770df48.js +0 -566
- package/cjs/DatePicker-c770df48.js.map +0 -1
- package/cjs/DatePickerHeader-da8173f7.js +0 -46
- package/cjs/DatePickerHeader-da8173f7.js.map +0 -1
- package/cjs/Diagram-c4064fd7.js +0 -2037
- package/cjs/Diagram-c4064fd7.js.map +0 -1
- package/cjs/Dialog-c6c8024c.js +0 -346
- package/cjs/Dialog-c6c8024c.js.map +0 -1
- package/cjs/EmbeddedIconButton-89616e5f.js +0 -13
- package/cjs/EmbeddedIconButton-89616e5f.js.map +0 -1
- package/cjs/ExpandableList-d1823448.js +0 -169
- package/cjs/ExpandableList-d1823448.js.map +0 -1
- package/cjs/Gantt-674a89f8.js +0 -3819
- package/cjs/Gantt-674a89f8.js.map +0 -1
- package/cjs/IconButton-e7a68b4b.js +0 -39
- package/cjs/IconButton-e7a68b4b.js.map +0 -1
- package/cjs/IconMenuButton-3e540f38.js +0 -58
- package/cjs/IconMenuButton-3e540f38.js.map +0 -1
- package/cjs/IconProgressButton-3aa70c31.js +0 -49
- package/cjs/IconProgressButton-3aa70c31.js.map +0 -1
- package/cjs/IconSwitchButton-6bab813f.js +0 -46
- package/cjs/IconSwitchButton-6bab813f.js.map +0 -1
- package/cjs/IconToggleButton-7ec8c084.js +0 -45
- package/cjs/IconToggleButton-7ec8c084.js.map +0 -1
- package/cjs/Indexer-099ecbad.js +0 -339
- package/cjs/Indexer-099ecbad.js.map +0 -1
- package/cjs/InlineUserAssistance-5d6bac7a.js +0 -85
- package/cjs/InlineUserAssistance-5d6bac7a.js.map +0 -1
- package/cjs/InputDateMask-946f6dfa.js +0 -1060
- package/cjs/InputDateMask-946f6dfa.js.map +0 -1
- package/cjs/InputDatePicker-3dace90c.js +0 -309
- package/cjs/InputDatePicker-3dace90c.js.map +0 -1
- package/cjs/InputPassword-564260d2.js +0 -157
- package/cjs/InputPassword-564260d2.js.map +0 -1
- package/cjs/InputText-a9d46813.js +0 -199
- package/cjs/InputText-a9d46813.js.map +0 -1
- package/cjs/Label-2e05c87f.js +0 -85
- package/cjs/Label-2e05c87f.js.map +0 -1
- package/cjs/LineAreaChart-523ae108.js +0 -172
- package/cjs/LineAreaChart-523ae108.js.map +0 -1
- package/cjs/Link-a829e7f1.js +0 -35
- package/cjs/Link-a829e7f1.js.map +0 -1
- package/cjs/List-24abb3df.js +0 -722
- package/cjs/List-24abb3df.js.map +0 -1
- package/cjs/ListView-7e894199.js +0 -430
- package/cjs/ListView-7e894199.js.map +0 -1
- package/cjs/LoadMoreCollection-69bc038c.js +0 -34
- package/cjs/LoadMoreCollection-69bc038c.js.map +0 -1
- package/cjs/MenuButton-b811e5e4.js +0 -63
- package/cjs/MenuButton-b811e5e4.js.map +0 -1
- package/cjs/Message-d1d5538e.js +0 -208
- package/cjs/Message-d1d5538e.js.map +0 -1
- package/cjs/MessageToast-9154f05f.js +0 -243
- package/cjs/MessageToast-9154f05f.js.map +0 -1
- package/cjs/MonthView-35623a0e.js +0 -210
- package/cjs/MonthView-35623a0e.js.map +0 -1
- package/cjs/NavigationListItem-9b3d3258.js +0 -153
- package/cjs/NavigationListItem-9b3d3258.js.map +0 -1
- package/cjs/NumberInputText-6032717d.js +0 -223
- package/cjs/NumberInputText-6032717d.js.map +0 -1
- package/cjs/OverflowTabBar-794b4c93.js +0 -71
- package/cjs/OverflowTabBar-794b4c93.js.map +0 -1
- package/cjs/OverflowTabBarItem-43956479.js +0 -88
- package/cjs/OverflowTabBarItem-43956479.js.map +0 -1
- package/cjs/PictoChart-b650c050.js +0 -747
- package/cjs/PictoChart-b650c050.js.map +0 -1
- package/cjs/ProgressButton-1a01d49b.js +0 -58
- package/cjs/ProgressButton-1a01d49b.js.map +0 -1
- package/cjs/RadioItem-68304596.js +0 -115
- package/cjs/RadioItem-68304596.js.map +0 -1
- package/cjs/RadioSet-a16f664b.js +0 -45
- package/cjs/RadioSet-a16f664b.js.map +0 -1
- package/cjs/RemovableNavigationListItem-b13b3516.js +0 -26
- package/cjs/RemovableNavigationListItem-b13b3516.js.map +0 -1
- package/cjs/RemovableTabBarItem-e71b7be3.js +0 -38
- package/cjs/RemovableTabBarItem-e71b7be3.js.map +0 -1
- package/cjs/RevealToggleIcon-06b0b035.js +0 -28
- package/cjs/RevealToggleIcon-06b0b035.js.map +0 -1
- package/cjs/ScatterChart-bd2e0ebb.js +0 -105
- package/cjs/ScatterChart-bd2e0ebb.js.map +0 -1
- package/cjs/SelectMultiple-0d809f25.js +0 -1299
- package/cjs/SelectMultiple-0d809f25.js.map +0 -1
- package/cjs/SelectSingle-f5dd375a.js +0 -732
- package/cjs/SelectSingle-f5dd375a.js.map +0 -1
- package/cjs/SplitMenuButton-e7fd9b79.js +0 -141
- package/cjs/SplitMenuButton-e7fd9b79.js.map +0 -1
- package/cjs/Table-65e94df9.js +0 -5499
- package/cjs/Table-65e94df9.js.map +0 -1
- package/cjs/TableView-dfc37f9f.js +0 -33
- package/cjs/TableView-dfc37f9f.js.map +0 -1
- package/cjs/TagCloud-0aee2c72.js +0 -826
- package/cjs/TagCloud-0aee2c72.js.map +0 -1
- package/cjs/TextArea-a11875f3.js +0 -162
- package/cjs/TextArea-a11875f3.js.map +0 -1
- package/cjs/TextAreaAutosize-5a8e8335.js +0 -246
- package/cjs/TextAreaAutosize-5a8e8335.js.map +0 -1
- package/cjs/TimeComponentCanvas2D-e6be22d4.js +0 -591
- package/cjs/TimeComponentCanvas2D-e6be22d4.js.map +0 -1
- package/cjs/ToggleButton-8ac0ff29.js +0 -30
- package/cjs/ToggleButton-8ac0ff29.js.map +0 -1
- package/cjs/VirtualizedCollection-9e8c48b9.js +0 -180
- package/cjs/VirtualizedCollection-9e8c48b9.js.map +0 -1
- package/cjs/VirtualizedListView-0a4f07ca.js +0 -16
- package/cjs/VirtualizedListView-0a4f07ca.js.map +0 -1
- package/cjs/YearsGridView-83c7e684.js +0 -190
- package/cjs/YearsGridView-83c7e684.js.map +0 -1
- package/cjs/useCellNavigation-7a24d0c0.js +0 -129
- package/cjs/useCellNavigation-7a24d0c0.js.map +0 -1
- package/cjs/useChartMarquee-7c09d6ef.js +0 -295
- package/cjs/useChartMarquee-7c09d6ef.js.map +0 -1
- package/cjs/usePressClick-421494df.js +0 -33
- package/cjs/usePressClick-421494df.js.map +0 -1
- package/cjs/useSelectCommon-d593ef26.js +0 -709
- package/cjs/useSelectCommon-d593ef26.js.map +0 -1
- package/cjs/useSelectDrill-ddca7003.js +0 -107
- package/cjs/useSelectDrill-ddca7003.js.map +0 -1
- package/cjs/useSelection-810ecdc6.js +0 -188
- package/cjs/useSelection-810ecdc6.js.map +0 -1
- package/cjs/useVisDragModeControls-388926ea.js +0 -89
- package/cjs/useVisDragModeControls-388926ea.js.map +0 -1
- package/es/BarChart-bbc688ef.js +0 -179
- package/es/BarChart-bbc688ef.js.map +0 -1
- package/es/BaseButton-a0534b4d.js +0 -172
- package/es/BaseButton-a0534b4d.js.map +0 -1
- package/es/BaseCardViewSelectionTest-2e5f019a.js +0 -721
- package/es/BaseCardViewSelectionTest-2e5f019a.js.map +0 -1
- package/es/BaseNavigationListItem-af84a9ee.js +0 -119
- package/es/BaseNavigationListItem-af84a9ee.js.map +0 -1
- package/es/BaseRichSelection-9f2f2b59.js +0 -342
- package/es/BaseRichSelection-9f2f2b59.js.map +0 -1
- package/es/Button-f55c264d.js +0 -22
- package/es/Button-f55c264d.js.map +0 -1
- package/es/ButtonSetButton-226c9e73.js +0 -33
- package/es/ButtonSetButton-226c9e73.js.map +0 -1
- package/es/ButtonSetIconButton-2a046c9c.js +0 -40
- package/es/ButtonSetIconButton-2a046c9c.js.map +0 -1
- package/es/ButtonSetItem-43ef9553.js +0 -65
- package/es/ButtonSetItem-43ef9553.js.map +0 -1
- package/es/Card-f3b7c723.js +0 -15
- package/es/Card-f3b7c723.js.map +0 -1
- package/es/Center-76b761ea.js +0 -16
- package/es/Center-76b761ea.js.map +0 -1
- package/es/Chart-6291ad48.js +0 -491
- package/es/Chart-6291ad48.js.map +0 -1
- package/es/Checkbox-34816a7d.js +0 -104
- package/es/Checkbox-34816a7d.js.map +0 -1
- package/es/CheckboxControl-a9d4d9d5.js +0 -109
- package/es/CheckboxControl-a9d4d9d5.js.map +0 -1
- package/es/CheckboxRadioField-922ab9ff.js +0 -183
- package/es/CheckboxRadioField-922ab9ff.js.map +0 -1
- package/es/CheckboxSet-28953b25.js +0 -49
- package/es/CheckboxSet-28953b25.js.map +0 -1
- package/es/ClearIcon-29781882.js +0 -21
- package/es/ClearIcon-29781882.js.map +0 -1
- package/es/ComboChart-4738f936.js +0 -172
- package/es/ComboChart-4738f936.js.map +0 -1
- package/es/CompactLabelAssistance-fd3fb481.js +0 -34
- package/es/CompactLabelAssistance-fd3fb481.js.map +0 -1
- package/es/CompactUserAssistance-bd24e31a.js +0 -47
- package/es/CompactUserAssistance-bd24e31a.js.map +0 -1
- package/es/ComponentMessageContainer-6c106a09.js +0 -68
- package/es/ComponentMessageContainer-6c106a09.js.map +0 -1
- package/es/ConveyorBeltItem-ce67a451.js +0 -638
- package/es/ConveyorBeltItem-ce67a451.js.map +0 -1
- package/es/DatePicker-e7f2ef3c.js +0 -564
- package/es/DatePicker-e7f2ef3c.js.map +0 -1
- package/es/DatePickerHeader-9c0d4332.js +0 -44
- package/es/DatePickerHeader-9c0d4332.js.map +0 -1
- package/es/Diagram-b1f6a590.js +0 -2035
- package/es/Diagram-b1f6a590.js.map +0 -1
- package/es/Dialog-0ca362cc.js +0 -344
- package/es/Dialog-0ca362cc.js.map +0 -1
- package/es/DragHandle-99d4c921.js +0 -22
- package/es/DragHandle-99d4c921.js.map +0 -1
- package/es/DrawerPopup-9cdb203a.js +0 -381
- package/es/DrawerPopup-9cdb203a.js.map +0 -1
- package/es/Dropdown-60833900.js +0 -80
- package/es/Dropdown-60833900.js.map +0 -1
- package/es/EmbeddedIconButton-0c3562a1.js +0 -11
- package/es/EmbeddedIconButton-0c3562a1.js.map +0 -1
- package/es/EnvironmentProvider-bada8909.js +0 -58
- package/es/EnvironmentProvider-bada8909.js.map +0 -1
- package/es/ExpandableList-cbf9ae2c.js +0 -167
- package/es/ExpandableList-cbf9ae2c.js.map +0 -1
- package/es/Flex-ce31b351.js +0 -30
- package/es/Flex-ce31b351.js.map +0 -1
- package/es/Floating-f02677ba.js +0 -462
- package/es/Floating-f02677ba.js.map +0 -1
- package/es/Gantt-5a395647.js +0 -3817
- package/es/Gantt-5a395647.js.map +0 -1
- package/es/Grid-421eb560.js +0 -27
- package/es/Grid-421eb560.js.map +0 -1
- package/es/Gridlines-6098cb5b.js +0 -168
- package/es/Gridlines-6098cb5b.js.map +0 -1
- package/es/HighlightText-86d92552.js +0 -31
- package/es/HighlightText-86d92552.js.map +0 -1
- package/es/IconButton-f3f7af21.js +0 -37
- package/es/IconButton-f3f7af21.js.map +0 -1
- package/es/IconMenuButton-48909b85.js +0 -56
- package/es/IconMenuButton-48909b85.js.map +0 -1
- package/es/IconProgressButton-1c4d65c3.js +0 -47
- package/es/IconProgressButton-1c4d65c3.js.map +0 -1
- package/es/IconSwitchButton-5db4ae26.js +0 -44
- package/es/IconSwitchButton-5db4ae26.js.map +0 -1
- package/es/IconToggleButton-be6c0ba1.js +0 -43
- package/es/IconToggleButton-be6c0ba1.js.map +0 -1
- package/es/IconUserAssistance-92be9618.js +0 -73
- package/es/IconUserAssistance-92be9618.js.map +0 -1
- package/es/InlineUserAssistance-2677a1eb.js +0 -81
- package/es/InlineUserAssistance-2677a1eb.js.map +0 -1
- package/es/InputDateMask-76493bee.js +0 -1056
- package/es/InputDateMask-76493bee.js.map +0 -1
- package/es/InputDatePicker-836ee6f7.js +0 -307
- package/es/InputDatePicker-836ee6f7.js.map +0 -1
- package/es/InputPassword-fa63ac17.js +0 -155
- package/es/InputPassword-fa63ac17.js.map +0 -1
- package/es/InputText-ce2272a8.js +0 -197
- package/es/InputText-ce2272a8.js.map +0 -1
- package/es/Label-56ca049f.js +0 -83
- package/es/Label-56ca049f.js.map +0 -1
- package/es/Layer-446bf21e.js +0 -91
- package/es/Layer-446bf21e.js.map +0 -1
- package/es/LayerHost-e6402730.js +0 -41
- package/es/LayerHost-e6402730.js.map +0 -1
- package/es/LayerManager-fa745cec.js +0 -34
- package/es/LayerManager-fa745cec.js.map +0 -1
- package/es/LineAreaChart-d3586935.js +0 -170
- package/es/LineAreaChart-d3586935.js.map +0 -1
- package/es/LineSeries-fc167ea2.js +0 -109
- package/es/LineSeries-fc167ea2.js.map +0 -1
- package/es/Link-98742013.js +0 -33
- package/es/Link-98742013.js.map +0 -1
- package/es/ListItemLayout-e9854821.js +0 -110
- package/es/ListItemLayout-e9854821.js.map +0 -1
- package/es/LiveRegion-b56a1aa2.js +0 -39
- package/es/LiveRegion-b56a1aa2.js.map +0 -1
- package/es/MaxLengthCounter-181b4fc9.js +0 -25
- package/es/MaxLengthCounter-181b4fc9.js.map +0 -1
- package/es/MaxLengthLiveRegion-2f3d34cf.js +0 -23
- package/es/MaxLengthLiveRegion-2f3d34cf.js.map +0 -1
- package/es/MenuButton-c00e269e.js +0 -61
- package/es/MenuButton-c00e269e.js.map +0 -1
- package/es/Message-b9e16c1c.js +0 -203
- package/es/Message-b9e16c1c.js.map +0 -1
- package/es/MessageLayer-7e3184aa.js +0 -58
- package/es/MessageLayer-7e3184aa.js.map +0 -1
- package/es/MessageToast-f9b0a234.js +0 -241
- package/es/MessageToast-f9b0a234.js.map +0 -1
- package/es/Modal-24a0bf4b.js +0 -288
- package/es/Modal-24a0bf4b.js.map +0 -1
- package/es/MonthView-5e633194.js +0 -208
- package/es/MonthView-5e633194.js.map +0 -1
- package/es/NavigationListItem-37edc23b.js +0 -150
- package/es/NavigationListItem-37edc23b.js.map +0 -1
- package/es/NumberInputText-f5d01daa.js +0 -220
- package/es/NumberInputText-f5d01daa.js.map +0 -1
- package/es/OverflowTabBar-87b36877.js +0 -69
- package/es/OverflowTabBar-87b36877.js.map +0 -1
- package/es/OverflowTabBarItem-a2684d2b.js +0 -86
- package/es/OverflowTabBarItem-a2684d2b.js.map +0 -1
- package/es/PictoChart-5b71908b.js +0 -744
- package/es/PictoChart-5b71908b.js.map +0 -1
- package/es/Popup-d8bf7f4d.js +0 -258
- package/es/Popup-d8bf7f4d.js.map +0 -1
- package/es/ProgressBar-2fa99d6f.js +0 -62
- package/es/ProgressBar-2fa99d6f.js.map +0 -1
- package/es/ProgressButton-9390070e.js +0 -56
- package/es/ProgressButton-9390070e.js.map +0 -1
- package/es/ProgressCircle-faf79b79.js +0 -48
- package/es/ProgressCircle-faf79b79.js.map +0 -1
- package/es/RadioItem-96cbf0ed.js +0 -113
- package/es/RadioItem-96cbf0ed.js.map +0 -1
- package/es/RadioSet-c51b3d56.js +0 -43
- package/es/RadioSet-c51b3d56.js.map +0 -1
- package/es/RemovableNavigationListItem-517d59b0.js +0 -24
- package/es/RemovableNavigationListItem-517d59b0.js.map +0 -1
- package/es/RemovableTabBarItem-87ba87ca.js +0 -36
- package/es/RemovableTabBarItem-87ba87ca.js.map +0 -1
- package/es/ReorderableTabBar-fc76a33b.js +0 -77
- package/es/ReorderableTabBar-fc76a33b.js.map +0 -1
- package/es/RevealToggleIcon-35baaadf.js +0 -26
- package/es/RevealToggleIcon-35baaadf.js.map +0 -1
- package/es/ScatterChart-449ec029.js +0 -103
- package/es/ScatterChart-449ec029.js.map +0 -1
- package/es/SectionedContent-3274d8f9.js +0 -64
- package/es/SectionedContent-3274d8f9.js.map +0 -1
- package/es/SelectMultiple-50995ef7.js +0 -1297
- package/es/SelectMultiple-50995ef7.js.map +0 -1
- package/es/SelectSingle-dcf0e9b1.js +0 -730
- package/es/SelectSingle-dcf0e9b1.js.map +0 -1
- package/es/SelectionCard-1ed9cf08.js +0 -16
- package/es/SelectionCard-1ed9cf08.js.map +0 -1
- package/es/SelectorAll-f52550a6.js +0 -69
- package/es/SelectorAll-f52550a6.js.map +0 -1
- package/es/Sheet-da412baf.js +0 -158
- package/es/Sheet-da412baf.js.map +0 -1
- package/es/SplitMenuButton-f44064de.js +0 -139
- package/es/SplitMenuButton-f44064de.js.map +0 -1
- package/es/StyledCard-362bd74b.js +0 -105
- package/es/StyledCard-362bd74b.js.map +0 -1
- package/es/StyledLabelValueLayout-d4881d3b.js +0 -18
- package/es/StyledLabelValueLayout-d4881d3b.js.map +0 -1
- package/es/TabBar-2858ff9c.js +0 -77
- package/es/TabBar-2858ff9c.js.map +0 -1
- package/es/TabBarMixed-a4beabce.js +0 -78
- package/es/TabBarMixed-a4beabce.js.map +0 -1
- package/es/TabBarMixedSeparator-51c518a1.js +0 -19
- package/es/TabBarMixedSeparator-51c518a1.js.map +0 -1
- package/es/Table-9919625b.js +0 -5497
- package/es/Table-9919625b.js.map +0 -1
- package/es/TableView-c97ef8ee.js +0 -31
- package/es/TableView-c97ef8ee.js.map +0 -1
- package/es/TagCloud-3f81d651.js +0 -824
- package/es/TagCloud-3f81d651.js.map +0 -1
- package/es/TextArea-2eb362ec.js +0 -160
- package/es/TextArea-2eb362ec.js.map +0 -1
- package/es/TextAreaAutosize-35a923c3.js +0 -244
- package/es/TextAreaAutosize-35a923c3.js.map +0 -1
- package/es/TimeComponentCanvas2D-9fd1f811.js +0 -568
- package/es/TimeComponentCanvas2D-9fd1f811.js.map +0 -1
- package/es/ToggleButton-cf8226d9.js +0 -28
- package/es/ToggleButton-cf8226d9.js.map +0 -1
- package/es/View-afe98b65.js +0 -167
- package/es/View-afe98b65.js.map +0 -1
- package/es/VisNoData-9ceb58f4.js +0 -32
- package/es/VisNoData-9ceb58f4.js.map +0 -1
- package/es/VisProgressiveLoader-36c728ac.js +0 -51
- package/es/VisProgressiveLoader-36c728ac.js.map +0 -1
- package/es/VisTabularDatatip-59629377.js +0 -24
- package/es/VisTabularDatatip-59629377.js.map +0 -1
- package/es/WindowOverlay-a07b2e24.js +0 -110
- package/es/WindowOverlay-a07b2e24.js.map +0 -1
- package/es/YearsGridView-d859edba.js +0 -187
- package/es/YearsGridView-d859edba.js.map +0 -1
- package/es/index-e33bcd96.js +0 -11
- package/es/index-e33bcd96.js.map +0 -1
- package/es/popupUtils-58411a98.js +0 -29
- package/es/popupUtils-58411a98.js.map +0 -1
- package/es/render-343557e9.js +0 -34
- package/es/render-343557e9.js.map +0 -1
- package/es/tabbableUtils-d6485f5e.js +0 -79
- package/es/tabbableUtils-d6485f5e.js.map +0 -1
- package/es/testData-d5181e9f.js +0 -256
- package/es/testData-d5181e9f.js.map +0 -1
- package/es/tooltipUtils-768450a7.js +0 -93
- package/es/tooltipUtils-768450a7.js.map +0 -1
- package/es/useCellNavigation-88a1754f.js +0 -126
- package/es/useCellNavigation-88a1754f.js.map +0 -1
- package/es/useChartDatatip-d6a6c5e1.js +0 -165
- package/es/useChartDatatip-d6a6c5e1.js.map +0 -1
- package/es/useChartMarquee-6587dbec.js +0 -293
- package/es/useChartMarquee-6587dbec.js.map +0 -1
- package/es/useColorScheme-c4e237ad.js +0 -19
- package/es/useColorScheme-c4e237ad.js.map +0 -1
- package/es/useCssVars-d72a8439.js +0 -58
- package/es/useCssVars-d72a8439.js.map +0 -1
- package/es/useCurrentBgColor-14745af3.js +0 -19
- package/es/useCurrentBgColor-14745af3.js.map +0 -1
- package/es/useCurrentKey-7287061f.js +0 -81
- package/es/useCurrentKey-7287061f.js.map +0 -1
- package/es/useDatatip-9635bc2f.js +0 -90
- package/es/useDatatip-9635bc2f.js.map +0 -1
- package/es/useDensity-c17603b2.js +0 -19
- package/es/useDensity-c17603b2.js.map +0 -1
- package/es/useFloating-953362cf.js +0 -1916
- package/es/useFloating-953362cf.js.map +0 -1
- package/es/useKeyboardEvents-2378a650.js +0 -78
- package/es/useKeyboardEvents-2378a650.js.map +0 -1
- package/es/useMeterDatatip-834e67e1.js +0 -73
- package/es/useMeterDatatip-834e67e1.js.map +0 -1
- package/es/useOutsideClick-fd9ad806.js +0 -101
- package/es/useOutsideClick-fd9ad806.js.map +0 -1
- package/es/usePopupAnimation-f017bc43.js +0 -85
- package/es/usePopupAnimation-f017bc43.js.map +0 -1
- package/es/usePrefixSuffix-5a74f2c4.js +0 -70
- package/es/usePrefixSuffix-5a74f2c4.js.map +0 -1
- package/es/usePressClick-2ec8e098.js +0 -31
- package/es/usePressClick-2ec8e098.js.map +0 -1
- package/es/useReorderableItem-22ea4c46.js +0 -268
- package/es/useReorderableItem-22ea4c46.js.map +0 -1
- package/es/useRovingTabIndexContainer-bc7ae447.js +0 -98
- package/es/useRovingTabIndexContainer-bc7ae447.js.map +0 -1
- package/es/useScale-83881775.js +0 -19
- package/es/useScale-83881775.js.map +0 -1
- package/es/useSelectCommon-34645d9a.js +0 -686
- package/es/useSelectCommon-34645d9a.js.map +0 -1
- package/es/useSelectDrill-88337c1a.js +0 -104
- package/es/useSelectDrill-88337c1a.js.map +0 -1
- package/es/useSelection-01b28be6.js +0 -186
- package/es/useSelection-01b28be6.js.map +0 -1
- package/es/useSelection-649fd4f1.js +0 -239
- package/es/useSelection-649fd4f1.js.map +0 -1
- package/es/useTestId-9b504481.js +0 -21
- package/es/useTestId-9b504481.js.map +0 -1
- package/es/useTheme-93c07059.js +0 -19
- package/es/useTheme-93c07059.js.map +0 -1
- package/es/useThemeInterpolations-8dd8029f.js +0 -57
- package/es/useThemeInterpolations-8dd8029f.js.map +0 -1
- package/es/useTooltip-89ca3f3e.js +0 -424
- package/es/useTooltip-89ca3f3e.js.map +0 -1
- package/es/useTooltipOnTruncation-175bf8a6.js +0 -27
- package/es/useTooltipOnTruncation-175bf8a6.js.map +0 -1
- package/es/useTranslationBundle-09302c20.js +0 -29
- package/es/useTranslationBundle-09302c20.js.map +0 -1
- package/es/useUser-1cd223a9.js +0 -19
- package/es/useUser-1cd223a9.js.map +0 -1
- package/es/useVisDragModeControls-40fc83b5.js +0 -87
- package/es/useVisDragModeControls-40fc83b5.js.map +0 -1
- package/es/useVisEvents-8877743b.js +0 -153
- package/es/useVisEvents-8877743b.js.map +0 -1
- package/es/withDirectionIcon-19a1d777.js +0 -14
- package/es/withDirectionIcon-19a1d777.js.map +0 -1
package/cjs/Diagram-c4064fd7.js
DELETED
|
@@ -1,2037 +0,0 @@
|
|
|
1
|
-
/* @oracle/oraclejet-preact: undefined */
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var jsxRuntime = require('preact/jsx-runtime');
|
|
5
|
-
var TrackResizeContainer = require('./TrackResizeContainer-96619aba.js');
|
|
6
|
-
var UNSAFE_Diagram_themes_DiagramStyles_css = require('./UNSAFE_Diagram/themes/DiagramStyles.css.js');
|
|
7
|
-
var useResizeObserver = require('./useResizeObserver-1597395f.js');
|
|
8
|
-
var hooks = require('preact/hooks');
|
|
9
|
-
var accUtils = require('./accUtils-dcffb3de.js');
|
|
10
|
-
var classNames = require('./classNames-c14c6ef3.js');
|
|
11
|
-
var useTranslationBundle = require('./useTranslationBundle-40fa4c27.js');
|
|
12
|
-
var useUser = require('./useUser-3175822e.js');
|
|
13
|
-
var layoutUtils = require('./layoutUtils-c2c02501.js');
|
|
14
|
-
var useVisHover = require('./useVisHover-ad36112d.js');
|
|
15
|
-
var mergeProps = require('./mergeProps-e3da7237.js');
|
|
16
|
-
var useDatatip = require('./useDatatip-b826df26.js');
|
|
17
|
-
var useTextDimensions = require('./useTextDimensions-b94e8899.js');
|
|
18
|
-
var clientUtils = require('./clientUtils-c5a6872f.js');
|
|
19
|
-
var useVisDragModeControls = require('./useVisDragModeControls-388926ea.js');
|
|
20
|
-
var useSelection = require('./useSelection-810ecdc6.js');
|
|
21
|
-
var useVisTouchResponse = require('./useVisTouchResponse-376e11d5.js');
|
|
22
|
-
var stringUtils = require('./stringUtils-4e4a6b2b.js');
|
|
23
|
-
|
|
24
|
-
const ZOOM_TO_FIT_PADDING = 20;
|
|
25
|
-
/**
|
|
26
|
-
* Returns the pan properties for the diagram.
|
|
27
|
-
*/
|
|
28
|
-
function getPanProps(props, contentBounds, userDragMode, isDeviceTouch) {
|
|
29
|
-
return {
|
|
30
|
-
panning: isDeviceTouch
|
|
31
|
-
? userDragMode === 'pan' && props.panning
|
|
32
|
-
? props.panning
|
|
33
|
-
: 'off'
|
|
34
|
-
: props.panning
|
|
35
|
-
? props.panning
|
|
36
|
-
: 'off',
|
|
37
|
-
panDirection: props.panDirection ? props.panDirection : 'any',
|
|
38
|
-
centerX: props.centerX !== undefined ? props.centerX : contentBounds.w / 2 + contentBounds.x,
|
|
39
|
-
centerY: props.centerY !== undefined ? props.centerY : contentBounds.h / 2 + contentBounds.y,
|
|
40
|
-
onPan: props.onPan
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Returns the zoom properties for the diagram.
|
|
45
|
-
*/
|
|
46
|
-
function getZoomProps(props, width, height, contentBounds) {
|
|
47
|
-
const zoomTofitZoom = getZoomToFitZoom(width, height, contentBounds);
|
|
48
|
-
const maxZoom = props.maxZoom || 1;
|
|
49
|
-
const minZoom = props.minZoom || Math.min(maxZoom, zoomTofitZoom);
|
|
50
|
-
const zoom = props.zoomValue ? props.zoomValue : zoomTofitZoom;
|
|
51
|
-
return {
|
|
52
|
-
zooming: props.zooming ? props.zooming : 'off',
|
|
53
|
-
// default value of 0 indicates zoom-to-fit level
|
|
54
|
-
minZoom: minZoom,
|
|
55
|
-
maxZoom: maxZoom,
|
|
56
|
-
// zoom value of 0 will default to zoom to fit
|
|
57
|
-
zoomValue: constrainZoom(zoom, minZoom, maxZoom),
|
|
58
|
-
onZoom: props.onZoom
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Constructs the json object to be passed into the layout function
|
|
63
|
-
*/
|
|
64
|
-
function constructLayoutJSON(nodes, nodeItems, linkItems, dimensions, width, height, getTextDimensions) {
|
|
65
|
-
const labelDims = new Map();
|
|
66
|
-
const nodeKeys = Array.from(nodeItems.keys());
|
|
67
|
-
for (const id of nodeKeys) {
|
|
68
|
-
const item = nodeItems.get(id);
|
|
69
|
-
if (item && getTextDimensions && item.label) {
|
|
70
|
-
const label = item.label;
|
|
71
|
-
const fontProps = _getFontProps(item.labelStyle);
|
|
72
|
-
labelDims.set(id, getTextDimensions(label, fontProps));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
const linkKeys = Array.from(linkItems.keys());
|
|
76
|
-
for (const id of linkKeys) {
|
|
77
|
-
const item = linkItems.get(id);
|
|
78
|
-
if (item && getTextDimensions && item.label) {
|
|
79
|
-
const label = item.label;
|
|
80
|
-
const fontProps = _getFontProps(item.labelStyle);
|
|
81
|
-
labelDims.set(id, getTextDimensions(label, fontProps));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
const getLabelDimensions = function (data) {
|
|
85
|
-
return labelDims.get(data.id);
|
|
86
|
-
};
|
|
87
|
-
const getNodeDimensions = function (data) {
|
|
88
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
89
|
-
if (data.id === nodes[i].id) {
|
|
90
|
-
return dimensions[i];
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return dimensions[0];
|
|
94
|
-
};
|
|
95
|
-
return {
|
|
96
|
-
layoutJSON: {
|
|
97
|
-
getNodeDimensions: getNodeDimensions,
|
|
98
|
-
getLabelDimensions: getLabelDimensions,
|
|
99
|
-
componentSize: {
|
|
100
|
-
width: width,
|
|
101
|
-
height: height
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
labelDims: labelDims
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Deconstructs the output of the layout function
|
|
109
|
-
*/
|
|
110
|
-
function deconstructLayoutJSON(layoutJSON, nodeData, linkData) {
|
|
111
|
-
const nodes = layoutJSON.nodes;
|
|
112
|
-
const links = layoutJSON.links;
|
|
113
|
-
const positions = [];
|
|
114
|
-
const nodeLabelPos = [];
|
|
115
|
-
const linkLabelPos = [];
|
|
116
|
-
let hasNodeLabels = false;
|
|
117
|
-
let hasLinkLabels = false;
|
|
118
|
-
let node, link;
|
|
119
|
-
for (let i = 0; i < nodeData.length; i++) {
|
|
120
|
-
node = nodes[nodeData[i].id];
|
|
121
|
-
positions.push(node.position);
|
|
122
|
-
if (node.label)
|
|
123
|
-
hasNodeLabels = true;
|
|
124
|
-
nodeLabelPos.push(node.label);
|
|
125
|
-
}
|
|
126
|
-
if (links) {
|
|
127
|
-
for (let i = 0; i < linkData.length; i++) {
|
|
128
|
-
link = links[linkData[i].id];
|
|
129
|
-
if (link.label)
|
|
130
|
-
hasLinkLabels = true;
|
|
131
|
-
linkLabelPos.push(link.label);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return {
|
|
135
|
-
nodePoints: positions,
|
|
136
|
-
nodeLabelPos: hasNodeLabels ? nodeLabelPos : undefined,
|
|
137
|
-
linkLabelPos: hasLinkLabels ? linkLabelPos : undefined
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Merges the node points into the dimensions
|
|
142
|
-
*/
|
|
143
|
-
function mergeDimensions(dimensions, nodePoints) {
|
|
144
|
-
const newBounds = [];
|
|
145
|
-
for (let i = 0; i < dimensions.length; i++) {
|
|
146
|
-
const point = nodePoints[i];
|
|
147
|
-
const dim = dimensions[i];
|
|
148
|
-
newBounds.push({ x: point.x, y: point.y, w: dim.w, h: dim.h });
|
|
149
|
-
}
|
|
150
|
-
return newBounds;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Deep equality check for whether two arrays of bounds are the same
|
|
154
|
-
*/
|
|
155
|
-
function isEqualBounds(bounds1, bounds2) {
|
|
156
|
-
if (bounds1.length !== bounds2.length)
|
|
157
|
-
return false;
|
|
158
|
-
return bounds1.every(({ x, y, w, h }, i) => bounds2[i].x === x && bounds2[i].y === y && bounds2[i].w === w && bounds2[i].h === h);
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Returns the text for the diagram datatip.
|
|
162
|
-
*/
|
|
163
|
-
function getDatatipContent(nodesMap, linksMap, focusedItem, hoveredItem, datatip) {
|
|
164
|
-
let itemInfo;
|
|
165
|
-
const isPointerActive = hoveredItem?.isCurrent;
|
|
166
|
-
if (isPointerActive && hoveredItem.id != null) {
|
|
167
|
-
itemInfo = hoveredItem;
|
|
168
|
-
}
|
|
169
|
-
if (focusedItem && focusedItem.isCurrent) {
|
|
170
|
-
itemInfo = focusedItem;
|
|
171
|
-
}
|
|
172
|
-
if (itemInfo && datatip) {
|
|
173
|
-
return datatip(itemInfo.isNode
|
|
174
|
-
? { data: nodesMap.get(itemInfo.id), type: 'node' }
|
|
175
|
-
: { data: linksMap.get(itemInfo.id), type: 'link' });
|
|
176
|
-
}
|
|
177
|
-
if (itemInfo) {
|
|
178
|
-
const text = (itemInfo.isNode ? nodesMap.get(itemInfo.id) : linksMap.get(itemInfo.id))?.accessibleLabel;
|
|
179
|
-
return {
|
|
180
|
-
content: text
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Creates a map with key id and value node or link data
|
|
187
|
-
*/
|
|
188
|
-
function createItemMap(items) {
|
|
189
|
-
const itemIdToDataMap = new Map();
|
|
190
|
-
const itemIdToIndexMap = new Map();
|
|
191
|
-
const itemIndexToIdMap = new Map();
|
|
192
|
-
for (let i = 0; i < items.length; i++) {
|
|
193
|
-
itemIdToDataMap.set(items[i].id, items[i]);
|
|
194
|
-
itemIdToIndexMap.set(items[i].id, i);
|
|
195
|
-
itemIndexToIdMap.set(i, items[i].id);
|
|
196
|
-
}
|
|
197
|
-
return {
|
|
198
|
-
itemIdToDataMap,
|
|
199
|
-
itemIdToIndexMap,
|
|
200
|
-
itemIndexToIdMap
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Filter out links with no start or end nodes
|
|
205
|
-
*/
|
|
206
|
-
function filterLinksWithNoEndNodes(links, nodesMap) {
|
|
207
|
-
const newLinks = [];
|
|
208
|
-
for (let i = 0; i < links.length; i++) {
|
|
209
|
-
const link = links[i];
|
|
210
|
-
if (nodesMap.get(link.startNode) && nodesMap.get(link.endNode)) {
|
|
211
|
-
newLinks.push(link);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return newLinks;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Pulls out the dimensions from an array of bounds
|
|
218
|
-
*/
|
|
219
|
-
function getDimensionsFromBounds(bounds) {
|
|
220
|
-
const dims = [];
|
|
221
|
-
for (let i = 0; i < bounds.length; i++) {
|
|
222
|
-
dims.push({ w: bounds[i].w, h: bounds[i].h });
|
|
223
|
-
}
|
|
224
|
-
return dims;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Returns the center position of the node or link
|
|
228
|
-
* For links, draws a straight line between the centers of the start/end node
|
|
229
|
-
* and returns the center of that line
|
|
230
|
-
*/
|
|
231
|
-
function getFocusedItemBounds(focusedItemInfo, bounds, links, nodeIdToIndexMap, linkIdToIndexMap) {
|
|
232
|
-
if (focusedItemInfo.isNode) {
|
|
233
|
-
const idx = nodeIdToIndexMap.get(focusedItemInfo.id);
|
|
234
|
-
// Return the first element if cannot find the Node index
|
|
235
|
-
return bounds[idx || 0];
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
// Center of a straight line between start/end node centers
|
|
239
|
-
const link = links[linkIdToIndexMap.get(focusedItemInfo.id) || 0];
|
|
240
|
-
const startNB = bounds[nodeIdToIndexMap.get(link.startNode) || 0];
|
|
241
|
-
const endNB = bounds[nodeIdToIndexMap.get(link.endNode) || 0];
|
|
242
|
-
const startNCenter = { x: startNB.x + startNB.w / 2, y: startNB.y + startNB.h / 2 };
|
|
243
|
-
const endNCenter = { x: endNB.x + endNB.w / 2, y: endNB.y + endNB.h / 2 };
|
|
244
|
-
const minX = Math.min(startNCenter.x, endNCenter.x);
|
|
245
|
-
const minY = Math.min(startNCenter.y, endNCenter.y);
|
|
246
|
-
return {
|
|
247
|
-
x: minX,
|
|
248
|
-
y: minY,
|
|
249
|
-
w: Math.abs(startNCenter.x - endNCenter.x),
|
|
250
|
-
h: Math.abs(startNCenter.y - endNCenter.y)
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Combines the node and link ids into one array
|
|
256
|
-
*/
|
|
257
|
-
function combineIds(nodeIds, linkIds) {
|
|
258
|
-
const combinedIds = [];
|
|
259
|
-
if (nodeIds) {
|
|
260
|
-
for (let i = 0; i < nodeIds.length; i++) {
|
|
261
|
-
combinedIds.push(nodeIds[i]);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
if (linkIds) {
|
|
265
|
-
for (let i = 0; i < linkIds.length; i++) {
|
|
266
|
-
combinedIds.push(linkIds[i]);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
return combinedIds;
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Returns the bounds of the diagram content
|
|
273
|
-
*/
|
|
274
|
-
function getContentBounds(nodeBounds, labelBounds) {
|
|
275
|
-
if (nodeBounds.length === 0)
|
|
276
|
-
return { x: 0, w: Infinity, y: 0, h: Infinity };
|
|
277
|
-
let minX = Infinity;
|
|
278
|
-
let minY = Infinity;
|
|
279
|
-
let maxX = -Infinity;
|
|
280
|
-
let maxY = -Infinity;
|
|
281
|
-
let dims;
|
|
282
|
-
for (let i = 0; i < nodeBounds.length; i++) {
|
|
283
|
-
dims = nodeBounds[i];
|
|
284
|
-
minX = dims.x < minX ? dims.x : minX;
|
|
285
|
-
minY = dims.y < minY ? dims.y : minY;
|
|
286
|
-
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
287
|
-
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
288
|
-
}
|
|
289
|
-
if (labelBounds) {
|
|
290
|
-
minX = labelBounds.x < minX ? labelBounds.x : minX;
|
|
291
|
-
minY = labelBounds.y < minY ? labelBounds.y : minY;
|
|
292
|
-
maxX = labelBounds.x + labelBounds.w > maxX ? labelBounds.x + labelBounds.w : maxX;
|
|
293
|
-
maxY = labelBounds.y + labelBounds.h > maxY ? labelBounds.y + labelBounds.h : maxY;
|
|
294
|
-
}
|
|
295
|
-
return { x: minX, w: maxX - minX, y: minY, h: maxY - minY };
|
|
296
|
-
}
|
|
297
|
-
/**
|
|
298
|
-
* Returns the label bounds
|
|
299
|
-
*/
|
|
300
|
-
function getAllLabelBounds(labelDims, nodes, links, nodeLabelPos = [], linkLabelPos = [], isRTL) {
|
|
301
|
-
if (nodeLabelPos.length === 0 && linkLabelPos.length === 0)
|
|
302
|
-
return undefined;
|
|
303
|
-
let minX = Infinity;
|
|
304
|
-
let minY = Infinity;
|
|
305
|
-
let maxX = -Infinity;
|
|
306
|
-
let maxY = -Infinity;
|
|
307
|
-
let dims, label;
|
|
308
|
-
for (let i = 0; i < nodeLabelPos.length; i++) {
|
|
309
|
-
label = nodeLabelPos[i];
|
|
310
|
-
if (!label)
|
|
311
|
-
continue;
|
|
312
|
-
dims = getLabelBounds(label, labelDims.get(nodes[i].id), isRTL);
|
|
313
|
-
minX = dims.x < minX ? dims.x : minX;
|
|
314
|
-
minY = dims.y < minY ? dims.y : minY;
|
|
315
|
-
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
316
|
-
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
317
|
-
}
|
|
318
|
-
for (let i = 0; i < linkLabelPos.length; i++) {
|
|
319
|
-
label = linkLabelPos[i];
|
|
320
|
-
if (!label)
|
|
321
|
-
continue;
|
|
322
|
-
dims = getLabelBounds(label, labelDims.get(links[i].id), isRTL);
|
|
323
|
-
minX = dims.x < minX ? dims.x : minX;
|
|
324
|
-
minY = dims.y < minY ? dims.y : minY;
|
|
325
|
-
maxX = dims.x + dims.w > maxX ? dims.x + dims.w : maxX;
|
|
326
|
-
maxY = dims.y + dims.h > maxY ? dims.y + dims.h : maxY;
|
|
327
|
-
}
|
|
328
|
-
return { x: minX, w: maxX - minX, y: minY, h: maxY - minY };
|
|
329
|
-
}
|
|
330
|
-
function getLabelBounds(label, dims, isRTL) {
|
|
331
|
-
const labelPos = getLabelPosition(dims, label, isRTL);
|
|
332
|
-
const isRotating = label.rotationAngle;
|
|
333
|
-
if (!isRotating) {
|
|
334
|
-
return { x: labelPos.x, y: labelPos.y, w: dims.width, h: dims.height };
|
|
335
|
-
}
|
|
336
|
-
else {
|
|
337
|
-
// Find the 4 corners of the label bounds relative to the rotation point
|
|
338
|
-
const rotationPoint = label.rotationPoint
|
|
339
|
-
? label.rotationPoint
|
|
340
|
-
: { x: dims.width / 2, y: dims.height / 2 };
|
|
341
|
-
const angle = label.rotationAngle;
|
|
342
|
-
const topLeft = getCoordsRelToRotPoint({ x: 0, y: 0 }, rotationPoint);
|
|
343
|
-
const topRight = getCoordsRelToRotPoint({ x: dims.width, y: 0 }, rotationPoint);
|
|
344
|
-
const bottomLeft = getCoordsRelToRotPoint({ x: 0, y: dims.height }, rotationPoint);
|
|
345
|
-
const bottomRight = getCoordsRelToRotPoint({ x: dims.width, y: dims.height }, rotationPoint);
|
|
346
|
-
const rotTopLeft = rotatePoint(topLeft, angle);
|
|
347
|
-
const rotBotLeft = rotatePoint(bottomLeft, angle);
|
|
348
|
-
const rotTopRight = rotatePoint(topRight, angle);
|
|
349
|
-
const rotBotRight = rotatePoint(bottomRight, angle);
|
|
350
|
-
const points = [rotTopLeft, rotBotLeft, rotTopRight, rotBotRight].map((pos) => {
|
|
351
|
-
return {
|
|
352
|
-
x: pos.x + labelPos.x + rotationPoint.x,
|
|
353
|
-
y: pos.y + labelPos.y + rotationPoint.y
|
|
354
|
-
};
|
|
355
|
-
});
|
|
356
|
-
return getBoundsFromPoints(points);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
function getCoordsRelToRotPoint(labelPoint, rotPoint) {
|
|
360
|
-
return { x: labelPoint.x - rotPoint.x, y: labelPoint.y - rotPoint.y };
|
|
361
|
-
}
|
|
362
|
-
function rotatePoint(pos, angle) {
|
|
363
|
-
return {
|
|
364
|
-
x: pos.x * Math.cos(angle) - pos.y * Math.sin(angle),
|
|
365
|
-
y: pos.x * Math.sin(angle) + pos.y * Math.cos(angle)
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
function getBoundsFromPoints(points) {
|
|
369
|
-
let minX = points[0].x;
|
|
370
|
-
let minY = points[0].y;
|
|
371
|
-
let maxX = points[0].x;
|
|
372
|
-
let maxY = points[0].y;
|
|
373
|
-
for (let i = 1; i < points.length; i++) {
|
|
374
|
-
const point = points[i];
|
|
375
|
-
if (point.x < minX)
|
|
376
|
-
minX = point.x;
|
|
377
|
-
else if (point.x > maxX)
|
|
378
|
-
maxX = point.x;
|
|
379
|
-
if (point.y < minY)
|
|
380
|
-
minY = point.y;
|
|
381
|
-
else if (point.y > maxY)
|
|
382
|
-
maxY = point.y;
|
|
383
|
-
}
|
|
384
|
-
return {
|
|
385
|
-
x: minX,
|
|
386
|
-
y: minY,
|
|
387
|
-
w: maxX - minX,
|
|
388
|
-
h: maxY - minY
|
|
389
|
-
};
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* Returns the position of the label
|
|
393
|
-
* @param dimensions
|
|
394
|
-
* @param positionProps
|
|
395
|
-
* @returns position of the label
|
|
396
|
-
*/
|
|
397
|
-
function getLabelPosition(dimensions, positionProps, isRTL) {
|
|
398
|
-
const position = positionProps.position;
|
|
399
|
-
const hAlign = positionProps.hAlign ? positionProps.hAlign : isRTL ? 'right' : 'left';
|
|
400
|
-
const vAlign = positionProps.vAlign;
|
|
401
|
-
let x, y;
|
|
402
|
-
if (hAlign === 'center') {
|
|
403
|
-
x = position.x - dimensions.width / 2;
|
|
404
|
-
}
|
|
405
|
-
else if (hAlign === 'right') {
|
|
406
|
-
x = position.x - dimensions.width;
|
|
407
|
-
}
|
|
408
|
-
else {
|
|
409
|
-
x = position.x;
|
|
410
|
-
}
|
|
411
|
-
if (vAlign === 'middle') {
|
|
412
|
-
y = position.y - dimensions.height / 2;
|
|
413
|
-
}
|
|
414
|
-
else if (vAlign === 'bottom') {
|
|
415
|
-
y = position.y - dimensions.height;
|
|
416
|
-
}
|
|
417
|
-
else if (vAlign === 'baseline') {
|
|
418
|
-
y = position.y + dimensions.y;
|
|
419
|
-
}
|
|
420
|
-
else {
|
|
421
|
-
y = position.y;
|
|
422
|
-
}
|
|
423
|
-
return {
|
|
424
|
-
x: x,
|
|
425
|
-
y: y
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
/**
|
|
429
|
-
* Converts centerX,Y coordinates to panX,Y coordinates
|
|
430
|
-
*/
|
|
431
|
-
function centerXYToPanXY(centerX, centerY, zoom, width, height) {
|
|
432
|
-
return {
|
|
433
|
-
panX: width / 2 - centerX * zoom,
|
|
434
|
-
panY: height / 2 - centerY * zoom
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* Converts panX,Y coordinates to centerX,Y coordinates
|
|
439
|
-
*/
|
|
440
|
-
function panXYToCenterXY(panX, panY, zoom, width, height) {
|
|
441
|
-
return {
|
|
442
|
-
centerX: (width / 2 - panX) / zoom,
|
|
443
|
-
centerY: (height / 2 - panY) / zoom
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* Compares if two ItemInfo are equal
|
|
448
|
-
*/
|
|
449
|
-
function isEqualItem(item1, item2) {
|
|
450
|
-
return item1?.id === item2?.id && item1?.isNode === item2?.isNode;
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
* Returns the item info of the data-oj-node or data-oj-link attribute for a given element.
|
|
454
|
-
*/
|
|
455
|
-
function getNavigableInfo(element, rootElementRef) {
|
|
456
|
-
let isNode = false;
|
|
457
|
-
let elem = element;
|
|
458
|
-
let navigableId;
|
|
459
|
-
while (!navigableId) {
|
|
460
|
-
navigableId = elem.dataset['node'];
|
|
461
|
-
if (navigableId) {
|
|
462
|
-
isNode = true;
|
|
463
|
-
}
|
|
464
|
-
else {
|
|
465
|
-
navigableId = elem.dataset['link'];
|
|
466
|
-
}
|
|
467
|
-
if (!navigableId) {
|
|
468
|
-
if (elem.parentElement && elem.parentElement !== rootElementRef?.current) {
|
|
469
|
-
elem = elem.parentElement;
|
|
470
|
-
}
|
|
471
|
-
else {
|
|
472
|
-
break;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
return {
|
|
477
|
-
id: navigableId,
|
|
478
|
-
isNode: isNode
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
|
-
/**
|
|
482
|
-
* Returns the aria label
|
|
483
|
-
*/
|
|
484
|
-
function getItemAriaLabel(translations, supportsSelection, isSelected, accessibleLabel) {
|
|
485
|
-
return accUtils.generateAriaLabel(translations, accessibleLabel || '', {
|
|
486
|
-
isSelected: !supportsSelection ? undefined : isSelected
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* Returns the zoom to fit zoom level
|
|
491
|
-
*/
|
|
492
|
-
function getZoomToFitZoom(width, height, contentBounds) {
|
|
493
|
-
const zoomX = (width - 2 * ZOOM_TO_FIT_PADDING) / contentBounds.w;
|
|
494
|
-
const zoomY = (height - 2 * ZOOM_TO_FIT_PADDING) / contentBounds.h;
|
|
495
|
-
return Math.min(zoomX, zoomY);
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* Constrains the zoom level
|
|
499
|
-
*/
|
|
500
|
-
function constrainZoom(zoom, minZoom, maxZoom) {
|
|
501
|
-
let newZoom = Math.max(minZoom, zoom);
|
|
502
|
-
newZoom = Math.min(maxZoom, newZoom);
|
|
503
|
-
return newZoom;
|
|
504
|
-
}
|
|
505
|
-
/**
|
|
506
|
-
* Returns the font props for a node or link
|
|
507
|
-
*/
|
|
508
|
-
function _getFontProps(styles) {
|
|
509
|
-
const fontProps = {};
|
|
510
|
-
if (!styles)
|
|
511
|
-
return fontProps;
|
|
512
|
-
if (styles.fontFamily)
|
|
513
|
-
fontProps.fontFamily = styles.fontFamily;
|
|
514
|
-
if (styles.fontSize)
|
|
515
|
-
fontProps.fontSize = styles.fontSize;
|
|
516
|
-
if (styles.fontStyle)
|
|
517
|
-
fontProps.fontStyle = styles.fontStyle;
|
|
518
|
-
if (styles.fontWeight)
|
|
519
|
-
fontProps.fontWeight = styles.fontWeight;
|
|
520
|
-
return fontProps;
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
* Returns the panX, panY, and zoom when zooming and centering an item
|
|
524
|
-
*/
|
|
525
|
-
function zoomAndCenterItemFromInfo(info, linkIdToDataMap, bounds, nodeIdToIndex, width, height, maxZoom) {
|
|
526
|
-
const isNode = info.isNode;
|
|
527
|
-
let totalBounds;
|
|
528
|
-
if (isNode) {
|
|
529
|
-
const nodeIndex = nodeIdToIndex.get(info.id);
|
|
530
|
-
totalBounds = bounds[nodeIndex];
|
|
531
|
-
}
|
|
532
|
-
else {
|
|
533
|
-
const link = linkIdToDataMap.get(info.id);
|
|
534
|
-
const startNodeBounds = bounds[nodeIdToIndex.get(link.startNode)];
|
|
535
|
-
const endNodeBounds = bounds[nodeIdToIndex.get(link.endNode)];
|
|
536
|
-
const minX = Math.min(startNodeBounds.x, endNodeBounds.x);
|
|
537
|
-
const minY = Math.min(startNodeBounds.y, endNodeBounds.y);
|
|
538
|
-
const maxX = Math.max(startNodeBounds.x + startNodeBounds.w, endNodeBounds.x + startNodeBounds.w);
|
|
539
|
-
const maxY = Math.max(startNodeBounds.y + startNodeBounds.h, endNodeBounds.y + endNodeBounds.h);
|
|
540
|
-
totalBounds = { x: minX, y: minY, w: maxX - minX, h: maxY - minY };
|
|
541
|
-
}
|
|
542
|
-
return getPanZoomToCenterNode(totalBounds, maxZoom, width, height);
|
|
543
|
-
}
|
|
544
|
-
/**
|
|
545
|
-
* Returns the pan and zoom values in order
|
|
546
|
-
* to center a node or link
|
|
547
|
-
*/
|
|
548
|
-
function getPanZoomToCenterNode(bounds, maxZoom, width, height) {
|
|
549
|
-
const zoomX = (width - 2 * ZOOM_TO_FIT_PADDING) / bounds.w;
|
|
550
|
-
const zoomY = (height - 2 * ZOOM_TO_FIT_PADDING) / bounds.h;
|
|
551
|
-
const zoom = Math.min(zoomX, zoomY, maxZoom);
|
|
552
|
-
const cX = bounds.w / 2 + bounds.x;
|
|
553
|
-
const cY = bounds.h / 2 + bounds.y;
|
|
554
|
-
return { centerX: cX, centerY: cY, zoom: zoom };
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
const DiagramNodeElement = ({ id, state, previousState, position, activeId, nodeRenderer, onNodeSizeChanged, nodeIndex, data, accessibleLabel, isDimmed, supportsSelection }) => {
|
|
558
|
-
const { nodeStyles, dimmedItemStyle } = UNSAFE_Diagram_themes_DiagramStyles_css.itemStyles;
|
|
559
|
-
const context = {
|
|
560
|
-
state: state,
|
|
561
|
-
previousState: previousState,
|
|
562
|
-
data: data
|
|
563
|
-
};
|
|
564
|
-
const translations = useTranslationBundle.useTranslationBundle('@oracle/oraclejet-preact');
|
|
565
|
-
const ref = hooks.useRef(null);
|
|
566
|
-
// TODO JET-62472 change to one resize observer function
|
|
567
|
-
const optionsRef = hooks.useRef({ box: 'border-box' });
|
|
568
|
-
useResizeObserver.useResizeObserver(ref, hooks.useCallback((entry) => {
|
|
569
|
-
const boxSize = entry.borderBoxSize;
|
|
570
|
-
const width = boxSize[0].inlineSize;
|
|
571
|
-
const height = boxSize[0].blockSize;
|
|
572
|
-
onNodeSizeChanged(width, height, nodeIndex);
|
|
573
|
-
}, [nodeIndex, onNodeSizeChanged]), optionsRef.current);
|
|
574
|
-
return (jsxRuntime.jsx("div", { ref: ref, class: classNames.classNames([nodeStyles, isDimmed ? dimmedItemStyle : undefined]), "data-node": id, role: "img", "aria-label": getItemAriaLabel(translations, supportsSelection, state.selected, accessibleLabel), style: {
|
|
575
|
-
top: position.y,
|
|
576
|
-
left: position.x
|
|
577
|
-
}, id: state.focused || state.hovered ? activeId : undefined, children: nodeRenderer(context) }, id));
|
|
578
|
-
};
|
|
579
|
-
|
|
580
|
-
function DiagramNodeLayer({ nodes, states, previousStates, nodeRenderer, nodeBounds, onNodeSizeChanged, supportsSelection }) {
|
|
581
|
-
return (jsxRuntime.jsx("div", { class: UNSAFE_Diagram_themes_DiagramStyles_css.layerStyles, children: nodes.map((node, i) => {
|
|
582
|
-
// this is for initial render before the layout function so render all nodes at 0,0
|
|
583
|
-
const position = nodeBounds && nodeBounds[i] ? { x: nodeBounds[i].x, y: nodeBounds[i].y } : { x: 0, y: 0 };
|
|
584
|
-
const state = {
|
|
585
|
-
selected: states.selectedNodeIds.includes(node.id),
|
|
586
|
-
focused: states.focusedId === node.id,
|
|
587
|
-
hovered: states.hoveredId === node.id,
|
|
588
|
-
zoom: states.zoom
|
|
589
|
-
};
|
|
590
|
-
const previousState = {
|
|
591
|
-
selected: previousStates.selectedNodeIds.includes(node.id),
|
|
592
|
-
focused: previousStates.focusedId === node.id,
|
|
593
|
-
hovered: previousStates.hoveredId === node.id,
|
|
594
|
-
zoom: previousStates.zoom
|
|
595
|
-
};
|
|
596
|
-
return (jsxRuntime.jsx(DiagramNodeElement, { id: node.id, position: position, state: state, previousState: previousState, isDimmed: states.highlightedIds.length !== 0 && !states.highlightedIds.includes(node.id), activeId: states.activeId, nodeRenderer: nodeRenderer, onNodeSizeChanged: onNodeSizeChanged, nodeIndex: i, accessibleLabel: node.accessibleLabel, data: node, supportsSelection: supportsSelection }));
|
|
597
|
-
}) }));
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
const DiagramLinkElement = ({ id, state, previousState, activeId, data, linkRenderer, accessibleLabel, isDimmed, supportsSelection, layoutOutput }) => {
|
|
601
|
-
const translations = useTranslationBundle.useTranslationBundle('@oracle/oraclejet-preact');
|
|
602
|
-
const { dimmedItemStyle, linkStyles } = UNSAFE_Diagram_themes_DiagramStyles_css.itemStyles;
|
|
603
|
-
const context = {
|
|
604
|
-
state: state,
|
|
605
|
-
previousState: previousState,
|
|
606
|
-
data: data,
|
|
607
|
-
layoutOutput: layoutOutput
|
|
608
|
-
};
|
|
609
|
-
return (jsxRuntime.jsx("g", { id: state.focused ? activeId : undefined, "aria-label": getItemAriaLabel(translations, supportsSelection, state.selected, accessibleLabel), "data-link": id, role: "img", class: classNames.classNames([linkStyles, isDimmed && dimmedItemStyle]), children: linkRenderer(context) }, id));
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
function DiagramLinkLayer({ links, states, previousStates, linkRenderer, width, height, supportsSelection, layoutOutput, combinedNodeBounds }) {
|
|
613
|
-
const zoom = getZoomToFitZoom(width, height, combinedNodeBounds);
|
|
614
|
-
return (jsxRuntime.jsx("svg", { class: UNSAFE_Diagram_themes_DiagramStyles_css.layerStyles, width: width / zoom, height: height / zoom, children: links.map((link) => {
|
|
615
|
-
const state = {
|
|
616
|
-
selected: states.selectedLinkIds.includes(link.id),
|
|
617
|
-
focused: states.focusedId === link.id,
|
|
618
|
-
hovered: states.hoveredId === link.id,
|
|
619
|
-
zoom: states.zoom
|
|
620
|
-
};
|
|
621
|
-
const previousState = {
|
|
622
|
-
selected: previousStates.selectedLinkIds.includes(link.id),
|
|
623
|
-
focused: previousStates.focusedId === link.id,
|
|
624
|
-
hovered: previousStates.hoveredId === link.id,
|
|
625
|
-
zoom: previousStates.zoom
|
|
626
|
-
};
|
|
627
|
-
return (jsxRuntime.jsx(DiagramLinkElement, { id: link.id, label: link.label, state: state, previousState: previousState, isDimmed: states.highlightedIds.length !== 0 && !states.highlightedIds.includes(link.id), activeId: states.activeId, accessibleLabel: link.accessibleLabel, data: link, linkRenderer: linkRenderer, supportsSelection: supportsSelection, layoutOutput: layoutOutput }));
|
|
628
|
-
}) }));
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
const DiagramLabel = ({ text, position, styles, dimensions, isRTL }) => {
|
|
632
|
-
const { labelStyle, labelBorderStyle } = UNSAFE_Diagram_themes_DiagramStyles_css.labelStyles;
|
|
633
|
-
const labelPosition = getLabelPosition(dimensions, position, isRTL);
|
|
634
|
-
const labelRotation = getLabelRotation(position);
|
|
635
|
-
return (jsxRuntime.jsx("div", { class: classNames.classNames([labelStyle, styles && styles.borderColor && labelBorderStyle]), style: {
|
|
636
|
-
top: labelPosition.y,
|
|
637
|
-
left: labelPosition.x,
|
|
638
|
-
...styles,
|
|
639
|
-
...labelRotation
|
|
640
|
-
}, children: text }));
|
|
641
|
-
};
|
|
642
|
-
/**
|
|
643
|
-
* Returns the label rotation props
|
|
644
|
-
* @param position
|
|
645
|
-
* @returns rotation props
|
|
646
|
-
*/
|
|
647
|
-
function getLabelRotation(position) {
|
|
648
|
-
const rotationAngle = position.rotationAngle;
|
|
649
|
-
const rotationPoint = position.rotationPoint;
|
|
650
|
-
const rotation = {};
|
|
651
|
-
if (rotationAngle) {
|
|
652
|
-
rotation['transform'] = `rotate(${rotationAngle}deg)`;
|
|
653
|
-
}
|
|
654
|
-
if (rotationPoint) {
|
|
655
|
-
rotation['transform-origin'] = `${rotationPoint.x}px ${rotationPoint.y}px`;
|
|
656
|
-
}
|
|
657
|
-
return rotation;
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
function DiagramLabelLayer({ labelPosition, itemProps, labelDimensions }) {
|
|
661
|
-
const { direction } = useUser.useUser();
|
|
662
|
-
return (jsxRuntime.jsx("div", { class: UNSAFE_Diagram_themes_DiagramStyles_css.layerStyles, children: itemProps.map((item, i) => {
|
|
663
|
-
if (item.label && labelPosition[i]) {
|
|
664
|
-
return (jsxRuntime.jsx(DiagramLabel, { styles: item.labelStyle, text: item.label, position: labelPosition[i], dimensions: labelDimensions.get(item.id), isRTL: direction === 'rtl' }));
|
|
665
|
-
}
|
|
666
|
-
return undefined;
|
|
667
|
-
}) }));
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
function DiagramLayers({ nodes, links, nodeRenderer, linkRenderer, states, previousStates, nodeBounds, onNodeSizeChanged, width, height, nodeLabelPositions, linkLabelPositions, labelDimensions, supportsSelection, layoutOutput, combinedNodeBounds }) {
|
|
671
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [links.length > 0 &&
|
|
672
|
-
layoutOutput &&
|
|
673
|
-
linkRenderer &&
|
|
674
|
-
width !== Infinity &&
|
|
675
|
-
combinedNodeBounds && (jsxRuntime.jsx(DiagramLinkLayer, { links: links, states: states, previousStates: previousStates, linkRenderer: linkRenderer, width: width, height: height, supportsSelection: supportsSelection, layoutOutput: layoutOutput, combinedNodeBounds: combinedNodeBounds })), jsxRuntime.jsx(DiagramNodeLayer, { nodes: nodes, nodeBounds: nodeBounds, states: states, previousStates: previousStates, nodeRenderer: nodeRenderer, onNodeSizeChanged: onNodeSizeChanged, supportsSelection: supportsSelection }), labelDimensions ? (jsxRuntime.jsxs("div", { children: [nodeLabelPositions ? (jsxRuntime.jsx(DiagramLabelLayer, { labelPosition: nodeLabelPositions, itemProps: nodes, labelDimensions: labelDimensions })) : undefined, links && linkLabelPositions ? (jsxRuntime.jsx(DiagramLabelLayer, { labelPosition: linkLabelPositions, itemProps: links, labelDimensions: labelDimensions })) : undefined] })) : undefined] }));
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
function DiagramPanZoomContainer({ centerX, centerY, children, zoom, width, height }) {
|
|
679
|
-
const panValues = centerXYToPanXY(centerX, centerY, zoom, width, height);
|
|
680
|
-
return (jsxRuntime.jsx("div", { class: UNSAFE_Diagram_themes_DiagramStyles_css.panZoomStyles, style: {
|
|
681
|
-
//TODO JET-62471 look at using matrices or both in transform instead
|
|
682
|
-
translate: `${panValues.panX}px ${panValues.panY}px`,
|
|
683
|
-
transform: `scale(${zoom})`
|
|
684
|
-
}, children: children }));
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
/**
|
|
688
|
-
* @license
|
|
689
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
690
|
-
* The Universal Permissive License (UPL), Version 1.0
|
|
691
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
692
|
-
* @ignore
|
|
693
|
-
*/
|
|
694
|
-
/**
|
|
695
|
-
* Returns the node data based on node info in a diagram.
|
|
696
|
-
* @param itemInfo
|
|
697
|
-
* @returns
|
|
698
|
-
*/
|
|
699
|
-
function getNodeDetailFromInfo(itemInfo, nodes) {
|
|
700
|
-
let node;
|
|
701
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
702
|
-
node = nodes[i];
|
|
703
|
-
if (itemInfo.id === node.id) {
|
|
704
|
-
return node;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
return undefined;
|
|
708
|
-
}
|
|
709
|
-
/**
|
|
710
|
-
* Returns the link data based on link info in a diagram.
|
|
711
|
-
* @param itemInfo
|
|
712
|
-
* @returns
|
|
713
|
-
*/
|
|
714
|
-
function getLinkDetailFromInfo(itemInfo, links) {
|
|
715
|
-
let link;
|
|
716
|
-
for (let i = 0; i < links.length; i++) {
|
|
717
|
-
link = links[i];
|
|
718
|
-
if (itemInfo.id === link.id) {
|
|
719
|
-
return link;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
return undefined;
|
|
723
|
-
}
|
|
724
|
-
/**
|
|
725
|
-
* Creates a map with key node id and value node bounds
|
|
726
|
-
*/
|
|
727
|
-
function createNodeBoundsMap(nodes, bounds) {
|
|
728
|
-
const nodeBounds = new Map();
|
|
729
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
730
|
-
nodeBounds.set(nodes[i].id, bounds[i]);
|
|
731
|
-
}
|
|
732
|
-
return nodeBounds;
|
|
733
|
-
}
|
|
734
|
-
/**
|
|
735
|
-
* Utility method that adds sorting attributes of each link to an array
|
|
736
|
-
*/
|
|
737
|
-
function addSortingAttributes(node, listOfLinks, nodes, nodeBounds) {
|
|
738
|
-
let angle, distance, direction;
|
|
739
|
-
const linkDetail = [];
|
|
740
|
-
for (let i = 0; i < listOfLinks.length; i++) {
|
|
741
|
-
const link = listOfLinks[i];
|
|
742
|
-
angle = _getClockwiseAngle(node, link, nodes, nodeBounds);
|
|
743
|
-
distance = _getNodesDistance(link, nodes, nodeBounds);
|
|
744
|
-
direction = _getLinkDirection(node, link);
|
|
745
|
-
linkDetail.push({ id: link.id, angle: angle, distance: distance, direction: direction });
|
|
746
|
-
}
|
|
747
|
-
return linkDetail;
|
|
748
|
-
}
|
|
749
|
-
/**
|
|
750
|
-
* Returns a function that compares two link around a given node
|
|
751
|
-
* The links are analyzed by angle, distance from the node and direction. The sorting attributes are added to the links before sorting.
|
|
752
|
-
*/
|
|
753
|
-
function getLinkComparator() {
|
|
754
|
-
return (link1, link2) => {
|
|
755
|
-
const { angle: linkAngle1, distance: linkDistance1, direction: linkDirection1 } = link1;
|
|
756
|
-
const { angle: linkAngle2, distance: linkDistance2, direction: linkDirection2 } = link2;
|
|
757
|
-
let res = -1;
|
|
758
|
-
if (!_anglesAreEqualWithinTolerance(linkAngle1, linkAngle2) && linkAngle1 > linkAngle2) {
|
|
759
|
-
res = 1;
|
|
760
|
-
}
|
|
761
|
-
else if (_anglesAreEqualWithinTolerance(linkAngle1, linkAngle2)) {
|
|
762
|
-
//check distance and direction
|
|
763
|
-
if (linkDistance1 > linkDistance2) {
|
|
764
|
-
res = 1;
|
|
765
|
-
}
|
|
766
|
-
else if (linkDistance2 == linkDistance1 && linkDirection1 > linkDirection2) {
|
|
767
|
-
//outgoing to ingoing
|
|
768
|
-
res = 1;
|
|
769
|
-
}
|
|
770
|
-
else if (linkDistance2 == linkDistance1 && linkDirection1 == linkDirection2) {
|
|
771
|
-
res = 0;
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
return res;
|
|
775
|
-
};
|
|
776
|
-
}
|
|
777
|
-
/**
|
|
778
|
-
* Returns navigable links for a given node
|
|
779
|
-
*/
|
|
780
|
-
function getNavigableLinksForNodeId(nodeId, listOfLinks) {
|
|
781
|
-
const links = [];
|
|
782
|
-
listOfLinks.forEach((link) => {
|
|
783
|
-
const startId = link.startNode;
|
|
784
|
-
const endId = link.endNode;
|
|
785
|
-
if (startId == nodeId || endId == nodeId)
|
|
786
|
-
links.push(link);
|
|
787
|
-
});
|
|
788
|
-
return links;
|
|
789
|
-
}
|
|
790
|
-
/**
|
|
791
|
-
* Get the clockwise angle for the link given node as a center
|
|
792
|
-
*/
|
|
793
|
-
function _getClockwiseAngle(node, link, nodes, nodeBounds) {
|
|
794
|
-
//find opposite node
|
|
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 oppositeNode = node.id == startNode.id ? endNode : startNode;
|
|
808
|
-
const p1 = _getNodeCenter(node, nodeBounds);
|
|
809
|
-
const p2 = _getNodeCenter(oppositeNode, nodeBounds);
|
|
810
|
-
let angle = Math.atan2(p2.y - p1.y, p2.x - p1.x);
|
|
811
|
-
angle = angle < 0 ? angle + Math.PI * 2 : angle;
|
|
812
|
-
return angle;
|
|
813
|
-
}
|
|
814
|
-
/**
|
|
815
|
-
* Get the distance between start and end nodes for the given link
|
|
816
|
-
*/
|
|
817
|
-
function _getNodesDistance(link, nodes, nodeBounds) {
|
|
818
|
-
let currNode;
|
|
819
|
-
let startNode = nodes[0];
|
|
820
|
-
let endNode = nodes[0];
|
|
821
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
822
|
-
currNode = nodes[i];
|
|
823
|
-
if (currNode.id === link.startNode) {
|
|
824
|
-
startNode = currNode;
|
|
825
|
-
}
|
|
826
|
-
else if (currNode.id === link.endNode) {
|
|
827
|
-
endNode = currNode;
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
const p1 = _getNodeCenter(startNode, nodeBounds);
|
|
831
|
-
const p2 = _getNodeCenter(endNode, nodeBounds);
|
|
832
|
-
return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));
|
|
833
|
-
}
|
|
834
|
-
/**
|
|
835
|
-
* Get link direction for the given node. 1 if the node is the end node
|
|
836
|
-
* and 0 if it is the start node
|
|
837
|
-
*/
|
|
838
|
-
function _getLinkDirection(node, link) {
|
|
839
|
-
if (link.endNode === node.id) {
|
|
840
|
-
return 1;
|
|
841
|
-
}
|
|
842
|
-
return 0;
|
|
843
|
-
}
|
|
844
|
-
/**
|
|
845
|
-
* Get node center
|
|
846
|
-
*/
|
|
847
|
-
function _getNodeCenter(node, nodeBounds) {
|
|
848
|
-
const nodeBB = nodeBounds.get(node.id);
|
|
849
|
-
return { x: nodeBB.x + nodeBB.w / 2, y: nodeBB.y + nodeBB.h / 2 };
|
|
850
|
-
}
|
|
851
|
-
/**
|
|
852
|
-
* Calculates the angle weighted by distance
|
|
853
|
-
*/
|
|
854
|
-
function calcDistanceAngleWeighted(objectBB, currentBB, direction) {
|
|
855
|
-
// Variables used for calculating penalties when calculating distances between two navigables.
|
|
856
|
-
const optimalAngle1 = (15 / 180) * Math.PI;
|
|
857
|
-
const optimalAngle2 = (40 / 180) * Math.PI;
|
|
858
|
-
const suboptimalAnglePenalty1 = 2; // multiplier to the distance
|
|
859
|
-
const suboptimalAnglePenalty2 = 6; // multiplier to the distance
|
|
860
|
-
const objCenterX = objectBB.x + objectBB.w / 2;
|
|
861
|
-
const objCenterY = objectBB.y + objectBB.h / 2;
|
|
862
|
-
const curCenterX = currentBB.x + currentBB.w / 2;
|
|
863
|
-
const curCenterY = currentBB.y + currentBB.h / 2;
|
|
864
|
-
const x_dist = Math.abs(objCenterX - curCenterX);
|
|
865
|
-
const y_dist = Math.abs(objCenterY - curCenterY);
|
|
866
|
-
const angle = Math.atan2(y_dist, x_dist);
|
|
867
|
-
let distance = Math.sqrt(x_dist * x_dist + y_dist * y_dist);
|
|
868
|
-
// Angle penalty based on direction
|
|
869
|
-
if ((angle > optimalAngle1 && (direction == 'right' || direction == 'left')) ||
|
|
870
|
-
(angle < Math.PI / 2 - optimalAngle1 && (direction == 'up' || direction == 'down'))) {
|
|
871
|
-
if ((angle > optimalAngle2 && (direction == 'right' || direction == 'left')) ||
|
|
872
|
-
(angle < Math.PI / 2 - optimalAngle2 && (direction == 'up' || direction == 'down'))) {
|
|
873
|
-
distance *= suboptimalAnglePenalty2;
|
|
874
|
-
}
|
|
875
|
-
else {
|
|
876
|
-
distance *= suboptimalAnglePenalty1;
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
return distance;
|
|
880
|
-
}
|
|
881
|
-
/**
|
|
882
|
-
* Given a direction, is a certain node is a valid destination to navigate to
|
|
883
|
-
*/
|
|
884
|
-
function isValidDestination(objBB, curBB, direction, compareCenters) {
|
|
885
|
-
// compare the centers of the navigable and to be valid, the navigable must be in the right direction
|
|
886
|
-
// without tolerance
|
|
887
|
-
if (compareCenters) {
|
|
888
|
-
const objCenterX = objBB.x + 0.5 * objBB.w;
|
|
889
|
-
const curCenterX = curBB.x + 0.5 * curBB.w;
|
|
890
|
-
const objCenterY = objBB.y + 0.5 * objBB.h;
|
|
891
|
-
const curCenterY = curBB.y + 0.5 * curBB.h;
|
|
892
|
-
switch (direction) {
|
|
893
|
-
case 'up':
|
|
894
|
-
return objCenterY < curCenterY;
|
|
895
|
-
case 'down':
|
|
896
|
-
return objBB.y > curCenterY;
|
|
897
|
-
case 'right':
|
|
898
|
-
return objCenterX > curCenterX;
|
|
899
|
-
case 'left':
|
|
900
|
-
return objCenterX < curCenterX;
|
|
901
|
-
}
|
|
902
|
-
return true;
|
|
903
|
-
}
|
|
904
|
-
switch (direction) {
|
|
905
|
-
case 'up':
|
|
906
|
-
return objBB.y < curBB.y || _areEqualWithinTolerance(objBB.y, curBB.y);
|
|
907
|
-
case 'down':
|
|
908
|
-
return objBB.y > curBB.y || _areEqualWithinTolerance(objBB.y, curBB.y);
|
|
909
|
-
case 'right':
|
|
910
|
-
return objBB.x > curBB.x || _areEqualWithinTolerance(objBB.x, curBB.x);
|
|
911
|
-
case 'left':
|
|
912
|
-
return objBB.x < curBB.x || _areEqualWithinTolerance(objBB.x, curBB.x);
|
|
913
|
-
}
|
|
914
|
-
return true;
|
|
915
|
-
}
|
|
916
|
-
/**
|
|
917
|
-
* Returns true if two nodes are in contact
|
|
918
|
-
*/
|
|
919
|
-
function calcInContact(objRect, curRect, direction) {
|
|
920
|
-
switch (direction) {
|
|
921
|
-
case 'up':
|
|
922
|
-
return (_isVerticallyAligned(objRect, curRect) &&
|
|
923
|
-
(curRect.y <= objRect.y + objRect.h ||
|
|
924
|
-
_areEqualWithinTolerance(curRect.y, objRect.y + objRect.h)));
|
|
925
|
-
case 'down':
|
|
926
|
-
return (_isVerticallyAligned(objRect, curRect) &&
|
|
927
|
-
(objRect.y <= curRect.y + curRect.h ||
|
|
928
|
-
_areEqualWithinTolerance(objRect.y, curRect.y + curRect.h)));
|
|
929
|
-
case 'right':
|
|
930
|
-
return (_isHorizontallyAligned(objRect, curRect) &&
|
|
931
|
-
(objRect.x <= curRect.x + curRect.w ||
|
|
932
|
-
_areEqualWithinTolerance(objRect.x, curRect.x + curRect.w)));
|
|
933
|
-
case 'left':
|
|
934
|
-
return (_isHorizontallyAligned(objRect, curRect) &&
|
|
935
|
-
(curRect.x <= objRect.x + objRect.w ||
|
|
936
|
-
_areEqualWithinTolerance(curRect.x, objRect.x + objRect.w)));
|
|
937
|
-
}
|
|
938
|
-
return false;
|
|
939
|
-
}
|
|
940
|
-
function _isVerticallyAligned(rect1, rect2) {
|
|
941
|
-
return ((rect1.x >= rect2.x && rect1.x <= rect2.x + rect2.w) ||
|
|
942
|
-
(rect2.x >= rect1.x && rect2.x <= rect1.x + rect1.w));
|
|
943
|
-
}
|
|
944
|
-
function _isHorizontallyAligned(rect1, rect2) {
|
|
945
|
-
return ((rect1.y >= rect2.y && rect1.y <= rect2.y + rect2.h) ||
|
|
946
|
-
(rect2.y >= rect1.y && rect2.y <= rect1.y + rect1.h));
|
|
947
|
-
}
|
|
948
|
-
function _areEqualWithinTolerance(a, b) {
|
|
949
|
-
return Math.abs(a - b) <= 0.0000001;
|
|
950
|
-
}
|
|
951
|
-
function _anglesAreEqualWithinTolerance(a1, a2) {
|
|
952
|
-
let res = Math.abs(a1 - a2) <= 0.0000001;
|
|
953
|
-
if (!res) {
|
|
954
|
-
res = Math.abs(Math.PI * 2 + Math.min(a1, a2) - Math.max(a1, a2)) <= 0.0000001;
|
|
955
|
-
}
|
|
956
|
-
return res;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
* @license
|
|
961
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
962
|
-
* The Universal Permissive License (UPL), Version 1.0
|
|
963
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
964
|
-
* @ignore
|
|
965
|
-
*/
|
|
966
|
-
function useDiagramNavigation(nodes, links, bounds, linkIdToDataMap) {
|
|
967
|
-
const currentKeyboardFocusNode = hooks.useRef();
|
|
968
|
-
const nodeBoundsById = createNodeBoundsMap(nodes, bounds);
|
|
969
|
-
function getNextNavigableNode(direction, compareCenters, current, listOfObjects) {
|
|
970
|
-
if (!listOfObjects)
|
|
971
|
-
return current;
|
|
972
|
-
if (!current)
|
|
973
|
-
return listOfObjects[0];
|
|
974
|
-
const currBB = nodeBoundsById.get(current.id);
|
|
975
|
-
if (!currBB)
|
|
976
|
-
return listOfObjects[0];
|
|
977
|
-
let nextObject = current; //init to current object
|
|
978
|
-
let nextDistance = Number.MAX_VALUE;
|
|
979
|
-
// If an object is in contact it overrules all other attributes
|
|
980
|
-
// Only another in contact object with better attributes will have higher precedence
|
|
981
|
-
let nextInContact = false;
|
|
982
|
-
// Whether or not the for loop has encountered the current object
|
|
983
|
-
let hasFoundCurrent = false;
|
|
984
|
-
let object, inContact, distance;
|
|
985
|
-
for (let i = 0; i < listOfObjects.length; i++) {
|
|
986
|
-
object = listOfObjects[i];
|
|
987
|
-
if (object === current) {
|
|
988
|
-
hasFoundCurrent = true;
|
|
989
|
-
continue;
|
|
990
|
-
}
|
|
991
|
-
const objBB = nodeBoundsById.get(object.id);
|
|
992
|
-
if (!objBB)
|
|
993
|
-
continue;
|
|
994
|
-
const objBounds = { x: objBB.x, y: objBB.y, w: objBB.w, h: objBB.h };
|
|
995
|
-
const currBounds = { x: currBB.x, y: currBB.y, w: currBB.w, h: currBB.h };
|
|
996
|
-
if (!isValidDestination(objBounds, currBounds, direction, compareCenters))
|
|
997
|
-
continue;
|
|
998
|
-
inContact = calcInContact(objBounds, currBounds, direction);
|
|
999
|
-
if (nextInContact && !inContact)
|
|
1000
|
-
continue;
|
|
1001
|
-
distance = calcDistanceAngleWeighted(objBounds, currBounds, direction);
|
|
1002
|
-
if (distance == 0 && !hasFoundCurrent)
|
|
1003
|
-
continue;
|
|
1004
|
-
// Make sure incontact flag have highest precedence
|
|
1005
|
-
if ((!nextInContact && inContact) ||
|
|
1006
|
-
(distance < nextDistance && ((nextInContact && inContact) || !nextInContact))) {
|
|
1007
|
-
nextDistance = distance;
|
|
1008
|
-
nextObject = object;
|
|
1009
|
-
nextInContact = inContact;
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
return nextObject;
|
|
1013
|
-
}
|
|
1014
|
-
/**
|
|
1015
|
-
* Get next navigavle link depending on direction - clockwise or conter clockwise.
|
|
1016
|
-
* The decision is made based on location of nodes centers rather than link paths or link angles.
|
|
1017
|
-
*/
|
|
1018
|
-
function getNextNavigableLink(direction, listOfNodes, currentLink, listOfLinks) {
|
|
1019
|
-
if (!listOfLinks)
|
|
1020
|
-
return currentLink;
|
|
1021
|
-
if (!currentLink)
|
|
1022
|
-
return listOfLinks[0];
|
|
1023
|
-
const keyboardFocusNode = currentKeyboardFocusNode.current;
|
|
1024
|
-
const nodeId = keyboardFocusNode ? keyboardFocusNode : currentLink.startNode;
|
|
1025
|
-
const node = getNodeDetailFromInfo({ id: nodeId, isNode: true }, listOfNodes);
|
|
1026
|
-
if (!node)
|
|
1027
|
-
return currentLink;
|
|
1028
|
-
const adjLinks = getNavigableLinksForNodeId(node.id, listOfLinks);
|
|
1029
|
-
listOfLinks = adjLinks;
|
|
1030
|
-
const linksWithSortingAttributes = addSortingAttributes(node, listOfLinks, listOfNodes, nodeBoundsById);
|
|
1031
|
-
linksWithSortingAttributes.sort(getLinkComparator());
|
|
1032
|
-
//clockwise direction
|
|
1033
|
-
const bForward = direction == 'down' ? true : false;
|
|
1034
|
-
let index = 0;
|
|
1035
|
-
for (let i = 0; i < linksWithSortingAttributes.length; i++) {
|
|
1036
|
-
const link = linksWithSortingAttributes[i];
|
|
1037
|
-
if (link.id === currentLink.id) {
|
|
1038
|
-
if (bForward)
|
|
1039
|
-
index = i == linksWithSortingAttributes.length - 1 ? 0 : i + 1;
|
|
1040
|
-
else
|
|
1041
|
-
index = i == 0 ? linksWithSortingAttributes.length - 1 : i - 1;
|
|
1042
|
-
break;
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
return linksWithSortingAttributes[index];
|
|
1046
|
-
}
|
|
1047
|
-
/**
|
|
1048
|
-
* Returns the link detail when a node to link navigation occurs
|
|
1049
|
-
*/
|
|
1050
|
-
function navigateFromNodeToLink(listOfLinks, event, node) {
|
|
1051
|
-
if (!node)
|
|
1052
|
-
return undefined;
|
|
1053
|
-
const adjLinks = getNavigableLinksForNodeId(node.id, listOfLinks);
|
|
1054
|
-
if (adjLinks.length < 1)
|
|
1055
|
-
return undefined;
|
|
1056
|
-
let link = adjLinks[0];
|
|
1057
|
-
const nodeBB = nodeBoundsById.get(node.id);
|
|
1058
|
-
let object, currNode, currNodeBB, currNodeBBCenterX;
|
|
1059
|
-
const nodeCenterX = nodeBB.x + nodeBB.w / 2;
|
|
1060
|
-
currentKeyboardFocusNode.current = node.id;
|
|
1061
|
-
for (let i = 0; i < adjLinks.length; i++) {
|
|
1062
|
-
object = adjLinks[i];
|
|
1063
|
-
currNode = object.startNode === node.id ? object.endNode : object.startNode;
|
|
1064
|
-
currNodeBB = nodeBoundsById.get(currNode);
|
|
1065
|
-
currNodeBBCenterX = currNodeBB.x + currNodeBB.w / 2;
|
|
1066
|
-
if (
|
|
1067
|
-
// equivalent of ≤ and ≥
|
|
1068
|
-
(event.altKey && event.code === 'Comma' && currNodeBBCenterX <= nodeCenterX) ||
|
|
1069
|
-
(event.altKey && event.code === 'Period' && currNodeBBCenterX >= nodeCenterX)) {
|
|
1070
|
-
link = object;
|
|
1071
|
-
break;
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
return { id: link.id, isNode: false };
|
|
1075
|
-
}
|
|
1076
|
-
/**
|
|
1077
|
-
* Returns the node detail when a link to node navigation occurs
|
|
1078
|
-
*/
|
|
1079
|
-
function navigateFromLinkToNode(linkId, event) {
|
|
1080
|
-
const key = event.key;
|
|
1081
|
-
const linkData = linkIdToDataMap.get(linkId);
|
|
1082
|
-
const startNodeBB = nodeBoundsById.get(linkData.startNode);
|
|
1083
|
-
const endNodeBB = nodeBoundsById.get(linkData.endNode);
|
|
1084
|
-
if (!startNodeBB || !endNodeBB)
|
|
1085
|
-
return undefined;
|
|
1086
|
-
const startNodeCenterX = startNodeBB.x + startNodeBB.w / 2;
|
|
1087
|
-
const endNodeCenterX = endNodeBB.x + endNodeBB.w / 2;
|
|
1088
|
-
const newNode = (endNodeCenterX > startNodeCenterX && key === 'ArrowRight') ||
|
|
1089
|
-
(endNodeCenterX < startNodeCenterX && key === 'ArrowLeft')
|
|
1090
|
-
? linkData.endNode
|
|
1091
|
-
: linkData.startNode;
|
|
1092
|
-
return { id: newNode, isNode: true };
|
|
1093
|
-
}
|
|
1094
|
-
return {
|
|
1095
|
-
isNode: (itemInfo) => {
|
|
1096
|
-
let node, link;
|
|
1097
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
1098
|
-
node = nodes[i];
|
|
1099
|
-
link = links[i];
|
|
1100
|
-
if (itemInfo.id === node.id) {
|
|
1101
|
-
return true;
|
|
1102
|
-
}
|
|
1103
|
-
if (itemInfo.id === link.id) {
|
|
1104
|
-
return true;
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
return false;
|
|
1108
|
-
},
|
|
1109
|
-
getNextNavigableNode,
|
|
1110
|
-
getNextNavigableLink,
|
|
1111
|
-
navigateFromNodeToLink,
|
|
1112
|
-
navigateFromLinkToNode
|
|
1113
|
-
};
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
const DEFAULT_KB_PAN = 15;
|
|
1117
|
-
const DEFAULT_KB_ZOOM = 0.15;
|
|
1118
|
-
function useEvents(touchResponse, initNode, nodes, links, nodeBounds, linkIdToDataMap, nodeIdToDataMap, nodeIdToIndexMap, width, height, maxZoom, onItemHover, onItemFocus, kbPanCallback, kbZoomCallback) {
|
|
1119
|
-
const { getNextNavigableNode, getNextNavigableLink, navigateFromNodeToLink, navigateFromLinkToNode } = useDiagramNavigation(nodes, links, nodeBounds, linkIdToDataMap);
|
|
1120
|
-
const [focusedItemInfo, setfocusedItemInfo] = hooks.useState({
|
|
1121
|
-
id: initNode.id,
|
|
1122
|
-
isNode: true
|
|
1123
|
-
});
|
|
1124
|
-
const [hoveredItemInfo, sethoveredItemInfo] = hooks.useState();
|
|
1125
|
-
const activeId = hooks.useRef();
|
|
1126
|
-
const cancelEvent = (event) => {
|
|
1127
|
-
event.preventDefault();
|
|
1128
|
-
event.stopPropagation();
|
|
1129
|
-
};
|
|
1130
|
-
const keyDownHandler = (event) => {
|
|
1131
|
-
const key = event.key;
|
|
1132
|
-
let eventConsumed = false;
|
|
1133
|
-
// tabbing out of the diagram
|
|
1134
|
-
if (key === 'TAB') {
|
|
1135
|
-
return;
|
|
1136
|
-
}
|
|
1137
|
-
// if this a switch from node to link or vice versa
|
|
1138
|
-
if (isChangeItemType(event)) {
|
|
1139
|
-
const nextItemInfo = focusedItemInfo.isNode
|
|
1140
|
-
? navigateFromNodeToLink(links, event, getNodeDetailFromInfo(focusedItemInfo, nodes))
|
|
1141
|
-
: navigateFromLinkToNode(focusedItemInfo.id, event);
|
|
1142
|
-
handleKeyboardInput(nextItemInfo);
|
|
1143
|
-
eventConsumed = true;
|
|
1144
|
-
}
|
|
1145
|
-
else if (isNavigationEvent(key)) {
|
|
1146
|
-
const nextItemInfo = handleKeyboardNavigationEvent(key);
|
|
1147
|
-
handleKeyboardInput(nextItemInfo);
|
|
1148
|
-
eventConsumed = true;
|
|
1149
|
-
}
|
|
1150
|
-
else {
|
|
1151
|
-
switch (key) {
|
|
1152
|
-
case 'PageUp': {
|
|
1153
|
-
kbPanCallback &&
|
|
1154
|
-
kbPanCallback({
|
|
1155
|
-
dPan: {
|
|
1156
|
-
dx: event.shiftKey ? -DEFAULT_KB_PAN : 0,
|
|
1157
|
-
dy: event.shiftKey ? 0 : -DEFAULT_KB_PAN
|
|
1158
|
-
}
|
|
1159
|
-
});
|
|
1160
|
-
eventConsumed = true;
|
|
1161
|
-
break;
|
|
1162
|
-
}
|
|
1163
|
-
case 'PageDown': {
|
|
1164
|
-
kbPanCallback &&
|
|
1165
|
-
kbPanCallback({
|
|
1166
|
-
dPan: {
|
|
1167
|
-
dx: event.shiftKey ? DEFAULT_KB_PAN : 0,
|
|
1168
|
-
dy: event.shiftKey ? 0 : DEFAULT_KB_PAN
|
|
1169
|
-
}
|
|
1170
|
-
});
|
|
1171
|
-
eventConsumed = true;
|
|
1172
|
-
eventConsumed = true;
|
|
1173
|
-
break;
|
|
1174
|
-
}
|
|
1175
|
-
case '+':
|
|
1176
|
-
case '=': {
|
|
1177
|
-
kbZoomCallback && kbZoomCallback({ dZoom: DEFAULT_KB_ZOOM });
|
|
1178
|
-
eventConsumed = true;
|
|
1179
|
-
break;
|
|
1180
|
-
}
|
|
1181
|
-
case '-':
|
|
1182
|
-
case '_': {
|
|
1183
|
-
kbZoomCallback && kbZoomCallback({ dZoom: -DEFAULT_KB_ZOOM });
|
|
1184
|
-
eventConsumed = true;
|
|
1185
|
-
break;
|
|
1186
|
-
}
|
|
1187
|
-
case '0': {
|
|
1188
|
-
if (event.ctrlKey && event.altKey) {
|
|
1189
|
-
const { centerX, centerY, zoom } = zoomAndCenterItemFromInfo(focusedItemInfo, linkIdToDataMap, nodeBounds, nodeIdToIndexMap, width, height, maxZoom);
|
|
1190
|
-
kbZoomCallback && kbZoomCallback({ nZoom: zoom });
|
|
1191
|
-
kbPanCallback && kbPanCallback({ nPan: { cx: centerX, cy: centerY } });
|
|
1192
|
-
}
|
|
1193
|
-
else {
|
|
1194
|
-
// zoom to fit
|
|
1195
|
-
kbZoomCallback && kbZoomCallback({});
|
|
1196
|
-
kbPanCallback && kbPanCallback({ center: true });
|
|
1197
|
-
}
|
|
1198
|
-
eventConsumed = true;
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
if (eventConsumed) {
|
|
1203
|
-
cancelEvent(event);
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
|
-
const keyUpHandler = (event) => {
|
|
1207
|
-
const key = event.code;
|
|
1208
|
-
switch (key) {
|
|
1209
|
-
case 'Tab': {
|
|
1210
|
-
updatefocusedItemInfo({
|
|
1211
|
-
...focusedItemInfo,
|
|
1212
|
-
isCurrent: true,
|
|
1213
|
-
isFocusVisible: true
|
|
1214
|
-
});
|
|
1215
|
-
break;
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
|
-
const blurHandler = () => {
|
|
1220
|
-
if (hoveredItemInfo != null || focusedItemInfo.isCurrent) {
|
|
1221
|
-
onItemFocus?.({ id: undefined, data: undefined });
|
|
1222
|
-
}
|
|
1223
|
-
const itemInfo = { ...focusedItemInfo, isCurrent: false, isFocusVisible: false };
|
|
1224
|
-
setfocusedItemInfo(itemInfo);
|
|
1225
|
-
};
|
|
1226
|
-
const onHover = (event) => {
|
|
1227
|
-
const itemInfo = getNavigableInfo(event.target);
|
|
1228
|
-
if (itemInfo && !isEqualItem(itemInfo, hoveredItemInfo)) {
|
|
1229
|
-
sethoveredItemInfo({ ...itemInfo, isCurrent: true });
|
|
1230
|
-
activeId.current = layoutUtils.getRandomId();
|
|
1231
|
-
setfocusedItemInfo({ ...focusedItemInfo, isCurrent: false });
|
|
1232
|
-
if (itemInfo.isNode) {
|
|
1233
|
-
onItemHover?.({
|
|
1234
|
-
id: itemInfo.id,
|
|
1235
|
-
type: 'node',
|
|
1236
|
-
data: nodeIdToDataMap.get(itemInfo.id)
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
else {
|
|
1240
|
-
onItemHover?.({
|
|
1241
|
-
id: itemInfo.id,
|
|
1242
|
-
type: 'link',
|
|
1243
|
-
data: linkIdToDataMap.get(itemInfo.id)
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
};
|
|
1248
|
-
const onHoverLeave = () => {
|
|
1249
|
-
sethoveredItemInfo(undefined);
|
|
1250
|
-
activeId.current = undefined;
|
|
1251
|
-
onItemHover?.({ id: undefined, data: undefined });
|
|
1252
|
-
};
|
|
1253
|
-
const hoverHandlers = useVisHover.useVisHover(onHover, undefined, onHoverLeave, touchResponse);
|
|
1254
|
-
const pointerUpHandler = (event) => {
|
|
1255
|
-
const itemInfo = getNavigableInfo(event.target);
|
|
1256
|
-
if (itemInfo.id != null) {
|
|
1257
|
-
setfocusedItemInfo(itemInfo);
|
|
1258
|
-
activeId.current = layoutUtils.getRandomId();
|
|
1259
|
-
}
|
|
1260
|
-
};
|
|
1261
|
-
function updatefocusedItemInfo(itemInfo) {
|
|
1262
|
-
if (itemInfo.isNode) {
|
|
1263
|
-
onItemFocus?.({
|
|
1264
|
-
id: itemInfo.id,
|
|
1265
|
-
type: 'node',
|
|
1266
|
-
data: nodeIdToDataMap.get(itemInfo.id)
|
|
1267
|
-
});
|
|
1268
|
-
}
|
|
1269
|
-
else {
|
|
1270
|
-
onItemFocus?.({
|
|
1271
|
-
id: itemInfo.id,
|
|
1272
|
-
type: 'link',
|
|
1273
|
-
data: linkIdToDataMap.get(itemInfo.id)
|
|
1274
|
-
});
|
|
1275
|
-
}
|
|
1276
|
-
activeId.current = layoutUtils.getRandomId();
|
|
1277
|
-
setfocusedItemInfo(itemInfo);
|
|
1278
|
-
}
|
|
1279
|
-
function handleKeyboardInput(item) {
|
|
1280
|
-
if (!item)
|
|
1281
|
-
return;
|
|
1282
|
-
if (!isEqualItem(item, focusedItemInfo)) {
|
|
1283
|
-
item.isCurrent = true;
|
|
1284
|
-
item.isFocusVisible = true;
|
|
1285
|
-
if (hoveredItemInfo) {
|
|
1286
|
-
sethoveredItemInfo({ ...hoveredItemInfo, isCurrent: false });
|
|
1287
|
-
}
|
|
1288
|
-
updatefocusedItemInfo(item);
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
function isNavigationEvent(key) {
|
|
1292
|
-
switch (key) {
|
|
1293
|
-
case 'ArrowDown':
|
|
1294
|
-
case 'ArrowUp':
|
|
1295
|
-
case 'ArrowRight':
|
|
1296
|
-
case 'ArrowLeft': {
|
|
1297
|
-
return true;
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
return false;
|
|
1301
|
-
}
|
|
1302
|
-
function isChangeItemType(event) {
|
|
1303
|
-
const key = event.code;
|
|
1304
|
-
// check if switching from node to link
|
|
1305
|
-
// equivalent of ≤ and ≥
|
|
1306
|
-
if (focusedItemInfo.isNode && event.altKey && (key === 'Period' || key === 'Comma')) {
|
|
1307
|
-
return true;
|
|
1308
|
-
// check if switching from link to node
|
|
1309
|
-
}
|
|
1310
|
-
else if (!focusedItemInfo.isNode && (key === 'ArrowLeft' || key === 'ArrowRight')) {
|
|
1311
|
-
return true;
|
|
1312
|
-
}
|
|
1313
|
-
return false;
|
|
1314
|
-
}
|
|
1315
|
-
function handleKeyboardNavigationEvent(key) {
|
|
1316
|
-
let direction = 'down';
|
|
1317
|
-
switch (key) {
|
|
1318
|
-
case 'ArrowDown': {
|
|
1319
|
-
direction = 'down';
|
|
1320
|
-
break;
|
|
1321
|
-
}
|
|
1322
|
-
case 'ArrowUp': {
|
|
1323
|
-
direction = 'up';
|
|
1324
|
-
break;
|
|
1325
|
-
}
|
|
1326
|
-
case 'ArrowRight': {
|
|
1327
|
-
direction = 'right';
|
|
1328
|
-
break;
|
|
1329
|
-
}
|
|
1330
|
-
case 'ArrowLeft': {
|
|
1331
|
-
direction = 'left';
|
|
1332
|
-
break;
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
if (focusedItemInfo.isNode) {
|
|
1336
|
-
const itemDetail = getNextNavigableNode(direction, true, getNodeDetailFromInfo(focusedItemInfo, nodes), nodes);
|
|
1337
|
-
return itemDetail ? { id: itemDetail.id, isNode: true } : focusedItemInfo;
|
|
1338
|
-
}
|
|
1339
|
-
else {
|
|
1340
|
-
const linkDetail = getLinkDetailFromInfo(focusedItemInfo, links);
|
|
1341
|
-
const itemDetail = getNextNavigableLink(direction, nodes, linkDetail, links);
|
|
1342
|
-
return itemDetail ? { id: itemDetail.id } : { id: focusedItemInfo.id };
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
return {
|
|
1346
|
-
focusedItemInfo,
|
|
1347
|
-
hoveredItemInfo,
|
|
1348
|
-
activeId: activeId.current,
|
|
1349
|
-
eventsProps: mergeProps.mergeProps(hoverHandlers, {
|
|
1350
|
-
onKeyUp: keyUpHandler,
|
|
1351
|
-
onKeyDown: keyDownHandler,
|
|
1352
|
-
onBlur: blurHandler,
|
|
1353
|
-
onPointerUp: pointerUpHandler
|
|
1354
|
-
})
|
|
1355
|
-
};
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
/**
|
|
1359
|
-
* Returns the datatip.
|
|
1360
|
-
* @param text The text string for the diagram item.
|
|
1361
|
-
* @param rootRef The ref for root of the diagram.
|
|
1362
|
-
* @param focusedItemBoundsRef The ref for focused item bounds.
|
|
1363
|
-
* @param focusedItemInfo The ItemInfo for focused item.
|
|
1364
|
-
* @returns
|
|
1365
|
-
*/
|
|
1366
|
-
const useDiagramDatatip = ({ touchResponse, datatip, focusedItemBoundsRef, focusedItemInfo, panState, zoom, width, nodesMap, linksMap, hoveredItem }) => {
|
|
1367
|
-
const { direction } = useUser.useUser();
|
|
1368
|
-
const isRtl = direction === 'rtl';
|
|
1369
|
-
const datatipC = getDatatipContent(nodesMap, linksMap, focusedItemInfo, hoveredItem, datatip);
|
|
1370
|
-
const elementBounds = focusedItemBoundsRef.current
|
|
1371
|
-
? {
|
|
1372
|
-
x: focusedItemBoundsRef.current.x * zoom + panState.panX,
|
|
1373
|
-
y: focusedItemBoundsRef.current.y * zoom + panState.panY,
|
|
1374
|
-
width: focusedItemBoundsRef.current.w * zoom,
|
|
1375
|
-
height: focusedItemBoundsRef.current.h * zoom
|
|
1376
|
-
}
|
|
1377
|
-
: undefined;
|
|
1378
|
-
const offset = focusedItemInfo.isCurrent
|
|
1379
|
-
? layoutUtils.calculateOffset(isRtl, width, elementBounds)
|
|
1380
|
-
: layoutUtils.calculateOffset(isRtl, width);
|
|
1381
|
-
const { datatipContent, datatipProps } = useDatatip.useDatatip({
|
|
1382
|
-
content: datatipC?.content,
|
|
1383
|
-
borderColor: datatipC?.borderColor,
|
|
1384
|
-
placement: 'top-start',
|
|
1385
|
-
offset,
|
|
1386
|
-
anchor: focusedItemInfo?.isCurrent ? 'element' : 'pointer',
|
|
1387
|
-
touchResponse
|
|
1388
|
-
});
|
|
1389
|
-
return { datatipContent: datatipContent, datatipProps: datatipProps };
|
|
1390
|
-
};
|
|
1391
|
-
|
|
1392
|
-
const usePointerGesture = ({ captureTargetRef, numPointers = 1, onPointerGestureDown, onPointerGestureMove, onPointerGestureEnd, onExtraneousPointerDown, isDisabled = false }) => {
|
|
1393
|
-
const activePointers = hooks.useRef([]);
|
|
1394
|
-
if (isDisabled) {
|
|
1395
|
-
activePointers.current = [];
|
|
1396
|
-
}
|
|
1397
|
-
const onPointerDown = (e) => {
|
|
1398
|
-
activePointers.current.push(e);
|
|
1399
|
-
if (activePointers.current.length === numPointers) {
|
|
1400
|
-
onPointerGestureDown && onPointerGestureDown({ pointers: activePointers.current });
|
|
1401
|
-
}
|
|
1402
|
-
else if (activePointers.current.length > numPointers) {
|
|
1403
|
-
onExtraneousPointerDown && onExtraneousPointerDown({ pointers: activePointers.current });
|
|
1404
|
-
}
|
|
1405
|
-
};
|
|
1406
|
-
const onPointerMove = (e) => {
|
|
1407
|
-
if (activePointers.current.length === 0)
|
|
1408
|
-
return;
|
|
1409
|
-
const index = activePointers.current.findIndex((pointerEvent) => pointerEvent.pointerId === e.pointerId);
|
|
1410
|
-
if (index === -1)
|
|
1411
|
-
return;
|
|
1412
|
-
activePointers.current[index] = e;
|
|
1413
|
-
if (activePointers.current.length === numPointers) {
|
|
1414
|
-
activePointers.current.forEach((e) => captureTargetRef.current.setPointerCapture(e.pointerId));
|
|
1415
|
-
onPointerGestureMove && onPointerGestureMove({ pointers: activePointers.current });
|
|
1416
|
-
}
|
|
1417
|
-
};
|
|
1418
|
-
const onPointerUp = (e) => {
|
|
1419
|
-
const index = activePointers.current.findIndex((pointerEvent) => pointerEvent.pointerId === e.pointerId);
|
|
1420
|
-
if (index === -1)
|
|
1421
|
-
return;
|
|
1422
|
-
activePointers.current[index] = e;
|
|
1423
|
-
if (activePointers.current.length === numPointers) {
|
|
1424
|
-
onPointerGestureEnd && onPointerGestureEnd({ pointers: activePointers.current });
|
|
1425
|
-
}
|
|
1426
|
-
activePointers.current.splice(index, 1);
|
|
1427
|
-
};
|
|
1428
|
-
const onPointerCancel = onPointerUp;
|
|
1429
|
-
const onPointerLeave = onPointerUp;
|
|
1430
|
-
return isDisabled
|
|
1431
|
-
? {}
|
|
1432
|
-
: {
|
|
1433
|
-
onPointerDown,
|
|
1434
|
-
onPointerMove,
|
|
1435
|
-
onPointerUp,
|
|
1436
|
-
onPointerCancel,
|
|
1437
|
-
onPointerLeave
|
|
1438
|
-
};
|
|
1439
|
-
};
|
|
1440
|
-
|
|
1441
|
-
/**
|
|
1442
|
-
* Whether point with coordinates are in the draggable region
|
|
1443
|
-
*/
|
|
1444
|
-
const inDraggableRegion = (x, y, region) => {
|
|
1445
|
-
if (!region)
|
|
1446
|
-
return true;
|
|
1447
|
-
const { xMin, xMax, yMin, yMax } = region;
|
|
1448
|
-
return x >= xMin && x <= xMax && y >= yMin && y <= yMax;
|
|
1449
|
-
};
|
|
1450
|
-
/**
|
|
1451
|
-
* Returns region offset
|
|
1452
|
-
*/
|
|
1453
|
-
const getRegionOffset = (x, y, region) => {
|
|
1454
|
-
if (!region)
|
|
1455
|
-
return { regionOffsetX: x, regionOffsetY: y };
|
|
1456
|
-
return { regionOffsetX: x - region.xMin, regionOffsetY: y - region.yMin };
|
|
1457
|
-
};
|
|
1458
|
-
const useDrag = ({ captureTargetRef, draggableRegion, onDragStart, onDragMove, onDragEnd, isDisabled = false }) => {
|
|
1459
|
-
const inactiveState = { isDragging: false, x0: -1, y0: -1, regionOffsetX: -1, regionOffsetY: -1 };
|
|
1460
|
-
const dragState = hooks.useRef(inactiveState);
|
|
1461
|
-
const handlePointerEvent = (e, cb) => {
|
|
1462
|
-
const { isDragging, x0, y0, regionOffsetX, regionOffsetY } = dragState.current;
|
|
1463
|
-
if (!isDragging)
|
|
1464
|
-
return;
|
|
1465
|
-
const x = e.pageX;
|
|
1466
|
-
const y = e.pageY;
|
|
1467
|
-
cb && cb({ x, y, dx: x - x0, dy: y - y0, regionOffsetX, regionOffsetY, originalEvent: e });
|
|
1468
|
-
};
|
|
1469
|
-
const dragProps = usePointerGesture({
|
|
1470
|
-
captureTargetRef,
|
|
1471
|
-
numPointers: 1, // Only allow 1 pointer dragging
|
|
1472
|
-
onExtraneousPointerDown: () => {
|
|
1473
|
-
dragState.current = inactiveState;
|
|
1474
|
-
},
|
|
1475
|
-
onPointerGestureDown: ({ pointers: [e] }) => {
|
|
1476
|
-
const x = e.pageX;
|
|
1477
|
-
const y = e.pageY;
|
|
1478
|
-
if (e.button !== 0 || !inDraggableRegion(x, y, draggableRegion))
|
|
1479
|
-
return;
|
|
1480
|
-
const { regionOffsetX, regionOffsetY } = getRegionOffset(x, y, draggableRegion);
|
|
1481
|
-
dragState.current = { isDragging: true, x0: x, y0: y, regionOffsetX, regionOffsetY };
|
|
1482
|
-
onDragStart && onDragStart({ x, y, regionOffsetX, regionOffsetY, originalEvent: e });
|
|
1483
|
-
},
|
|
1484
|
-
onPointerGestureMove: ({ pointers: [e] }) => {
|
|
1485
|
-
handlePointerEvent(e, onDragMove);
|
|
1486
|
-
},
|
|
1487
|
-
onPointerGestureEnd: ({ pointers: [e] }) => {
|
|
1488
|
-
handlePointerEvent(e, onDragEnd);
|
|
1489
|
-
dragState.current = inactiveState;
|
|
1490
|
-
}
|
|
1491
|
-
});
|
|
1492
|
-
return isDisabled ? {} : dragProps;
|
|
1493
|
-
};
|
|
1494
|
-
|
|
1495
|
-
const constrainPan = (previousPan, nextPan, panBounds, panDirection) => {
|
|
1496
|
-
const panX = panDirection !== 'y' ? nextPan.panX : previousPan.panX;
|
|
1497
|
-
const panY = panDirection !== 'x' ? nextPan.panY : previousPan.panY;
|
|
1498
|
-
return {
|
|
1499
|
-
panX: panX > panBounds.maxX ? panBounds.maxX : panX < panBounds.minX ? panBounds.minX : panX,
|
|
1500
|
-
panY: panY > panBounds.maxY ? panBounds.maxY : panY < panBounds.minY ? panBounds.minY : panY
|
|
1501
|
-
};
|
|
1502
|
-
};
|
|
1503
|
-
const pan = (previousPan, nextPan, panDirection, zoom, width, height, panBounds, onPanChange) => {
|
|
1504
|
-
if (!panBounds) {
|
|
1505
|
-
//On initial render before nodes are rendered
|
|
1506
|
-
return { newPan: { panX: 0, panY: 0 } };
|
|
1507
|
-
}
|
|
1508
|
-
const newPan = constrainPan(previousPan, nextPan, panBounds, panDirection);
|
|
1509
|
-
const isPanChanged = newPan.panX !== previousPan.panX || newPan.panY !== previousPan.panY;
|
|
1510
|
-
const center = panXYToCenterXY(newPan.panX, newPan.panY, zoom, width, height);
|
|
1511
|
-
isPanChanged &&
|
|
1512
|
-
onPanChange &&
|
|
1513
|
-
onPanChange({
|
|
1514
|
-
centerX: center.centerX,
|
|
1515
|
-
centerY: center.centerY
|
|
1516
|
-
});
|
|
1517
|
-
return { newPan };
|
|
1518
|
-
};
|
|
1519
|
-
const getPanBounds = (width, height, elemBounds, zoom, minZoom, initPanZoomState, panType) => {
|
|
1520
|
-
const { x, y, w, h } = elemBounds;
|
|
1521
|
-
let minX, maxX, minY, maxY;
|
|
1522
|
-
if (panType === 'centerContent') {
|
|
1523
|
-
minX = width / 2 - (w + x) * zoom;
|
|
1524
|
-
minY = height / 2 - (h + y) * zoom;
|
|
1525
|
-
maxX = width / 2 - x * zoom;
|
|
1526
|
-
maxY = height / 2 - y * zoom;
|
|
1527
|
-
}
|
|
1528
|
-
else {
|
|
1529
|
-
// panType equals fixed
|
|
1530
|
-
const zoomRatio = zoom / minZoom;
|
|
1531
|
-
// Find left corner of the content at min zoom and content is centered
|
|
1532
|
-
const minZoomX = (width - w * minZoom) / 2 - x * minZoom;
|
|
1533
|
-
const minZoomY = (height - h * minZoom) / 2 - y * minZoom;
|
|
1534
|
-
// When we pan all the way to the right, the left corner of displayable area is 0,0 as in min zoom.
|
|
1535
|
-
// When we pan all the way to the left, lets find the corner of the displayable area
|
|
1536
|
-
const leftCornerX = width - width * zoomRatio;
|
|
1537
|
-
const leftCornerY = height - height * zoomRatio;
|
|
1538
|
-
// Now we have everything to calculate pan zoom constraints
|
|
1539
|
-
minX = leftCornerX + minZoomX * zoomRatio;
|
|
1540
|
-
minY = leftCornerY + minZoomY * zoomRatio;
|
|
1541
|
-
maxX = minZoomX * zoomRatio;
|
|
1542
|
-
maxY = minZoomY * zoomRatio;
|
|
1543
|
-
}
|
|
1544
|
-
const initZoom = initPanZoomState.zoom;
|
|
1545
|
-
const initCenterX = initPanZoomState.centerX;
|
|
1546
|
-
const initCenterY = initPanZoomState.centerY;
|
|
1547
|
-
// If an initial panZoomState is set, should expand pan bounds to include it
|
|
1548
|
-
let dx, dy;
|
|
1549
|
-
if (initCenterX) {
|
|
1550
|
-
const boundsX = initCenterX * initZoom - width / 2;
|
|
1551
|
-
if (-boundsX * initZoom < minX) {
|
|
1552
|
-
dx = minX - boundsX * initZoom;
|
|
1553
|
-
minX -= dx;
|
|
1554
|
-
maxX += dx;
|
|
1555
|
-
}
|
|
1556
|
-
else if (-boundsX * initZoom > maxX) {
|
|
1557
|
-
dx = -boundsX * initZoom - maxX;
|
|
1558
|
-
minX -= dx;
|
|
1559
|
-
maxX += dx;
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
if (initCenterY) {
|
|
1563
|
-
const boundsY = initCenterY * initZoom - height / 2;
|
|
1564
|
-
if (-boundsY * initZoom < minY) {
|
|
1565
|
-
dy = minY - boundsY * initZoom;
|
|
1566
|
-
minY -= dy;
|
|
1567
|
-
maxY += dy;
|
|
1568
|
-
}
|
|
1569
|
-
else if (-boundsY * initZoom > maxY) {
|
|
1570
|
-
dy = -boundsY * initZoom - maxY;
|
|
1571
|
-
minY -= dy;
|
|
1572
|
-
maxY += dy;
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
return {
|
|
1576
|
-
minX: minX,
|
|
1577
|
-
maxX: maxX,
|
|
1578
|
-
minY: minY,
|
|
1579
|
-
maxY: maxY
|
|
1580
|
-
};
|
|
1581
|
-
};
|
|
1582
|
-
|
|
1583
|
-
const useDragPan = ({ panProps, captureTargetRef, panBounds, width, height, zoom, onDragPanStart, onDragPanEnd }) => {
|
|
1584
|
-
const prevPanState = hooks.useRef({ panX: 0, panY: 0 });
|
|
1585
|
-
const initialPanState = hooks.useRef({ panX: 0, panY: 0 });
|
|
1586
|
-
const dragProps = useDrag({
|
|
1587
|
-
captureTargetRef,
|
|
1588
|
-
onDragStart: () => {
|
|
1589
|
-
const panValues = centerXYToPanXY(panProps.centerX, panProps.centerY, zoom, width, height);
|
|
1590
|
-
initialPanState.current = {
|
|
1591
|
-
panX: panValues.panX,
|
|
1592
|
-
panY: panValues.panY
|
|
1593
|
-
};
|
|
1594
|
-
onDragPanStart && onDragPanStart();
|
|
1595
|
-
},
|
|
1596
|
-
onDragMove: ({ dx, dy }) => {
|
|
1597
|
-
const nextPan = {
|
|
1598
|
-
panX: initialPanState.current.panX + dx,
|
|
1599
|
-
panY: initialPanState.current.panY + dy
|
|
1600
|
-
};
|
|
1601
|
-
const { newPan } = pan(prevPanState.current, nextPan, panProps.panDirection, zoom, width, height, panBounds, panProps.onPan);
|
|
1602
|
-
prevPanState.current = newPan;
|
|
1603
|
-
},
|
|
1604
|
-
onDragEnd: ({ originalEvent }) => {
|
|
1605
|
-
// If panning occurred, call preventDefault to prevent selection from occurring
|
|
1606
|
-
if (initialPanState.current.panX !== prevPanState.current.panX ||
|
|
1607
|
-
initialPanState.current.panY !== prevPanState.current.panY)
|
|
1608
|
-
originalEvent.preventDefault();
|
|
1609
|
-
onDragPanEnd && onDragPanEnd();
|
|
1610
|
-
},
|
|
1611
|
-
isDisabled: panProps.panning === 'off'
|
|
1612
|
-
});
|
|
1613
|
-
return dragProps;
|
|
1614
|
-
};
|
|
1615
|
-
|
|
1616
|
-
const PX_FACTOR_PER_LINE = 15; // Value used in Toolkit
|
|
1617
|
-
const PX_FACTOR_PER_PAGE = 40; // Value copied from datagrid; this is not handled in Toolkit
|
|
1618
|
-
const getNormalizedDelta = (e) => {
|
|
1619
|
-
const { deltaX, deltaY, deltaMode } = e;
|
|
1620
|
-
switch (deltaMode) {
|
|
1621
|
-
case e.DOM_DELTA_PIXEL:
|
|
1622
|
-
return { deltaX: -deltaX, deltaY: -deltaY };
|
|
1623
|
-
case e.DOM_DELTA_LINE:
|
|
1624
|
-
return { deltaX: -deltaX * PX_FACTOR_PER_LINE, deltaY: -deltaY * PX_FACTOR_PER_LINE };
|
|
1625
|
-
case e.DOM_DELTA_PAGE:
|
|
1626
|
-
return { deltaX: -deltaX * PX_FACTOR_PER_PAGE, deltaY: -deltaY * PX_FACTOR_PER_PAGE };
|
|
1627
|
-
default:
|
|
1628
|
-
return { deltaX: -deltaX, deltaY: -deltaY };
|
|
1629
|
-
}
|
|
1630
|
-
};
|
|
1631
|
-
const useWheel = ({ onWheel: onWheelCallback, preventDefault = true, isDisabled = false }) => {
|
|
1632
|
-
const onWheel = (e) => {
|
|
1633
|
-
const { deltaX, deltaY } = getNormalizedDelta(e);
|
|
1634
|
-
if (preventDefault)
|
|
1635
|
-
e.preventDefault();
|
|
1636
|
-
onWheelCallback({
|
|
1637
|
-
x: e.offsetX,
|
|
1638
|
-
y: e.offsetY,
|
|
1639
|
-
deltaX,
|
|
1640
|
-
deltaY,
|
|
1641
|
-
ctrlKey: e.ctrlKey || e.metaKey
|
|
1642
|
-
});
|
|
1643
|
-
};
|
|
1644
|
-
return isDisabled ? {} : { onWheel };
|
|
1645
|
-
};
|
|
1646
|
-
|
|
1647
|
-
/**
|
|
1648
|
-
* @license
|
|
1649
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1650
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1651
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1652
|
-
* @ignore
|
|
1653
|
-
*/
|
|
1654
|
-
const ZOOM_INCREMENT = 0.05;
|
|
1655
|
-
const zoom = (nextZoom, zoom, minZoom, maxZoom, onZoomChange) => {
|
|
1656
|
-
const newZoom = nextZoom > maxZoom || nextZoom < minZoom ? zoom : nextZoom;
|
|
1657
|
-
const isZoomChanged = newZoom !== zoom;
|
|
1658
|
-
isZoomChanged &&
|
|
1659
|
-
onZoomChange &&
|
|
1660
|
-
onZoomChange({
|
|
1661
|
-
zoomValue: newZoom
|
|
1662
|
-
});
|
|
1663
|
-
};
|
|
1664
|
-
|
|
1665
|
-
/**
|
|
1666
|
-
* @license
|
|
1667
|
-
* Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.
|
|
1668
|
-
* Licensed under The Universal Permissive License (UPL), Version 1.0
|
|
1669
|
-
* as shown at https://oss.oracle.com/licenses/upl/
|
|
1670
|
-
* @ignore
|
|
1671
|
-
*/
|
|
1672
|
-
const useWheelZoom = ({ zooming, minZoom, maxZoom, zoomValue, onZoom }) => {
|
|
1673
|
-
const wheelProps = useWheel({
|
|
1674
|
-
onWheel: ({ deltaY }) => {
|
|
1675
|
-
const newZoom = zoomValue * (1 + ZOOM_INCREMENT * deltaY);
|
|
1676
|
-
zoom(newZoom, zoomValue, minZoom, maxZoom, onZoom);
|
|
1677
|
-
},
|
|
1678
|
-
isDisabled: zooming === 'off'
|
|
1679
|
-
});
|
|
1680
|
-
return wheelProps;
|
|
1681
|
-
};
|
|
1682
|
-
|
|
1683
|
-
const getMidpoint = (p1, p2) => ({ x: (p1.x + p2.x) / 2, y: (p1.y + p2.y) / 2 });
|
|
1684
|
-
const getDistance = (p1, p2) => Math.sqrt((p2.x - p1.x) ** 2 + (p2.y - p2.y) ** 2);
|
|
1685
|
-
const usePinch = ({ captureTargetRef, onPinchZoomStart, onPinchZoomChange, onPinchZoomEnd, isDisabled = false }) => {
|
|
1686
|
-
const origin = hooks.useRef({ x: -1, y: -1 });
|
|
1687
|
-
const prevDistance = hooks.useRef(-1);
|
|
1688
|
-
const reset = () => {
|
|
1689
|
-
origin.current = { x: -1, y: -1 };
|
|
1690
|
-
prevDistance.current = -1;
|
|
1691
|
-
};
|
|
1692
|
-
if (isDisabled)
|
|
1693
|
-
reset();
|
|
1694
|
-
const pinchProps = usePointerGesture({
|
|
1695
|
-
captureTargetRef,
|
|
1696
|
-
numPointers: 2, // Pinch gesture requires 2 pointers
|
|
1697
|
-
onPointerGestureDown: ({ pointers: [pointer1, pointer2] }) => {
|
|
1698
|
-
const p1 = { x: pointer1.offsetX, y: pointer1.offsetY };
|
|
1699
|
-
const p2 = { x: pointer2.offsetX, y: pointer2.offsetY };
|
|
1700
|
-
origin.current = getMidpoint(p1, p2);
|
|
1701
|
-
prevDistance.current = getDistance(p1, p2);
|
|
1702
|
-
onPinchZoomStart &&
|
|
1703
|
-
onPinchZoomStart({
|
|
1704
|
-
origin: origin.current,
|
|
1705
|
-
delta: 0
|
|
1706
|
-
});
|
|
1707
|
-
},
|
|
1708
|
-
onPointerGestureMove: ({ pointers: [pointer1, pointer2] }) => {
|
|
1709
|
-
const p1 = { x: pointer1.offsetX, y: pointer1.offsetY };
|
|
1710
|
-
const p2 = { x: pointer2.offsetX, y: pointer2.offsetY };
|
|
1711
|
-
const distance = getDistance(p1, p2);
|
|
1712
|
-
const delta = distance - prevDistance.current;
|
|
1713
|
-
prevDistance.current = distance;
|
|
1714
|
-
onPinchZoomChange &&
|
|
1715
|
-
onPinchZoomChange({
|
|
1716
|
-
origin: origin.current,
|
|
1717
|
-
delta
|
|
1718
|
-
});
|
|
1719
|
-
},
|
|
1720
|
-
onPointerGestureEnd: () => {
|
|
1721
|
-
reset();
|
|
1722
|
-
onPinchZoomEnd && onPinchZoomEnd();
|
|
1723
|
-
}
|
|
1724
|
-
});
|
|
1725
|
-
return isDisabled ? {} : pinchProps;
|
|
1726
|
-
};
|
|
1727
|
-
|
|
1728
|
-
const usePinchZoom = ({ captureTargetRef, zooming, minZoom, maxZoom, zoomValue, onZoom }) => {
|
|
1729
|
-
const pinchProps = usePinch({
|
|
1730
|
-
captureTargetRef,
|
|
1731
|
-
onPinchZoomChange: ({ delta }) => {
|
|
1732
|
-
const newZoom = zoomValue * (1 + ZOOM_INCREMENT * delta);
|
|
1733
|
-
zoom(newZoom, zoomValue, minZoom, maxZoom, onZoom);
|
|
1734
|
-
},
|
|
1735
|
-
isDisabled: zooming === 'off'
|
|
1736
|
-
});
|
|
1737
|
-
return pinchProps;
|
|
1738
|
-
};
|
|
1739
|
-
|
|
1740
|
-
const usePanZoom = ({ props, captureTargetRef, width, height, contentBounds, isRtl }) => {
|
|
1741
|
-
const [cursor, setCursor] = hooks.useState();
|
|
1742
|
-
const zoomProps = getZoomProps(props, width, height, contentBounds);
|
|
1743
|
-
const panBounds = hooks.useRef();
|
|
1744
|
-
const prevZoom = hooks.useRef();
|
|
1745
|
-
const panning = hooks.useRef();
|
|
1746
|
-
const initPanZoomState = hooks.useRef({
|
|
1747
|
-
zoom: props.zoomValue || 0,
|
|
1748
|
-
centerX: props.centerX,
|
|
1749
|
-
centerY: props.centerY
|
|
1750
|
-
});
|
|
1751
|
-
const isDeviceTouch = clientUtils.isTouch();
|
|
1752
|
-
const plotArea = {
|
|
1753
|
-
width: width,
|
|
1754
|
-
height: height,
|
|
1755
|
-
x: 0,
|
|
1756
|
-
y: 0
|
|
1757
|
-
};
|
|
1758
|
-
const showPanButton = isDeviceTouch ? props.panning && props.panning !== 'off' : undefined;
|
|
1759
|
-
const dragModeOptions = {
|
|
1760
|
-
isZoomScroll: true,
|
|
1761
|
-
plotAreaSpace: plotArea,
|
|
1762
|
-
componentWidth: width,
|
|
1763
|
-
isRtl,
|
|
1764
|
-
showPanButton: showPanButton ?? false,
|
|
1765
|
-
showZoomButton: false,
|
|
1766
|
-
showSelectButton: false,
|
|
1767
|
-
isDisabled: !isDeviceTouch
|
|
1768
|
-
};
|
|
1769
|
-
const { toggleButtonContent, userDragMode } = useVisDragModeControls.useVisDragModeControls(dragModeOptions);
|
|
1770
|
-
const panProps = getPanProps(props, contentBounds, userDragMode, isDeviceTouch);
|
|
1771
|
-
if (contentBounds.w !== Infinity &&
|
|
1772
|
-
(zoomProps.zoomValue !== prevZoom.current || panProps.panning !== panning.current)) {
|
|
1773
|
-
panBounds.current = getPanBounds(width, height, contentBounds, zoomProps.zoomValue, zoomProps.minZoom, initPanZoomState.current, panProps.panning);
|
|
1774
|
-
prevZoom.current = zoomProps.zoomValue;
|
|
1775
|
-
panning.current = panProps.panning;
|
|
1776
|
-
}
|
|
1777
|
-
const dragPanProps = useDragPan({
|
|
1778
|
-
panProps: panProps,
|
|
1779
|
-
captureTargetRef: captureTargetRef,
|
|
1780
|
-
panBounds: panBounds.current,
|
|
1781
|
-
zoom: zoomProps.zoomValue,
|
|
1782
|
-
width,
|
|
1783
|
-
height,
|
|
1784
|
-
onDragPanStart: () => setCursor('grabbing'),
|
|
1785
|
-
onDragPanEnd: () => setCursor('auto')
|
|
1786
|
-
});
|
|
1787
|
-
//dZoom or nZoom is required
|
|
1788
|
-
const kbZoomCallback = (props) => {
|
|
1789
|
-
const newZoom = props.dZoom
|
|
1790
|
-
? zoomProps.zoomValue + props.dZoom
|
|
1791
|
-
: getZoomToFitZoom(width, height, contentBounds);
|
|
1792
|
-
zoom(props.nZoom ? props.nZoom : newZoom, zoomProps.zoomValue, zoomProps.minZoom, zoomProps.maxZoom, zoomProps.onZoom);
|
|
1793
|
-
};
|
|
1794
|
-
const prevPanState = hooks.useRef({ panX: 0, panY: 0 });
|
|
1795
|
-
// dPan or nPan is required
|
|
1796
|
-
const kbPanCallback = (props) => {
|
|
1797
|
-
let centerX;
|
|
1798
|
-
let centerY;
|
|
1799
|
-
if (props.center) {
|
|
1800
|
-
centerX = contentBounds.x + contentBounds.w / 2;
|
|
1801
|
-
centerY = contentBounds.y + contentBounds.h / 2;
|
|
1802
|
-
}
|
|
1803
|
-
else if (props.dPan) {
|
|
1804
|
-
centerX = panProps.centerX + props.dPan.dx;
|
|
1805
|
-
centerY = panProps.centerY + props.dPan.dy;
|
|
1806
|
-
}
|
|
1807
|
-
else {
|
|
1808
|
-
centerX = props.nPan.cx;
|
|
1809
|
-
centerY = props.nPan.cy;
|
|
1810
|
-
}
|
|
1811
|
-
const panValues = centerXYToPanXY(centerX, centerY, zoomProps.zoomValue, width, height);
|
|
1812
|
-
const { newPan } = pan(prevPanState.current, panValues, panProps.panDirection, zoomProps.zoomValue, width, height, panBounds.current, panProps.onPan);
|
|
1813
|
-
prevPanState.current = newPan;
|
|
1814
|
-
};
|
|
1815
|
-
const wheelZoomProps = useWheelZoom(zoomProps);
|
|
1816
|
-
const pinchZoomProps = usePinchZoom({
|
|
1817
|
-
captureTargetRef,
|
|
1818
|
-
zooming: zoomProps.zooming,
|
|
1819
|
-
minZoom: zoomProps.minZoom,
|
|
1820
|
-
maxZoom: zoomProps.maxZoom,
|
|
1821
|
-
zoomValue: zoomProps.zoomValue,
|
|
1822
|
-
onZoom: zoomProps.onZoom
|
|
1823
|
-
});
|
|
1824
|
-
const panZoomProps = mergeProps.mergeProps(dragPanProps, wheelZoomProps, pinchZoomProps);
|
|
1825
|
-
return {
|
|
1826
|
-
panZoomProps,
|
|
1827
|
-
panProps,
|
|
1828
|
-
zoomProps,
|
|
1829
|
-
toggleButtonContent,
|
|
1830
|
-
cursor,
|
|
1831
|
-
centerX: panProps.centerX,
|
|
1832
|
-
centerY: panProps.centerY,
|
|
1833
|
-
zoomValue: zoomProps.zoomValue,
|
|
1834
|
-
kbPanCallback: panProps.panning !== 'off' ? kbPanCallback : undefined,
|
|
1835
|
-
kbZoomCallback: zoomProps.zooming !== 'off' ? kbZoomCallback : undefined
|
|
1836
|
-
};
|
|
1837
|
-
};
|
|
1838
|
-
|
|
1839
|
-
function useDiagramSelection({ selectedIds, selectionMode, nodeMap, linkMap, focusedItemInfo, onSelectionChange, rootRef }) {
|
|
1840
|
-
const nodeIdToIndexMap = nodeMap.itemIdToIndexMap;
|
|
1841
|
-
const nodeIndexToIdMap = nodeMap.itemIndexToIdMap;
|
|
1842
|
-
const nodeIdToDataMap = nodeMap.itemIdToDataMap;
|
|
1843
|
-
const linkIdToIndexMap = linkMap.itemIdToIndexMap;
|
|
1844
|
-
const linkIndexToIdMap = linkMap.itemIndexToIdMap;
|
|
1845
|
-
const linkIdToDataMap = linkMap.itemIdToDataMap;
|
|
1846
|
-
const encodeNodeId = (id) => `N_${nodeIdToIndexMap.get(id)}`;
|
|
1847
|
-
const decodeNodeId = (id) => nodeIndexToIdMap.get(Number(id.slice(2)));
|
|
1848
|
-
const encodeLinkId = (id) => `L_${linkIdToIndexMap.get(id)}`;
|
|
1849
|
-
const decodeLinkId = (id) => linkIndexToIdMap.get(Number(id.slice(2)));
|
|
1850
|
-
const encodedNodesSelection = selectedIds.nodes ? selectedIds.nodes.map(encodeNodeId) : [];
|
|
1851
|
-
const encodedLinksSelection = selectedIds.links ? selectedIds.links.map(encodeLinkId) : [];
|
|
1852
|
-
const encodedSelection = [...encodedNodesSelection, ...encodedLinksSelection];
|
|
1853
|
-
const idExtracter = (event) => {
|
|
1854
|
-
// return encodeNodeId(id) or encodeLinkId(id) depending on node or link selection or undefined if clicked on empty space
|
|
1855
|
-
const info = event.type === 'keyup'
|
|
1856
|
-
? focusedItemInfo
|
|
1857
|
-
: getNavigableInfo(event.target, rootRef);
|
|
1858
|
-
return info.id !== undefined
|
|
1859
|
-
? info.isNode
|
|
1860
|
-
? encodeNodeId(info.id)
|
|
1861
|
-
: encodeLinkId(info.id)
|
|
1862
|
-
: undefined;
|
|
1863
|
-
};
|
|
1864
|
-
const onEncodedSelectionChange = (detail) => {
|
|
1865
|
-
const newNodeIds = detail.ids
|
|
1866
|
-
.filter((encId) => encId[0] === 'N')
|
|
1867
|
-
.map((encId) => decodeNodeId(encId));
|
|
1868
|
-
const newLinkIds = detail.ids
|
|
1869
|
-
.filter((encId) => encId[0] === 'L')
|
|
1870
|
-
.map((encId) => decodeLinkId(encId));
|
|
1871
|
-
const newSelectedNodeIds = newNodeIds.filter((id) => nodeIdToDataMap.get(id)?.selectable !== 'off');
|
|
1872
|
-
const newSelectedLinkIds = newLinkIds.filter((id) => linkIdToDataMap.get(id)?.selectable !== 'off');
|
|
1873
|
-
const nodeData = newSelectedNodeIds.map((selectedId) => {
|
|
1874
|
-
return nodeIdToDataMap.get(selectedId);
|
|
1875
|
-
});
|
|
1876
|
-
const linkData = newSelectedLinkIds.map((selectedId) => {
|
|
1877
|
-
return linkIdToDataMap.get(selectedId);
|
|
1878
|
-
});
|
|
1879
|
-
return (onSelectionChange &&
|
|
1880
|
-
onSelectionChange({
|
|
1881
|
-
nodes: newSelectedNodeIds,
|
|
1882
|
-
links: newSelectedLinkIds,
|
|
1883
|
-
nodeData,
|
|
1884
|
-
linkData
|
|
1885
|
-
}));
|
|
1886
|
-
};
|
|
1887
|
-
const getDataById = (id) => {
|
|
1888
|
-
let data;
|
|
1889
|
-
if (id[0] === 'N') {
|
|
1890
|
-
const nodeId = decodeNodeId(id);
|
|
1891
|
-
data = nodeMap.itemIdToDataMap.get(nodeId);
|
|
1892
|
-
}
|
|
1893
|
-
else if (id[0] === 'L') {
|
|
1894
|
-
const linkId = decodeLinkId(id);
|
|
1895
|
-
data = linkMap.itemIdToDataMap.get(linkId);
|
|
1896
|
-
}
|
|
1897
|
-
return data;
|
|
1898
|
-
};
|
|
1899
|
-
const { selectionContent, selectionProps } = useSelection.useSelection({
|
|
1900
|
-
selection: encodedSelection,
|
|
1901
|
-
idExtracter,
|
|
1902
|
-
selectionMode,
|
|
1903
|
-
getDataById,
|
|
1904
|
-
onChange: onEncodedSelectionChange
|
|
1905
|
-
});
|
|
1906
|
-
return { selectionContent, selectionProps };
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
function DiagramWithDimensions({ nodes = [], links = [], width, height, selectedIds = {}, selectionMode = 'none', layout, nodeRenderer, linkRenderer, onSelectionChange, onItemHover, onItemFocus, highlightedIds = {}, datatip, ...otherProps }) {
|
|
1910
|
-
const focusedItemBoundsRef = hooks.useRef(null);
|
|
1911
|
-
const rootRef = hooks.useRef(null);
|
|
1912
|
-
//TODO JET-62563 change bounds to a MAP
|
|
1913
|
-
const [bounds, setBounds] = hooks.useState([]);
|
|
1914
|
-
const [combinedLabelBounds, setCombinedLabelBounds] = hooks.useState();
|
|
1915
|
-
const { direction } = useUser.useUser();
|
|
1916
|
-
const isRtl = direction === 'rtl';
|
|
1917
|
-
const diagramNodes = nodes;
|
|
1918
|
-
const nodeMap = createItemMap(diagramNodes);
|
|
1919
|
-
const nodeIdToDataMap = nodeMap.itemIdToDataMap;
|
|
1920
|
-
const diagramLinks = filterLinksWithNoEndNodes(links, nodeIdToDataMap);
|
|
1921
|
-
const linkMap = createItemMap(diagramLinks);
|
|
1922
|
-
const linkIdToDataMap = linkMap.itemIdToDataMap;
|
|
1923
|
-
const resizeThrottling = hooks.useRef(false);
|
|
1924
|
-
const newDimensions = getDimensionsFromBounds(bounds);
|
|
1925
|
-
const { textMeasureContent, getTextDimensions } = useTextDimensions.useTextDimensions();
|
|
1926
|
-
const labelDimensions = hooks.useRef(new Map());
|
|
1927
|
-
const nodeLabelPosRef = hooks.useRef([]);
|
|
1928
|
-
const linkLabelPosRef = hooks.useRef([]);
|
|
1929
|
-
const layoutOutputRef = hooks.useRef();
|
|
1930
|
-
const contentBounds = getContentBounds(bounds, combinedLabelBounds);
|
|
1931
|
-
const { panZoomProps, panProps, zoomProps, toggleButtonContent, cursor, centerX, centerY, zoomValue, kbPanCallback, kbZoomCallback } = usePanZoom({
|
|
1932
|
-
props: otherProps,
|
|
1933
|
-
captureTargetRef: rootRef,
|
|
1934
|
-
width: width,
|
|
1935
|
-
height: height,
|
|
1936
|
-
contentBounds,
|
|
1937
|
-
isRtl
|
|
1938
|
-
});
|
|
1939
|
-
const { touchResponse, touchResponseStyle } = useVisTouchResponse.useVisTouchResponse({
|
|
1940
|
-
type: 'auto',
|
|
1941
|
-
supportsTouchDragGestures: zoomProps.zooming === 'on' || panProps.panning !== 'off',
|
|
1942
|
-
rootRef
|
|
1943
|
-
});
|
|
1944
|
-
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);
|
|
1945
|
-
const { selectionProps, selectionContent } = useDiagramSelection({
|
|
1946
|
-
selectedIds,
|
|
1947
|
-
selectionMode,
|
|
1948
|
-
nodeMap,
|
|
1949
|
-
linkMap,
|
|
1950
|
-
focusedItemInfo,
|
|
1951
|
-
onSelectionChange,
|
|
1952
|
-
rootRef
|
|
1953
|
-
});
|
|
1954
|
-
// This is for the datatip kb position
|
|
1955
|
-
if (focusedItemInfo && bounds.length > 0) {
|
|
1956
|
-
focusedItemBoundsRef.current = getFocusedItemBounds(focusedItemInfo, bounds, diagramLinks, nodeMap.itemIdToIndexMap, linkMap.itemIdToIndexMap);
|
|
1957
|
-
}
|
|
1958
|
-
const { datatipContent, datatipProps: { 'aria-describedby': datatipAriaDescribedby, ...datatipProps } } = useDiagramDatatip({
|
|
1959
|
-
touchResponse,
|
|
1960
|
-
datatip,
|
|
1961
|
-
focusedItemInfo,
|
|
1962
|
-
focusedItemBoundsRef,
|
|
1963
|
-
panState: centerXYToPanXY(centerX, centerY, zoomValue, width, height),
|
|
1964
|
-
zoom: zoomValue,
|
|
1965
|
-
width: width,
|
|
1966
|
-
nodesMap: nodeIdToDataMap,
|
|
1967
|
-
linksMap: linkIdToDataMap,
|
|
1968
|
-
hoveredItem: hoveredItemInfo
|
|
1969
|
-
});
|
|
1970
|
-
const style = {
|
|
1971
|
-
width: width,
|
|
1972
|
-
height: height,
|
|
1973
|
-
cursor: cursor,
|
|
1974
|
-
...touchResponseStyle
|
|
1975
|
-
};
|
|
1976
|
-
const states = hooks.useRef();
|
|
1977
|
-
const previousState = states.current // states.current is previous state
|
|
1978
|
-
? states.current
|
|
1979
|
-
: {
|
|
1980
|
-
selectedNodeIds: [],
|
|
1981
|
-
selectedLinkIds: [],
|
|
1982
|
-
focusedId: undefined,
|
|
1983
|
-
hoveredId: undefined,
|
|
1984
|
-
activeId: undefined,
|
|
1985
|
-
highlightedIds: [],
|
|
1986
|
-
zoom: 0
|
|
1987
|
-
};
|
|
1988
|
-
states.current = {
|
|
1989
|
-
// update states to new state
|
|
1990
|
-
selectedNodeIds: selectedIds.nodes ?? [],
|
|
1991
|
-
selectedLinkIds: selectedIds.links ?? [],
|
|
1992
|
-
focusedId: focusedItemInfo.isCurrent && focusedItemInfo.isFocusVisible ? focusedItemInfo.id : undefined,
|
|
1993
|
-
hoveredId: hoveredItemInfo?.isCurrent ? hoveredItemInfo.id : undefined,
|
|
1994
|
-
activeId,
|
|
1995
|
-
highlightedIds: combineIds(highlightedIds.nodes, highlightedIds.links),
|
|
1996
|
-
zoom: zoomValue
|
|
1997
|
-
};
|
|
1998
|
-
const mergedEventProps = mergeProps.mergeProps(panZoomProps, eventsProps, selectionProps, datatipProps);
|
|
1999
|
-
// Called anytime node changes size
|
|
2000
|
-
const onNodeSizeChanged = (nodeWidth, nodeHeight, idx) => {
|
|
2001
|
-
newDimensions[idx] = { w: nodeWidth, h: nodeHeight };
|
|
2002
|
-
if (resizeThrottling.current) {
|
|
2003
|
-
return;
|
|
2004
|
-
}
|
|
2005
|
-
resizeThrottling.current = true;
|
|
2006
|
-
// performs layout at the next available animation frame when all measurements should be ready
|
|
2007
|
-
window.requestAnimationFrame(() => {
|
|
2008
|
-
const { labelDims, layoutJSON } = constructLayoutJSON(diagramNodes, nodeIdToDataMap, linkIdToDataMap, newDimensions, width, height, getTextDimensions);
|
|
2009
|
-
labelDimensions.current = labelDims;
|
|
2010
|
-
const layoutOutput = layout(layoutJSON);
|
|
2011
|
-
const { nodePoints, nodeLabelPos, linkLabelPos } = deconstructLayoutJSON(layoutOutput, diagramNodes, diagramLinks);
|
|
2012
|
-
nodeLabelPosRef.current = nodeLabelPos;
|
|
2013
|
-
linkLabelPosRef.current = linkLabelPos;
|
|
2014
|
-
layoutOutputRef.current = layoutOutput;
|
|
2015
|
-
const nodeBounds = mergeDimensions(newDimensions, nodePoints);
|
|
2016
|
-
if (!isEqualBounds(nodeBounds, bounds)) {
|
|
2017
|
-
setBounds(nodeBounds);
|
|
2018
|
-
}
|
|
2019
|
-
const labelBounds = getAllLabelBounds(labelDims, diagramNodes, diagramLinks, nodeLabelPos, linkLabelPos, direction === 'rtl');
|
|
2020
|
-
setCombinedLabelBounds(labelBounds);
|
|
2021
|
-
resizeThrottling.current = false;
|
|
2022
|
-
});
|
|
2023
|
-
};
|
|
2024
|
-
return (jsxRuntime.jsxs("div", { ref: rootRef, class: UNSAFE_Diagram_themes_DiagramStyles_css.outerStyles, ...mergedEventProps, style: style, tabIndex: 0, role: "application", "aria-label": otherProps['aria-label'], "aria-labelledby": otherProps['aria-labelledby'], "aria-describedby": stringUtils.merge([otherProps['aria-describedby'], datatipAriaDescribedby]), "aria-activedescendant": activeId, children: [getTextDimensions ? (jsxRuntime.jsx(DiagramPanZoomContainer, { centerX: centerX, centerY: centerY, zoom: zoomValue, width: width, height: height, children: jsxRuntime.jsx(DiagramLayers, { nodes: diagramNodes, links: diagramLinks, nodeRenderer: nodeRenderer, linkRenderer: linkRenderer, width: width, height: height, nodeBounds: bounds, states: states.current, previousStates: previousState, onNodeSizeChanged: onNodeSizeChanged, nodeLabelPositions: nodeLabelPosRef.current, linkLabelPositions: linkLabelPosRef.current, labelDimensions: labelDimensions.current, supportsSelection: selectionMode !== 'none' ||
|
|
2025
|
-
!!(selectedIds?.nodes && selectedIds.nodes.length > 0) ||
|
|
2026
|
-
!!(selectedIds?.links && selectedIds.links.length > 0), layoutOutput: layoutOutputRef.current, combinedNodeBounds: contentBounds }) })) : undefined, textMeasureContent, datatipContent, selectionContent, toggleButtonContent] }));
|
|
2027
|
-
}
|
|
2028
|
-
|
|
2029
|
-
/**
|
|
2030
|
-
* Diagrams are used to display a set of nodes and the links between them.
|
|
2031
|
-
*/
|
|
2032
|
-
function Diagram({ width, height, ...otherProps }) {
|
|
2033
|
-
return otherProps.nodes && otherProps.nodes.length > 0 ? (jsxRuntime.jsx(TrackResizeContainer.TrackResizeContainer, { width: width, height: height, class: UNSAFE_Diagram_themes_DiagramStyles_css.dimensionStyle, children: (width, height) => jsxRuntime.jsx(DiagramWithDimensions, { width: width, height: height, ...otherProps }) })) : null;
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
exports.Diagram = Diagram;
|
|
2037
|
-
//# sourceMappingURL=Diagram-c4064fd7.js.map
|