@oracle/oraclejet-preact 18.0.6 → 18.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/amd/ActionCard-3f86f73f.js +1 -1
- package/amd/{BarChart-077c5f02.js → BarChart-5e9f46b4.js} +2 -2
- package/amd/{BarChart-077c5f02.js.map → BarChart-5e9f46b4.js.map} +1 -1
- package/amd/BarGroup-76ef0839.js +1 -1
- package/amd/BaseButton-19a622bc.js +1 -1
- package/amd/{BaseCardView-70b177ed.js → BaseCardView-ab799b69.js} +2 -2
- package/amd/{BaseCardView-70b177ed.js.map → BaseCardView-ab799b69.js.map} +1 -1
- package/amd/{BaseCardViewSelectionTest-0ec52156.js → BaseCardViewSelectionTest-d026d26c.js} +2 -2
- package/amd/{BaseCardViewSelectionTest-0ec52156.js.map → BaseCardViewSelectionTest-d026d26c.js.map} +1 -1
- package/amd/BaseNavigationListItem-fe9cb691.js +1 -1
- package/amd/BaseRichSelection-9d8f3ee4.js +1 -1
- package/amd/ButtonSet-d95872cc.js +1 -1
- package/amd/ButtonSetIconButton-7a2c113c.js +1 -1
- package/amd/{Card-f6f2dc90.js → Card-8e081def.js} +2 -2
- package/amd/{Card-f6f2dc90.js.map → Card-8e081def.js.map} +1 -1
- package/amd/CardFlexView-296f97f5.js +2 -0
- package/amd/{CardFlexView-bb5c4369.js.map → CardFlexView-296f97f5.js.map} +1 -1
- package/amd/{CardGridView-c28ff2f7.js → CardGridView-054ffc3f.js} +2 -2
- package/amd/{CardGridView-c28ff2f7.js.map → CardGridView-054ffc3f.js.map} +1 -1
- package/amd/{Center-b449a95c.js → Center-9ec5524e.js} +2 -2
- package/amd/{Center-b449a95c.js.map → Center-9ec5524e.js.map} +1 -1
- package/amd/{Chart-3621e125.js → Chart-e2807ff7.js} +2 -2
- package/amd/{Chart-3621e125.js.map → Chart-e2807ff7.js.map} +1 -1
- package/amd/CheckboxControl-83484a5a.js +1 -1
- package/amd/CheckboxRadioField-9733dd24.js +1 -1
- package/amd/Chip-cd210507.js +1 -1
- package/amd/ClearIcon-de20285c.js +1 -1
- package/amd/CollapseIcon-e030531c.js +1 -1
- package/amd/Collapsible-924afd71.js +1 -1
- package/amd/{ComboChart-fd7da90e.js → ComboChart-71c0f51f.js} +2 -2
- package/amd/{ComboChart-fd7da90e.js.map → ComboChart-71c0f51f.js.map} +1 -1
- package/amd/CompactHelpSource-74498e92.js +1 -1
- package/amd/CompactLabelAssistance-c6928282.js +2 -0
- package/amd/{CompactLabelAssistance-44ba87b0.js.map → CompactLabelAssistance-c6928282.js.map} +1 -1
- package/amd/CompactUserAssistance-3370a318.js +1 -1
- package/amd/ComponentMessageContainer-8028ba70.js +1 -1
- package/amd/ConveyorBeltItem-08720127.js +1 -1
- package/amd/{DatePicker-2c94a3bb.js → DatePicker-bf0e0c69.js} +2 -2
- package/amd/{DatePicker-2c94a3bb.js.map → DatePicker-bf0e0c69.js.map} +1 -1
- package/amd/DatePickerHeader-f21e020d.js +1 -1
- package/amd/{Diagram-c3afb211.js → Diagram-04db0931.js} +2 -2
- package/amd/{Diagram-c3afb211.js.map → Diagram-04db0931.js.map} +1 -1
- package/amd/{Dialog-53f92591.js → Dialog-5f36f8aa.js} +2 -2
- package/amd/{Dialog-53f92591.js.map → Dialog-5f36f8aa.js.map} +1 -1
- package/amd/DirectionalCollapseArrowIcon-20cef34d.js +1 -1
- package/amd/DirectionalExpandArrowIcon-e9bdb06e.js +1 -1
- package/amd/{DragHandle-699fefd6.js → DragHandle-406d7f9a.js} +2 -2
- package/amd/{DragHandle-699fefd6.js.map → DragHandle-406d7f9a.js.map} +1 -1
- package/amd/{Dropdown-4b421eff.js → Dropdown-abcacf49.js} +2 -2
- package/amd/{Dropdown-4b421eff.js.map → Dropdown-abcacf49.js.map} +1 -1
- package/amd/{EnvironmentProvider-8f6fc388.js → EnvironmentProvider-c0e1e39b.js} +2 -2
- package/amd/{EnvironmentProvider-8f6fc388.js.map → EnvironmentProvider-c0e1e39b.js.map} +1 -1
- package/amd/ExpandableList-dd3a05b4.js +1 -1
- package/amd/FilePicker-4636b49b.js +1 -1
- package/amd/Flex-3421f0df.js +2 -0
- package/amd/{Flex-56ecdf4c.js.map → Flex-3421f0df.js.map} +1 -1
- package/amd/{Floating-1ec5ec2a.js → Floating-5d98c1ca.js} +2 -2
- package/amd/{Floating-1ec5ec2a.js.map → Floating-5d98c1ca.js.map} +1 -1
- package/amd/FormLayout-a4a29a2d.js +1 -1
- package/amd/Gantt-d94af58e.js +1 -1
- package/amd/{Grid-160f4885.js → Grid-8911aa0f.js} +2 -2
- package/amd/{Grid-160f4885.js.map → Grid-8911aa0f.js.map} +1 -1
- package/amd/{Gridlines-7851bb20.js → Gridlines-bef7bbfc.js} +2 -2
- package/amd/{Gridlines-7851bb20.js.map → Gridlines-bef7bbfc.js.map} +1 -1
- package/amd/GroupLoadingIndicator-6b2ab709.js +1 -1
- package/amd/HighlightText-644bc74e.js +2 -0
- package/amd/{HighlightText-bd4c0101.js.map → HighlightText-644bc74e.js.map} +1 -1
- package/amd/Icon-2d38c876.js +1 -1
- package/amd/IconButton-ae9a01ce.js +1 -1
- package/amd/IconMenuButton-b0468fa8.js +1 -1
- package/amd/IconProgressButton-ff5372eb.js +1 -1
- package/amd/IconSwitchButton-22f907e7.js +1 -1
- package/amd/IconToggleButton-20d411e6.js +1 -1
- package/amd/{IconUserAssistance-d2bd2691.js → IconUserAssistance-37107cea.js} +2 -2
- package/amd/{IconUserAssistance-d2bd2691.js.map → IconUserAssistance-37107cea.js.map} +1 -1
- package/amd/{Indexer-357554c4.js → Indexer-1531dbc3.js} +2 -2
- package/amd/{Indexer-357554c4.js.map → Indexer-1531dbc3.js.map} +1 -1
- package/amd/InlineHelpSource-85961e81.js +1 -1
- package/amd/InlineUserAssistance-4656c2a6.js +1 -1
- package/amd/InputDateMask-6d54c3e6.js +1 -1
- package/amd/InputDatePicker-fc39f0a6.js +1 -1
- package/amd/InputPassword-f6ea728a.js +1 -1
- package/amd/InputText-57f60b6f.js +1 -1
- package/amd/Label-3912beb2.js +1 -1
- package/amd/LabelValueLayout-194e64d9.js +1 -1
- package/amd/{Layer-447c68e6.js → Layer-6f29b67f.js} +2 -2
- package/amd/{Layer-447c68e6.js.map → Layer-6f29b67f.js.map} +1 -1
- package/amd/{LayerHost-e95c5f30.js → LayerHost-639b3284.js} +2 -2
- package/amd/{LayerHost-e95c5f30.js.map → LayerHost-639b3284.js.map} +1 -1
- package/amd/{LayerManager-76fcfb58.js → LayerManager-2972de92.js} +2 -2
- package/amd/{LayerManager-76fcfb58.js.map → LayerManager-2972de92.js.map} +1 -1
- package/amd/Legend-e4949499.js +1 -1
- package/amd/{LineAreaChart-4140d004.js → LineAreaChart-2ba275ab.js} +2 -2
- package/amd/{LineAreaChart-4140d004.js.map → LineAreaChart-2ba275ab.js.map} +1 -1
- package/amd/{LineSeries-a549e727.js → LineSeries-797d8d16.js} +2 -2
- package/amd/{LineSeries-a549e727.js.map → LineSeries-797d8d16.js.map} +1 -1
- package/amd/Link-c4a57187.js +1 -1
- package/amd/List-0b764e84.js +2 -0
- package/amd/{List-04c4fed0.js.map → List-0b764e84.js.map} +1 -1
- package/amd/{ListItemLayout-4208363c.js → ListItemLayout-e0b2c71e.js} +2 -2
- package/amd/{ListItemLayout-4208363c.js.map → ListItemLayout-e0b2c71e.js.map} +1 -1
- package/amd/{ListView-bf740071.js → ListView-5bb45f81.js} +2 -2
- package/amd/{ListView-bf740071.js.map → ListView-5bb45f81.js.map} +1 -1
- package/amd/LiveRegion-9a362373.js +2 -0
- package/amd/{LiveRegion-8142ed0d.js.map → LiveRegion-9a362373.js.map} +1 -1
- package/amd/LoadMoreCollection-83413a59.js +2 -0
- package/amd/{LoadMoreCollection-a6adbc3f.js.map → LoadMoreCollection-83413a59.js.map} +1 -1
- package/amd/MaxLengthLiveRegion-bb956138.js +2 -0
- package/amd/{MaxLengthLiveRegion-8954fc30.js.map → MaxLengthLiveRegion-bb956138.js.map} +1 -1
- package/amd/Menu-5d447084.js +1 -1
- package/amd/MenuButton-410aa4e1.js +1 -1
- package/amd/MenuItem-87cd59b8.js +1 -1
- package/amd/Message-621fb578.js +1 -1
- package/amd/{MessageLayer-ba56f7e2.js → MessageLayer-8bac8c50.js} +2 -2
- package/amd/{MessageLayer-ba56f7e2.js.map → MessageLayer-8bac8c50.js.map} +1 -1
- package/amd/MessageToast-06773c79.js +1 -1
- package/amd/MessagesManager-d5686336.js +1 -1
- package/amd/MeterBar-e1b4a93b.js +1 -1
- package/amd/MeterCircle-9887cf28.js +1 -1
- package/amd/{Modal-d6b2e905.js → Modal-7bece8d5.js} +2 -2
- package/amd/{Modal-d6b2e905.js.map → Modal-7bece8d5.js.map} +1 -1
- package/amd/{MonthView-4a0401cd.js → MonthView-3d0968a1.js} +2 -2
- package/amd/{MonthView-4a0401cd.js.map → MonthView-3d0968a1.js.map} +1 -1
- package/amd/NavigationListItem-044a79fd.js +1 -1
- package/amd/NumberInputText-cac12eb3.js +1 -1
- package/amd/OverflowTabBarItem-c59db4a2.js +1 -1
- package/amd/PRIVATE_BaseCardView.js +1 -1
- package/amd/PRIVATE_Chart.js +1 -1
- package/amd/PRIVATE_CheckboxControl.js +1 -1
- package/amd/PRIVATE_CheckboxRadioField.js +1 -1
- package/amd/PRIVATE_ClearIcon.js +1 -1
- package/amd/PRIVATE_DatePickerHeader.js +1 -1
- package/amd/PRIVATE_DatePickerLayout.js +1 -1
- package/amd/PRIVATE_EmbeddedIconButton.js +1 -1
- package/amd/PRIVATE_FormControls.js +1 -1
- package/amd/PRIVATE_IconSwitchButton.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxMixed.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxOff.js +1 -1
- package/amd/PRIVATE_Icons/CheckboxOn.js +1 -1
- package/amd/PRIVATE_Icons/DragV.js +1 -1
- package/amd/PRIVATE_Icons/WarningS.js +1 -1
- package/amd/PRIVATE_List.js +1 -1
- package/amd/PRIVATE_LoadMoreCollection.js +1 -1
- package/amd/PRIVATE_Message.js +1 -1
- package/amd/PRIVATE_MessageLayer.js +1 -1
- package/amd/PRIVATE_MonthView.js +1 -1
- package/amd/PRIVATE_MonthYearGridView.js +1 -1
- package/amd/PRIVATE_PlotArea.js +1 -1
- package/amd/PRIVATE_RevealToggleIcon.js +1 -1
- package/amd/PRIVATE_RichSelectionCommon.js +1 -1
- package/amd/PRIVATE_SelectCommon.js +1 -1
- package/amd/PRIVATE_StyledCard.js +1 -1
- package/amd/PRIVATE_StyledCheckbox.js +1 -1
- package/amd/PRIVATE_Table.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CalendarIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartMarqueeSelectIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartPanIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ChartZoomIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxMixedIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxOffIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CheckboxOnIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CloseIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CollapseIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/CollapseUpIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DecrementIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DeleteIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DirectionalCollapseArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DirectionalExpandArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DragHandleIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/DropdownArrowIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ExpandIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/HelpIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/IncrementIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MenuButtonDropdownIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageConfirmationIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageErrorIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageInfoIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MessageWarningIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/MinusIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/NavDownIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/OverviewHorizontalDragHandleIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/PlusIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/RadioOffIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/RadioOnIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/SortAscendingIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/SortDescendingIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ViewHideIcon.js +1 -1
- package/amd/PRIVATE_ThemedIcons/ViewIcon.js +1 -1
- package/amd/PRIVATE_TimeComponent.js +1 -1
- package/amd/PRIVATE_VirtualizedCollection.js +1 -1
- package/amd/PRIVATE_VisOverview.js +1 -1
- package/amd/PRIVATE_VisTabularDatatip.js +1 -1
- package/amd/PictoChart-48a25c75.js +1 -1
- package/amd/PieChart-2197746d.js +1 -1
- package/amd/{Popup-d51bf3f4.js → Popup-66e79afa.js} +2 -2
- package/amd/{Popup-d51bf3f4.js.map → Popup-66e79afa.js.map} +1 -1
- package/amd/{ProgressBar-3f4cd8d6.js → ProgressBar-e72c5a67.js} +2 -2
- package/amd/{ProgressBar-3f4cd8d6.js.map → ProgressBar-e72c5a67.js.map} +1 -1
- package/amd/ProgressButton-f1d27773.js +1 -1
- package/amd/ProgressButtonLabelLayout-6df4290e.js +1 -1
- package/amd/{ProgressCircle-74b6fc89.js → ProgressCircle-2b4ba9cd.js} +2 -2
- package/amd/{ProgressCircle-74b6fc89.js.map → ProgressCircle-2b4ba9cd.js.map} +1 -1
- package/amd/RadioItem-b17c346c.js +1 -1
- package/amd/RatingGauge-539ede8e.js +1 -1
- package/amd/ReadonlyTextFieldInput-608bddc1.js +1 -1
- package/amd/RemovableNavigationListItem-e01b6693.js +1 -1
- package/amd/RemovableTabBarItem-29b54206.js +1 -1
- package/amd/ReorderableTabBar-462d357c.js +1 -1
- package/amd/RevealToggleIcon-f975229d.js +1 -1
- package/amd/{ScatterChart-88304601.js → ScatterChart-7f0b817b.js} +2 -2
- package/amd/{ScatterChart-88304601.js.map → ScatterChart-7f0b817b.js.map} +1 -1
- package/amd/SectionalLegend-8f203cac.js +1 -1
- package/amd/SectionedContent-19bef3cc.js +2 -0
- package/amd/{SectionedContent-2a261004.js.map → SectionedContent-19bef3cc.js.map} +1 -1
- package/amd/{SelectMultiple-e3a6732b.js → SelectMultiple-7e9bd455.js} +2 -2
- package/amd/{SelectMultiple-e3a6732b.js.map → SelectMultiple-7e9bd455.js.map} +1 -1
- package/amd/{SelectSingle-9d0dca8f.js → SelectSingle-466bcd67.js} +2 -2
- package/amd/{SelectSingle-9d0dca8f.js.map → SelectSingle-466bcd67.js.map} +1 -1
- package/amd/SelectionCard-13aac54a.js +2 -0
- package/amd/{SelectionCard-895b014d.js.map → SelectionCard-13aac54a.js.map} +1 -1
- package/amd/Selector-2b0c34a7.js +1 -1
- package/amd/{SelectorAll-e884a225.js → SelectorAll-1c889a9c.js} +2 -2
- package/amd/{SelectorAll-e884a225.js.map → SelectorAll-1c889a9c.js.map} +1 -1
- package/amd/{Sheet-46782f99.js → Sheet-0b58b0a5.js} +2 -2
- package/amd/{Sheet-46782f99.js.map → Sheet-0b58b0a5.js.map} +1 -1
- package/amd/SplitMenuButton-031ae5e3.js +1 -1
- package/amd/{StyledCard-c4d0324d.js → StyledCard-0da6f6b5.js} +2 -2
- package/amd/{StyledCard-c4d0324d.js.map → StyledCard-0da6f6b5.js.map} +1 -1
- package/amd/StyledTextField-b4278437.js +1 -1
- package/amd/TabBar-d8890a47.js +1 -1
- package/amd/TabBarItem-547825e2.js +1 -1
- package/amd/TabBarLayout-685ac295.js +1 -1
- package/amd/TabBarMixed-a75796a6.js +1 -1
- package/amd/TabBarMixedSeparator-ed764207.js +2 -0
- package/amd/{TabBarMixedSeparator-8c278254.js.map → TabBarMixedSeparator-ed764207.js.map} +1 -1
- package/amd/{Table-31cc83c6.js → Table-87f7e3c4.js} +2 -2
- package/amd/{Table-31cc83c6.js.map → Table-87f7e3c4.js.map} +1 -1
- package/amd/{TableView-ab5d0c12.js → TableView-2b884e2c.js} +2 -2
- package/amd/{TableView-ab5d0c12.js.map → TableView-2b884e2c.js.map} +1 -1
- package/amd/TagCloud-5dc4b5ff.js +1 -1
- package/amd/TextArea-a7a3d82f.js +2 -0
- package/amd/TextArea-a7a3d82f.js.map +1 -0
- package/amd/TextAreaAutosize-9cd2c1e8.js +2 -0
- package/amd/{TextAreaAutosize-81449e46.js.map → TextAreaAutosize-9cd2c1e8.js.map} +1 -1
- package/amd/TextField-1021f00b.js +1 -1
- package/amd/TextFieldInput-ba4e508c.js +1 -1
- package/amd/Theme-redwood/theme.css +230 -230
- package/amd/Theme-stable/theme.css +342 -342
- package/amd/TimeComponentCanvas2D-6b4e6ead.js +1 -1
- package/amd/Toolbar-05d42276.js +1 -1
- package/amd/TruncatingBadge-7f66faaf.js +2 -0
- package/amd/{TruncatingBadge-04f9ef4c.js.map → TruncatingBadge-7f66faaf.js.map} +1 -1
- package/amd/{TruncatingText-d18d41c5.js → TruncatingText-69770aa9.js} +2 -2
- package/amd/{TruncatingText-d18d41c5.js.map → TruncatingText-69770aa9.js.map} +1 -1
- package/amd/UNSAFE_ActionCard.js +1 -1
- package/amd/UNSAFE_BarChart/__test__/BarChart.spec.js +1 -1
- package/amd/UNSAFE_BarChart.js +1 -1
- package/amd/UNSAFE_BaseButton.js +1 -1
- package/amd/UNSAFE_Button.js +1 -1
- package/amd/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
- package/amd/UNSAFE_ButtonSet.js +1 -1
- package/amd/UNSAFE_ButtonSetButton.js +1 -1
- package/amd/UNSAFE_ButtonSetIconButton.js +1 -1
- package/amd/UNSAFE_ButtonSetItem.js +1 -1
- package/amd/UNSAFE_ButtonSetMultiple.js +1 -1
- package/amd/UNSAFE_ButtonSetSingle.js +1 -1
- package/amd/UNSAFE_Card.js +1 -1
- package/amd/UNSAFE_CardFlexView.js +1 -1
- package/amd/UNSAFE_CardGridView.js +1 -1
- package/amd/UNSAFE_Center.js +1 -1
- package/amd/UNSAFE_ChartWithLegend.js +1 -1
- package/amd/UNSAFE_Checkbox.js +1 -1
- package/amd/UNSAFE_CheckboxItem.js +1 -1
- package/amd/UNSAFE_CheckboxSet.js +1 -1
- package/amd/UNSAFE_Chip.js +1 -1
- package/amd/UNSAFE_Collapsible.js +1 -1
- package/amd/UNSAFE_ComboChart.js +1 -1
- package/amd/UNSAFE_ComponentMessage.js +1 -1
- package/amd/UNSAFE_ConveyorBelt.js +1 -1
- package/amd/UNSAFE_DatePicker.js +1 -1
- package/amd/UNSAFE_Diagram.js +1 -1
- package/amd/UNSAFE_Dialog.js +1 -1
- package/amd/UNSAFE_DragHandle.js +1 -1
- package/amd/UNSAFE_DrawerLayout.js +1 -1
- package/amd/UNSAFE_DrawerPopup.js +1 -1
- package/amd/UNSAFE_Dropdown.js +1 -1
- package/amd/UNSAFE_Environment.js +1 -1
- package/amd/UNSAFE_ExpandableList.js +1 -1
- package/amd/UNSAFE_FilePicker.js +1 -1
- package/amd/UNSAFE_Flex.js +1 -1
- package/amd/UNSAFE_Floating.js +1 -1
- package/amd/UNSAFE_FormLayout.js +1 -1
- package/amd/UNSAFE_Gantt.js +1 -1
- package/amd/UNSAFE_Grid.js +1 -1
- package/amd/UNSAFE_HighlightText.js +1 -1
- package/amd/UNSAFE_Icon.js +1 -1
- package/amd/UNSAFE_IconButton.js +1 -1
- package/amd/UNSAFE_IconMenuButton.js +1 -1
- package/amd/UNSAFE_IconProgressButton.js +1 -1
- package/amd/UNSAFE_IconToggleButton.js +1 -1
- package/amd/UNSAFE_Indexer.js +1 -1
- package/amd/UNSAFE_InputDateMask.js +1 -1
- package/amd/UNSAFE_InputDatePicker.js +1 -1
- package/amd/UNSAFE_InputPassword.js +1 -1
- package/amd/UNSAFE_InputSensitiveText.js +1 -1
- package/amd/UNSAFE_InputText.js +1 -1
- package/amd/UNSAFE_InputTimeMask.js +1 -1
- package/amd/UNSAFE_Label.js +1 -1
- package/amd/UNSAFE_LabelValueLayout.js +1 -1
- package/amd/UNSAFE_LabelledLink.js +1 -1
- package/amd/UNSAFE_Layer.js +1 -1
- package/amd/UNSAFE_Legend.js +1 -1
- package/amd/UNSAFE_LineAreaChart.js +1 -1
- package/amd/UNSAFE_Link.js +1 -1
- package/amd/UNSAFE_ListItemLayout.js +1 -1
- package/amd/UNSAFE_ListView.js +1 -1
- package/amd/UNSAFE_LiveRegion.js +1 -1
- package/amd/UNSAFE_Menu.js +1 -1
- package/amd/UNSAFE_MenuButton.js +1 -1
- package/amd/UNSAFE_MessageBanner.js +1 -1
- package/amd/UNSAFE_MessageToast.js +1 -1
- package/amd/UNSAFE_MeterBar.js +1 -1
- package/amd/UNSAFE_MeterCircle.js +1 -1
- package/amd/UNSAFE_Modal.js +1 -1
- package/amd/UNSAFE_NavigationList.js +1 -1
- package/amd/UNSAFE_NavigationListCommon.js +1 -1
- package/amd/UNSAFE_NumberInputText.js +1 -1
- package/amd/UNSAFE_OverflowTabBar.js +1 -1
- package/amd/UNSAFE_PictoChart.js +1 -1
- package/amd/UNSAFE_PieChart/__test__/PieChart.spec.js +1 -1
- package/amd/UNSAFE_PieChart.js +1 -1
- package/amd/UNSAFE_Popup.js +1 -1
- package/amd/UNSAFE_ProgressBar.js +1 -1
- package/amd/UNSAFE_ProgressButton.js +1 -1
- package/amd/UNSAFE_ProgressButtonLabelLayout.js +1 -1
- package/amd/UNSAFE_ProgressCircle.js +1 -1
- package/amd/UNSAFE_RadioItem.js +1 -1
- package/amd/UNSAFE_RadioSet.js +1 -1
- package/amd/UNSAFE_RatingGauge.js +1 -1
- package/amd/UNSAFE_ReorderableTabBar.js +1 -1
- package/amd/UNSAFE_RichCheckboxSet.js +1 -1
- package/amd/UNSAFE_RichRadioSet.js +1 -1
- package/amd/UNSAFE_RichSelectionItem.js +1 -1
- package/amd/UNSAFE_ScatterChart.js +1 -1
- package/amd/UNSAFE_SectionalLegend.js +1 -1
- package/amd/UNSAFE_SelectMultiple.js +1 -1
- package/amd/UNSAFE_SelectSingle.js +1 -1
- package/amd/UNSAFE_SelectionCard.js +1 -1
- package/amd/UNSAFE_Selector.js +1 -1
- package/amd/UNSAFE_SelectorAll.js +1 -1
- package/amd/UNSAFE_Sheet/__test__/Sheet.spec.js +1 -1
- package/amd/UNSAFE_Sheet.js +1 -1
- package/amd/UNSAFE_SplitMenuButton.js +1 -1
- package/amd/UNSAFE_TabBar.js +1 -1
- package/amd/UNSAFE_TabBarCommon.js +1 -1
- package/amd/UNSAFE_TabBarMixed.js +1 -1
- package/amd/UNSAFE_TableView.js +1 -1
- package/amd/UNSAFE_TagCloud.js +1 -1
- package/amd/UNSAFE_TextArea.js +1 -1
- package/amd/UNSAFE_TextAreaAutosize.js +1 -1
- package/amd/UNSAFE_TextField.js +1 -1
- package/amd/UNSAFE_ToggleButton.js +1 -1
- package/amd/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
- package/amd/UNSAFE_Toolbar.js +1 -1
- package/amd/UNSAFE_Train.js +1 -1
- package/amd/UNSAFE_TruncatingBadge.js +1 -1
- package/amd/UNSAFE_TruncatingText.js +1 -1
- package/amd/UNSAFE_UserAssistance.js +1 -1
- package/amd/UNSAFE_View.js +1 -1
- package/amd/UNSAFE_VirtualizedListView.js +1 -1
- package/amd/UNSAFE_VisProgressiveLoader/__test__/VisProgressiveLoader.spec.js +1 -1
- package/amd/UNSAFE_VisProgressiveLoader.js +1 -1
- package/amd/UNSAFE_VisStatusMessage.js +1 -1
- package/amd/UNSAFE_WindowOverlay.js +1 -1
- package/amd/{View-ce970ed7.js → View-bd5c7fa7.js} +2 -2
- package/amd/{View-ce970ed7.js.map → View-bd5c7fa7.js.map} +1 -1
- package/amd/{VirtualizedCollection-63223f5e.js → VirtualizedCollection-897516a5.js} +2 -2
- package/amd/{VirtualizedCollection-63223f5e.js.map → VirtualizedCollection-897516a5.js.map} +1 -1
- package/amd/{VirtualizedListView-554eaee6.js → VirtualizedListView-cbe87ec2.js} +2 -2
- package/amd/{VirtualizedListView-554eaee6.js.map → VirtualizedListView-cbe87ec2.js.map} +1 -1
- package/amd/VisNoData-10983ace.js +2 -0
- package/amd/{VisNoData-6fa39277.js.map → VisNoData-10983ace.js.map} +1 -1
- package/amd/{VisProgressiveLoader-68d8d8b3.js → VisProgressiveLoader-06a60c8f.js} +2 -2
- package/amd/{VisProgressiveLoader-68d8d8b3.js.map → VisProgressiveLoader-06a60c8f.js.map} +1 -1
- package/amd/{VisTabularDatatip-1051eaca.js → VisTabularDatatip-55bbd19f.js} +2 -2
- package/amd/{VisTabularDatatip-1051eaca.js.map → VisTabularDatatip-55bbd19f.js.map} +1 -1
- package/amd/{WindowOverlay-a2d80d55.js → WindowOverlay-43c10424.js} +2 -2
- package/amd/{WindowOverlay-a2d80d55.js.map → WindowOverlay-43c10424.js.map} +1 -1
- package/amd/{YearsGridView-d799dc5c.js → YearsGridView-d7b2184e.js} +2 -2
- package/amd/{YearsGridView-d799dc5c.js.map → YearsGridView-d7b2184e.js.map} +1 -1
- package/amd/hoc/PRIVATE_withDirectionIcon.js +1 -1
- package/amd/hoc/PRIVATE_withThemeIcon.js +1 -1
- package/amd/hoc/UNSAFE_withThemeProps.js +1 -1
- package/amd/hooks/PRIVATE_useChartContextMenu.js +1 -1
- package/amd/hooks/PRIVATE_useChartDatatip.js +1 -1
- package/amd/hooks/PRIVATE_useChartEvents.js +1 -1
- package/amd/hooks/PRIVATE_useChartMarquee.js +1 -1
- package/amd/hooks/PRIVATE_useCssVars.js +1 -1
- package/amd/hooks/PRIVATE_useCurrentKey.js +1 -1
- package/amd/hooks/PRIVATE_useDatatip.js +1 -1
- package/amd/hooks/PRIVATE_useFloating.js +1 -1
- package/amd/hooks/PRIVATE_useReorderable.js +1 -1
- package/amd/hooks/PRIVATE_useRovingTabIndexContainer.js +1 -1
- package/amd/hooks/PRIVATE_useSelection.js +1 -1
- package/amd/hooks/PRIVATE_useTabBar.js +1 -1
- package/amd/hooks/PRIVATE_useVisContextMenu.js +1 -1
- package/amd/hooks/PRIVATE_useVisDragModeControls.js +1 -1
- package/amd/hooks/PRIVATE_useVisEvents.js +1 -1
- package/amd/hooks/PRIVATE_useVisMeterEvents.js +1 -1
- package/amd/hooks/PRIVATE_useVisSelection.js +1 -1
- package/amd/hooks/UNSAFE_useColorScheme.js +1 -1
- package/amd/hooks/UNSAFE_useCurrentBgColor.js +1 -1
- package/amd/hooks/UNSAFE_useDensity.js +1 -1
- package/amd/hooks/UNSAFE_useOutsideClick.js +1 -1
- package/amd/hooks/UNSAFE_usePrefixSuffix.js +1 -1
- package/amd/hooks/UNSAFE_useScale.js +1 -1
- package/amd/hooks/UNSAFE_useTestId.js +1 -1
- package/amd/hooks/UNSAFE_useTheme.js +1 -1
- package/amd/hooks/UNSAFE_useThemeInterpolations.js +1 -1
- package/amd/hooks/UNSAFE_useTooltip.js +1 -1
- package/amd/hooks/UNSAFE_useTranslationBundle.js +1 -1
- package/amd/hooks/UNSAFE_useUser.js +1 -1
- package/amd/{index-b7b9300d.js → index-95227deb.js} +2 -2
- package/amd/index-95227deb.js.map +1 -0
- package/amd/listViewSelectionTests-c9777ea8.js +1 -1
- package/amd/render-85c034d7.js +2 -0
- package/amd/{render-366c27ff.js.map → render-85c034d7.js.map} +1 -1
- package/amd/{tabbableUtils-88d4fa35.js → tabbableUtils-591fdc8d.js} +2 -2
- package/amd/{tabbableUtils-88d4fa35.js.map → tabbableUtils-591fdc8d.js.map} +1 -1
- package/amd/{testData-783b8823.js → testData-02652eda.js} +2 -2
- package/amd/{testData-783b8823.js.map → testData-02652eda.js.map} +1 -1
- package/amd/{tooltipUtils-69ce0a2d.js → tooltipUtils-e5bdb734.js} +2 -2
- package/amd/{tooltipUtils-69ce0a2d.js.map → tooltipUtils-e5bdb734.js.map} +1 -1
- package/amd/useCellNavigation-1feec094.js +1 -1
- package/amd/useChartContextMenu-8606bfa2.js +1 -1
- package/amd/useChartDatatip-947eeffe.js +2 -0
- package/amd/{useChartDatatip-ee3783af.js.map → useChartDatatip-947eeffe.js.map} +1 -1
- package/amd/{useColorScheme-10dc88de.js → useColorScheme-443e7cc7.js} +2 -2
- package/amd/{useColorScheme-10dc88de.js.map → useColorScheme-443e7cc7.js.map} +1 -1
- package/amd/useContextMenu-e08aad46.js +1 -1
- package/amd/{useCssVars-c043f8da.js → useCssVars-dc52806c.js} +2 -2
- package/amd/{useCssVars-c043f8da.js.map → useCssVars-dc52806c.js.map} +1 -1
- package/amd/{useCurrentBgColor-2426ee24.js → useCurrentBgColor-50142bd8.js} +2 -2
- package/amd/{useCurrentBgColor-2426ee24.js.map → useCurrentBgColor-50142bd8.js.map} +1 -1
- package/amd/useCurrentKey-a993db56.js +2 -0
- package/amd/{useCurrentKey-31c18053.js.map → useCurrentKey-a993db56.js.map} +1 -1
- package/amd/{useDatatip-ac26447a.js → useDatatip-9942601b.js} +2 -2
- package/amd/{useDatatip-ac26447a.js.map → useDatatip-9942601b.js.map} +1 -1
- package/amd/{useDensity-c83df7b4.js → useDensity-f0f7ae9a.js} +2 -2
- package/amd/{useDensity-c83df7b4.js.map → useDensity-f0f7ae9a.js.map} +1 -1
- package/amd/{useFloating-acd30a55.js → useFloating-bf8ed6cb.js} +2 -2
- package/amd/{useFloating-acd30a55.js.map → useFloating-bf8ed6cb.js.map} +1 -1
- package/amd/useKeyboardEvents-8ada7a1f.js +2 -0
- package/amd/{useKeyboardEvents-d87e3587.js.map → useKeyboardEvents-8ada7a1f.js.map} +1 -1
- package/amd/useLegendContextMenu-e629139a.js +1 -1
- package/amd/useMeterDatatip-173593b4.js +2 -0
- package/amd/{useMeterDatatip-fff3c329.js.map → useMeterDatatip-173593b4.js.map} +1 -1
- package/amd/{useOutsideClick-f99b7a84.js → useOutsideClick-76c1ff6e.js} +2 -2
- package/amd/{useOutsideClick-f99b7a84.js.map → useOutsideClick-76c1ff6e.js.map} +1 -1
- package/amd/{usePopupAnimation-f679a4b0.js → usePopupAnimation-6e53a0fe.js} +2 -2
- package/amd/{usePopupAnimation-f679a4b0.js.map → usePopupAnimation-6e53a0fe.js.map} +1 -1
- package/amd/usePrefixSuffix-f7544e05.js +2 -0
- package/amd/{usePrefixSuffix-09bd5925.js.map → usePrefixSuffix-f7544e05.js.map} +1 -1
- package/amd/{useReorderableItem-4c4779f7.js → useReorderableItem-726c3c03.js} +2 -2
- package/amd/{useReorderableItem-4c4779f7.js.map → useReorderableItem-726c3c03.js.map} +1 -1
- package/amd/{useRovingTabIndexContainer-955e23a8.js → useRovingTabIndexContainer-473f7e43.js} +2 -2
- package/amd/{useRovingTabIndexContainer-955e23a8.js.map → useRovingTabIndexContainer-473f7e43.js.map} +1 -1
- package/amd/useScale-e311d35f.js +2 -0
- package/amd/{useScale-37d42c9d.js.map → useScale-e311d35f.js.map} +1 -1
- package/amd/{useSelectCommon-e7f123ce.js → useSelectCommon-d9c4a7bd.js} +2 -2
- package/amd/{useSelectCommon-e7f123ce.js.map → useSelectCommon-d9c4a7bd.js.map} +1 -1
- package/amd/{useSelectDrill-6361116b.js → useSelectDrill-216c007c.js} +2 -2
- package/amd/{useSelectDrill-6361116b.js.map → useSelectDrill-216c007c.js.map} +1 -1
- package/amd/useSelection-01203394.js +2 -0
- package/amd/{useSelection-af7b4b52.js.map → useSelection-01203394.js.map} +1 -1
- package/amd/{useSelection-f0c7d74d.js → useSelection-4249360e.js} +2 -2
- package/amd/{useSelection-f0c7d74d.js.map → useSelection-4249360e.js.map} +1 -1
- package/amd/useTabBar-2c4573fe.js +1 -1
- package/amd/{useTestId-3a316499.js → useTestId-b5cd4766.js} +2 -2
- package/amd/{useTestId-3a316499.js.map → useTestId-b5cd4766.js.map} +1 -1
- package/amd/{useTheme-ac980f9a.js → useTheme-a8334e06.js} +2 -2
- package/amd/{useTheme-ac980f9a.js.map → useTheme-a8334e06.js.map} +1 -1
- package/amd/useThemeInterpolations-ab618dee.js +2 -0
- package/amd/{useThemeInterpolations-6b2de213.js.map → useThemeInterpolations-ab618dee.js.map} +1 -1
- package/amd/useTooltip-b43ad881.js +2 -0
- package/amd/{useTooltip-7b11fd35.js.map → useTooltip-b43ad881.js.map} +1 -1
- package/amd/{useTooltipControlled-52183a08.js → useTooltipControlled-ee3276de.js} +2 -2
- package/amd/{useTooltipControlled-52183a08.js.map → useTooltipControlled-ee3276de.js.map} +1 -1
- package/amd/{useTranslationBundle-516b1b83.js → useTranslationBundle-d07d4b20.js} +2 -2
- package/amd/{useTranslationBundle-516b1b83.js.map → useTranslationBundle-d07d4b20.js.map} +1 -1
- package/amd/{useUser-85c781ea.js → useUser-3ef25571.js} +2 -2
- package/amd/{useUser-85c781ea.js.map → useUser-3ef25571.js.map} +1 -1
- package/amd/useVisDragModeControls-a5685835.js +1 -1
- package/amd/{useVisEvents-0166e4cc.js → useVisEvents-dc86164f.js} +2 -2
- package/amd/{useVisEvents-0166e4cc.js.map → useVisEvents-dc86164f.js.map} +1 -1
- package/amd/utils/PRIVATE_tooltipUtils.js +1 -1
- package/amd/utils/PRIVATE_visTestUtils.js +1 -1
- package/amd/{withDirectionIcon-ce0c7432.js → withDirectionIcon-74c39ee3.js} +2 -2
- package/amd/{withDirectionIcon-ce0c7432.js.map → withDirectionIcon-74c39ee3.js.map} +1 -1
- package/amd/withThemeProps-4c23997e.js +1 -1
- package/cjs/{BarChart-ca7f8ed5.js → BarChart-93a3813c.js} +2 -2
- package/cjs/{BarChart-ca7f8ed5.js.map → BarChart-93a3813c.js.map} +1 -1
- package/cjs/{Chart-fbbd3329.js → Chart-40d95d14.js} +2 -2
- package/cjs/{Chart-fbbd3329.js.map → Chart-40d95d14.js.map} +1 -1
- package/cjs/{ComboChart-95863e7a.js → ComboChart-cffd0759.js} +2 -2
- package/cjs/{ComboChart-95863e7a.js.map → ComboChart-cffd0759.js.map} +1 -1
- package/cjs/{InputDatePicker-4d36637f.js → InputDatePicker-bc2c534a.js} +2 -2
- package/cjs/{InputDatePicker-4d36637f.js.map → InputDatePicker-bc2c534a.js.map} +1 -1
- package/cjs/{LineAreaChart-46dde5d3.js → LineAreaChart-bb1350fa.js} +2 -2
- package/cjs/{LineAreaChart-46dde5d3.js.map → LineAreaChart-bb1350fa.js.map} +1 -1
- package/cjs/PRIVATE_Chart.js +4 -4
- package/cjs/{ScatterChart-0497f41a.js → ScatterChart-763e1f3e.js} +2 -2
- package/cjs/{ScatterChart-0497f41a.js.map → ScatterChart-763e1f3e.js.map} +1 -1
- package/cjs/Theme-redwood/theme.css +305 -305
- package/cjs/Theme-stable/theme.css +401 -401
- package/cjs/UNSAFE_BarChart/__test__/BarChart.spec.js +5 -5
- package/cjs/UNSAFE_BarChart.js +5 -5
- package/cjs/UNSAFE_ComboChart.js +5 -5
- package/cjs/UNSAFE_InputDatePicker.js +90 -90
- package/cjs/UNSAFE_LineAreaChart.js +5 -5
- package/cjs/UNSAFE_ScatterChart.js +5 -5
- package/es/{BaseCardView-c5a8ee6a.js → BaseCardView-229fa119.js} +2 -2
- package/es/{BaseCardView-c5a8ee6a.js.map → BaseCardView-229fa119.js.map} +1 -1
- package/es/{CardFlexView-529906e0.js → CardFlexView-3ef6bf4d.js} +2 -2
- package/es/{CardFlexView-529906e0.js.map → CardFlexView-3ef6bf4d.js.map} +1 -1
- package/es/{CardGridView-ec18c929.js → CardGridView-e15226c9.js} +2 -2
- package/es/{CardGridView-ec18c929.js.map → CardGridView-e15226c9.js.map} +1 -1
- package/es/ExpandableList-478db30a.js +1 -1
- package/es/GroupLoadingIndicator-63035d08.js +1 -1
- package/es/{Indexer-ba2c7593.js → Indexer-eb00ba0b.js} +2 -2
- package/es/{Indexer-ba2c7593.js.map → Indexer-eb00ba0b.js.map} +1 -1
- package/es/{List-97b7be70.js → List-e6886091.js} +3 -4
- package/es/{List-97b7be70.js.map → List-e6886091.js.map} +1 -1
- package/es/{ListView-936d8a4f.js → ListView-137e31fd.js} +2 -2
- package/es/{ListView-936d8a4f.js.map → ListView-137e31fd.js.map} +1 -1
- package/es/{LoadMoreCollection-95a49d2a.js → LoadMoreCollection-7df1be36.js} +2 -2
- package/es/{LoadMoreCollection-95a49d2a.js.map → LoadMoreCollection-7df1be36.js.map} +1 -1
- package/es/PRIVATE_BaseCardView.js +3 -3
- package/es/PRIVATE_List.js +4 -4
- package/es/PRIVATE_LoadMoreCollection.js +2 -2
- package/es/PRIVATE_SelectCommon.js +5 -5
- package/es/PRIVATE_Table.js +3 -3
- package/es/PRIVATE_VirtualizedCollection.js +2 -2
- package/es/SegmentStyles.styles.css +8 -8
- package/es/SegmentStyles.styles2.css +8 -8
- package/es/{SelectMultiple-ad8fc99a.js → SelectMultiple-488a49d1.js} +2 -2
- package/es/{SelectMultiple-ad8fc99a.js.map → SelectMultiple-488a49d1.js.map} +1 -1
- package/es/{SelectSingle-abaf271c.js → SelectSingle-e8b9a33a.js} +2 -2
- package/es/{SelectSingle-abaf271c.js.map → SelectSingle-e8b9a33a.js.map} +1 -1
- package/es/SplitMenuButtonTheme.styles.css +4 -4
- package/es/SplitMenuButtonTheme.styles2.css +4 -4
- package/es/{Table-1ba124ec.js → Table-3cfb9443.js} +2 -2
- package/es/{Table-1ba124ec.js.map → Table-3cfb9443.js.map} +1 -1
- package/es/{TableView-20223ba6.js → TableView-fd5104cd.js} +2 -2
- package/es/{TableView-20223ba6.js.map → TableView-fd5104cd.js.map} +1 -1
- package/es/Theme-redwood/theme.css +326 -326
- package/es/Theme-stable/theme.css +540 -540
- package/es/UNSAFE_ButtonLayout/tests/ButtonLayout.spec.js +1 -1
- package/es/UNSAFE_CardFlexView.js +4 -4
- package/es/UNSAFE_CardGridView.js +4 -4
- package/es/UNSAFE_ExpandableList.js +3 -3
- package/es/UNSAFE_Indexer.js +2 -2
- package/es/UNSAFE_InputDateMask/themes/SegmentStyles.css.js +1 -1
- package/es/UNSAFE_InputDateMask.js +1 -1
- package/es/UNSAFE_InputDatePicker.js +1 -1
- package/es/UNSAFE_InputTimeMask/themes/SegmentStyles.css.js +1 -1
- package/es/UNSAFE_InputTimeMask.js +1 -1
- package/es/UNSAFE_ListView.js +5 -5
- package/es/UNSAFE_SelectMultiple.js +6 -6
- package/es/UNSAFE_SelectSingle.js +6 -6
- package/es/UNSAFE_SplitMenuButton/themes/redwood/SplitMenuButtonTheme.css.js +1 -1
- package/es/UNSAFE_SplitMenuButton/themes/stable/SplitMenuButtonTheme.css.js +1 -1
- package/es/UNSAFE_SplitMenuButton.js +1 -1
- package/es/UNSAFE_TableView.js +4 -4
- package/es/UNSAFE_Toolbar/tests/Toolbar.spec.js +1 -1
- package/es/UNSAFE_VirtualizedListView.js +5 -5
- package/es/{VirtualizedCollection-e73890a1.js → VirtualizedCollection-f048fbb8.js} +2 -2
- package/es/{VirtualizedCollection-e73890a1.js.map → VirtualizedCollection-f048fbb8.js.map} +1 -1
- package/es/{VirtualizedListView-3ef40bde.js → VirtualizedListView-0532e46c.js} +2 -2
- package/es/{VirtualizedListView-3ef40bde.js.map → VirtualizedListView-0532e46c.js.map} +1 -1
- package/es/{useSelectCommon-1dafa6f9.js → useSelectCommon-af8e715e.js} +2 -2
- package/es/{useSelectCommon-1dafa6f9.js.map → useSelectCommon-af8e715e.js.map} +1 -1
- package/package.json +2 -2
- package/amd/CardFlexView-bb5c4369.js +0 -2
- package/amd/CompactLabelAssistance-44ba87b0.js +0 -2
- package/amd/Flex-56ecdf4c.js +0 -2
- package/amd/HighlightText-bd4c0101.js +0 -2
- package/amd/List-04c4fed0.js +0 -2
- package/amd/LiveRegion-8142ed0d.js +0 -2
- package/amd/LoadMoreCollection-a6adbc3f.js +0 -2
- package/amd/MaxLengthCounter-9a95922c.js +0 -2
- package/amd/MaxLengthCounter-9a95922c.js.map +0 -1
- package/amd/MaxLengthLiveRegion-8954fc30.js +0 -2
- package/amd/SectionedContent-2a261004.js +0 -2
- package/amd/SelectionCard-895b014d.js +0 -2
- package/amd/TabBarMixedSeparator-8c278254.js +0 -2
- package/amd/TextArea-89b9ed65.js +0 -2
- package/amd/TextArea-89b9ed65.js.map +0 -1
- package/amd/TextAreaAutosize-81449e46.js +0 -2
- package/amd/TruncatingBadge-04f9ef4c.js +0 -2
- package/amd/VisNoData-6fa39277.js +0 -2
- package/amd/index-b7b9300d.js.map +0 -1
- package/amd/render-366c27ff.js +0 -2
- package/amd/useChartDatatip-ee3783af.js +0 -2
- package/amd/useCurrentKey-31c18053.js +0 -2
- package/amd/useKeyboardEvents-d87e3587.js +0 -2
- package/amd/useMeterDatatip-fff3c329.js +0 -2
- package/amd/usePrefixSuffix-09bd5925.js +0 -2
- package/amd/useScale-37d42c9d.js +0 -2
- package/amd/useSelection-af7b4b52.js +0 -2
- package/amd/useThemeInterpolations-6b2de213.js +0 -2
- package/amd/useTooltip-7b11fd35.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Floating-1ec5ec2a.js","sources":["../../src/UNSAFE_Floating/FloatingTail.tsx","../../src/UNSAFE_Floating/Floating.tsx"],"sourcesContent":["import { forwardRef, ForwardedRef } from 'preact/compat';\nimport { useMemo, useLayoutEffect, useRef, useState } from 'preact/hooks';\nimport type { RefObject } from 'preact';\nimport { PositionData, Coords } from './Floating.types';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { FloatingStyles } from './themes/FloatingStyles.css';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport type { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { Property } from 'csstype';\nimport { rgba } from '../UNSAFE_Theme/utils';\nimport { colorSchemeVars } from '../Common/themes/themeContract.css';\nimport { FloatingRedwoodTheme } from './themes/redwood/FloatingTheme';\n\ntype Props = Pick<ColorProps, 'backgroundColor'> & {\n data?: PositionData;\n anchorRef: RefObject<Element | Coords>;\n tail: 'none' | 'simple';\n isRtl: boolean;\n};\n\nconst ARROW_SIZE = 7;\nconst ARROW_SIZE_CORNER = 6;\nconst ARROW_INNER_SIZE = 5;\nconst ARROW_INNER_SIZE_CORNER = 5;\n\nconst FloatingTail = forwardRef(\n (\n { data, anchorRef, tail, isRtl, backgroundColor }: Props,\n ref: ForwardedRef<HTMLDivElement | null>\n ) => {\n const { styles, baseTheme } = useComponentTheme<never, FloatingStyles>(FloatingRedwoodTheme);\n const arrowRef = useRef<HTMLDivElement | null>(null);\n const [arrowStyles, setArrowStyles] = useState({\n arrowStyle: { visibility: 'hidden' },\n arrowInnerStyle: { visibility: 'hidden' }\n });\n\n useLayoutEffect(() => {\n if (arrowRef.current == null) return;\n const { isCornerVerticalPlacement, isCornerHorizontalPlacement } = isCorner(\n anchorRef,\n tail,\n data\n );\n setArrowStyles(\n setStyles(\n tail,\n isRtl,\n isCornerVerticalPlacement,\n isCornerHorizontalPlacement,\n data,\n backgroundColor\n )\n );\n }, [\n data,\n backgroundColor,\n data?.placement,\n data?.x,\n data?.y,\n data?.offset,\n data?.arrow,\n tail,\n isRtl,\n anchorRef\n ]);\n\n const stableRef = useMemo(() => mergeRefs(ref, arrowRef), [ref, arrowRef]);\n return (\n tail === 'simple' && (\n <div\n ref={stableRef}\n class={classNames([baseTheme, styles.floatingTailBaseStyle])}\n style={arrowStyles.arrowStyle}>\n {' '}\n {/*Outer arrow - shadow*/}\n <div\n class={classNames([styles.floatingTailBaseStyle])}\n style={arrowStyles.arrowInnerStyle}></div>{' '}\n {/*Inner arrow - body*/}\n </div>\n )\n );\n }\n);\n\nfunction isCorner(\n anchorRef: RefObject<Element | Coords>,\n tail: 'none' | 'simple',\n data?: PositionData\n) {\n if (tail === 'simple' && data && data.arrow) {\n const { centerOffset } = data.arrow;\n const arrowSize = ARROW_SIZE;\n let anchorRefHeight = 0;\n let anchorRefWidth = 0;\n const current = anchorRef.current;\n // @ts-ignore. Type 'Element | Coords' issues\n // Property 'x' does not exist on type 'Element'.\n // Property 'y' does not exist on type 'Element'.\n const isAnchorRefElement = current?.x === undefined && current?.y === undefined;\n if (isAnchorRefElement) {\n // @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.\n anchorRefHeight = Math.round(current.getBoundingClientRect().height);\n // @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.\n anchorRefWidth = Math.round(anchorRef.current?.getBoundingClientRect().width);\n }\n const isCornerVerticalPlacement = isAnchorRefElement\n ? Math.abs(centerOffset) >= anchorRefHeight / 2 - arrowSize / 2\n : ['start-top-corner', 'start-bottom-corner', 'end-top-corner', 'end-bottom-corner'].includes(\n data.origPlacement\n );\n const isCornerHorizontalPlacement = isAnchorRefElement\n ? Math.abs(centerOffset) >= anchorRefWidth / 2 - arrowSize / 2\n : ['top-start-corner', 'top-end-corner', 'bottom-start-corner', 'bottom-end-corner'].includes(\n data.origPlacement\n );\n\n return { isCornerVerticalPlacement, isCornerHorizontalPlacement };\n } else return { isCornerVerticalPlacement: false, isCornerHorizontalPlacement: false };\n}\n\nfunction setStyles(\n //arrowEl: HTMLDivElement,\n tail: 'none' | 'simple',\n isRtl: boolean,\n isCornerVerticalPlacement: boolean,\n isCornerHorizontalPlacement: boolean,\n data?: PositionData,\n backgroundColor?: Property.BackgroundColor\n) {\n const result = { visibility: 'visible' };\n const innerResult = { visibility: 'visible' };\n if (tail === 'simple' && data && data.arrow) {\n const { x, y, centerOffset } = data.arrow;\n const arrowSize = ARROW_SIZE;\n const arrowSizeCorner = ARROW_SIZE_CORNER;\n //const arrowInnerEl = arrowEl.querySelector('div') as Element;\n const arrowInnerSize = ARROW_INNER_SIZE;\n const arrowInnerSizeCorner = ARROW_INNER_SIZE_CORNER;\n\n const isCenter = centerOffset === 0;\n const isCenterOffsetPositive = centerOffset > 0;\n\n // Set sizes of the arrow\n setArrowSizes(isCornerVerticalPlacement || isCornerHorizontalPlacement);\n\n // Corner vs. normal arrow\n function setArrowSizes(isCornerPlacement?: boolean) {\n // Outer arrow (shadow)\n const arrowFinalSize = isCornerPlacement ? arrowSizeCorner : arrowSize;\n setArrowStyle(\n {\n // Tracked: \n borderTop: `${getSize(arrowFinalSize)} solid ${rgba(\n colorSchemeVars.palette.neutral[90],\n 0.1\n )}`,\n borderRight: getTransparentBorder(arrowFinalSize),\n borderLeft: getTransparentBorder(arrowFinalSize)\n },\n result\n );\n // Inner arrow\n const arrowInnerFinalSize = isCornerPlacement ? arrowInnerSizeCorner : arrowInnerSize;\n setArrowInnerStyle(\n {\n // Tracked: \n borderTop: `${getSize(arrowInnerFinalSize)} solid ${backgroundColor}`,\n borderRight: `${getTransparentBorder(arrowInnerFinalSize)}`,\n borderLeft: `${getTransparentBorder(arrowInnerFinalSize)}`\n },\n innerResult\n );\n }\n\n function setArrowStyle(style: object, result: object) {\n Object.assign(result, style);\n }\n\n function setArrowInnerStyle(style: object, result: object) {\n Object.assign(result, style);\n }\n\n function getTurn(eighth: number) {\n return `rotate(${eighth * 45}deg)`;\n }\n\n function getSize(size: number) {\n return `${size}px`;\n }\n\n function getTransparentBorder(size: number) {\n return `${getSize(size)} solid transparent`;\n }\n\n const placementArr = data.placement.split('-');\n const side = placementArr[0];\n\n switch (side) {\n case 'top':\n setArrowTop();\n break;\n case 'end':\n isRtl ? setArrowStart() : setArrowEnd();\n break;\n case 'bottom':\n setArrowBottom();\n break;\n case 'start':\n isRtl ? setArrowEnd() : setArrowStart();\n break;\n }\n\n function setArrowTop() {\n if (x != undefined) {\n if (isCornerHorizontalPlacement) {\n // Top corners\n setArrowStyle(\n {\n top: '', // flip 'reset'\n bottom: getSize(-arrowSize + 2),\n left: getSize(x + (isCenterOffsetPositive ? 5 : -5)),\n transform: getTurn(isCenterOffsetPositive ? 5 : 3)\n },\n result\n );\n setCornerArrowInner();\n } else {\n setArrowStyle(\n {\n top: '', // flip 'reset'\n bottom: getSize(-arrowSize),\n left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),\n transform: getTurn(0)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowEnd() {\n if (y != undefined) {\n if (isCornerVerticalPlacement) {\n // End corners\n setArrowStyle(\n {\n top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),\n right: '', // flip 'reset'\n left: getSize(-arrowSize - 1),\n transform: getTurn(isCenterOffsetPositive ? 7 : 5)\n },\n result\n );\n setCornerArrowInner();\n } else {\n // End\n setArrowStyle(\n {\n top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),\n right: '', // flip 'reset'\n left: getSize(-arrowSize * 1.5),\n transform: getTurn(2)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowBottom() {\n if (x != undefined) {\n if (isCornerHorizontalPlacement) {\n // Bottom corners\n setArrowStyle(\n {\n top: getSize(-arrowSize + 3),\n bottom: '', // flip 'reset'\n left: getSize(x + (isCenterOffsetPositive ? 4 : -4)),\n transform: getTurn(isCenterOffsetPositive ? 2 : 6)\n },\n result\n );\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 1 : -1))\n },\n innerResult\n );\n } else {\n setArrowStyle(\n {\n top: getSize(-arrowSize),\n bottom: '', // flip 'reset'\n left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),\n transform: getTurn(4)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowStart() {\n if (y != undefined) {\n if (isCornerVerticalPlacement) {\n // Start corners\n setArrowStyle(\n {\n top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),\n right: getSize(-arrowSize - 1),\n left: '', // flip 'reset'\n transform: getTurn(isCenterOffsetPositive ? 1 : 3)\n },\n result\n );\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? -2 : 2))\n },\n innerResult\n );\n } else {\n // Start\n setArrowStyle(\n {\n top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),\n right: getSize(-arrowSize * 1.5),\n left: '', // flip 'reset'\n transform: getTurn(6)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setCornerArrowInner() {\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 2 : -2))\n },\n innerResult\n );\n }\n\n function setNonCornerArrowInner() {\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize - 2),\n left: getSize(-arrowInnerSize)\n },\n innerResult\n );\n }\n }\n return { arrowStyle: result, arrowInnerStyle: innerResult };\n}\n\nexport { FloatingTail };\n","import type { RefObject } from 'preact';\nimport { useLayoutEffect, useEffect, useMemo, useState, useRef, useCallback } from 'preact/hooks';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { autoUpdate, arrow } from '@floating-ui/dom';\nimport {\n useFloating,\n shift,\n flip,\n size,\n offset,\n limitShift,\n VirtualElement,\n logicalSide\n} from '../hooks/PRIVATE_useFloating';\nimport { Offset, Placement, Coords, PositionData } from './Floating.types';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { FloatingTail } from './FloatingTail';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { FloatingStyles, floatingVisibilityStyles } from './themes/FloatingStyles.css';\nimport { FloatingRedwoodTheme } from './themes/redwood/FloatingTheme';\nimport { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { floatingVars } from './themes/FloatingContract.css';\nimport type { ColorProps } from '../utils/UNSAFE_interpolations/colors';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children' | 'class'>;\n/**\n * Specifies the flipping behavior along the respective axis.\n */\nexport type FlipOptions = {\n /**\n * If set to true, enables collision detection on the main axis,\n * which runs along the floating placement side.\n */\n mainAxis?: boolean;\n /**\n * If set to true, enables collision detection on the cross axis,\n * which runs along the floating placement side.\n */\n crossAxis?: boolean;\n /**\n * Specifies an array of placements to try\n * if the preferred initial placement doesn’t fit on the axes\n * in which collision is detected.\n */\n fallbackPlacements?: Array<Placement>;\n};\n\n/**\n * Specifies the shift behavior along the respective axis.\n * When true, the floating element will shift to prevent overflow.\n */\nexport type ShiftOptions = {\n /**\n * main axis in which shifting is applied. Default <code>true</code>.\n */\n mainAxis?: boolean;\n /**\n * cross axis in which shifting is applied. Default <code>false</code>.\n */\n crossAxis?: boolean;\n};\n\n/**\n * This describes the virtual padding around the collision boundary (currently the view port).\n * This could be extended in the future,\n * i.e. property to define what is a boundary ( a view port, a document, some other html element)\n */\nexport type BoundaryOptions = {\n padding?:\n | number\n | {\n top: number;\n right: number;\n bottom: number;\n left: number;\n };\n};\n/**\n * Specifies the resizing behaviour for max-height and max-width of the floating component.\n * The floating element will change the size depending on the available space.\n * isMaxHeightAdjusted/isMaxWidthAdjusted - sets the max-height/max-width of the floating to the available space till the collision.\n * maxHeightCeiling/maxWidthCeiling - this is the limit for max-height/max-width that should not be exceeded, even if there is more available space till the collision.\n */\nexport type SizeOptions = {\n isMaxWidthAdjusted?: boolean;\n isMaxHeightAdjusted?: boolean;\n maxHeightCeiling?: number;\n maxWidthCeiling?: number;\n};\n\ntype Props = IntrinsicProps &\n Pick<ColorProps, 'backgroundColor'> & {\n /**\n * <p>Placement of the floating element relative to its reference element.</p>\n * <p>Placement consists of two parts, the first part is the side, the second is the alignment.</p>\n * <p>Possible values are:</p>\n * <p> <code>'top' </code> <code>'top-start' </code> <code> 'top-end' </code> <code> 'top-start-corner' </code> <code> 'top-end-corner' </code>\n * <code> 'end' </code> <code> 'end-top' </code> <code> 'end-bottom' </code> <code> 'end-top-corner' </code> <code> 'end-bottom-corner' </code>\n * <code> 'bottom' </code> <code> 'bottom-start' </code> <code> 'bottom-end' </code> <code> 'bottom-start-corner' </code> <code> 'bottom-end-corner' </code>\n * <code> 'start' </code> <code> 'start-top' </code> <code> 'start-bottom' </code> <code> 'start-top-corner' </code> <code> 'start-bottom-corner' </code>\n * </p>\n */\n placement?: Placement;\n\n /**\n * Trigger element reference.\n */\n anchorRef: RefObject<Element | Coords>;\n\n /**\n * Placement offset.\n * Offset displaces the floating element from its core placement along the specified axes.\n * Offset could be a number or an object\n * A number represents the distance (gutter or margin) between the floating element and the reference element.\n * This is shorthand for mainAxis.\n * <pre>\n * {\n * mainAxis?: number;\n * crossAxis?: number;\n * }\n * </pre>\n * <p><code>mainAxis</code> - represents the distance (gutter or margin) between the floating element and the reference element.</p>\n * <p><code>crossAxis</code> - represents the shifting between the floating element and the reference element.<p>\n */\n offsetValue?: Offset;\n\n /**\n * Click outside callback.\n */\n onClickOutside?: (event: MouseEvent) => void;\n\n /**\n * FlipOptions object\n * <pre>\n * type FlipOptions = {\n * mainAxis?: boolean;\n * crossAxis?: boolean;\n * fallbackPlacements?: Array<Placement>;\n * }\n * </pre>\n * <p>Specifies the flipping behavior along the respective axis.<p>\n * <p><code>mainAxis</code> - If set to true, enables collision detection on the main axis, which runs along the floating placement side.\n * Default is <code>true</code>.\n * </p>\n * <p><code>crossAxis</code> - If set to true, enables collision detection on the cross axis, which runs along the floating placement alignment.\n * Default is <code>false</code>.\n * </p>\n * <p><code>fallbackPlacements</code> - specifies an array of placements to try if the preferred initial placement doesn’t fit on the axes in which collision is detected.\n * The fallback placements will be tried in the order they are specified in the array.\n * The following placements are allowed as values of the array:\n * <code>'top'</code>, <code>'top-start'</code>, <code>'top-end'</code>, <code>'start'</code>, <code>'start-top'</code>, <code>'start-bottom'</code>, <code>'bottom'</code>,\n * <code>'bottom-start'</code>, <code>'bottom-end'</code>, <code>'end'</code>, <code>'end-top'</code>, <code>'end-bottom'</code>.\n * <p>\n * If not specified, the default behaviour is to flip to the side <code>opposite</code> to the one in which collision is detected\n * </p>\n * </p>\n */\n flipOptions?: FlipOptions;\n\n /**\n * Specifies the shift behavior along the respective axis. When true, the floating element will shift to prevent overflow.\n * <pre>\n * type ShiftOptions = {\n * mainAxis?: boolean;\n * crossAxis?: boolean;\n * };\n * </pre>\n * <p><code>mainAxis</code> - main axis in which shifting is applied. Default <code>true</code>.</p>\n * <p><code>crossAxis</code> - cross axis in which shifting is applied. Default <code>false</code>.</p>\n */\n shiftOptions?: ShiftOptions;\n\n /**\n * Triggered when placement or coordinates are changed after collision is detected\n */\n onPosition?: (data: PositionData) => void;\n\n /**\n * Tail\n */\n tail?: 'none' | 'simple';\n\n /**\n * Specifies the resizing behaviour for max-height and max-width of the floating component.\n * <pre>\n * type SizeOptions = {\n * isMaxWidthAdjusted?: boolean;\n * isMaxHeightAdjusted?: boolean;\n * maxHeightCeiling?: number;\n * maxWidthCeiling?: number;\n * }\n * </pre>\n * <p><code>isMaxHeightAdjusted</code> and <code>isMaxWidthAdjusted</code> - sets the max-height/max-width of the floating to the available space till the collision.\n * When either of the options isMaxHeightAdjusted, isMaxWidthAdjusted is true, the floating element will change the size depending on the available space.\n * Default values are <code>'false'</code>.</p>\n * <p><code>maxHeightCeiling</code> and <code>maxWidthCeiling</code> - are maximal values that could not be exceeded.\n * Defaults are undefined and it means to use full available width/height.</p>\n */\n sizeOptions?: SizeOptions;\n\n /**\n * <p>This describes the virtual padding around the collision boundary (currently the view port).</p>\n * <p>This could be extended in the future,\n * i.e. property to define what is a boundary\n * ( a view port, a document, some other html element)</p>\n * <pre>\n * type BoundaryOptions = {\n * padding?: number | {\n * top: number;\n * right: number;\n * bottom: number;\n * left: number;\n * };\n * }\n * </pre>\n * Default value for padding is 0.\n */\n boundaryOptions?: BoundaryOptions;\n };\n\nfunction isElement(value: any): value is Element {\n return value instanceof Element;\n}\n\n/**\n * A floating component allows the user to create a floating element that is displayed relative to an anchor element or pointer coordinates\n * and at the same time on the \"top layer\" of all other elements.\n * The Floating component is a base component and is often used by such components as Popup, Tooltip, SelectMultiple, Menu and other components.\n */\nexport const Floating = forwardRef(\n (\n {\n children,\n backgroundColor,\n onClickOutside,\n placement = 'bottom',\n anchorRef,\n offsetValue,\n class: className,\n tail = 'none',\n flipOptions = { mainAxis: true, crossAxis: false },\n shiftOptions = { mainAxis: true, crossAxis: false },\n sizeOptions = { isMaxHeightAdjusted: false, isMaxWidthAdjusted: false },\n boundaryOptions = { padding: 0 },\n onPosition\n }: Props,\n ref: ForwardedRef<HTMLElement | null>\n ) => {\n const arrowRef = useRef<HTMLDivElement>(null);\n const [positionData, setPositionData] = useState<PositionData>();\n\n const [previousAnchor, setPreviousAnchor] = useState<Element | Coords | null>(null);\n\n const { styles, baseTheme } = useComponentTheme<never, FloatingStyles>(FloatingRedwoodTheme);\n\n // we need to be sure anchorRef.current exists in first call\n // to be able to set the previousAnchor state\n useLayoutEffect(() => {\n setPreviousAnchor(anchorRef.current);\n }, [anchorRef]);\n\n // In case anchorRef.current changes and we need to update floating position\n // when it changes, we need to have copy in the state.\n // For example when anchorRef is Coords( virtual element)\n if (anchorRef.current !== previousAnchor) {\n setPreviousAnchor(anchorRef.current);\n }\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n\n const _onPosition = useCallback(\n (data: PositionData) => {\n setPositionData(data);\n onPosition?.(data);\n },\n [onPosition]\n );\n\n const middleware = [\n offset(offsetValue),\n flip({\n mainAxis: flipOptions.mainAxis,\n crossAxis: flipOptions.crossAxis,\n fallbackPlacements: flipOptions.fallbackPlacements?.map((placement) =>\n logicalSide(placement, direction)\n ),\n padding: boundaryOptions.padding\n }),\n shift({\n mainAxis: shiftOptions.mainAxis,\n crossAxis: shiftOptions.crossAxis,\n limiter: limitShift({\n mainAxis: shiftOptions.mainAxis,\n crossAxis: shiftOptions.crossAxis\n })\n }),\n ...(arrowRef.current\n ? [\n arrow({\n element: arrowRef.current\n })\n ]\n : [])\n ];\n if (sizeOptions.isMaxHeightAdjusted || sizeOptions.isMaxWidthAdjusted) {\n middleware.push(\n size({\n apply({ availableWidth, availableHeight, elements }) {\n if (sizeOptions.isMaxHeightAdjusted) {\n if (parseInt(elements.floating.style.maxHeight) !== availableHeight) {\n Object.assign(elements.floating.style, {\n maxHeight: `${Math.min(\n availableHeight,\n sizeOptions.maxHeightCeiling || availableHeight\n )}px`\n });\n }\n }\n\n if (sizeOptions.isMaxWidthAdjusted) {\n if (parseInt(elements.floating.style.maxWidth) !== availableWidth) {\n Object.assign(elements.floating.style, {\n maxWidth: `${Math.min(\n availableWidth,\n sizeOptions.maxWidthCeiling || availableWidth\n )}px`\n });\n }\n }\n },\n\n padding: boundaryOptions.padding\n })\n );\n }\n\n const { x, y, reference, floating, refs, update } = useFloating({\n placement: placement,\n middleware: middleware,\n onPosition: _onPosition\n });\n\n // To solve \"loop limit exceeds\" problem from the ResizeObserver in autoUpdate\n // we need to make sure that we utilize autoUpdate function\n // after the Floating component is positioned and has x, y coordinates.\n const [isPositioned, setIsPositioned] = useState(false);\n\n // here autoUpdate should be called only once during the Component lifecycle,\n // if the floating, reference, placement and middleware do not change\n useEffect(() => {\n if (!refs.reference.current || !refs.floating.current || isPositioned !== true) {\n return;\n }\n\n return autoUpdate(refs.reference.current, refs.floating.current, update);\n }, [refs.floating, refs.reference, update, isPositioned]);\n\n // here we should know when the Floating is positioned\n useEffect(() => {\n if (x != null && y != null) {\n setIsPositioned(true);\n }\n }, [x, y]);\n\n useOutsideClick({ isDisabled: false, ref: refs.floating, handler: onClickOutside });\n\n function createVirtualElement(\n domRef: Element | null,\n data: {\n axis: 'x' | 'y' | 'both';\n x: number | null;\n y: number | null;\n }\n ) {\n let offsetX: number | null = null;\n let offsetY: number | null = null;\n let isAutoUpdateEvent = false;\n\n return {\n contextElement: domRef || undefined,\n getBoundingClientRect() {\n const domRect = domRef?.getBoundingClientRect() || {\n width: 0,\n height: 0,\n x: 0,\n y: 0\n };\n\n const isXAxis = data.axis === 'x' || data.axis === 'both';\n const isYAxis = data.axis === 'y' || data.axis === 'both';\n\n let width = domRect.width;\n let height = domRect.height;\n let x = domRect.x;\n let y = domRect.y;\n\n if (offsetX == null && data.x && isXAxis) {\n offsetX = domRect.x - data.x;\n }\n\n if (offsetY == null && data.y && isYAxis) {\n offsetY = domRect.y - data.y;\n }\n\n x -= offsetX || 0;\n y -= offsetY || 0;\n width = 0;\n height = 0;\n\n if (!isAutoUpdateEvent) {\n width = data.axis === 'y' ? domRect.width : 0;\n height = data.axis === 'x' ? domRect.height : 0;\n x = isXAxis && data.x != null ? data.x : x;\n y = isYAxis && data.y != null ? data.y : y;\n } else if (isAutoUpdateEvent) {\n height = data.axis === 'x' ? domRect.height : height;\n width = data.axis === 'y' ? domRect.width : width;\n }\n\n isAutoUpdateEvent = true;\n const virtEl = {\n width,\n height,\n x,\n y,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x\n };\n\n return virtEl;\n }\n };\n }\n\n useLayoutEffect(() => {\n if (isElement(previousAnchor)) {\n const element = previousAnchor as Element;\n reference(element);\n return;\n }\n const coords = previousAnchor as Coords;\n if (coords != null && coords.contextElement != null) {\n const virtualEl = createVirtualElement(coords.contextElement, {\n axis: 'both',\n x: coords.x,\n y: coords.y\n });\n reference(virtualEl);\n return;\n }\n const virtualEl: VirtualElement = {\n getBoundingClientRect() {\n return {\n width: 0,\n height: 0,\n x: coords!.x,\n y: coords!.y,\n top: coords!.y,\n left: coords!.x,\n right: coords!.x,\n bottom: coords!.y\n };\n }\n };\n if (coords && coords.x != null) {\n reference(virtualEl);\n }\n }, [previousAnchor, reference]);\n\n const stableRef = useMemo(() => mergeRefs(ref, floating), [ref, floating]);\n const positionStyle = { top: y, left: x };\n\n let assignedVars = {}; // empty var override unless background is specified\n if (backgroundColor) {\n assignedVars = assignInlineVars({\n [floatingVars.backgroundColor]: backgroundColor\n });\n }\n\n const visibilityStyles =\n x == null && y == null ? floatingVisibilityStyles.hidden : floatingVisibilityStyles.visible;\n const floatingClasses = classNames([className, baseTheme, styles.baseStyle, visibilityStyles]);\n const isAnchorMounted = anchorRef && anchorRef.current;\n const content = (\n <div class={floatingClasses} ref={stableRef} style={{ ...positionStyle, ...assignedVars }}>\n {children}\n {isAnchorMounted && (\n <FloatingTail\n ref={arrowRef}\n backgroundColor={backgroundColor}\n data={positionData}\n anchorRef={anchorRef}\n tail={tail}\n isRtl={isRtl}\n />\n )}\n </div>\n );\n return content;\n }\n);\n"],"names":["FloatingTail","forwardRef","data","anchorRef","tail","isRtl","backgroundColor","ref","styles","baseTheme","useComponentTheme","FloatingRedwoodTheme","arrowRef","useRef","arrowStyles","setArrowStyles","useState","arrowStyle","visibility","arrowInnerStyle","useLayoutEffect","current","isCornerVerticalPlacement","isCornerHorizontalPlacement","arrow","centerOffset","arrowSize","anchorRefHeight","anchorRefWidth","isAnchorRefElement","undefined","x","y","Math","round","getBoundingClientRect","height","width","abs","includes","origPlacement","isCorner","result","innerResult","arrowSizeCorner","arrowInnerSize","arrowInnerSizeCorner","isCenter","isCenterOffsetPositive","setArrowSizes","isCornerPlacement","arrowFinalSize","setArrowStyle","borderTop","getSize","rgba","colorSchemeVars","palette","neutral","borderRight","getTransparentBorder","borderLeft","arrowInnerFinalSize","setArrowInnerStyle","style","Object","assign","getTurn","eighth","size","placement","split","setArrowTop","setArrowStart","setArrowEnd","setArrowBottom","top","bottom","left","transform","setCornerArrowInner","setNonCornerArrowInner","right","setStyles","offset","stableRef","useMemo","mergeRefs","_jsxs","class","classNames","floatingTailBaseStyle","children","_jsx","Floating","onClickOutside","offsetValue","className","flipOptions","mainAxis","crossAxis","shiftOptions","sizeOptions","isMaxHeightAdjusted","isMaxWidthAdjusted","boundaryOptions","padding","onPosition","positionData","setPositionData","previousAnchor","setPreviousAnchor","direction","useUser","_onPosition","useCallback","middleware","flip","fallbackPlacements","map","logicalSide","shift","limiter","limitShift","element","push","apply","availableWidth","availableHeight","elements","parseInt","floating","maxHeight","min","maxHeightCeiling","maxWidth","maxWidthCeiling","reference","refs","update","useFloating","isPositioned","setIsPositioned","useEffect","autoUpdate","useOutsideClick","isDisabled","handler","Element","coords","contextElement","virtualEl","domRef","offsetX","offsetY","isAutoUpdateEvent","domRect","isXAxis","axis","isYAxis","createVirtualElement","positionStyle","assignedVars","assignInlineVars","floatingVars","visibilityStyles","floatingVisibilityStyles","hidden","visible","floatingClasses","baseStyle","isAnchorMounted"],"mappings":"sgBAqBA,MAKMA,EAAeC,EAAAA,YACnB,EACIC,OAAMC,YAAWC,OAAMC,QAAOC,mBAChCC,KAEA,MAAMC,OAAEA,EAAMC,UAAEA,GAAcC,EAAiBA,kBAAwBC,EAAoBA,sBACrFC,EAAWC,SAA8B,OACxCC,EAAaC,GAAkBC,WAAS,CAC7CC,WAAY,CAAEC,WAAY,UAC1BC,gBAAiB,CAAED,WAAY,YAGjCE,EAAAA,iBAAgB,KACd,GAAwB,MAApBR,EAASS,QAAiB,OAC9B,MAAMC,0BAAEA,EAAyBC,4BAAEA,GA+CzC,SACEpB,EACAC,EACAF,GAEA,GAAa,WAATE,GAAqBF,GAAQA,EAAKsB,MAAO,CAC3C,MAAMC,aAAEA,GAAiBvB,EAAKsB,MACxBE,EAzES,EA0Ef,IAAIC,EAAkB,EAClBC,EAAiB,EACrB,MAAMP,EAAUlB,EAAUkB,QAIpBQ,OAAoCC,IAAfT,GAASU,QAAkCD,IAAfT,GAASW,EAC5DH,IAEFF,EAAkBM,KAAKC,MAAMb,EAAQc,wBAAwBC,QAE7DR,EAAiBK,KAAKC,MAAM/B,EAAUkB,SAASc,wBAAwBE,QAazE,MAAO,CAAEf,0BAXyBO,EAC9BI,KAAKK,IAAIb,IAAiBE,EAAkB,EAAID,EAAY,EAC5D,CAAC,mBAAoB,sBAAuB,iBAAkB,qBAAqBa,SACjFrC,EAAKsC,eAQyBjB,4BANAM,EAChCI,KAAKK,IAAIb,IAAiBG,EAAiB,EAAIF,EAAY,EAC3D,CAAC,mBAAoB,iBAAkB,sBAAuB,qBAAqBa,SACjFrC,EAAKsC,eAIZ,CAAM,MAAO,CAAElB,2BAA2B,EAAOC,6BAA6B,EACjF,CAjFyEkB,CACjEtC,EACAC,EACAF,GAEFa,EA8EN,SAEEX,EACAC,EACAiB,EACAC,EACArB,EACAI,GAEA,MAAMoC,EAAS,CAAExB,WAAY,WACvByB,EAAc,CAAEzB,WAAY,WAClC,GAAa,WAATd,GAAqBF,GAAQA,EAAKsB,MAAO,CAC3C,MAAMO,EAAEA,EAACC,EAAEA,EAACP,aAAEA,GAAiBvB,EAAKsB,MAC9BE,EAnHS,EAoHTkB,EAnHgB,EAqHhBC,EApHe,EAqHfC,EApHsB,EAsHtBC,EAA4B,IAAjBtB,EACXuB,EAAyBvB,EAAe,EAM9C,SAASwB,EAAcC,GAErB,MAAMC,EAAiBD,EAAoBN,EAAkBlB,EAC7D0B,EACE,CAEEC,UAAW,GAAGC,EAAQH,YAAyBI,EAAAA,KAC7CC,EAAeA,gBAACC,QAAQC,QAAQ,IAChC,MAEFC,YAAaC,EAAqBT,GAClCU,WAAYD,EAAqBT,IAEnCT,GAGF,MAAMoB,EAAsBZ,EAAoBJ,EAAuBD,EACvEkB,EACE,CAEEV,UAAW,GAAGC,EAAQQ,YAA8BxD,IACpDqD,YAAa,GAAGC,EAAqBE,KACrCD,WAAY,GAAGD,EAAqBE,MAEtCnB,EAEH,CAED,SAASS,EAAcY,EAAetB,GACpCuB,OAAOC,OAAOxB,EAAQsB,EACvB,CAED,SAASD,EAAmBC,EAAetB,GACzCuB,OAAOC,OAAOxB,EAAQsB,EACvB,CAED,SAASG,EAAQC,GACf,MAAO,UAAmB,GAATA,OAClB,CAED,SAASd,EAAQe,GACf,MAAO,GAAGA,KACX,CAED,SAAST,EAAqBS,GAC5B,MAAO,GAAGf,EAAQe,sBACnB,CAjDDpB,EAAc3B,GAA6BC,GAsD3C,OAHqBrB,EAAKoE,UAAUC,MAAM,KAChB,IAGxB,IAAK,MACHC,IACA,MACF,IAAK,MACHnE,EAAQoE,IAAkBC,IAC1B,MACF,IAAK,SACHC,IACA,MACF,IAAK,QACHtE,EAAQqE,IAAgBD,IAI5B,SAASD,IACE1C,MAALC,IACER,GAEF6B,EACE,CACEwB,IAAK,GACLC,OAAQvB,EAAqB,EAAZ5B,GACjBoD,KAAMxB,EAAQvB,GAAKiB,EAAyB,GAAK,IACjD+B,UAAWZ,EAAQnB,EAAyB,EAAI,IAElDN,GAEFsC,MAEA5B,EACE,CACEwB,IAAK,GACLC,OAAQvB,GAAS5B,GACjBoD,KAAiBxB,EAAXP,EAAmBhB,EAAaA,GAAKiB,EAAyB,GAAK,IACzE+B,UAAWZ,EAAQ,IAErBzB,GAEFuC,KAGL,CAED,SAASP,IACE5C,MAALE,IACEV,GAEF8B,EACE,CACEwB,IAAKtB,EAAQtB,GAAKgB,EAAyB,GAAK,IAChDkC,MAAO,GACPJ,KAAMxB,GAAS5B,EAAY,GAC3BqD,UAAWZ,EAAQnB,EAAyB,EAAI,IAElDN,GAEFsC,MAGA5B,EACE,CACEwB,IAAgBtB,EAAXP,EAAmBf,EAAaA,GAAKgB,GAA0B,EAAI,IACxEkC,MAAO,GACPJ,KAAMxB,EAAqB,KAAZ5B,GACfqD,UAAWZ,EAAQ,IAErBzB,GAEFuC,KAGL,CAED,SAASN,IACE7C,MAALC,IACER,GAEF6B,EACE,CACEwB,IAAKtB,EAAqB,EAAZ5B,GACdmD,OAAQ,GACRC,KAAMxB,EAAQvB,GAAKiB,EAAyB,GAAK,IACjD+B,UAAWZ,EAAQnB,EAAyB,EAAI,IAElDN,GAEFqB,EACE,CACEa,IAAKtB,GAAST,GACdiC,KAAMxB,GAA2BN,EAAyB,GAAK,GAAhDH,IAEjBF,KAGFS,EACE,CACEwB,IAAKtB,GAAS5B,GACdmD,OAAQ,GACRC,KAAiBxB,EAAXP,EAAmBhB,EAAaA,GAAKiB,EAAyB,GAAK,IACzE+B,UAAWZ,EAAQ,IAErBzB,GAEFuC,KAGL,CAED,SAASR,IACE3C,MAALE,IACEV,GAEF8B,EACE,CACEwB,IAAKtB,EAAQtB,GAAKgB,EAAyB,GAAK,IAChDkC,MAAO5B,GAAS5B,EAAY,GAC5BoD,KAAM,GACNC,UAAWZ,EAAQnB,EAAyB,EAAI,IAElDN,GAEFqB,EACE,CACEa,IAAKtB,GAAST,GACdiC,KAAMxB,GAA2BN,GAA0B,EAAI,GAAhDH,IAEjBF,KAIFS,EACE,CACEwB,IAAgBtB,EAAXP,EAAmBf,EAAaA,GAAKgB,GAA0B,EAAI,IACxEkC,MAAO5B,EAAqB,KAAZ5B,GAChBoD,KAAM,GACNC,UAAWZ,EAAQ,IAErBzB,GAEFuC,KAGL,CAED,SAASD,IACPjB,EACE,CACEa,IAAKtB,GAAST,GACdiC,KAAMxB,GAA2BN,EAAyB,GAAK,GAAhDH,IAEjBF,EAEH,CAED,SAASsC,IACPlB,EACE,CACEa,IAAKtB,GAAST,EAAiB,GAC/BiC,KAAMxB,GAAST,IAEjBF,EAEH,CACF,CACD,MAAO,CAAE1B,WAAYyB,EAAQvB,gBAAiBwB,EAChD,CAhUQwC,CACE/E,EACAC,EACAiB,EACAC,EACArB,EACAI,GAEH,GACA,CACDJ,EACAI,EACAJ,GAAMoE,UACNpE,GAAM6B,EACN7B,GAAM8B,EACN9B,GAAMkF,OACNlF,GAAMsB,MACNpB,EACAC,EACAF,IAGF,MAAMkF,EAAYC,WAAQ,IAAMC,YAAUhF,EAAKK,IAAW,CAACL,EAAKK,IAChE,MACW,WAATR,GACEoF,EAAAA,KACE,MAAA,CAAAjF,IAAK8E,EACLI,MAAOC,EAAAA,WAAW,CAACjF,EAAWD,EAAOmF,wBACrC3B,MAAOlD,EAAYG,WAAU2E,SAAA,CAC5B,IAEDC,EAAAA,IACE,MAAA,CAAAJ,MAAOC,EAAAA,WAAW,CAAClF,EAAOmF,wBAC1B3B,MAAOlD,EAAYK,kBAAwB,MAIjD,ICsJO,MAAA2E,EAAW7F,EAAAA,YACtB,EAEI2F,WACAtF,kBACAyF,iBACAzB,YAAY,SACZnE,YACA6F,cACAP,MAAOQ,EACP7F,OAAO,OACP8F,cAAc,CAAEC,UAAU,EAAMC,WAAW,GAC3CC,eAAe,CAAEF,UAAU,EAAMC,WAAW,GAC5CE,cAAc,CAAEC,qBAAqB,EAAOC,oBAAoB,GAChEC,kBAAkB,CAAEC,QAAS,GAC7BC,cAEFpG,KAEA,MAAMK,EAAWC,SAAuB,OACjC+F,EAAcC,GAAmB7F,EAAQA,YAEzC8F,EAAgBC,GAAqB/F,EAAQA,SAA0B,OAExER,OAAEA,EAAMC,UAAEA,GAAcC,EAAiBA,kBAAwBC,EAAoBA,sBAI3FS,EAAAA,iBAAgB,KACd2F,EAAkB5G,EAAUkB,QAAQ,GACnC,CAAClB,IAKAA,EAAUkB,UAAYyF,GACxBC,EAAkB5G,EAAUkB,SAG9B,MAAM2F,UAAEA,GAAcC,EAAAA,UAChB5G,EAAsB,QAAd2G,EAERE,EAAcC,eACjBjH,IACC2G,EAAgB3G,GAChByG,IAAazG,EAAK,GAEpB,CAACyG,IAGGS,EAAa,CACjBhC,EAAAA,OAAOY,GACPqB,OAAK,CACHlB,SAAUD,EAAYC,SACtBC,UAAWF,EAAYE,UACvBkB,mBAAoBpB,EAAYoB,oBAAoBC,KAAKjD,GACvDkD,EAAWA,YAAClD,EAAW0C,KAEzBN,QAASD,EAAgBC,UAE3Be,QAAM,CACJtB,SAAUE,EAAaF,SACvBC,UAAWC,EAAaD,UACxBsB,QAASC,EAAAA,WAAW,CAClBxB,SAAUE,EAAaF,SACvBC,UAAWC,EAAaD,iBAGxBxF,EAASS,QACT,CACEG,QAAM,CACJoG,QAAShH,EAASS,WAGtB,KAEFiF,EAAYC,qBAAuBD,EAAYE,qBACjDY,EAAWS,KACTxD,OAAK,CACH,KAAAyD,EAAMC,eAAEA,EAAcC,gBAAEA,EAAeC,SAAEA,IACnC3B,EAAYC,qBACV2B,SAASD,EAASE,SAASnE,MAAMoE,aAAeJ,GAClD/D,OAAOC,OAAO+D,EAASE,SAASnE,MAAO,CACrCoE,UAAW,GAAGnG,KAAKoG,IACjBL,EACA1B,EAAYgC,kBAAoBN,SAMpC1B,EAAYE,oBACV0B,SAASD,EAASE,SAASnE,MAAMuE,YAAcR,GACjD9D,OAAOC,OAAO+D,EAASE,SAASnE,MAAO,CACrCuE,SAAU,GAAGtG,KAAKoG,IAChBN,EACAzB,EAAYkC,iBAAmBT,QAKxC,EAEDrB,QAASD,EAAgBC,WAK/B,MAAM3E,EAAEA,EAACC,EAAEA,EAACyG,UAAEA,EAASN,SAAEA,EAAQO,KAAEA,EAAIC,OAAEA,GAAWC,cAAY,CAC9DtE,UAAWA,EACX8C,WAAYA,EACZT,WAAYO,KAMP2B,EAAcC,GAAmB9H,EAAQA,UAAC,GAIjD+H,EAAAA,WAAU,KACR,GAAKL,EAAKD,UAAUpH,SAAYqH,EAAKP,SAAS9G,UAA4B,IAAjBwH,EAIzD,OAAOG,EAAUA,WAACN,EAAKD,UAAUpH,QAASqH,EAAKP,SAAS9G,QAASsH,EAAO,GACvE,CAACD,EAAKP,SAAUO,EAAKD,UAAWE,EAAQE,IAG3CE,EAAAA,WAAU,KACC,MAALhH,GAAkB,MAALC,GACf8G,GAAgB,EACjB,GACA,CAAC/G,EAAGC,IAEPiH,kBAAgB,CAAEC,YAAY,EAAO3I,IAAKmI,EAAKP,SAAUgB,QAASpD,IAwElE3E,EAAAA,iBAAgB,KACd,GAAc0F,aAzNMsC,QAyNW,CAG7B,YADAX,EADgB3B,EAGjB,CACD,MAAMuC,EAASvC,EACf,GAAc,MAAVuC,GAA2C,MAAzBA,EAAOC,eAAwB,CACnD,MAAMC,EA9EV,SACEC,EACAtJ,GAMA,IAAIuJ,EAAyB,KACzBC,EAAyB,KACzBC,GAAoB,EAExB,MAAO,CACLL,eAAgBE,QAAU1H,EAC1B,qBAAAK,GACE,MAAMyH,EAAUJ,GAAQrH,yBAA2B,CACjDE,MAAO,EACPD,OAAQ,EACRL,EAAG,EACHC,EAAG,GAGC6H,EAAwB,MAAd3J,EAAK4J,MAA8B,SAAd5J,EAAK4J,KACpCC,EAAwB,MAAd7J,EAAK4J,MAA8B,SAAd5J,EAAK4J,KAE1C,IAAIzH,EAAQuH,EAAQvH,MAChBD,EAASwH,EAAQxH,OACjBL,EAAI6H,EAAQ7H,EACZC,EAAI4H,EAAQ5H,EAqChB,OAnCe,MAAXyH,GAAmBvJ,EAAK6B,GAAK8H,IAC/BJ,EAAUG,EAAQ7H,EAAI7B,EAAK6B,GAGd,MAAX2H,GAAmBxJ,EAAK8B,GAAK+H,IAC/BL,EAAUE,EAAQ5H,EAAI9B,EAAK8B,GAG7BD,GAAK0H,GAAW,EAChBzH,GAAK0H,GAAW,EAChBrH,EAAQ,EACRD,EAAS,EAEJuH,EAKMA,IACTvH,EAAuB,MAAdlC,EAAK4J,KAAeF,EAAQxH,OAASA,EAC9CC,EAAsB,MAAdnC,EAAK4J,KAAeF,EAAQvH,MAAQA,IAN5CA,EAAsB,MAAdnC,EAAK4J,KAAeF,EAAQvH,MAAQ,EAC5CD,EAAuB,MAAdlC,EAAK4J,KAAeF,EAAQxH,OAAS,EAC9CL,EAAI8H,GAAqB,MAAV3J,EAAK6B,EAAY7B,EAAK6B,EAAIA,EACzCC,EAAI+H,GAAqB,MAAV7J,EAAK8B,EAAY9B,EAAK8B,EAAIA,GAM3C2H,GAAoB,EACL,CACbtH,QACAD,SACAL,IACAC,IACA4C,IAAK5C,EACLkD,MAAOnD,EAAIM,EACXwC,OAAQ7C,EAAII,EACZ0C,KAAM/C,EAIT,EAEJ,CAUqBiI,CAAqBX,EAAOC,eAAgB,CAC5DQ,KAAM,OACN/H,EAAGsH,EAAOtH,EACVC,EAAGqH,EAAOrH,IAGZ,YADAyG,EAAUc,EAEX,CACD,MAAMA,EAA4B,CAChCpH,sBAAqB,KACZ,CACLE,MAAO,EACPD,OAAQ,EACRL,EAAGsH,EAAQtH,EACXC,EAAGqH,EAAQrH,EACX4C,IAAKyE,EAAQrH,EACb8C,KAAMuE,EAAQtH,EACdmD,MAAOmE,EAAQtH,EACf8C,OAAQwE,EAAQrH,KAIlBqH,GAAsB,MAAZA,EAAOtH,GACnB0G,EAAUc,EACX,GACA,CAACzC,EAAgB2B,IAEpB,MAAMpD,EAAYC,WAAQ,IAAMC,YAAUhF,EAAK4H,IAAW,CAAC5H,EAAK4H,IAC1D8B,EAAgB,CAAErF,IAAK5C,EAAG8C,KAAM/C,GAEtC,IAAImI,EAAe,CAAA,EACf5J,IACF4J,EAAeC,EAAAA,iBAAiB,CAC9B,CAACC,EAAAA,aAAa9J,iBAAkBA,KAIpC,MAAM+J,EACC,MAALtI,GAAkB,MAALC,EAAYsI,2BAAyBC,OAASD,EAAwBA,yBAACE,QAChFC,EAAkB/E,EAAUA,WAAC,CAACO,EAAWxF,EAAWD,EAAOkK,UAAWL,IACtEM,EAAkBxK,GAAaA,EAAUkB,QAgB/C,OAdEmE,EAAAA,KAAK,MAAA,CAAAC,MAAOgF,EAAiBlK,IAAK8E,EAAWrB,MAAO,IAAKiG,KAAkBC,GAActE,SAAA,CACtFA,EACA+E,GACC9E,EAAAA,IAAC7F,EACC,CAAAO,IAAKK,EACLN,gBAAiBA,EACjBJ,KAAM0G,EACNzG,UAAWA,EACXC,KAAMA,EACNC,MAAOA,MAKD"}
|
|
1
|
+
{"version":3,"file":"Floating-5d98c1ca.js","sources":["../../src/UNSAFE_Floating/FloatingTail.tsx","../../src/UNSAFE_Floating/Floating.tsx"],"sourcesContent":["import { forwardRef, ForwardedRef } from 'preact/compat';\nimport { useMemo, useLayoutEffect, useRef, useState } from 'preact/hooks';\nimport type { RefObject } from 'preact';\nimport { PositionData, Coords } from './Floating.types';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { FloatingStyles } from './themes/FloatingStyles.css';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport type { ColorProps } from '../utils/UNSAFE_interpolations/colors';\nimport { Property } from 'csstype';\nimport { rgba } from '../UNSAFE_Theme/utils';\nimport { colorSchemeVars } from '../Common/themes/themeContract.css';\nimport { FloatingRedwoodTheme } from './themes/redwood/FloatingTheme';\n\ntype Props = Pick<ColorProps, 'backgroundColor'> & {\n data?: PositionData;\n anchorRef: RefObject<Element | Coords>;\n tail: 'none' | 'simple';\n isRtl: boolean;\n};\n\nconst ARROW_SIZE = 7;\nconst ARROW_SIZE_CORNER = 6;\nconst ARROW_INNER_SIZE = 5;\nconst ARROW_INNER_SIZE_CORNER = 5;\n\nconst FloatingTail = forwardRef(\n (\n { data, anchorRef, tail, isRtl, backgroundColor }: Props,\n ref: ForwardedRef<HTMLDivElement | null>\n ) => {\n const { styles, baseTheme } = useComponentTheme<never, FloatingStyles>(FloatingRedwoodTheme);\n const arrowRef = useRef<HTMLDivElement | null>(null);\n const [arrowStyles, setArrowStyles] = useState({\n arrowStyle: { visibility: 'hidden' },\n arrowInnerStyle: { visibility: 'hidden' }\n });\n\n useLayoutEffect(() => {\n if (arrowRef.current == null) return;\n const { isCornerVerticalPlacement, isCornerHorizontalPlacement } = isCorner(\n anchorRef,\n tail,\n data\n );\n setArrowStyles(\n setStyles(\n tail,\n isRtl,\n isCornerVerticalPlacement,\n isCornerHorizontalPlacement,\n data,\n backgroundColor\n )\n );\n }, [\n data,\n backgroundColor,\n data?.placement,\n data?.x,\n data?.y,\n data?.offset,\n data?.arrow,\n tail,\n isRtl,\n anchorRef\n ]);\n\n const stableRef = useMemo(() => mergeRefs(ref, arrowRef), [ref, arrowRef]);\n return (\n tail === 'simple' && (\n <div\n ref={stableRef}\n class={classNames([baseTheme, styles.floatingTailBaseStyle])}\n style={arrowStyles.arrowStyle}>\n {' '}\n {/*Outer arrow - shadow*/}\n <div\n class={classNames([styles.floatingTailBaseStyle])}\n style={arrowStyles.arrowInnerStyle}></div>{' '}\n {/*Inner arrow - body*/}\n </div>\n )\n );\n }\n);\n\nfunction isCorner(\n anchorRef: RefObject<Element | Coords>,\n tail: 'none' | 'simple',\n data?: PositionData\n) {\n if (tail === 'simple' && data && data.arrow) {\n const { centerOffset } = data.arrow;\n const arrowSize = ARROW_SIZE;\n let anchorRefHeight = 0;\n let anchorRefWidth = 0;\n const current = anchorRef.current;\n // @ts-ignore. Type 'Element | Coords' issues\n // Property 'x' does not exist on type 'Element'.\n // Property 'y' does not exist on type 'Element'.\n const isAnchorRefElement = current?.x === undefined && current?.y === undefined;\n if (isAnchorRefElement) {\n // @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.\n anchorRefHeight = Math.round(current.getBoundingClientRect().height);\n // @ts-ignore. Property 'getBoundingClientRect' does not exist on type 'Coords'.\n anchorRefWidth = Math.round(anchorRef.current?.getBoundingClientRect().width);\n }\n const isCornerVerticalPlacement = isAnchorRefElement\n ? Math.abs(centerOffset) >= anchorRefHeight / 2 - arrowSize / 2\n : ['start-top-corner', 'start-bottom-corner', 'end-top-corner', 'end-bottom-corner'].includes(\n data.origPlacement\n );\n const isCornerHorizontalPlacement = isAnchorRefElement\n ? Math.abs(centerOffset) >= anchorRefWidth / 2 - arrowSize / 2\n : ['top-start-corner', 'top-end-corner', 'bottom-start-corner', 'bottom-end-corner'].includes(\n data.origPlacement\n );\n\n return { isCornerVerticalPlacement, isCornerHorizontalPlacement };\n } else return { isCornerVerticalPlacement: false, isCornerHorizontalPlacement: false };\n}\n\nfunction setStyles(\n //arrowEl: HTMLDivElement,\n tail: 'none' | 'simple',\n isRtl: boolean,\n isCornerVerticalPlacement: boolean,\n isCornerHorizontalPlacement: boolean,\n data?: PositionData,\n backgroundColor?: Property.BackgroundColor\n) {\n const result = { visibility: 'visible' };\n const innerResult = { visibility: 'visible' };\n if (tail === 'simple' && data && data.arrow) {\n const { x, y, centerOffset } = data.arrow;\n const arrowSize = ARROW_SIZE;\n const arrowSizeCorner = ARROW_SIZE_CORNER;\n //const arrowInnerEl = arrowEl.querySelector('div') as Element;\n const arrowInnerSize = ARROW_INNER_SIZE;\n const arrowInnerSizeCorner = ARROW_INNER_SIZE_CORNER;\n\n const isCenter = centerOffset === 0;\n const isCenterOffsetPositive = centerOffset > 0;\n\n // Set sizes of the arrow\n setArrowSizes(isCornerVerticalPlacement || isCornerHorizontalPlacement);\n\n // Corner vs. normal arrow\n function setArrowSizes(isCornerPlacement?: boolean) {\n // Outer arrow (shadow)\n const arrowFinalSize = isCornerPlacement ? arrowSizeCorner : arrowSize;\n setArrowStyle(\n {\n // Tracked: \n borderTop: `${getSize(arrowFinalSize)} solid ${rgba(\n colorSchemeVars.palette.neutral[90],\n 0.1\n )}`,\n borderRight: getTransparentBorder(arrowFinalSize),\n borderLeft: getTransparentBorder(arrowFinalSize)\n },\n result\n );\n // Inner arrow\n const arrowInnerFinalSize = isCornerPlacement ? arrowInnerSizeCorner : arrowInnerSize;\n setArrowInnerStyle(\n {\n // Tracked: \n borderTop: `${getSize(arrowInnerFinalSize)} solid ${backgroundColor}`,\n borderRight: `${getTransparentBorder(arrowInnerFinalSize)}`,\n borderLeft: `${getTransparentBorder(arrowInnerFinalSize)}`\n },\n innerResult\n );\n }\n\n function setArrowStyle(style: object, result: object) {\n Object.assign(result, style);\n }\n\n function setArrowInnerStyle(style: object, result: object) {\n Object.assign(result, style);\n }\n\n function getTurn(eighth: number) {\n return `rotate(${eighth * 45}deg)`;\n }\n\n function getSize(size: number) {\n return `${size}px`;\n }\n\n function getTransparentBorder(size: number) {\n return `${getSize(size)} solid transparent`;\n }\n\n const placementArr = data.placement.split('-');\n const side = placementArr[0];\n\n switch (side) {\n case 'top':\n setArrowTop();\n break;\n case 'end':\n isRtl ? setArrowStart() : setArrowEnd();\n break;\n case 'bottom':\n setArrowBottom();\n break;\n case 'start':\n isRtl ? setArrowEnd() : setArrowStart();\n break;\n }\n\n function setArrowTop() {\n if (x != undefined) {\n if (isCornerHorizontalPlacement) {\n // Top corners\n setArrowStyle(\n {\n top: '', // flip 'reset'\n bottom: getSize(-arrowSize + 2),\n left: getSize(x + (isCenterOffsetPositive ? 5 : -5)),\n transform: getTurn(isCenterOffsetPositive ? 5 : 3)\n },\n result\n );\n setCornerArrowInner();\n } else {\n setArrowStyle(\n {\n top: '', // flip 'reset'\n bottom: getSize(-arrowSize),\n left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),\n transform: getTurn(0)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowEnd() {\n if (y != undefined) {\n if (isCornerVerticalPlacement) {\n // End corners\n setArrowStyle(\n {\n top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),\n right: '', // flip 'reset'\n left: getSize(-arrowSize - 1),\n transform: getTurn(isCenterOffsetPositive ? 7 : 5)\n },\n result\n );\n setCornerArrowInner();\n } else {\n // End\n setArrowStyle(\n {\n top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),\n right: '', // flip 'reset'\n left: getSize(-arrowSize * 1.5),\n transform: getTurn(2)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowBottom() {\n if (x != undefined) {\n if (isCornerHorizontalPlacement) {\n // Bottom corners\n setArrowStyle(\n {\n top: getSize(-arrowSize + 3),\n bottom: '', // flip 'reset'\n left: getSize(x + (isCenterOffsetPositive ? 4 : -4)),\n transform: getTurn(isCenterOffsetPositive ? 2 : 6)\n },\n result\n );\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 1 : -1))\n },\n innerResult\n );\n } else {\n setArrowStyle(\n {\n top: getSize(-arrowSize),\n bottom: '', // flip 'reset'\n left: isCenter ? getSize(x) : getSize(x + (isCenterOffsetPositive ? 1 : -1)),\n transform: getTurn(4)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setArrowStart() {\n if (y != undefined) {\n if (isCornerVerticalPlacement) {\n // Start corners\n setArrowStyle(\n {\n top: getSize(y + (isCenterOffsetPositive ? 2 : -2)),\n right: getSize(-arrowSize - 1),\n left: '', // flip 'reset'\n transform: getTurn(isCenterOffsetPositive ? 1 : 3)\n },\n result\n );\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? -2 : 2))\n },\n innerResult\n );\n } else {\n // Start\n setArrowStyle(\n {\n top: isCenter ? getSize(y) : getSize(y + (isCenterOffsetPositive ? -2 : +2)),\n right: getSize(-arrowSize * 1.5),\n left: '', // flip 'reset'\n transform: getTurn(6)\n },\n result\n );\n setNonCornerArrowInner();\n }\n }\n }\n\n function setCornerArrowInner() {\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize),\n left: getSize(-arrowInnerSize + (isCenterOffsetPositive ? 2 : -2))\n },\n innerResult\n );\n }\n\n function setNonCornerArrowInner() {\n setArrowInnerStyle(\n {\n top: getSize(-arrowInnerSize - 2),\n left: getSize(-arrowInnerSize)\n },\n innerResult\n );\n }\n }\n return { arrowStyle: result, arrowInnerStyle: innerResult };\n}\n\nexport { FloatingTail };\n","import type { RefObject } from 'preact';\nimport { useLayoutEffect, useEffect, useMemo, useState, useRef, useCallback } from 'preact/hooks';\nimport { forwardRef, ForwardedRef } from 'preact/compat';\nimport { autoUpdate, arrow } from '@floating-ui/dom';\nimport {\n useFloating,\n shift,\n flip,\n size,\n offset,\n limitShift,\n VirtualElement,\n logicalSide\n} from '../hooks/PRIVATE_useFloating';\nimport { Offset, Placement, Coords, PositionData } from './Floating.types';\nimport { mergeRefs } from '../utils/PRIVATE_refUtils';\nimport { useOutsideClick } from '../hooks/UNSAFE_useOutsideClick';\nimport { HTMLAttributesSignalExcluded } from '../utils/UNSAFE_attributeUtils';\nimport { useUser } from '../hooks/UNSAFE_useUser';\nimport { FloatingTail } from './FloatingTail';\nimport { classNames } from '../utils/UNSAFE_classNames';\nimport { useComponentTheme } from '../hooks/UNSAFE_useComponentTheme';\nimport { FloatingStyles, floatingVisibilityStyles } from './themes/FloatingStyles.css';\nimport { FloatingRedwoodTheme } from './themes/redwood/FloatingTheme';\nimport { assignInlineVars } from '@vanilla-extract/dynamic';\nimport { floatingVars } from './themes/FloatingContract.css';\nimport type { ColorProps } from '../utils/UNSAFE_interpolations/colors';\n\ntype IntrinsicProps = Pick<HTMLAttributesSignalExcluded<HTMLDivElement>, 'children' | 'class'>;\n/**\n * Specifies the flipping behavior along the respective axis.\n */\nexport type FlipOptions = {\n /**\n * If set to true, enables collision detection on the main axis,\n * which runs along the floating placement side.\n */\n mainAxis?: boolean;\n /**\n * If set to true, enables collision detection on the cross axis,\n * which runs along the floating placement side.\n */\n crossAxis?: boolean;\n /**\n * Specifies an array of placements to try\n * if the preferred initial placement doesn’t fit on the axes\n * in which collision is detected.\n */\n fallbackPlacements?: Array<Placement>;\n};\n\n/**\n * Specifies the shift behavior along the respective axis.\n * When true, the floating element will shift to prevent overflow.\n */\nexport type ShiftOptions = {\n /**\n * main axis in which shifting is applied. Default <code>true</code>.\n */\n mainAxis?: boolean;\n /**\n * cross axis in which shifting is applied. Default <code>false</code>.\n */\n crossAxis?: boolean;\n};\n\n/**\n * This describes the virtual padding around the collision boundary (currently the view port).\n * This could be extended in the future,\n * i.e. property to define what is a boundary ( a view port, a document, some other html element)\n */\nexport type BoundaryOptions = {\n padding?:\n | number\n | {\n top: number;\n right: number;\n bottom: number;\n left: number;\n };\n};\n/**\n * Specifies the resizing behaviour for max-height and max-width of the floating component.\n * The floating element will change the size depending on the available space.\n * isMaxHeightAdjusted/isMaxWidthAdjusted - sets the max-height/max-width of the floating to the available space till the collision.\n * maxHeightCeiling/maxWidthCeiling - this is the limit for max-height/max-width that should not be exceeded, even if there is more available space till the collision.\n */\nexport type SizeOptions = {\n isMaxWidthAdjusted?: boolean;\n isMaxHeightAdjusted?: boolean;\n maxHeightCeiling?: number;\n maxWidthCeiling?: number;\n};\n\ntype Props = IntrinsicProps &\n Pick<ColorProps, 'backgroundColor'> & {\n /**\n * <p>Placement of the floating element relative to its reference element.</p>\n * <p>Placement consists of two parts, the first part is the side, the second is the alignment.</p>\n * <p>Possible values are:</p>\n * <p> <code>'top' </code> <code>'top-start' </code> <code> 'top-end' </code> <code> 'top-start-corner' </code> <code> 'top-end-corner' </code>\n * <code> 'end' </code> <code> 'end-top' </code> <code> 'end-bottom' </code> <code> 'end-top-corner' </code> <code> 'end-bottom-corner' </code>\n * <code> 'bottom' </code> <code> 'bottom-start' </code> <code> 'bottom-end' </code> <code> 'bottom-start-corner' </code> <code> 'bottom-end-corner' </code>\n * <code> 'start' </code> <code> 'start-top' </code> <code> 'start-bottom' </code> <code> 'start-top-corner' </code> <code> 'start-bottom-corner' </code>\n * </p>\n */\n placement?: Placement;\n\n /**\n * Trigger element reference.\n */\n anchorRef: RefObject<Element | Coords>;\n\n /**\n * Placement offset.\n * Offset displaces the floating element from its core placement along the specified axes.\n * Offset could be a number or an object\n * A number represents the distance (gutter or margin) between the floating element and the reference element.\n * This is shorthand for mainAxis.\n * <pre>\n * {\n * mainAxis?: number;\n * crossAxis?: number;\n * }\n * </pre>\n * <p><code>mainAxis</code> - represents the distance (gutter or margin) between the floating element and the reference element.</p>\n * <p><code>crossAxis</code> - represents the shifting between the floating element and the reference element.<p>\n */\n offsetValue?: Offset;\n\n /**\n * Click outside callback.\n */\n onClickOutside?: (event: MouseEvent) => void;\n\n /**\n * FlipOptions object\n * <pre>\n * type FlipOptions = {\n * mainAxis?: boolean;\n * crossAxis?: boolean;\n * fallbackPlacements?: Array<Placement>;\n * }\n * </pre>\n * <p>Specifies the flipping behavior along the respective axis.<p>\n * <p><code>mainAxis</code> - If set to true, enables collision detection on the main axis, which runs along the floating placement side.\n * Default is <code>true</code>.\n * </p>\n * <p><code>crossAxis</code> - If set to true, enables collision detection on the cross axis, which runs along the floating placement alignment.\n * Default is <code>false</code>.\n * </p>\n * <p><code>fallbackPlacements</code> - specifies an array of placements to try if the preferred initial placement doesn’t fit on the axes in which collision is detected.\n * The fallback placements will be tried in the order they are specified in the array.\n * The following placements are allowed as values of the array:\n * <code>'top'</code>, <code>'top-start'</code>, <code>'top-end'</code>, <code>'start'</code>, <code>'start-top'</code>, <code>'start-bottom'</code>, <code>'bottom'</code>,\n * <code>'bottom-start'</code>, <code>'bottom-end'</code>, <code>'end'</code>, <code>'end-top'</code>, <code>'end-bottom'</code>.\n * <p>\n * If not specified, the default behaviour is to flip to the side <code>opposite</code> to the one in which collision is detected\n * </p>\n * </p>\n */\n flipOptions?: FlipOptions;\n\n /**\n * Specifies the shift behavior along the respective axis. When true, the floating element will shift to prevent overflow.\n * <pre>\n * type ShiftOptions = {\n * mainAxis?: boolean;\n * crossAxis?: boolean;\n * };\n * </pre>\n * <p><code>mainAxis</code> - main axis in which shifting is applied. Default <code>true</code>.</p>\n * <p><code>crossAxis</code> - cross axis in which shifting is applied. Default <code>false</code>.</p>\n */\n shiftOptions?: ShiftOptions;\n\n /**\n * Triggered when placement or coordinates are changed after collision is detected\n */\n onPosition?: (data: PositionData) => void;\n\n /**\n * Tail\n */\n tail?: 'none' | 'simple';\n\n /**\n * Specifies the resizing behaviour for max-height and max-width of the floating component.\n * <pre>\n * type SizeOptions = {\n * isMaxWidthAdjusted?: boolean;\n * isMaxHeightAdjusted?: boolean;\n * maxHeightCeiling?: number;\n * maxWidthCeiling?: number;\n * }\n * </pre>\n * <p><code>isMaxHeightAdjusted</code> and <code>isMaxWidthAdjusted</code> - sets the max-height/max-width of the floating to the available space till the collision.\n * When either of the options isMaxHeightAdjusted, isMaxWidthAdjusted is true, the floating element will change the size depending on the available space.\n * Default values are <code>'false'</code>.</p>\n * <p><code>maxHeightCeiling</code> and <code>maxWidthCeiling</code> - are maximal values that could not be exceeded.\n * Defaults are undefined and it means to use full available width/height.</p>\n */\n sizeOptions?: SizeOptions;\n\n /**\n * <p>This describes the virtual padding around the collision boundary (currently the view port).</p>\n * <p>This could be extended in the future,\n * i.e. property to define what is a boundary\n * ( a view port, a document, some other html element)</p>\n * <pre>\n * type BoundaryOptions = {\n * padding?: number | {\n * top: number;\n * right: number;\n * bottom: number;\n * left: number;\n * };\n * }\n * </pre>\n * Default value for padding is 0.\n */\n boundaryOptions?: BoundaryOptions;\n };\n\nfunction isElement(value: any): value is Element {\n return value instanceof Element;\n}\n\n/**\n * A floating component allows the user to create a floating element that is displayed relative to an anchor element or pointer coordinates\n * and at the same time on the \"top layer\" of all other elements.\n * The Floating component is a base component and is often used by such components as Popup, Tooltip, SelectMultiple, Menu and other components.\n */\nexport const Floating = forwardRef(\n (\n {\n children,\n backgroundColor,\n onClickOutside,\n placement = 'bottom',\n anchorRef,\n offsetValue,\n class: className,\n tail = 'none',\n flipOptions = { mainAxis: true, crossAxis: false },\n shiftOptions = { mainAxis: true, crossAxis: false },\n sizeOptions = { isMaxHeightAdjusted: false, isMaxWidthAdjusted: false },\n boundaryOptions = { padding: 0 },\n onPosition\n }: Props,\n ref: ForwardedRef<HTMLElement | null>\n ) => {\n const arrowRef = useRef<HTMLDivElement>(null);\n const [positionData, setPositionData] = useState<PositionData>();\n\n const [previousAnchor, setPreviousAnchor] = useState<Element | Coords | null>(null);\n\n const { styles, baseTheme } = useComponentTheme<never, FloatingStyles>(FloatingRedwoodTheme);\n\n // we need to be sure anchorRef.current exists in first call\n // to be able to set the previousAnchor state\n useLayoutEffect(() => {\n setPreviousAnchor(anchorRef.current);\n }, [anchorRef]);\n\n // In case anchorRef.current changes and we need to update floating position\n // when it changes, we need to have copy in the state.\n // For example when anchorRef is Coords( virtual element)\n if (anchorRef.current !== previousAnchor) {\n setPreviousAnchor(anchorRef.current);\n }\n\n const { direction } = useUser();\n const isRtl = direction === 'rtl';\n\n const _onPosition = useCallback(\n (data: PositionData) => {\n setPositionData(data);\n onPosition?.(data);\n },\n [onPosition]\n );\n\n const middleware = [\n offset(offsetValue),\n flip({\n mainAxis: flipOptions.mainAxis,\n crossAxis: flipOptions.crossAxis,\n fallbackPlacements: flipOptions.fallbackPlacements?.map((placement) =>\n logicalSide(placement, direction)\n ),\n padding: boundaryOptions.padding\n }),\n shift({\n mainAxis: shiftOptions.mainAxis,\n crossAxis: shiftOptions.crossAxis,\n limiter: limitShift({\n mainAxis: shiftOptions.mainAxis,\n crossAxis: shiftOptions.crossAxis\n })\n }),\n ...(arrowRef.current\n ? [\n arrow({\n element: arrowRef.current\n })\n ]\n : [])\n ];\n if (sizeOptions.isMaxHeightAdjusted || sizeOptions.isMaxWidthAdjusted) {\n middleware.push(\n size({\n apply({ availableWidth, availableHeight, elements }) {\n if (sizeOptions.isMaxHeightAdjusted) {\n if (parseInt(elements.floating.style.maxHeight) !== availableHeight) {\n Object.assign(elements.floating.style, {\n maxHeight: `${Math.min(\n availableHeight,\n sizeOptions.maxHeightCeiling || availableHeight\n )}px`\n });\n }\n }\n\n if (sizeOptions.isMaxWidthAdjusted) {\n if (parseInt(elements.floating.style.maxWidth) !== availableWidth) {\n Object.assign(elements.floating.style, {\n maxWidth: `${Math.min(\n availableWidth,\n sizeOptions.maxWidthCeiling || availableWidth\n )}px`\n });\n }\n }\n },\n\n padding: boundaryOptions.padding\n })\n );\n }\n\n const { x, y, reference, floating, refs, update } = useFloating({\n placement: placement,\n middleware: middleware,\n onPosition: _onPosition\n });\n\n // To solve \"loop limit exceeds\" problem from the ResizeObserver in autoUpdate\n // we need to make sure that we utilize autoUpdate function\n // after the Floating component is positioned and has x, y coordinates.\n const [isPositioned, setIsPositioned] = useState(false);\n\n // here autoUpdate should be called only once during the Component lifecycle,\n // if the floating, reference, placement and middleware do not change\n useEffect(() => {\n if (!refs.reference.current || !refs.floating.current || isPositioned !== true) {\n return;\n }\n\n return autoUpdate(refs.reference.current, refs.floating.current, update);\n }, [refs.floating, refs.reference, update, isPositioned]);\n\n // here we should know when the Floating is positioned\n useEffect(() => {\n if (x != null && y != null) {\n setIsPositioned(true);\n }\n }, [x, y]);\n\n useOutsideClick({ isDisabled: false, ref: refs.floating, handler: onClickOutside });\n\n function createVirtualElement(\n domRef: Element | null,\n data: {\n axis: 'x' | 'y' | 'both';\n x: number | null;\n y: number | null;\n }\n ) {\n let offsetX: number | null = null;\n let offsetY: number | null = null;\n let isAutoUpdateEvent = false;\n\n return {\n contextElement: domRef || undefined,\n getBoundingClientRect() {\n const domRect = domRef?.getBoundingClientRect() || {\n width: 0,\n height: 0,\n x: 0,\n y: 0\n };\n\n const isXAxis = data.axis === 'x' || data.axis === 'both';\n const isYAxis = data.axis === 'y' || data.axis === 'both';\n\n let width = domRect.width;\n let height = domRect.height;\n let x = domRect.x;\n let y = domRect.y;\n\n if (offsetX == null && data.x && isXAxis) {\n offsetX = domRect.x - data.x;\n }\n\n if (offsetY == null && data.y && isYAxis) {\n offsetY = domRect.y - data.y;\n }\n\n x -= offsetX || 0;\n y -= offsetY || 0;\n width = 0;\n height = 0;\n\n if (!isAutoUpdateEvent) {\n width = data.axis === 'y' ? domRect.width : 0;\n height = data.axis === 'x' ? domRect.height : 0;\n x = isXAxis && data.x != null ? data.x : x;\n y = isYAxis && data.y != null ? data.y : y;\n } else if (isAutoUpdateEvent) {\n height = data.axis === 'x' ? domRect.height : height;\n width = data.axis === 'y' ? domRect.width : width;\n }\n\n isAutoUpdateEvent = true;\n const virtEl = {\n width,\n height,\n x,\n y,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x\n };\n\n return virtEl;\n }\n };\n }\n\n useLayoutEffect(() => {\n if (isElement(previousAnchor)) {\n const element = previousAnchor as Element;\n reference(element);\n return;\n }\n const coords = previousAnchor as Coords;\n if (coords != null && coords.contextElement != null) {\n const virtualEl = createVirtualElement(coords.contextElement, {\n axis: 'both',\n x: coords.x,\n y: coords.y\n });\n reference(virtualEl);\n return;\n }\n const virtualEl: VirtualElement = {\n getBoundingClientRect() {\n return {\n width: 0,\n height: 0,\n x: coords!.x,\n y: coords!.y,\n top: coords!.y,\n left: coords!.x,\n right: coords!.x,\n bottom: coords!.y\n };\n }\n };\n if (coords && coords.x != null) {\n reference(virtualEl);\n }\n }, [previousAnchor, reference]);\n\n const stableRef = useMemo(() => mergeRefs(ref, floating), [ref, floating]);\n const positionStyle = { top: y, left: x };\n\n let assignedVars = {}; // empty var override unless background is specified\n if (backgroundColor) {\n assignedVars = assignInlineVars({\n [floatingVars.backgroundColor]: backgroundColor\n });\n }\n\n const visibilityStyles =\n x == null && y == null ? floatingVisibilityStyles.hidden : floatingVisibilityStyles.visible;\n const floatingClasses = classNames([className, baseTheme, styles.baseStyle, visibilityStyles]);\n const isAnchorMounted = anchorRef && anchorRef.current;\n const content = (\n <div class={floatingClasses} ref={stableRef} style={{ ...positionStyle, ...assignedVars }}>\n {children}\n {isAnchorMounted && (\n <FloatingTail\n ref={arrowRef}\n backgroundColor={backgroundColor}\n data={positionData}\n anchorRef={anchorRef}\n tail={tail}\n isRtl={isRtl}\n />\n )}\n </div>\n );\n return content;\n }\n);\n"],"names":["FloatingTail","forwardRef","data","anchorRef","tail","isRtl","backgroundColor","ref","styles","baseTheme","useComponentTheme","FloatingRedwoodTheme","arrowRef","useRef","arrowStyles","setArrowStyles","useState","arrowStyle","visibility","arrowInnerStyle","useLayoutEffect","current","isCornerVerticalPlacement","isCornerHorizontalPlacement","arrow","centerOffset","arrowSize","anchorRefHeight","anchorRefWidth","isAnchorRefElement","undefined","x","y","Math","round","getBoundingClientRect","height","width","abs","includes","origPlacement","isCorner","result","innerResult","arrowSizeCorner","arrowInnerSize","arrowInnerSizeCorner","isCenter","isCenterOffsetPositive","setArrowSizes","isCornerPlacement","arrowFinalSize","setArrowStyle","borderTop","getSize","rgba","colorSchemeVars","palette","neutral","borderRight","getTransparentBorder","borderLeft","arrowInnerFinalSize","setArrowInnerStyle","style","Object","assign","getTurn","eighth","size","placement","split","setArrowTop","setArrowStart","setArrowEnd","setArrowBottom","top","bottom","left","transform","setCornerArrowInner","setNonCornerArrowInner","right","setStyles","offset","stableRef","useMemo","mergeRefs","_jsxs","class","classNames","floatingTailBaseStyle","children","_jsx","Floating","onClickOutside","offsetValue","className","flipOptions","mainAxis","crossAxis","shiftOptions","sizeOptions","isMaxHeightAdjusted","isMaxWidthAdjusted","boundaryOptions","padding","onPosition","positionData","setPositionData","previousAnchor","setPreviousAnchor","direction","useUser","_onPosition","useCallback","middleware","flip","fallbackPlacements","map","logicalSide","shift","limiter","limitShift","element","push","apply","availableWidth","availableHeight","elements","parseInt","floating","maxHeight","min","maxHeightCeiling","maxWidth","maxWidthCeiling","reference","refs","update","useFloating","isPositioned","setIsPositioned","useEffect","autoUpdate","useOutsideClick","isDisabled","handler","Element","coords","contextElement","virtualEl","domRef","offsetX","offsetY","isAutoUpdateEvent","domRect","isXAxis","axis","isYAxis","createVirtualElement","positionStyle","assignedVars","assignInlineVars","floatingVars","visibilityStyles","floatingVisibilityStyles","hidden","visible","floatingClasses","baseStyle","isAnchorMounted"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', './vanilla-extract-dynamic.esm-eceadd82', './useComponentTheme-5aa41a8f', './FormContext-5130e198', './useFormContext-30acdd33', './UNSAFE_FormLayout/themes/FormLayoutStyles.css', './LayoutStyles.css-c8bc984d', './UNSAFE_FormLayout/themes/redwood/FormLayoutTheme', './classNames-08d99695', './useTestId-
|
|
1
|
+
define(['exports', 'preact/jsx-runtime', './vanilla-extract-dynamic.esm-eceadd82', './useComponentTheme-5aa41a8f', './FormContext-5130e198', './useFormContext-30acdd33', './UNSAFE_FormLayout/themes/FormLayoutStyles.css', './LayoutStyles.css-c8bc984d', './UNSAFE_FormLayout/themes/redwood/FormLayoutTheme', './classNames-08d99695', './useTestId-b5cd4766'], (function(e,s,t,a,o,l,n,i,r,u,d){"use strict";e.FormLayout=({columns:e=1,columnBehavior:m="responsive",columnSpan:c=1,direction:y="row",isFullWidth:p,isReadonly:h,labelEdge:F,labelStartWidth:b,labelWrapping:x,userAssistanceDensity:S,children:C,testId:L})=>{const{isDisabled:W,isFormLayout:g,isReadonly:v,labelEdge:T,labelStartWidth:A,labelWrapping:f,textAlign:D,userAssistanceDensity:E}=l.useFormContext(),I=d.useTestId(L),j=d.useTestId(`${L}_layout`),N=h??v,R=F??T,w=b??A,V=x??f,$=S??(g?E:"efficient"),_=t.assignInlineVars({[i.layoutLocalVars.maxColumnCount]:`${e}`,[i.layoutLocalVars.minColumnCount]:`${"responsive"===m?1:e}`}),{baseTheme:B,classes:U}=a.useComponentTheme(r.FormLayoutRedwoodTheme,{columnBehavior:m,direction:y});return s.jsx(o.FormContext.Provider,{value:{isDisabled:W,isFormLayout:!0,isReadonly:N,labelEdge:R,labelStartWidth:w,labelWrapping:V,textAlign:D,userAssistanceDensity:$},children:s.jsx("div",{class:u.classNames([B,n.styles.rootWrapperStyle,p&&n.styles.rootWrapperFullWidthStyle,i.layoutSpanStyles.layoutSpanColumn[c]]),...I,style:_,children:s.jsx("div",{class:U,...j,children:C})})})}}));
|
|
2
2
|
//# sourceMappingURL=FormLayout-a4a29a2d.js.map
|
package/amd/Gantt-d94af58e.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', 'preact/hooks', './classNames-08d99695', './PRIVATE_TimeComponent/themes/TimeComponentStyles.css', './UNSAFE_Gantt/themes/GanttStyles.css', './size-a75b3f13', './useTestId-3a316499', './TrackResizeContainer-2b033ae7', './Text-cd61a065', './accUtils-530bdb90', './TimeComponentCanvas2D-6b4e6ead', './useUser-85c781ea', './Layer-447c68e6', 'preact/compat', './LayerHost-e95c5f30', './Floating-1ec5ec2a', './hooks/PRIVATE_useDatatip/themes/useDatatip.css', './useId-c9578d26', './datatipUtils-01750311', './layoutUtils-8805fc5b', './mergeProps-bcfa6a92', './usePinch-fc8ed928', './useSelection-af7b4b52', './VisTabularDatatip-1051eaca', './useTranslationBundle-516b1b83', './pathUtils-ec75f879', './useCssVars-c043f8da', './useTextDimensions-83dd9415', './Common/themes/themeContract.css', './utils-5077c092', './eventsUtils-edf8f4e5'], (function(e,t,o,i,r,a,n,s,d,l,c,h,u,m,g,w,p,b,x,f,v,y,T,k,A,R,j,S,C,I,P,L){"use strict";function O({innerRef:e,width:o,height:d,testId:l,children:c,...h}){const u=s.useTestId(l);return t.jsx("div",{ref:e,tabIndex:0,...u,...h,class:i.classNames([r.styles.baseStyle,a.styles.baseStyle]),style:{width:o&&n.sizeToCSS(o),height:d&&n.sizeToCSS(d)},children:c})}function E({rowAxisTopGap:e="0",rowAxisBottomGap:o="0",resolvedRowAxisWidth:i,resolvedRowAxisMaxWidth:r,rowAxis:n,ganttView:s}){const l="%"===i.suffix,c="%"===r.suffix;return l||c?t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:(d,h)=>t.jsxs("div",{class:a.rowAxisLayoutStyles.base,style:{gridTemplateRows:`${e} minmax(0, 1fr) ${o}`},children:[t.jsx("div",{class:a.rowAxisLayoutStyles.rowAxis,children:n(l?d*(i.value/100):i.value,c?d*(r.value/100):r.value)}),t.jsx("div",{class:a.rowAxisLayoutStyles.ganttView,children:s})]})}):t.jsxs("div",{class:a.rowAxisLayoutStyles.base,style:{gridTemplateRows:`${e} minmax(0, 1fr) ${o}`},children:[t.jsx("div",{class:a.rowAxisLayoutStyles.rowAxis,children:n(i.value,r.value)}),t.jsx("div",{class:a.rowAxisLayoutStyles.ganttView,children:s})]})}const D=({maxWidth:e,maxHeight:o,data:{label:i="",labelStyle:r}})=>t.jsx("div",{style:{width:e>-1?e:void 0,height:o,display:"flex",alignItems:"center",...r},children:t.jsx(l.Text,{size:"md",variant:r?.color?"inherit":"primary",truncation:"ellipsis",children:i})}),M=(e,t,o)=>({maxWidth:o,maxHeight:e.height,data:t[e.index]});class V{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,t){let o=this.length++;for(;o>0;){const e=o-1>>1,i=this.values[e];if(t>=i)break;this.ids[o]=this.ids[e],this.values[o]=i,o=e}this.ids[o]=e,this.values[o]=t}pop(){if(0===this.length)return;const e=this.ids[0];if(this.length--,this.length>0){const e=this.ids[0]=this.ids[this.length],t=this.values[0]=this.values[this.length],o=this.length>>1;let i=0;for(;i<o;){let e=1+(i<<1);const o=e+1;let r=this.ids[e],a=this.values[e];const n=this.values[o];if(o<this.length&&n<a&&(e=o,r=this.ids[o],a=n),a>=t)break;this.ids[i]=r,this.values[i]=a,i=e}this.ids[i]=e,this.values[i]=t}return e}peek(){if(0!==this.length)return this.ids[0]}peekValue(){if(0!==this.length)return this.values[0]}shrink(){this.ids.length=this.values.length=this.length}}const z=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class B{static from(e){if(!e||void 0===e.byteLength||e.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[t,o]=new Uint8Array(e,0,2);if(251!==t)throw new Error("Data does not appear to be in a Flatbush format.");const i=o>>4;if(3!==i)throw new Error(`Got v${i} data when expected v3.`);const r=z[15&o];if(!r)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(e,2,1),[n]=new Uint32Array(e,4,1);return new B(n,a,r,void 0,e)}constructor(e,t=16,o=Float64Array,i=ArrayBuffer,r){if(void 0===e)throw new Error("Missing required argument: numItems.");if(isNaN(e)||e<=0)throw new Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535);let a=e,n=a;this._levelBounds=[4*a];do{a=Math.ceil(a/this.nodeSize),n+=a,this._levelBounds.push(4*n)}while(1!==a);this.ArrayType=o,this.IndexArrayType=n<16384?Uint16Array:Uint32Array;const s=z.indexOf(this.ArrayType),d=4*n*this.ArrayType.BYTES_PER_ELEMENT;if(s<0)throw new Error(`Unexpected typed array class: ${o}.`);r&&void 0!==r.byteLength&&!r.buffer?(this.data=r,this._boxes=new this.ArrayType(this.data,8,4*n),this._indices=new this.IndexArrayType(this.data,8+d,n),this._pos=4*n,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1]):(this.data=new i(8+d+n*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*n),this._indices=new this.IndexArrayType(this.data,8+d,n),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(this.data,0,2).set([251,48+s]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e),this._queue=new V}add(e,t,o,i){const r=this._pos>>2,a=this._boxes;return this._indices[r]=r,a[this._pos++]=e,a[this._pos++]=t,a[this._pos++]=o,a[this._pos++]=i,e<this.minX&&(this.minX=e),t<this.minY&&(this.minY=t),o>this.maxX&&(this.maxX=o),i>this.maxY&&(this.maxY=i),r}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);const e=this._boxes;if(this.numItems<=this.nodeSize)return e[this._pos++]=this.minX,e[this._pos++]=this.minY,e[this._pos++]=this.maxX,void(e[this._pos++]=this.maxY);const t=this.maxX-this.minX||1,o=this.maxY-this.minY||1,i=new Uint32Array(this.numItems);for(let r=0,a=0;r<this.numItems;r++){const n=e[a++],s=e[a++],d=e[a++],l=e[a++],c=Math.floor(65535*((n+d)/2-this.minX)/t),h=Math.floor(65535*((s+l)/2-this.minY)/o);i[r]=W(c,h)}H(i,e,this._indices,0,this.numItems-1,this.nodeSize);for(let t=0,o=0;t<this._levelBounds.length-1;t++){const i=this._levelBounds[t];for(;o<i;){const t=o;let r=e[o++],a=e[o++],n=e[o++],s=e[o++];for(let t=1;t<this.nodeSize&&o<i;t++)r=Math.min(r,e[o++]),a=Math.min(a,e[o++]),n=Math.max(n,e[o++]),s=Math.max(s,e[o++]);this._indices[this._pos>>2]=t,e[this._pos++]=r,e[this._pos++]=a,e[this._pos++]=n,e[this._pos++]=s}}}search(e,t,o,i,r){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let a=this._boxes.length-4;const n=[],s=[];for(;void 0!==a;){const d=Math.min(a+4*this.nodeSize,F(a,this._levelBounds));for(let l=a;l<d;l+=4){if(o<this._boxes[l])continue;if(i<this._boxes[l+1])continue;if(e>this._boxes[l+2])continue;if(t>this._boxes[l+3])continue;const d=0|this._indices[l>>2];a>=4*this.numItems?n.push(d):(void 0===r||r(d))&&s.push(d)}a=n.pop()}return s}neighbors(e,t,o=1/0,i=1/0,r){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let a=this._boxes.length-4;const n=this._queue,s=[],d=i*i;e:for(;void 0!==a;){const i=Math.min(a+4*this.nodeSize,F(a,this._levelBounds));for(let o=a;o<i;o+=4){const i=0|this._indices[o>>2],s=_(e,this._boxes[o],this._boxes[o+2]),l=_(t,this._boxes[o+1],this._boxes[o+3]),c=s*s+l*l;c>d||(a>=4*this.numItems?n.push(i<<1,c):(void 0===r||r(i))&&n.push(1+(i<<1),c))}for(;n.length&&1&n.peek();){if(n.peekValue()>d)break e;if(s.push(n.pop()>>1),s.length===o)break e}a=n.length?n.pop()>>1:void 0}return n.clear(),s}}function _(e,t,o){return e<t?t-e:e<=o?0:e-o}function F(e,t){let o=0,i=t.length-1;for(;o<i;){const r=o+i>>1;t[r]>e?i=r:o=r+1}return t[o]}function H(e,t,o,i,r,a){if(Math.floor(i/a)>=Math.floor(r/a))return;const n=e[i+r>>1];let s=i-1,d=r+1;for(;;){do{s++}while(e[s]<n);do{d--}while(e[d]>n);if(s>=d)break;U(e,t,o,s,d)}H(e,t,o,i,d,a),H(e,t,o,d+1,r,a)}function U(e,t,o,i,r){const a=e[i];e[i]=e[r],e[r]=a;const n=4*i,s=4*r,d=t[n],l=t[n+1],c=t[n+2],h=t[n+3];t[n]=t[s],t[n+1]=t[s+1],t[n+2]=t[s+2],t[n+3]=t[s+3],t[s]=d,t[s+1]=l,t[s+2]=c,t[s+3]=h;const u=o[i];o[i]=o[r],o[r]=u}function W(e,t){let o=e^t,i=65535^o,r=65535^(e|t),a=e&(65535^t),n=o|i>>1,s=o>>1^o,d=r>>1^i&a>>1^r,l=o&r>>1^a>>1^a;o=n,i=s,r=d,a=l,n=o&o>>2^i&i>>2,s=o&i>>2^i&(o^i)>>2,d^=o&r>>2^i&a>>2,l^=i&r>>2^(o^i)&a>>2,o=n,i=s,r=d,a=l,n=o&o>>4^i&i>>4,s=o&i>>4^i&(o^i)>>4,d^=o&r>>4^i&a>>4,l^=i&r>>4^(o^i)&a>>4,o=n,i=s,r=d,a=l,d^=o&r>>8^i&a>>8,l^=i&r>>8^(o^i)&a>>8,o=d^d>>1,i=l^l>>1;let c=e^t,h=i|65535^(c|o);return c=16711935&(c|c<<8),c=252645135&(c|c<<4),c=858993459&(c|c<<2),c=1431655765&(c|c<<1),h=16711935&(h|h<<8),h=252645135&(h|h<<4),h=858993459&(h|h<<2),h=1431655765&(h|h<<1),(h<<1|c)>>>0}const Z=e=>{const t=e.map((e=>e.taskObjs.length)).reduce(((e,t)=>e+t),0),o=new B(t);return e.forEach((e=>e.taskObjs.forEach((({overallStartTime:e,overallEndTime:t,y:i,height:r})=>{o.add(e,i,t,i+r)})))),o.finish(),o},Y=(e,t,o,i,r=!0)=>r?e<=i&&o<=t:e<i&&o<t,X=(e,t)=>Y(e.overallStartTime,e.overallEndTime,t.overallStartTime,t.overallEndTime,!1),G=(e,t,o)=>{const i=((e,t,o)=>{if(0===e.length)return 0;let i=0,r=e.length;for(;i<r;){const o=Math.floor((i+r)/2);e[o]<t?i=o+1:r=o}if(i<e.length&&(e[i]===t||"successor"===o))return i;return i>0?i-1:0})(e,t,"predecessor");let r=i;for(let t=i;t<e.length&&e[t]<=o;t++)r=t;return{minRowInd:i,maxRowInd:r}},K=e=>({start:e.start?e.start:e.end,end:e.end?e.end:e.start}),N=e=>!(!e||"none"===e),$=(e,t,o,i)=>{const r=N(i.selectionMode),a=new Set(i.selectedIds);let n=0;const s=e.map(((i,s)=>{const d=i.tasks.map(((e,o)=>{const{start:i,end:n}=K(e),d=h.parseDate(i),l=h.parseDate(n);return{id:e.id,renderIndex:0,index:o,rowIndex:s,y:-1,startTime:d,endTime:l,overallStartTime:d,overallEndTime:l,rowLevel:0,height:void 0!==e.height?e.height:t.taskHeight,borderRadius:void 0!==e.borderRadius?e.borderRadius.toString():t.taskBorderRadius,fill:e.color?e.color:t.taskBgColor,stroke:t.taskBorderColor,strokeWidth:1,isSelectable:r,isSelected:a.has(e.id),selectionEffect:{stroke:t.taskEffectBorderColor,strokeWidth:2,padding:2},hoverEffect:{stroke:t.taskEffectBorderColor,strokeWidth:1,padding:0,shadow:{...t.taskEffectBoxShadow}},focusEffect:{stroke:t.taskEffectBorderColor,strokeWidth:1,padding:2}}}));d.sort(((e,t)=>e.startTime-t.startTime)),d.forEach(((e,t)=>e.renderIndex=t));const l=(({rowHeight:e,rowY:t,taskObjs:o,resolvedVars:i})=>{if(0===o.length)return(e=>e.rowPaddingTop+e.taskHeight+e.rowPaddingBottom)(i);o[0].rowLevel=0,o[0].y=0;const r=[[o[0]]],a=[o[0]];for(let e=1;e<o.length;e++){const t=o[e],i="stack",n=o[e-1];X(t,n)?r[r.length-1].push(t):r.push([t]);let s,d=0;switch(i){case"stack":{let e=!0;for(let o=0;o<a.length;o++){if(s=void 0,!X(t,a[o])){s=a[o],a[o]=t,e=!1;break}d+=1}e&&a.push(t),t.y=0,s&&(t.previousAdjacentTaskObj=s,s.nextAdjacentTaskObj=t);break}default:return i}t.rowLevel=d}const n=i.rowPaddingTop,s=i.rowPaddingBottom,d=a.map((()=>0));if(void 0===e){o.forEach((e=>{e.height>d[e.rowLevel]&&(d[e.rowLevel]=e.height)}));const e=d.map((e=>e+n+s)).reduce(((e,t,o)=>(e.push((e[o-1]||0)+t),e)),[]);o.forEach((t=>{t.y+=(e[t.rowLevel-1]||0)+n}))}const l=r.map((e=>{let t=0;return e.forEach((e=>{const o=e.y+e.height;o>t&&(t=o)})),t}));let c;return void 0===e?(c=l.reduce(((e,t)=>Math.max(e,t)))+n,r.forEach((e=>{e.forEach((e=>{const o=d[e.rowLevel];e.y+=(o-e.height)/2+t}))}))):(c=e,r.forEach(((e,o)=>{const i=l[o];let r=Number.MAX_VALUE;e.forEach((e=>{e.y+=Math.floor((c-e.height)/2),e.y<r&&(r=e.y)}));const a=Math.floor((c-i)/2)-r;e.forEach((e=>{e.y+=t+a}))}))),c})({rowHeight:i.height,rowY:n,taskObjs:d,resolvedVars:t});((e,t)=>{e.forEach((e=>{const{index:o,rowIndex:i}=e,r=t[i].tasks[o].label;r&&(e.labelObj={startTime:e.startTime,endTime:e.endTime,label:r,isInner:!0,position:"center"})}))})(d,e);const c={id:i.id,y:n,height:l,index:s,isSelected:d.some((e=>e.isSelected)),taskObjs:d},u="on"===o.horizontal?1:0;return n+=l+u,c})),d=s[s.length-1],l=d?d.y+d.height:0,c=new Map;s.forEach((e=>e.taskObjs.forEach((e=>c.set(e.id,e)))));const u=new Map;s.forEach((e=>u.set(e.id,e)));const m=(e=>({tasks:Z(e)}))(s);return{rowData:e,rowObjs:s,rowPadding:t.rowPaddingTop,totalRowsHeight:l,gridlines:o,spatialIndex:m,idRowObjMap:u,idTaskObjMap:c,getTaskDataById:t=>{const o=c.get(t);return o&&e[o.rowIndex].tasks[o.index]}}},q=(e,t)=>{const o=e.selectionProps.selectedIds||[],i=[];o.forEach((e=>{const o=t.get(e);o&&i.push(o)}));const r=N(e.selectionProps.selectionMode)?e.hoverProps.hoveredTaskId:void 0,a=void 0!==r?t.get(r):void 0,n=e.currentProps.currentTask,s=!0===n?.isFocused,d=n?.id,l=s&&void 0!==d?t.get(d):void 0;return{selectedTaskObjs:i,hoveredTaskObj:a,focusedTaskObj:l}},J=(e,t,o,i,r,a)=>{const n=h.getTimePosition(e.startTime,t,o,i,a),s=h.getTimePosition(e.endTime,t,o,i,a);return{...e,x:a?s:n,y:e.y-r,width:a?n-s:s-n}},Q=(e,t,o,i,r,a,n)=>{const s=i,d=i+a,l=e.rowObjs.map((e=>e.y)),{minRowInd:c,maxRowInd:u}=G(l,s,d),m=[];for(let a=c;a<=u;a++){const s=e.rowObjs[a],d=s.taskObjs.filter((({overallStartTime:e,overallEndTime:i})=>Y(e,i,t,o))).map((e=>J(e,t,o,r,i,n))),l={...s,y:s.y-i,taskObjs:d};m.push(l)}const g=[];m.forEach((i=>{i.taskObjs.forEach((({index:i,rowIndex:a,labelObj:s,y:d,height:l})=>{const c=((e,t,o,i,r,a,n,s)=>{if(!e)return;const d=h.getTimePosition(e.startTime,r,a,n,s),l=h.getTimePosition(e.endTime,r,a,n,s);let c;switch(e.position){case"center":c="center";break;case"start":c=s?"right":"left";break;case"end":c=s?"left":"right";break;default:return e.position}return{x:s?l:d,y:o,width:s?d-l:l-d,height:i,label:e.label,isInner:e.isInner,textAlign:c,labelStyle:t}})(s,e.rowData[a].tasks[i].labelStyle,d,l,t,o,r,n);c&&g.push(c)}))}));const w="on"===e.gridlines.horizontal?m.map((({y:e,height:t})=>e+t+.5)):void 0,p=new Map;return m.forEach((e=>e.taskObjs.forEach((e=>p.set(e.id,e))))),{spatialIndex:e.spatialIndex,gridlines:e.gridlines,horizontalGridlinesPos:w,rowData:e.rowData,allRowObjs:e.rowObjs,allIdTaskObjMap:e.idTaskObjMap,allIdRowObjMap:e.idRowObjMap,rowPadding:e.rowPadding,rowObjs:m,taskLabelObjs:g,idTaskObjMap:p,getTaskDataById:e.getTaskDataById}},ee=(e,t,o,i)=>{const r=t[e.rowIndex].tasks[e.index],a=void 0!==r.accessibleLabel?r.accessibleLabel:((e,t,o,i)=>{const r=t[e.rowIndex],a=r.tasks[e.index],{start:n,end:s}=K(a),d=n===s,l=[];if(r.label){const e=i.vis_labelAndValue({LABEL:i.gantt_labelRow(),VALUE:r.label});l.push(e)}if(d){const e=i.vis_labelAndValue({LABEL:i.gantt_labelDate(),VALUE:o(n)});l.push(e)}else{const e=i.vis_labelAndValue({LABEL:i.gantt_labelStart(),VALUE:o(n)}),t=i.vis_labelAndValue({LABEL:i.gantt_labelEnd(),VALUE:o(s)});l.push(e),l.push(t)}if(a.label){const e=i.vis_labelAndValue({LABEL:i.gantt_labelLabel(),VALUE:a.label});l.push(e)}return l.join("; ")})(e,t,o,i);return c.generateAriaLabel(i,a,{isSelected:e.isSelected})},te=(e,t)=>{const o=t[e.index];return o.accessibleLabel||o.label};function oe({rowObj:e,rowData:o,isRowSelected:r,isFocused:n,isHorizontalGridlinesVisible:s,ariaActive:d,children:l}){const c=te(e,o);return t.jsx("div",{id:d?.dataId===e.id?d.ariaId:void 0,"data-oj-row-index":e.index,role:"row","aria-label":c,class:i.classNames([a.rowAxisStyles.labelContainer,r&&a.rowBackgroundStyles.selected,n&&a.rowAxisStyles.labelContainerFocused,s&&a.rowAxisStyles.withLabelSeparatorBottom]),children:t.jsx("div",{role:"rowheader",children:l})},e.id)}function ie({content:e,placement:i="top-end-corner",offset:r,borderColor:a,anchor:n,targetFocusRef:s}){const d=o.useRef(x.useId()),[l,c]=o.useState({x:0,y:0}),h=r||{mainAxis:f.DATATIP_OFFSET,crossAxis:-1*f.DATATIP_OFFSET},u=o.useRef(null),g="element"===n?u:{current:l};return{datatipContent:null!=e?t.jsx(m.Layer,{children:t.jsx(p.Floating,{anchorRef:g,placement:i,offsetValue:h,flipOptions:{crossAxis:!0,mainAxis:!0},shiftOptions:{crossAxis:!1,mainAxis:!1},children:t.jsx("div",{id:d.current,className:b.styles.visDatatipStyle,style:{borderColor:a},children:e})})}):null,datatipProps:{"aria-describedby":d.current,onPointerEnter:e=>{e.eventPhase!==Event.AT_TARGET&&e.eventPhase!==Event.BUBBLING_PHASE||(u.current=e.currentTarget)},onPointerLeave:()=>{c({x:-1e4,y:-1e4})},onPointerMove:e=>{c({x:e.clientX,y:e.clientY})},onFocus:e=>{e.eventPhase!==Event.AT_TARGET&&e.eventPhase!==Event.BUBBLING_PHASE||(u.current=e.target)},onShowFocusDatatip:()=>{u.current=s.current}}}}const re=({targetRef:e,rowData:t,hoveredRowObj:o,focusedRowObj:i,currentRowLabelInteraction:r,rowAxisRegion:a})=>{const{direction:n}=u.useUser(),s="rtl"===n,d={hover:{rowObj:o,anchor:"pointer"},focus:{rowObj:i,anchor:"element"},none:{rowObj:void 0,anchor:"pointer"}},{anchor:l,rowObj:c}=d[r],h=c?t[c.index].accessibleLabel:void 0,m=c&&"element"===l?{x:0,y:c.y+a.y,width:a.w,height:c.height}:void 0;return ie({content:h,anchor:l,placement:"top-start",offset:v.calculateOffset(s,a.w,m),targetFocusRef:e})},ae=({rowObjs:e,hoverProps:t})=>({onPointerMove:o=>{const i=(t=>{const{clientX:o,clientY:i}=t,r=document.elementsFromPoint(o,i);for(let t=0;t<r.length;t++){const o=r[t].dataset.ojRowIndex;if(o)return e[Number(o)].id}})(o);i!==t.hoveredRowLabelId&&t.onRowLabelHoverChange({id:i})}});function ne({innerRef:e,scrollPosition:o,resolvedWidth:r,resolvedMaxWidth:n,currentRowLabel:s,currentRowLabelInteraction:d,hoveredRowLabelId:l,onRowLabelHoverChange:c,layoutObj:{labelPaddingInlineStart:h,labelPaddingInlineEnd:u,rowData:m,rowObjs:g,idRowObjMap:w,isHorizontalGridlinesVisible:p},ariaActive:b,children:x}){const f=r!==1/0?r:void 0,v=n!==1/0?n:void 0,T=Math.min(r,n),k=T===1/0?-1:T-(h+u),A=ae({rowObjs:g,hoverProps:{hoveredRowLabelId:l,onRowLabelHoverChange:c}}),{datatipContent:R,datatipProps:j}=re({rowData:m,hoveredRowObj:l&&w.get(l),focusedRowObj:s?.isFocused?w.get(s.id):void 0,currentRowLabelInteraction:d,rowAxisRegion:{x:0,y:-o,w:2*(h+u),h:-1},targetRef:e});return t.jsxs("div",{ref:e,...y.mergeProps(A,j),class:i.classNames([a.rowAxisStyles.base,p&&a.rowAxisStyles.withSeparatorTop]),style:{width:f,maxWidth:v},children:[t.jsx("div",{role:"grid",class:a.rowAxisStyles.contentContainer,style:{top:-o},children:g.map((e=>t.jsx(oe,{ariaActive:b,rowObj:e,rowData:m,isRowSelected:e.isSelected,isFocused:!!s?.isFocused&&s.id===e.id,isHorizontalGridlinesVisible:p,children:x(M(e,m,k))})))}),R]})}const se=(e,t,o,i,r)=>{const a=((e,t,o)=>{const i=t.max-o.max,r=t.min-o.min,a=e*(t.max-t.min),n=Math.max(i,Math.min(a,r));return{min:Math.max(0,t.min-n),max:t.max-n}})(e,t,i),{min:n,max:s}=o,d=a.min!==n||a.max!==s;return d&&r(a),{newRange:a,isRangeChanged:d}},de=({rowObjs:e})=>{if(0!==e.length&&0!==e[0].taskObjs.length)return{id:e[0].taskObjs[0].id,isFocused:!0}},le=(e,{rowObjs:t,idTaskObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="next"===i?1:-1,{rowIndex:n,renderIndex:s}=r,d=t[n].taskObjs[s+a];if(d)return d.id;const l=t[n+a];if(l){const e="next"===i?l.taskObjs[0]:l.taskObjs[l.taskObjs.length-1];if(e)return e.id}},ce=(e,{rowObjs:t,idTaskObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="down"===i?1:-1,{rowIndex:n}=r,s=t[n+a];if(!s)return;const d=s.taskObjs[0];return d?d.id:void 0},he=(e,t)=>le(e,t,"next"),ue=(e,t)=>le(e,t,"prev"),me=(e,{rowObjs:t,idRowObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="down"===i?1:-1,{index:n}=r,s=t[n+a];return s?s.id:void 0},ge=(e,t,o,i="auto",r="auto",a=0)=>{const n=Math.min(e.x-t.x-a,0),s=Math.max(0,e.x+e.w-(t.x+t.w)+a),d=o?s:n,l=o?n:s;let c=0;switch(i){case"start":c=d;break;case"end":c=l;break;case"auto":c=(o?l<0:l>0)?l:d;break;default:return i}const h=Math.min(e.y-t.y-a,0),u=Math.max(0,e.y+e.h-(t.y+t.h)+a);let m=0;switch(r){case"top":m=h;break;case"bottom":m=u;break;case"auto":m=h<0?h:u;break;default:return r}return{dx:-c,dy:-m}},we=({viewportLayout:e,dataBodyWidth:t,dataBodyHeight:i,viewportStartTime:r,viewportEndTime:a,scrollPosition:n,...s})=>{const{direction:d}=u.useUser(),l="rtl"===d,c=(({getRangeX:e,getRangeY:t,globalRangeX:i,globalRangeY:r,onRangeXChange:a,onRangeYChange:n,isDisabled:s=!1})=>{const d=o.useRef({min:0,max:0}),l=o.useRef({min:0,max:0});return s?{}:{onKbPanHorizontal:t=>{const{detail:{rangeRatio:o}}=t,{newRange:r}=se(o,e(),d.current,i,a);d.current=r},onKbPanVertical:e=>{const{detail:{rangeRatio:o}}=e,{newRange:i}=se(o,t(),l.current,r,n);l.current=i}}})(s),h=o.useRef({min:0,max:0}),m=o.useRef({min:0,max:0}),g=(e=0,o=0)=>{if(0!==e){const{newRange:o}=se(e/t,s.getRangeX(),h.current,s.globalRangeX,s.onRangeXChange);h.current=o}if(0!==o){const{newRange:e}=se(o/i,s.getRangeY(),m.current,s.globalRangeY,s.onRangeYChange);m.current=e}};return s.isDisabled?{}:{...c,onKbPanTaskIntoView:o=>{let s=e.idTaskObjMap.get(o.detail.id);if(!s){const i=e.allIdTaskObjMap.get(o.detail.id);if(!i)return;s=J(i,r,a,t,n,l)}const{x:d,y:c,width:h,height:u}=s,m={x:d,y:c,w:h,h:u},w={x:0,y:0,w:t,h:i},p=e.rowPadding,{dx:b,dy:x}=ge(m,w,l,"auto","auto",p);g(b,x)},onKbPanRowIntoView:o=>{const r=e.allIdRowObjMap.get(o.detail.id);if(!r)return;const a={x:0,y:r.y-n,w:t,h:r.height},s={x:0,y:0,w:t,h:i},d=e.rowPadding,{dy:c}=ge(a,s,l,"auto","auto",d);g(0,c)}}},pe=({captureTargetRef:e,width:t,height:i,viewportStartTime:r,viewportEndTime:a,majorAxisScale:n,minorAxisScale:s,startTime:d,endTime:l,zoomParameters:c,scrollPosition:m,dataBodyHeight:g,totalRowsHeight:w,viewportLayout:p,onViewportChange:b,onScrollPositionChange:x,onCursorChange:f,isPanDisabled:v,isZoomDisabled:k})=>{const A={captureTargetRef:e,width:t,height:i,getRangeX:()=>({min:r,max:a}),getRangeY:()=>({min:m,max:m+g}),globalRangeX:{min:d,max:l},globalRangeY:{min:0,max:w},onRangeXChange:e=>{b?.({viewportStart:h.getISOString(e.min),viewportEnd:h.getISOString(e.max),majorAxisScale:n,minorAxisScale:s})},onRangeYChange:e=>{x?.({y:e.min})},isDisabled:v},{getZoomOrderViewDurationThresholds:R,...j}=c,S={captureTargetRef:e,width:t,...j,zoomOrderViewDurationThresholds:R(t),onViewportChange:b,isDisabled:k},C=(({captureTargetRef:e,width:t,height:i,getRangeX:r,getRangeY:a,globalRangeX:n,globalRangeY:s,onRangeXChange:d,onRangeYChange:l,onDragPanStart:c,onDragPanEnd:m,isDisabled:g=!1})=>{const{direction:w}=u.useUser(),p=o.useRef({min:0,max:0}),b=o.useRef({min:0,max:0}),x=o.useRef({min:0,max:0}),f=o.useRef({min:0,max:0}),v=o.useRef(!1),y=h.useDrag({captureTargetRef:e,onDragStart:()=>{x.current=r(),f.current=a(),c&&c()},onDragMove:({dx:e,dy:o})=>{v.current=!0;const{newRange:r}=se(("rtl"===w?-1:1)*e/t,x.current,p.current,n,d);p.current=r;const{newRange:a}=se(o/i,f.current,b.current,s,l);b.current=a},onDragEnd:({originalEvent:e})=>{v.current&&e.preventDefault(),v.current=!1,m&&m()},isDisabled:g});return g?{}:y})({...A,onDragPanStart:()=>f?.({cursor:"grabbing"}),onDragPanEnd:()=>f?.({cursor:"grabbingUnset"})}),I=(({width:e,height:t,getRangeX:i,getRangeY:r,globalRangeX:a,globalRangeY:n,onRangeXChange:s,onRangeYChange:d,isDisabled:l=!1})=>{const{direction:c}=u.useUser(),m=o.useRef({min:0,max:0}),g=o.useRef({min:0,max:0}),w=h.useWheel({onWheel:({deltaX:o,deltaY:l,ctrlKey:h})=>{if(h)return;const{newRange:u}=se(("rtl"===c?-1:1)*o/e,i(),m.current,a,s);m.current=u;const{newRange:w}=se(l/t,r(),g.current,n,d);g.current=w},isDisabled:l});return l?{}:w})(A),P=we({...A,viewportLayout:p,dataBodyWidth:t,dataBodyHeight:g,viewportStartTime:r,viewportEndTime:a,scrollPosition:m}),L=(({captureTargetRef:e,width:t,startTime:o,endTime:i,viewportStartTime:r,viewportEndTime:a,majorAxisZoomOrder:n,majorAxisZoomOrderIndex:s,minorAxisZoomOrder:d,minorAxisZoomOrderIndex:l,zoomOrderViewDurationThresholds:c,minZoomViewportDuration:m,maxZoomViewportDuration:g,onViewportChange:w,isDisabled:p=!1})=>{const{direction:b}=u.useUser(),x="rtl"===b,f=T.usePinch({captureTargetRef:e,onPinchZoomChange:({origin:{x:e},delta:u})=>{const p=h.getPositionTime(e,r,a,t,x);h.zoomTime(p,r,a,o,i,h.getGestureZoomFactor(u),m,g,c,d,l,n,s,w)},isDisabled:p});return p?{}:f})(S),O=(({width:e,startTime:t,endTime:o,viewportStartTime:i,viewportEndTime:r,majorAxisZoomOrder:a,majorAxisZoomOrderIndex:n,minorAxisZoomOrder:s,minorAxisZoomOrderIndex:d,zoomOrderViewDurationThresholds:l,minZoomViewportDuration:c,maxZoomViewportDuration:m,onViewportChange:g,isDisabled:w=!1})=>{const{direction:p}=u.useUser(),b="rtl"===p,x=h.useWheel({onWheel:({x:u,deltaY:w,ctrlKey:p})=>{if(!p)return;const x=h.getPositionTime(u,i,r,e,b);h.zoomTime(x,i,r,t,o,h.getGestureZoomFactor(w),c,m,l,s,d,a,n,g)},isDisabled:w});return w?{}:x})(S),E=(({startTime:e,endTime:t,viewportStartTime:o,viewportEndTime:i,majorAxisZoomOrder:r,majorAxisZoomOrderIndex:a,minorAxisZoomOrder:n,minorAxisZoomOrderIndex:s,zoomOrderViewDurationThresholds:d,minZoomViewportDuration:l,maxZoomViewportDuration:c,onViewportChange:u,isDisabled:m=!1})=>m?{}:{onKbZoomIn:m=>{const g=o+(i-o)/2;h.zoomTime(g,o,i,e,t,m.detail.zoomFactor,l,c,d,n,s,r,a,u)},onKbZoomOut:m=>{const g=o+(i-o)/2;h.zoomTime(g,o,i,e,t,m.detail.zoomFactor,l,c,d,n,s,r,a,u)}})(S);return{gestureProps:y.mergeProps(C,I,P,L,O,E)}},be=({viewportLayout:e,viewportYOffset:t,dataBodyRegion:o,viewportStartTime:i,viewportEndTime:r,width:a,isRTL:n,selectionProps:s,hoverProps:d,currentProps:l,onCursorChange:c})=>{const{x:u,y:m,w:g,h:w}=o,p=N(s.selectionMode),b=o=>{const s=e.allRowObjs,d=e.spatialIndex,{offsetX:l,offsetY:c}=o;if(!!(l<u||l>u+g||c<m||c>m+w))return;const p={time:h.getPositionTime(l,i,r,a,n),y:c+t},b=((e,t,{time:o,y:i})=>{const r=t.search(o,i,o,i);if(0===r.length)return;let a=r[0];for(let t=0;t<e.length;t++){const o=e[t];for(let e=0;e<o.taskObjs.length;e++){if(0===a)return{rowIndex:t,taskIndex:e};a-=1}}})(s,d.tasks,p);if(!b)return;const{rowIndex:x,taskIndex:f}=b;return s[x].taskObjs[f].id},x={onPointerMove:e=>{const t=b(e);t!==d.hoveredTaskId&&d.onTaskHoverChange({id:t}),p&&c?.({cursor:void 0!==t?"pointer":"pointerUnset"})}},f={onPointerUp:e=>{const t=b(e);void 0!==t&&(p&&c?.({cursor:"pointer"}),t!==l?.currentTask?.id&&l.onCurrentTaskChange({id:t,isFocused:!1}))}},{selectionProps:{onKeyUp:v,...T},selectionContent:A}=k.useSelection({idExtracter:b,selection:s.selectedIds,selectionMode:s.selectionMode,onChange:s.onSelectionChange,getDataById:e.getTaskDataById});return{gestureProps:y.mergeProps(x,f,T),selectionContent:A}},xe=({targetRef:e,datatip:o,rowData:i,dateFormatter:r,hoveredTaskObj:a,focusedTaskObj:n,currentTaskInteraction:s,dataBodyRegion:d})=>{const{direction:l}=u.useUser(),c="rtl"===l,h=R.useTranslationBundle("@oracle/oraclejet-preact"),m={hover:{taskObj:a,anchor:"pointer"},focus:{taskObj:n,anchor:"element"},none:{taskObj:void 0,anchor:"pointer"}},{anchor:g,taskObj:w}=m[s],p=o??(e=>{const{translations:o,dateFormatter:i}=e;return({data:e,rowData:r})=>{if(void 0!==e.accessibleLabel)return{content:e.accessibleLabel};const{start:a,end:n}=K(e),s=a===n,d=[];return r.label&&d.push({key:o.gantt_labelRow(),value:r.label}),s?d.push({key:o.gantt_labelDate(),value:i(a)}):(d.push({key:o.gantt_labelStart(),value:i(a)}),d.push({key:o.gantt_labelEnd(),value:i(n)})),e.label&&d.push({key:o.gantt_labelLabel(),value:e.label}),{content:t.jsx(A.VisTabularDatatip,{tableData:d})}}})({translations:h,dateFormatter:r,isRTL:c}),{content:b,borderColor:x}=w?p(((e,t)=>{const{index:o,rowIndex:i}=t;return{data:e[i].tasks[o],rowData:e[i]}})(i,w)):{content:void 0,borderColor:void 0},f=w&&"element"===g?{x:w.x,y:w.y+d.y,width:w.width,height:w.height}:void 0;return ie({content:b,anchor:g,placement:"top-start",offset:v.calculateOffset(c,d.w,f),borderColor:x,targetFocusRef:e})};function fe({innerRef:e,isRTL:r,scrollPosition:n,onScrollPositionChange:s,isViewportDefined:l,onViewportChange:c,zoomParameters:u,zooming:m,selectedIds:g,selectionMode:w,onSelectionChange:p,hoveredTaskId:b,onTaskHoverChange:x,currentTask:f,onCurrentTaskChange:v,currentTaskInteraction:T,ariaActive:k,getTimeAxesLayout:A,getResolvedViewportLayout:R,rowDataLayout:j,rowAxisSeparator:S,datatip:C,majorAxis:I,minorAxis:P,dataBody:L}){return l?t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:function(d,l){const O=A(d),{position:E,majorAxis:D,minorAxis:M,viewportStartTime:V,viewportEndTime:z,startTime:B,endTime:_}=O,F=D&&D.zoomOrder[D.zoomOrderIndex],H=M.zoomOrder[M.zoomOrderIndex],U=D?D.height:0,{height:W}=M,Z=l-(U+W),Y=R(j,V,z,n,d,Z,r),X=q({selectionProps:{selectedIds:g,selectionMode:w},hoverProps:{hoveredTaskId:b},currentProps:{currentTask:f}},Y.idTaskObjMap),G=h.getDefaultDateFormatter(H,V),K=D&&I(D),N=P(M),$=L({width:d,height:Z,viewportLayout:Y,minorAxisLayout:M,effectsLayout:X,dateFormatter:G,ariaActiveTask:k}),J={top:{components:[K,N,$],dataBodyPos:l-Z},bottom:{components:[$,N,K],dataBodyPos:0}},[Q,ee]=o.useState(),te=e=>ee((t=>void 0===t?e.cursor:"grabbing"===t&&"grabbingUnset"!==e.cursor?"grabbing":"grabbingUnset"!==e.cursor&&"pointerUnset"!==e.cursor?e.cursor:void 0)),{gestureProps:oe}=pe({captureTargetRef:e,width:d,height:l,viewportStartTime:V,viewportEndTime:z,majorAxisScale:F,minorAxisScale:H,startTime:B,endTime:_,zoomParameters:u,scrollPosition:n,dataBodyHeight:Z,totalRowsHeight:j.totalRowsHeight,viewportLayout:Y,onViewportChange:e=>{c&&(c(e),x({id:void 0}))},onScrollPositionChange:e=>{s&&(s(e),x({id:void 0}))},onCursorChange:te,isPanDisabled:!1,isZoomDisabled:"off"===m}),ie={x:0,y:J[E].dataBodyPos,w:d,h:Z},{gestureProps:re,selectionContent:ae}=be({viewportLayout:Y,viewportYOffset:n-J[E].dataBodyPos,dataBodyRegion:ie,viewportStartTime:V,viewportEndTime:z,width:d,isRTL:r,selectionProps:{selectedIds:g,selectionMode:w,onSelectionChange:p},hoverProps:{hoveredTaskId:b,onTaskHoverChange:x},currentProps:{currentTask:f,onCurrentTaskChange:v},onCursorChange:te}),{datatipContent:ne,datatipProps:se}=xe({datatip:C,rowData:Y.rowData,dateFormatter:G,hoveredTaskObj:b&&Y.idTaskObjMap.get(b),focusedTaskObj:X.focusedTaskObj,currentTaskInteraction:T,dataBodyRegion:ie,targetRef:e}),de=y.mergeProps(oe,re,se);return t.jsxs("div",{ref:e,...de,class:i.classNames([a.timeAxisDataBodyStyles.base,a.timeAxisDataBodyStyles.pannable,r?S&&a.timeAxisDataBodyStyles.withRowAxisSeparatorRight:S&&a.timeAxisDataBodyStyles.withRowAxisSeparatorLeft]),style:{cursor:Q},children:[J[E].components,ne,ae]})}}):t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:e=>{const t=A(e),{majorAxis:o,minorAxis:i,viewportStartTime:r,viewportEndTime:a}=t,n=o&&o.zoomOrder[o.zoomOrderIndex],s=i.zoomOrder[i.zoomOrderIndex];return c?.({viewportStart:h.getISOString(r),viewportEnd:h.getISOString(a),majorAxisScale:n,minorAxisScale:s}),null}})}function ve({width:e,height:o,positions:i}){const r=i.map((t=>`M0,${t} H${e}`)).join(" ");return t.jsx("svg",{width:e,height:o,children:t.jsx("path",{class:a.horizontalGridlinesStyles.base,d:r})})}function ye({width:e,height:i,rowData:r,dateFormatter:a,ariaActiveId:n,ariaActiveTaskObj:s}){const d=R.useTranslationBundle("@oracle/oraclejet-preact"),l=o.useRef(0),c=o.useMemo((()=>{const e=0===l.current?[n,v.getRandomId()]:[v.getRandomId(),n];return l.current=Math.abs(l.current-1),e}),[n]),h=s&&ee(s,r,a,d);return t.jsxs("div",{style:{width:e,height:i},children:[t.jsx("div",{role:"img",id:c[0],"aria-label":h}),t.jsx("div",{role:"img",id:c[1],"aria-label":h})]})}function Te({width:e,height:o,rowData:i,dateFormatter:r,layoutObjs:n}){const s=R.useTranslationBundle("@oracle/oraclejet-preact"),d=[];return n.forEach((e=>{e.taskObjs.forEach((e=>{const o=ee(e,i,r,s);d.push(t.jsx("div",{role:"img","aria-label":o,class:a.taskMobileAccStyles.content,style:{width:e.width,height:e.height,top:e.y,left:e.x}}))}))})),t.jsx("div",{class:a.taskMobileAccStyles.base,style:{width:e,height:o},children:d})}function ke({width:e,height:o,rowData:i,dateFormatter:r,ariaActiveId:a,ariaActiveTaskObj:n,layoutObjs:s}){return c.supportsMobileScreenReader?t.jsx(Te,{width:e,height:o,layoutObjs:s,rowData:i,dateFormatter:r}):t.jsx(ye,{width:e,height:o,rowData:i,dateFormatter:r,ariaActiveId:a,ariaActiveTaskObj:n})}function Ae({width:e,height:o,layoutObjs:i}){const r=i.filter((e=>e.isSelected)),n=r.map((({y:t,height:o})=>`M1,${t} H${e-1} V${t+o} H1 Z`)).join(" ");return r.length>0?t.jsx("svg",{width:e,height:o,children:t.jsx("path",{class:a.rowBackgroundStyles.selected,d:n})}):null}const Re=(e,t)=>{const{x:o,y:i,width:r,height:a,borderRadius:n,stroke:s,strokeWidth:d,padding:l}=t,c=o-l,h=i-l,u=r+2*l,m=a+2*l,g=j.rectangleWithBorderRadius(c,h,u,m,n,Math.min(u,m),"0"),w=new Path2D(g);e.strokeStyle=s,e.lineWidth=d,e.stroke(w)},je=(e,t,o)=>{const i="hovered"===o,{x:r,y:a,width:n,height:s,borderRadius:d,fill:l,stroke:c,strokeWidth:h}=t,u=j.rectangleWithBorderRadius(r,a,n,s,d,Math.min(n,s),"0"),m=new Path2D(u);switch(i&&((e,t)=>{e.shadowColor=t.shadowColor,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY,e.shadowBlur=t.shadowBlur})(e,t.hoverEffect.shadow),e.fillStyle="#ffffff",e.fill(m),i&&(e=>{e.shadowColor="transparent",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0})(e),e.strokeStyle=c,e.fillStyle=l,e.lineWidth=h,e.fill(m),e.stroke(m),o){case"selected":Re(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.selectionEffect});break;case"hovered":Re(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.hoverEffect});break;case"focused":Re(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.focusEffect});break;case void 0:break;default:return o}};function Se({width:e,height:o,layoutObj:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i&&je(e,i,"focused")}})}function Ce({width:e,height:o,layoutObj:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i&&je(e,i,"hovered")}})}function Ie({width:e,height:o,layoutObjs:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i.forEach((t=>je(e,t,"selected")))}})}function Pe({width:e,height:o,layoutObjs:{selectedTaskObjs:i,hoveredTaskObj:r,focusedTaskObj:a}}){return t.jsxs(h.TimeComponentLayersStack,{width:`${e}px`,height:`${o}px`,children:[t.jsx(Se,{width:e,height:o,layoutObj:a}),t.jsx(Ie,{width:e,height:o,layoutObjs:i}),t.jsx(Ce,{width:e,height:o,layoutObj:r})]})}function Le({x:e,y:o,width:r,height:n,label:s,isInner:d,textAlign:c,labelStyle:h}){return t.jsx("div",{"aria-hidden":"true",class:i.classNames([a.taskLabelLayerStyles.label,d&&a.taskLabelLayerStyles.innerLabel]),style:{left:e,top:o,width:r,height:n,textAlign:c,...h},children:t.jsx(l.Text,{variant:h?.color?"inherit":"primary",truncation:"ellipsis",size:"md",weight:"inherit",children:s})})}function Oe({width:e,height:o,layoutObjs:i}){return t.jsx("div",{class:a.taskLabelLayerStyles.base,style:{width:e,height:o},children:i.map((e=>t.jsx(Le,{...e})))})}function Ee({width:e,height:o,layoutObjs:i}){return t.jsx(h.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i.forEach((t=>{t.taskObjs.forEach((t=>je(e,t)))}))}})}function De({width:e,height:o,minorAxisLayout:{minorGridTicksPos:i,majorGridTicksPos:r},viewportLayout:{gridlines:a,rowData:n,rowObjs:s,taskLabelObjs:d,horizontalGridlinesPos:l,idTaskObjMap:c},effectsLayout:u,dateFormatter:m,ariaActiveTask:g}){return t.jsxs(h.TimeComponentLayersStack,{width:`${e}px`,height:`${o}px`,children:[t.jsx(Ae,{width:e,height:o,layoutObjs:s}),"on"===a.vertical&&t.jsx(h.TimeComponentVerticalGridlines,{width:e,height:o,positions:i,variant:"minor"}),"on"===a.vertical&&r&&t.jsx(h.TimeComponentVerticalGridlines,{width:e,height:o,positions:r,variant:"major"}),l&&t.jsx(ve,{width:e,height:o,positions:l}),t.jsx(ke,{width:e,height:o,layoutObjs:s,rowData:n,dateFormatter:m,ariaActiveId:g?.ariaId,ariaActiveTaskObj:g&&c.get(g.dataId)}),t.jsx(Ee,{width:e,height:o,layoutObjs:s}),t.jsx(Pe,{width:e,height:o,layoutObjs:u}),t.jsx(Oe,{width:e,height:o,layoutObjs:d})]})}function Me({visRef:e,overlayControlsContainerRef:o,panZoomLayout:i,getTimeAxesLayout:r,getHorizontalScrollbarLayout:a,onHorizontalScrollChange:n,getVerticalScrollbarLayout:s,onVerticalScrollChange:d,rowAxisSeparator:l=!1,zoomParameters:c,zooming:u="on",isViewportDefined:m,onViewportChange:g,getResolvedViewportLayout:w,datatip:p,rowDataLayout:b,isRTL:x,scrollPosition:f,onScrollPositionChange:v,selectedIds:y,selectionMode:T,onSelectionChange:k,hoveredTaskId:A,onTaskHoverChange:R,currentTask:j,onCurrentTaskChange:S,currentTaskInteraction:C,ariaActive:I,width:P,height:L}){return t.jsx(h.TimeComponentPanZoomLayout,{overlayControlsContainerRef:o,...i,width:P,height:L,overlayControls:"on"===u&&c&&m?t.jsx(h.TimeComponentZoomControls,{position:i.overlayControlsPosition,zoomParameters:c,onViewportChange:g}):void 0,verticalControl:t.jsx(h.TimeComponentVerticalScrollbarContainer,{getLayout:s,onRangeChange:d,children:e=>t.jsx(h.TimeComponentVerticalScrollbar,{...e})}),horizontalControl:t.jsx(h.TimeComponentHorizontalScrollbarContainer,{getLayout:a,onRangeChange:n,children:e=>t.jsx(h.TimeComponentHorizontalScrollbar,{...e})}),vis:t.jsx(fe,{innerRef:e,isRTL:x,scrollPosition:f,onScrollPositionChange:v,isViewportDefined:m,onViewportChange:g,zoomParameters:c,zooming:u,rowAxisSeparator:l,selectedIds:y,selectionMode:T,onSelectionChange:k,hoveredTaskId:A,onTaskHoverChange:R,currentTask:j,onCurrentTaskChange:S,currentTaskInteraction:C,ariaActive:I,getTimeAxesLayout:r,getResolvedViewportLayout:w,rowDataLayout:b,datatip:p,majorAxis:e=>t.jsx(h.TimeComponentHorizontalTimeAxis,{...e}),minorAxis:e=>t.jsx(h.TimeComponentHorizontalTimeAxis,{...e}),dataBody:e=>t.jsx(De,{...e})})})}const Ve=(e,t,o)=>t.map((t=>e(t,o))),ze=e=>void 0===e?"0px":void 0!==e.height?`${e.height}px`:r.bridgeValues.horizontalTimeAxisHeight,Be=(e,t)=>{const o=((e,t)=>void 0===t?0:void 0!==t.height?t.height:e)(e,t),{scale:i,zoomOrder:r=[t.scale]}=t;return{height:o,zoomOrder:r,zoomOrderIndex:r.indexOf(i)}},_e=(e,t)=>Date.parse(e.getPreviousDate(new Date(t).toISOString())),Fe=(e,t)=>Date.parse(e.getNextDate(new Date(t).toISOString())),He=(e,t,o)=>{const i=[_e(e,t)];for(;i[i.length-1]<o;)i.push(Fe(e,i[i.length-1]));return i},Ue=(e,t)=>{const{type:o,params:i}=t;switch(o){case"exact":{const t=new Map,o=He(e,i.startTime,i.endTime);for(let e=0;e<o.length-1;e++)t.set(o[e],o[e+1]);return{intervals:t,numIntervals:t.size}}case"approximate":{const{startTime:t,endTime:o,numSections:r,numIntervalsPerSection:a}=i,n=((e,t,o,i,r)=>{const a=new Map,n=Math.floor((o-t)/i);for(let s=0;s<i;s++){const i=t+n*s,d=Math.min(t+n*(s+1),o);let l=_e(e,i);for(let t=0;t<r&&!(l>=d);t++){const t=Fe(e,l);a.set(l,t),l=t}l=_e(e,d-1),a.set(l,Fe(e,l))}return a})(e,t,o,r,a),s=[...n.keys()],d=s.reduce(((e,t)=>e+(n.get(t)-Number(t))),0)/s.length;return{intervals:n,numIntervals:(o-t)/d}}default:return o}},We=(e,t)=>e.formatter(new Date(t).toISOString()),Ze=(e,t,o)=>{const i=He(e,t,o),r=i.slice(0,i.length-1).map((t=>We(e,t)));return{ticks:i,labels:r}},Ye=(e,t,o,i,r="start",a,n,s,d,l,c,u,m,g)=>{const w=t+o,p=c,b=u,x=a.slice(0,a.length-1),f=n.map((e=>h.getTimePosition(e,p,b,m,g))),v=a.map((e=>h.getTimePosition(e,p,b,m,g))),y=v.slice(1).map(((e,t)=>g?v[t]-e:e-v[t])),T=a[0]<d;T&&(v[0]=0,y[0]=v[1]),a[a.length-1]>l&&(v[v.length-1]=g?0:m,y[y.length-1]=g?v[v.length-2]-v[v.length-1]:v[v.length-1]-v[v.length-2]);const k=v.slice(0,v.length-1).map(((e,t)=>g?e-y[t]:e)),A=Ve(e,s,i).map((({width:e},t)=>Math.floor(e)-Math.floor(y[t]-w)>0));return{font:i,labelPosition:r,labels:s,labelTicks:x,labelPositions:k,isLabelTruncated:A,isIntervalStartTruncated:T,intervalWidths:y,gridTicksPos:f,isRTL:g}},Xe=(e,t,o,i,r,a,n,s)=>{const{zoomOrderMinLengthFactor:d,maxNumIntervals:l}=((e,t,o,i,r,a,n)=>{const s=t+o,d=a.map((e=>Ue(e,n))),l=Math.max(...d.map((({numIntervals:e})=>e)));return{zoomOrderMinLengthFactor:d.map((({intervals:t},o)=>{const n=a[o],d=[...t.keys()],l=d.map((e=>We(n,t.get(e)))),c=d.map((e=>t.get(e)-e)),h=Ve(e,l,r),u=Math.min(...c.map(((e,t)=>e/Math.max(i,h[t].width+s))));return u})),maxNumIntervals:l}})(e,t,o,i,r,s,{type:"approximate",params:{numSections:4,numIntervalsPerSection:10,startTime:a,endTime:n}});return{getZoomOrderViewDurationThresholds:e=>d.map((t=>e*t)),minorAxisZoomOrder:s,minZoomViewportDuration:(n-a)/l,maxZoomViewportDuration:n-a,startTime:a,endTime:n}},Ge=(e,t,o,i,r,a,n,s,d,l,c,h,u,m)=>g=>{const{zoomOrder:w,zoomOrderIndex:p}=c,b=a(g),{viewportStartTime:x,viewportEndTime:f}=((e,t,o,i,r)=>void 0!==i&&void 0!==r?{viewportStartTime:i,viewportEndTime:r}:void 0!==i&&void 0===r?{viewportStartTime:i,viewportEndTime:Math.min(o,i+e)}:void 0===i&&void 0!==r?{viewportStartTime:Math.max(t,r-e),viewportEndTime:r}:{viewportStartTime:t,viewportEndTime:Math.min(o,t+e)})(b[p],s,d,u,m),{majorAxisLayout:v,minorAxisLayout:y}=((e,t,o,i,r,a,n,s,d,l,c,h,u)=>{const m=u?Ze(u,s,d):{ticks:[],labels:[]},g=Ze(h,s,d),{ticks:w,labels:p}=m,{ticks:b,labels:x}=g,f=new Set(w),v=new Set(b),y=0===w.filter((e=>e>s&&e<d&&!v.has(e))).length,T=y?b.filter((e=>!f.has(e))):b,k=u&&Ye(e,t,o,i,u.labelPosition,w,w,p,a,n,s,d,l,c),A=Ye(e,t,o,r,h.labelPosition,b,T,x,a,n,s,d,l,c);return{minorAxisLayout:{majorGridTicksPos:y&&k?k.gridTicksPos:void 0,minorGridTicksPos:A.gridTicksPos,variant:"minor",...A},majorAxisLayout:k&&{majorGridTicksPos:k.gridTicksPos,minorGridTicksPos:void 0,variant:"major",...k}}})(e,t,o,i,r,s,d,x,f,g,l,w[p],h&&h.zoomOrder[h.zoomOrderIndex]);return{position:n,startTime:s,endTime:d,viewportStartTime:x,viewportEndTime:f,width:g,majorAxis:v&&{width:g,...h,...v},minorAxis:{width:g,...c,...y}}},Ke=[{tokenVar:r.bridgeValues.horizontalTimeAxisHeight,key:"defaultTimeAxisHeight",cssProp:"height"},{tokenVar:r.bridgeValues.horizontalTimeAxisLabelPaddingInlineStart,key:"timeAxisLabelPaddingInlineStart",cssProp:"margin-inline-start"},{tokenVar:r.bridgeValues.horizontalTimeAxisLabelPaddingInlineEnd,key:"timeAxisLabelPaddingInlineEnd",cssProp:"margin-inline-end"},{tokenVar:P.xUnits(12.5),key:"timeAxisLabelMinWidth",cssProp:"min-width"},{tokenVar:I.typographyVars.body.md.fontSize,key:"majorAxisFontSize",cssProp:"font-size"},{tokenVar:I.typographyVars.body.sm.fontSize,key:"minorAxisFontSize",cssProp:"margin-block-start"},{tokenVar:I.typographyVars.body.md.fontWeight.semibold,key:"majorAxisFontWeight"},{tokenVar:I.typographyVars.body.sm.fontWeight.regular,key:"minorAxisFontWeight"}],Ne=e=>"0"===e?0:Number(e.substring(0,e.length-2)),$e=[{tokenVar:a.bridgeValues.rowLabelPaddingInlineStart,key:"rowLabelPaddingInlineStart",cssProp:"padding-inline-start"},{tokenVar:a.bridgeValues.rowLabelPaddingInlineStart,key:"rowLabelPaddingInlineEnd",cssProp:"padding-inline-end"},{tokenVar:P.xUnits(3),key:"rowPaddingTop",cssProp:"padding-top"},{tokenVar:P.xUnits(3),key:"rowPaddingBottom",cssProp:"padding-bottom"},{tokenVar:P.xUnits(6),key:"taskHeight",cssProp:"min-height"},{tokenVar:P.xUnits(1),key:"taskBorderRadius",cssProp:"border-radius"},{tokenVar:a.bridgeValues.taskBgColor,key:"taskBgColor",cssProp:"background-color"},{tokenVar:a.bridgeValues.taskBorderColor,key:"taskBorderColor",cssProp:"border-color"},{tokenVar:a.bridgeValues.taskEffectBorderColor,key:"taskEffectBorderColor",cssProp:"outline-color"},{tokenVar:I.baseVars.boxShadow.md,key:"taskEffectBoxShadow",cssProp:"box-shadow"}],qe=e=>{const[t,o,i,r,...a]=e.split(" ").reverse();return{shadowColor:a.reverse().join(" "),shadowOffsetX:Ne(r??"0"),shadowOffsetY:Ne(i??"0"),shadowBlur:Ne(o??"0")}},Je=e=>e.endsWith("px")?{value:Number(e.substring(0,e.length-2)),suffix:"px"}:e.endsWith("%")?{value:Number(e.substring(0,e.length-1)),suffix:"%"}:{value:1/0,suffix:void 0},Qe=Ke.concat($e),et=({rowAxis:e,gridlines:{horizontal:o="off",vertical:i="on"}={horizontal:"off",vertical:"on"},axisPosition:a="top",minorAxis:n,majorAxis:s,start:d,end:l,viewportStart:c,viewportEnd:m,onViewportChange:g,scrollPosition:{y:w=0}={y:0},onScrollPositionChange:p,rows:b,selectedIds:x,selectionMode:f="none"})=>{const{direction:v}=u.useUser(),{resolvedVars:y,cssContent:T}=S.useCssVars(Qe),{textMeasureContent:k,getTextDimensions:A}=C.useTextDimensions(),R="rtl"===v,j=t.jsxs(t.Fragment,{children:[k,T]}),{startTime:I,endTime:L,viewportStartTime:O,viewportEndTime:E,isValidTimeConfig:M}=((e,t,o,i)=>{const r=h.parseDate(e),a=h.parseDate(t),n=o?h.parseDate(o):void 0,s=i?h.parseDate(i):void 0,d=((e,t,o,i)=>t>e&&(void 0===o||void 0===i||i>o)&&(void 0===o||o>=e&&o<t)&&(void 0===i||i>e&&i<=t))(r,a,n,s);return{startTime:r,endTime:a,viewportStartTime:n,viewportEndTime:s,isValidTimeConfig:d}})(d,l,c,m);if(!A||0===Object.keys(y).length)return{isRTL:R,layoutContent:j,isValidConfig:M,isReady:!1};if(!M)return{isRTL:R,layoutContent:j,isValidConfig:M,isReady:!0};const V=void 0===e?"off":"on",z="on"===e?{}:e,B=z?.width??"max-content",_=z?.maxWidth??"none",F=z?.labelRenderer??D,H=((e,t,o)=>{const i=ze(t);return{position:e,height:`calc(${ze(o)} + ${i})`}})(a,n,s),U={top:{overlayControlsPosition:"topEnd",verticalControlTopGap:(W=H).height,verticalControlBottomGap:"0"},bottom:{overlayControlsPosition:"bottomEnd",verticalControlTopGap:"0",verticalControlBottomGap:W.height}}[W.position];var W;const Z="on"===V?((e,t)=>{const o=`${P.xUnits(1)} + ${r.bridgeValues.horizontalScrollbarHeight}`,i={top:{rowAxisTopGap:e.height,rowAxisBottomGap:`calc(${o})`},bottom:{rowAxisTopGap:"0",rowAxisBottomGap:`calc(${e.height} + ${o})`}},a=Je(t.width),n=Je(t.maxWidth);return{...i[e.position],resolvedRowAxisWidth:a,resolvedRowAxisMaxWidth:n,label:t.label}})(H,{width:B,maxWidth:_,label:F}):void 0,Y=(e=>({defaultTimeAxisHeight:Ne(e.defaultTimeAxisHeight),timeAxisLabelPaddingInlineStart:Ne(e.timeAxisLabelPaddingInlineStart),timeAxisLabelPaddingInlineEnd:Ne(e.timeAxisLabelPaddingInlineEnd),timeAxisLabelMinWidth:Ne(e.timeAxisLabelMinWidth),majorAxisFont:{fontSize:e.majorAxisFontSize,fontWeight:e.majorAxisFontWeight},minorAxisFont:{fontSize:e.minorAxisFontSize,fontWeight:e.minorAxisFontWeight}}))(y),X=s&&Be(Y.defaultTimeAxisHeight,s),G=Be(Y.defaultTimeAxisHeight,n),K=Xe(A,Y.timeAxisLabelPaddingInlineStart,Y.timeAxisLabelPaddingInlineEnd,Y.timeAxisLabelMinWidth,Y.minorAxisFont,I,L,G.zoomOrder),N=Ge(A,Y.timeAxisLabelPaddingInlineStart,Y.timeAxisLabelPaddingInlineEnd,Y.majorAxisFont,Y.minorAxisFont,K.getZoomOrderViewDurationThresholds,a,I,L,R,G,X,O,E),q=(e=>({rowPaddingTop:Ne(e.rowPaddingTop),rowPaddingBottom:Ne(e.rowPaddingBottom)}))(y),J=(e=>({taskHeight:Ne(e.taskHeight),taskBorderRadius:e.taskBorderRadius,taskBgColor:e.taskBgColor,taskBorderColor:e.taskBorderColor,taskEffectBorderColor:e.taskEffectBorderColor,taskEffectBoxShadow:qe(e.taskEffectBoxShadow)}))(y),ee=$(b,{...q,...J},{horizontal:o,vertical:i},{selectedIds:x,selectionMode:f}),te=(e=>({rowLabelPaddingInlineStart:Ne(e.rowLabelPaddingInlineStart),rowLabelPaddingInlineEnd:Ne(e.rowLabelPaddingInlineEnd)}))(y),oe={labelPaddingInlineStart:te.rowLabelPaddingInlineStart,labelPaddingInlineEnd:te.rowLabelPaddingInlineEnd,rowData:ee.rowData,rowObjs:ee.rowObjs,idRowObjMap:ee.idRowObjMap,isHorizontalGridlinesVisible:"on"===o},ie=((e,t,o,i,r)=>a=>{const n=t-e,s=i-o,d=a*n/s,l=a*(e-o)/s,c=r?a-l-d:l;return{thumbWidth:d,thumbLeft:r?void 0:l,thumbRight:r?l:void 0,draggableRegion:{xMin:c,xMax:c+d,yMin:-1/0,yMax:1/0},getNewRange:e=>{const t=r?Math.max(0,a-e-d):e,l=Math.min(o+t/a*s,i-n);return{newMin:l,newMax:l+n}}}})(O??I,E??L,I,L,R),re=(ae=w,ne=void 0,se=0,de=ee.totalRowsHeight,e=>{const t=(ne??e+ae)-ae,o=de-se,i=Math.min(e,e*t/o),r=Math.max(0,e*(ae-se)/o);return{thumbHeight:i,thumbTop:r,draggableRegion:{xMin:-1/0,xMax:1/0,yMin:r,yMax:r+i},getNewRange:i=>{const r=Math.max(0,Math.min(se+i/e*o,de-t));return{newMin:r,newMax:r+t}}}});var ae,ne,se,de;return{scrollPosition:w,panZoomLayout:U,withRowAxisLayout:Z,getTimeAxesLayout:N,zoomParameters:void 0!==O&&void 0!==E?{viewportStartTime:O,viewportEndTime:E,minorAxisZoomOrderIndex:G.zoomOrderIndex,majorAxisZoomOrder:X?.zoomOrder,majorAxisZoomOrderIndex:X?.zoomOrderIndex,...K}:void 0,rowDataLayout:ee,rowAxisLayout:oe,getResolvedViewportLayout:Q,getHorizontalScrollbarLayout:ie,onHorizontalScrollChange:(e,t)=>{g?.({viewportStart:h.getISOString(e),viewportEnd:h.getISOString(t),majorAxisScale:s?.scale,minorAxisScale:n.scale})},getVerticalScrollbarLayout:re,onVerticalScrollChange:e=>{p?.({y:e})},isRTL:R,layoutContent:j,isValidConfig:M,isReady:!0}},tt=({visRef:e,isDisabled:t=!1})=>t?{}:{onKeyDown:t=>{switch(t.key){case"=":case"+":{const o=new CustomEvent("KbZoomIn",{detail:{zoomFactor:h.DEFAULT_ZOOM_IN_FACTOR}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"-":case"_":{const o=new CustomEvent("KbZoomIn",{detail:{zoomFactor:h.DEFAULT_ZOOM_OUT_FACTOR}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"PageUp":{const o=t.shiftKey?new CustomEvent("KbPanHorizontal",{detail:{rangeRatio:.25}}):new CustomEvent("KbPanVertical",{detail:{rangeRatio:.25}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"PageDown":{const o=t.shiftKey?new CustomEvent("KbPanHorizontal",{detail:{rangeRatio:-.25}}):new CustomEvent("KbPanVertical",{detail:{rangeRatio:-.25}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}}}},ot=({rowDataLayout:e,currentTask:t,onCurrentTaskChange:o,isRTL:i,isDisabled:r=!1})=>r?{}:{onKeyDown:r=>{switch(r.key){case"ArrowRight":{const a=t&&(i?ue(t.id,e):he(t.id,e));void 0!==a&&o({id:a,isFocused:!0}),L.cancelEvent(r);break}case"ArrowLeft":{const a=t&&(i?he(t.id,e):ue(t.id,e));void 0!==a&&o({id:a,isFocused:!0}),L.cancelEvent(r);break}case"ArrowUp":{const i=t&&((e,t)=>ce(e,t,"up"))(t.id,e);void 0!==i&&o({id:i,isFocused:!0}),L.cancelEvent(r);break}case"ArrowDown":{const i=t&&((e,t)=>ce(e,t,"down"))(t.id,e);void 0!==i&&o({id:i,isFocused:!0}),L.cancelEvent(r);break}}}},it=({rowDataLayout:e,currentRowLabel:t,onCurrentRowLabelChange:o,isDisabled:i=!1})=>i?{}:{onKeyDown:i=>{switch(i.key){case"ArrowUp":{const r=t&&((e,t)=>me(e,t,"up"))(t.id,e);void 0!==r&&o({id:r,isFocused:!0}),L.cancelEvent(i);break}case"ArrowDown":{const r=t&&((e,t)=>me(e,t,"down"))(t.id,e);void 0!==r&&o({id:r,isFocused:!0}),L.cancelEvent(i);break}}}},rt=({visRef:e,rowAxisRef:t,rowDataLayout:i,navigationModes:r,selectionProps:a,isRTL:n,isDisabled:s=!1})=>{const d=o.useRef("tasks"),{onKeyUp:l}=k.useSelection({idExtracter:e=>{if("tasks"===d.current&&"keyup"===e.type)return r.tasks.currentItem?.id},selection:a.selectedIds,selectionMode:a.selectionMode,onChange:a.onSelectionChange,getDataById:i?.getTaskDataById||(()=>{})}).selectionProps,c="tasks"===d.current?{onKeyUp:l}:{},h=tt({visRef:e,isDisabled:s}),u=ot({rowDataLayout:i,currentTask:r.tasks.currentItem,onCurrentTaskChange:r.tasks.onCurrentItemChange,isRTL:n}),m=it({rowDataLayout:i,currentRowLabel:r.rowLabels.currentItem,onCurrentRowLabelChange:r.rowLabels.onCurrentItemChange}),g={onFocus:()=>{const o=new Event("ShowFocusDatatip");e.current?.dispatchEvent(o),t.current?.dispatchEvent(o)}};return s?{}:y.mergeProps(h,g,{onKeyDown:e=>{let t=!1;const o=e=>{const{onCurrentItemChange:t}=r[e.type];t({id:e.id,isFocused:!0})},a=e=>{const{currentItem:t,onCurrentItemChange:o}=r[e];t&&o({id:t.id,isFocused:!1})},s=()=>{const n=((e,t)=>{const o=t.idTaskObjMap.get(e),{rowIndex:i}=o;return t.rowObjs[i].id})(r.tasks.currentItem.id,i);o({id:n,type:"rowLabels"}),a("tasks"),d.current="rowLabels",t=!0,L.cancelEvent(e)},l=()=>{const n=((e,t,o)=>{if(void 0!==o){const i=t.idTaskObjMap.get(o);if(i){const{rowIndex:r}=i;if(t.rowObjs[r].id===e)return o}}const i=t.idRowObjMap.get(e),r=i?.taskObjs[0];if(r)return r.id;const a=de(t);return a?.id})(r.rowLabels.currentItem.id,i,r.tasks.currentItem?.id);void 0!==n&&o({id:n,type:"tasks"}),a("rowLabels"),d.current="tasks",t=!0,L.cancelEvent(e)};switch(e.key){case"Tab":a(d.current);break;case"ArrowLeft":e.altKey&&(n||"tasks"!==d.current?n&&"rowLabels"===d.current&&l():s());break;case"ArrowRight":e.altKey&&(n||"rowLabels"!==d.current?n&&"tasks"===d.current&&s():l())}if(!t)switch(d.current){case"tasks":u.onKeyDown?.(e);break;case"rowLabels":m.onKeyDown?.(e);break;default:return d.current}},onKeyUp:e=>{switch(e.key){case"Tab":{const{currentItem:t,onCurrentItemChange:o}=r[d.current],a=t||de(i);a&&o({id:a.id,isFocused:!0}),L.cancelEvent(e);break}}}},c)};e.Gantt=function({width:e,height:i,testId:r,...a}){const n=o.useRef(null),{scrollPosition:s,panZoomLayout:d,withRowAxisLayout:l,getTimeAxesLayout:c,zoomParameters:h,rowDataLayout:u,rowAxisLayout:m,getResolvedViewportLayout:g,getHorizontalScrollbarLayout:w,onHorizontalScrollChange:p,getVerticalScrollbarLayout:b,onVerticalScrollChange:x,isRTL:f,layoutContent:T,isValidConfig:k,isReady:A}=et(a),R={"aria-label":a["aria-label"],"aria-describedby":a["aria-describedby"],"aria-labelledby":a["aria-labelledby"],role:"application"},j=void 0!==a.viewportStart&&void 0!==a.viewportEnd,[S,C]=o.useState(),[I,P]=o.useState("none"),[L,D]=o.useState(),[M,V]=o.useState("none"),[z,B]=o.useState(),_=e=>{void 0!==e.id&&C({dataId:e.id,ariaId:v.getRandomId(),type:"rowLabel"}),V(void 0!==e.id?"hover":"none"),B(e.id)},[F,H]=o.useState(),U=e=>{if(e.isFocused){const t=new CustomEvent("KbPanTaskIntoView",{detail:{id:e.id}});Y.current?.dispatchEvent(t),C({dataId:e.id,ariaId:v.getRandomId(),type:"task"}),P("focus")}H(e)},[W,Z]=o.useState(),Y=o.useRef(null),X=o.useRef(null),G=o.useRef(null),K=(({rootRef:e,overlayControlsContainerRef:t,isDisabled:i=!1})=>{const r=o.useRef(!1),a=()=>{const e=new Event("ControlsShow");t.current?.dispatchEvent(e)},n=()=>{const e=new Event("ControlsHide");t.current?.dispatchEvent(e)};return i?{}:{onFocus:()=>{r.current=!0,a()},onBlur:t=>{t.relatedTarget&&e.current?.contains(t.relatedTarget)||(r.current=!1,n())},onPointerDown:t=>{"mouse"!==t.pointerType&&e.current?.focus()},onPointerOver:e=>{"mouse"===e.pointerType&&a()},onPointerOut:e=>{"mouse"===e.pointerType&&(r.current||n())}}})({rootRef:n,overlayControlsContainerRef:G,isDisabled:!j}),N=rt({visRef:Y,rowAxisRef:X,navigationModes:{tasks:{currentItem:F,onCurrentItemChange:U},rowLabels:{currentItem:W,onCurrentItemChange:e=>{if(e.isFocused){const t=new CustomEvent("KbPanRowIntoView",{detail:{id:e.id}});Y.current?.dispatchEvent(t),C({dataId:e.id,ariaId:v.getRandomId(),type:"rowLabel"}),V("focus")}Z(e)}}},rowDataLayout:u,selectionProps:{selectedIds:a.selectedIds,selectionMode:a.selectionMode,onSelectionChange:a.onSelectionChange},isRTL:f,isDisabled:!j});if(!A||!k)return t.jsx(O,{innerRef:n,width:e,height:i,...R,children:T});const $=t.jsx(Me,{visRef:Y,overlayControlsContainerRef:G,isRTL:f,isViewportDefined:j,scrollPosition:s,onScrollPositionChange:a.onScrollPositionChange,onViewportChange:a.onViewportChange,rowAxisSeparator:!!l,zoomParameters:h,zooming:a.zooming,panZoomLayout:d,getTimeAxesLayout:c,getHorizontalScrollbarLayout:w,onHorizontalScrollChange:p,getVerticalScrollbarLayout:b,onVerticalScrollChange:x,getResolvedViewportLayout:g,rowDataLayout:u,datatip:a.datatip,selectedIds:a.selectedIds,selectionMode:a.selectionMode,onSelectionChange:a.onSelectionChange,hoveredTaskId:L,onTaskHoverChange:e=>{void 0!==e.id&&C({dataId:e.id,ariaId:v.getRandomId(),type:"task"}),P(void 0!==e.id?"hover":"none"),D(e.id)},currentTask:F,onCurrentTaskChange:U,currentTaskInteraction:I,ariaActive:"task"===S?.type?S:void 0}),q=l&&t.jsx(E,{...l,rowAxis:(e,o)=>t.jsx(ne,{innerRef:X,resolvedWidth:e,resolvedMaxWidth:o,currentRowLabel:W,hoveredRowLabelId:z,onRowLabelHoverChange:_,currentRowLabelInteraction:M,ariaActive:"rowLabel"===S?.type?S:void 0,layoutObj:m,scrollPosition:s,children:l.label}),ganttView:$});return t.jsxs(O,{innerRef:n,width:e,height:i,testId:r,...R,...y.mergeProps(N,K),"aria-activedescendant":S?.ariaId,children:[q||$,T]})}}));
|
|
1
|
+
define(['exports', 'preact/jsx-runtime', 'preact/hooks', './classNames-08d99695', './PRIVATE_TimeComponent/themes/TimeComponentStyles.css', './UNSAFE_Gantt/themes/GanttStyles.css', './size-a75b3f13', './useTestId-b5cd4766', './TrackResizeContainer-2b033ae7', './Text-cd61a065', './accUtils-530bdb90', './TimeComponentCanvas2D-6b4e6ead', './useUser-3ef25571', './Layer-6f29b67f', 'preact/compat', './LayerHost-639b3284', './Floating-5d98c1ca', './hooks/PRIVATE_useDatatip/themes/useDatatip.css', './useId-c9578d26', './datatipUtils-01750311', './layoutUtils-8805fc5b', './mergeProps-bcfa6a92', './usePinch-fc8ed928', './useSelection-01203394', './VisTabularDatatip-55bbd19f', './useTranslationBundle-d07d4b20', './pathUtils-ec75f879', './useCssVars-dc52806c', './useTextDimensions-83dd9415', './Common/themes/themeContract.css', './utils-5077c092', './eventsUtils-edf8f4e5'], (function(e,t,o,i,r,a,n,s,d,l,h,c,u,m,g,w,p,b,x,f,v,y,T,k,A,R,j,S,C,I,P,L){"use strict";function O({innerRef:e,width:o,height:d,testId:l,children:h,...c}){const u=s.useTestId(l);return t.jsx("div",{ref:e,tabIndex:0,...u,...c,class:i.classNames([r.styles.baseStyle,a.styles.baseStyle]),style:{width:o&&n.sizeToCSS(o),height:d&&n.sizeToCSS(d)},children:h})}function E({rowAxisTopGap:e="0",rowAxisBottomGap:o="0",resolvedRowAxisWidth:i,resolvedRowAxisMaxWidth:r,rowAxis:n,ganttView:s}){const l="%"===i.suffix,h="%"===r.suffix;return l||h?t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:(d,c)=>t.jsxs("div",{class:a.rowAxisLayoutStyles.base,style:{gridTemplateRows:`${e} minmax(0, 1fr) ${o}`},children:[t.jsx("div",{class:a.rowAxisLayoutStyles.rowAxis,children:n(l?d*(i.value/100):i.value,h?d*(r.value/100):r.value)}),t.jsx("div",{class:a.rowAxisLayoutStyles.ganttView,children:s})]})}):t.jsxs("div",{class:a.rowAxisLayoutStyles.base,style:{gridTemplateRows:`${e} minmax(0, 1fr) ${o}`},children:[t.jsx("div",{class:a.rowAxisLayoutStyles.rowAxis,children:n(i.value,r.value)}),t.jsx("div",{class:a.rowAxisLayoutStyles.ganttView,children:s})]})}const D=({maxWidth:e,maxHeight:o,data:{label:i="",labelStyle:r}})=>t.jsx("div",{style:{width:e>-1?e:void 0,height:o,display:"flex",alignItems:"center",...r},children:t.jsx(l.Text,{size:"md",variant:r?.color?"inherit":"primary",truncation:"ellipsis",children:i})}),M=(e,t,o)=>({maxWidth:o,maxHeight:e.height,data:t[e.index]});class V{constructor(){this.ids=[],this.values=[],this.length=0}clear(){this.length=0}push(e,t){let o=this.length++;for(;o>0;){const e=o-1>>1,i=this.values[e];if(t>=i)break;this.ids[o]=this.ids[e],this.values[o]=i,o=e}this.ids[o]=e,this.values[o]=t}pop(){if(0===this.length)return;const e=this.ids[0];if(this.length--,this.length>0){const e=this.ids[0]=this.ids[this.length],t=this.values[0]=this.values[this.length],o=this.length>>1;let i=0;for(;i<o;){let e=1+(i<<1);const o=e+1;let r=this.ids[e],a=this.values[e];const n=this.values[o];if(o<this.length&&n<a&&(e=o,r=this.ids[o],a=n),a>=t)break;this.ids[i]=r,this.values[i]=a,i=e}this.ids[i]=e,this.values[i]=t}return e}peek(){if(0!==this.length)return this.ids[0]}peekValue(){if(0!==this.length)return this.values[0]}shrink(){this.ids.length=this.values.length=this.length}}const z=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class B{static from(e){if(!e||void 0===e.byteLength||e.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[t,o]=new Uint8Array(e,0,2);if(251!==t)throw new Error("Data does not appear to be in a Flatbush format.");const i=o>>4;if(3!==i)throw new Error(`Got v${i} data when expected v3.`);const r=z[15&o];if(!r)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(e,2,1),[n]=new Uint32Array(e,4,1);return new B(n,a,r,void 0,e)}constructor(e,t=16,o=Float64Array,i=ArrayBuffer,r){if(void 0===e)throw new Error("Missing required argument: numItems.");if(isNaN(e)||e<=0)throw new Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535);let a=e,n=a;this._levelBounds=[4*a];do{a=Math.ceil(a/this.nodeSize),n+=a,this._levelBounds.push(4*n)}while(1!==a);this.ArrayType=o,this.IndexArrayType=n<16384?Uint16Array:Uint32Array;const s=z.indexOf(this.ArrayType),d=4*n*this.ArrayType.BYTES_PER_ELEMENT;if(s<0)throw new Error(`Unexpected typed array class: ${o}.`);r&&void 0!==r.byteLength&&!r.buffer?(this.data=r,this._boxes=new this.ArrayType(this.data,8,4*n),this._indices=new this.IndexArrayType(this.data,8+d,n),this._pos=4*n,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1]):(this.data=new i(8+d+n*this.IndexArrayType.BYTES_PER_ELEMENT),this._boxes=new this.ArrayType(this.data,8,4*n),this._indices=new this.IndexArrayType(this.data,8+d,n),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(this.data,0,2).set([251,48+s]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e),this._queue=new V}add(e,t,o,i){const r=this._pos>>2,a=this._boxes;return this._indices[r]=r,a[this._pos++]=e,a[this._pos++]=t,a[this._pos++]=o,a[this._pos++]=i,e<this.minX&&(this.minX=e),t<this.minY&&(this.minY=t),o>this.maxX&&(this.maxX=o),i>this.maxY&&(this.maxY=i),r}finish(){if(this._pos>>2!==this.numItems)throw new Error(`Added ${this._pos>>2} items when expected ${this.numItems}.`);const e=this._boxes;if(this.numItems<=this.nodeSize)return e[this._pos++]=this.minX,e[this._pos++]=this.minY,e[this._pos++]=this.maxX,void(e[this._pos++]=this.maxY);const t=this.maxX-this.minX||1,o=this.maxY-this.minY||1,i=new Uint32Array(this.numItems);for(let r=0,a=0;r<this.numItems;r++){const n=e[a++],s=e[a++],d=e[a++],l=e[a++],h=Math.floor(65535*((n+d)/2-this.minX)/t),c=Math.floor(65535*((s+l)/2-this.minY)/o);i[r]=W(h,c)}H(i,e,this._indices,0,this.numItems-1,this.nodeSize);for(let t=0,o=0;t<this._levelBounds.length-1;t++){const i=this._levelBounds[t];for(;o<i;){const t=o;let r=e[o++],a=e[o++],n=e[o++],s=e[o++];for(let t=1;t<this.nodeSize&&o<i;t++)r=Math.min(r,e[o++]),a=Math.min(a,e[o++]),n=Math.max(n,e[o++]),s=Math.max(s,e[o++]);this._indices[this._pos>>2]=t,e[this._pos++]=r,e[this._pos++]=a,e[this._pos++]=n,e[this._pos++]=s}}}search(e,t,o,i,r){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let a=this._boxes.length-4;const n=[],s=[];for(;void 0!==a;){const d=Math.min(a+4*this.nodeSize,F(a,this._levelBounds));for(let l=a;l<d;l+=4){if(o<this._boxes[l])continue;if(i<this._boxes[l+1])continue;if(e>this._boxes[l+2])continue;if(t>this._boxes[l+3])continue;const d=0|this._indices[l>>2];a>=4*this.numItems?n.push(d):(void 0===r||r(d))&&s.push(d)}a=n.pop()}return s}neighbors(e,t,o=1/0,i=1/0,r){if(this._pos!==this._boxes.length)throw new Error("Data not yet indexed - call index.finish().");let a=this._boxes.length-4;const n=this._queue,s=[],d=i*i;e:for(;void 0!==a;){const i=Math.min(a+4*this.nodeSize,F(a,this._levelBounds));for(let o=a;o<i;o+=4){const i=0|this._indices[o>>2],s=_(e,this._boxes[o],this._boxes[o+2]),l=_(t,this._boxes[o+1],this._boxes[o+3]),h=s*s+l*l;h>d||(a>=4*this.numItems?n.push(i<<1,h):(void 0===r||r(i))&&n.push(1+(i<<1),h))}for(;n.length&&1&n.peek();){if(n.peekValue()>d)break e;if(s.push(n.pop()>>1),s.length===o)break e}a=n.length?n.pop()>>1:void 0}return n.clear(),s}}function _(e,t,o){return e<t?t-e:e<=o?0:e-o}function F(e,t){let o=0,i=t.length-1;for(;o<i;){const r=o+i>>1;t[r]>e?i=r:o=r+1}return t[o]}function H(e,t,o,i,r,a){if(Math.floor(i/a)>=Math.floor(r/a))return;const n=e[i+r>>1];let s=i-1,d=r+1;for(;;){do{s++}while(e[s]<n);do{d--}while(e[d]>n);if(s>=d)break;U(e,t,o,s,d)}H(e,t,o,i,d,a),H(e,t,o,d+1,r,a)}function U(e,t,o,i,r){const a=e[i];e[i]=e[r],e[r]=a;const n=4*i,s=4*r,d=t[n],l=t[n+1],h=t[n+2],c=t[n+3];t[n]=t[s],t[n+1]=t[s+1],t[n+2]=t[s+2],t[n+3]=t[s+3],t[s]=d,t[s+1]=l,t[s+2]=h,t[s+3]=c;const u=o[i];o[i]=o[r],o[r]=u}function W(e,t){let o=e^t,i=65535^o,r=65535^(e|t),a=e&(65535^t),n=o|i>>1,s=o>>1^o,d=r>>1^i&a>>1^r,l=o&r>>1^a>>1^a;o=n,i=s,r=d,a=l,n=o&o>>2^i&i>>2,s=o&i>>2^i&(o^i)>>2,d^=o&r>>2^i&a>>2,l^=i&r>>2^(o^i)&a>>2,o=n,i=s,r=d,a=l,n=o&o>>4^i&i>>4,s=o&i>>4^i&(o^i)>>4,d^=o&r>>4^i&a>>4,l^=i&r>>4^(o^i)&a>>4,o=n,i=s,r=d,a=l,d^=o&r>>8^i&a>>8,l^=i&r>>8^(o^i)&a>>8,o=d^d>>1,i=l^l>>1;let h=e^t,c=i|65535^(h|o);return h=16711935&(h|h<<8),h=252645135&(h|h<<4),h=858993459&(h|h<<2),h=1431655765&(h|h<<1),c=16711935&(c|c<<8),c=252645135&(c|c<<4),c=858993459&(c|c<<2),c=1431655765&(c|c<<1),(c<<1|h)>>>0}const Z=e=>{const t=e.map((e=>e.taskObjs.length)).reduce(((e,t)=>e+t),0),o=new B(t);return e.forEach((e=>e.taskObjs.forEach((({overallStartTime:e,overallEndTime:t,y:i,height:r})=>{o.add(e,i,t,i+r)})))),o.finish(),o},Y=(e,t,o,i,r=!0)=>r?e<=i&&o<=t:e<i&&o<t,X=(e,t)=>Y(e.overallStartTime,e.overallEndTime,t.overallStartTime,t.overallEndTime,!1),G=(e,t,o)=>{const i=((e,t,o)=>{if(0===e.length)return 0;let i=0,r=e.length;for(;i<r;){const o=Math.floor((i+r)/2);e[o]<t?i=o+1:r=o}if(i<e.length&&(e[i]===t||"successor"===o))return i;return i>0?i-1:0})(e,t,"predecessor");let r=i;for(let t=i;t<e.length&&e[t]<=o;t++)r=t;return{minRowInd:i,maxRowInd:r}},K=e=>({start:e.start?e.start:e.end,end:e.end?e.end:e.start}),N=e=>!(!e||"none"===e),$=(e,t,o,i)=>{const r=N(i.selectionMode),a=new Set(i.selectedIds);let n=0;const s=e.map(((i,s)=>{const d=i.tasks.map(((e,o)=>{const{start:i,end:n}=K(e),d=c.parseDate(i),l=c.parseDate(n);return{id:e.id,renderIndex:0,index:o,rowIndex:s,y:-1,startTime:d,endTime:l,overallStartTime:d,overallEndTime:l,rowLevel:0,height:void 0!==e.height?e.height:t.taskHeight,borderRadius:void 0!==e.borderRadius?e.borderRadius.toString():t.taskBorderRadius,fill:e.color?e.color:t.taskBgColor,stroke:t.taskBorderColor,strokeWidth:1,isSelectable:r,isSelected:a.has(e.id),selectionEffect:{stroke:t.taskEffectBorderColor,strokeWidth:2,padding:2},hoverEffect:{stroke:t.taskEffectBorderColor,strokeWidth:1,padding:0,shadow:{...t.taskEffectBoxShadow}},focusEffect:{stroke:t.taskEffectBorderColor,strokeWidth:1,padding:2}}}));d.sort(((e,t)=>e.startTime-t.startTime)),d.forEach(((e,t)=>e.renderIndex=t));const l=(({rowHeight:e,rowY:t,taskObjs:o,resolvedVars:i})=>{if(0===o.length)return(e=>e.rowPaddingTop+e.taskHeight+e.rowPaddingBottom)(i);o[0].rowLevel=0,o[0].y=0;const r=[[o[0]]],a=[o[0]];for(let e=1;e<o.length;e++){const t=o[e],i="stack",n=o[e-1];X(t,n)?r[r.length-1].push(t):r.push([t]);let s,d=0;switch(i){case"stack":{let e=!0;for(let o=0;o<a.length;o++){if(s=void 0,!X(t,a[o])){s=a[o],a[o]=t,e=!1;break}d+=1}e&&a.push(t),t.y=0,s&&(t.previousAdjacentTaskObj=s,s.nextAdjacentTaskObj=t);break}default:return i}t.rowLevel=d}const n=i.rowPaddingTop,s=i.rowPaddingBottom,d=a.map((()=>0));if(void 0===e){o.forEach((e=>{e.height>d[e.rowLevel]&&(d[e.rowLevel]=e.height)}));const e=d.map((e=>e+n+s)).reduce(((e,t,o)=>(e.push((e[o-1]||0)+t),e)),[]);o.forEach((t=>{t.y+=(e[t.rowLevel-1]||0)+n}))}const l=r.map((e=>{let t=0;return e.forEach((e=>{const o=e.y+e.height;o>t&&(t=o)})),t}));let h;return void 0===e?(h=l.reduce(((e,t)=>Math.max(e,t)))+n,r.forEach((e=>{e.forEach((e=>{const o=d[e.rowLevel];e.y+=(o-e.height)/2+t}))}))):(h=e,r.forEach(((e,o)=>{const i=l[o];let r=Number.MAX_VALUE;e.forEach((e=>{e.y+=Math.floor((h-e.height)/2),e.y<r&&(r=e.y)}));const a=Math.floor((h-i)/2)-r;e.forEach((e=>{e.y+=t+a}))}))),h})({rowHeight:i.height,rowY:n,taskObjs:d,resolvedVars:t});((e,t)=>{e.forEach((e=>{const{index:o,rowIndex:i}=e,r=t[i].tasks[o].label;r&&(e.labelObj={startTime:e.startTime,endTime:e.endTime,label:r,isInner:!0,position:"center"})}))})(d,e);const h={id:i.id,y:n,height:l,index:s,isSelected:d.some((e=>e.isSelected)),taskObjs:d},u="on"===o.horizontal?1:0;return n+=l+u,h})),d=s[s.length-1],l=d?d.y+d.height:0,h=new Map;s.forEach((e=>e.taskObjs.forEach((e=>h.set(e.id,e)))));const u=new Map;s.forEach((e=>u.set(e.id,e)));const m=(e=>({tasks:Z(e)}))(s);return{rowData:e,rowObjs:s,rowPadding:t.rowPaddingTop,totalRowsHeight:l,gridlines:o,spatialIndex:m,idRowObjMap:u,idTaskObjMap:h,getTaskDataById:t=>{const o=h.get(t);return o&&e[o.rowIndex].tasks[o.index]}}},q=(e,t)=>{const o=e.selectionProps.selectedIds||[],i=[];o.forEach((e=>{const o=t.get(e);o&&i.push(o)}));const r=N(e.selectionProps.selectionMode)?e.hoverProps.hoveredTaskId:void 0,a=void 0!==r?t.get(r):void 0,n=e.currentProps.currentTask,s=!0===n?.isFocused,d=n?.id,l=s&&void 0!==d?t.get(d):void 0;return{selectedTaskObjs:i,hoveredTaskObj:a,focusedTaskObj:l}},J=(e,t,o,i,r,a)=>{const n=c.getTimePosition(e.startTime,t,o,i,a),s=c.getTimePosition(e.endTime,t,o,i,a);return{...e,x:a?s:n,y:e.y-r,width:a?n-s:s-n}},Q=(e,t,o,i,r,a,n)=>{const s=i,d=i+a,l=e.rowObjs.map((e=>e.y)),{minRowInd:h,maxRowInd:u}=G(l,s,d),m=[];for(let a=h;a<=u;a++){const s=e.rowObjs[a],d=s.taskObjs.filter((({overallStartTime:e,overallEndTime:i})=>Y(e,i,t,o))).map((e=>J(e,t,o,r,i,n))),l={...s,y:s.y-i,taskObjs:d};m.push(l)}const g=[];m.forEach((i=>{i.taskObjs.forEach((({index:i,rowIndex:a,labelObj:s,y:d,height:l})=>{const h=((e,t,o,i,r,a,n,s)=>{if(!e)return;const d=c.getTimePosition(e.startTime,r,a,n,s),l=c.getTimePosition(e.endTime,r,a,n,s);let h;switch(e.position){case"center":h="center";break;case"start":h=s?"right":"left";break;case"end":h=s?"left":"right";break;default:return e.position}return{x:s?l:d,y:o,width:s?d-l:l-d,height:i,label:e.label,isInner:e.isInner,textAlign:h,labelStyle:t}})(s,e.rowData[a].tasks[i].labelStyle,d,l,t,o,r,n);h&&g.push(h)}))}));const w="on"===e.gridlines.horizontal?m.map((({y:e,height:t})=>e+t+.5)):void 0,p=new Map;return m.forEach((e=>e.taskObjs.forEach((e=>p.set(e.id,e))))),{spatialIndex:e.spatialIndex,gridlines:e.gridlines,horizontalGridlinesPos:w,rowData:e.rowData,allRowObjs:e.rowObjs,allIdTaskObjMap:e.idTaskObjMap,allIdRowObjMap:e.idRowObjMap,rowPadding:e.rowPadding,rowObjs:m,taskLabelObjs:g,idTaskObjMap:p,getTaskDataById:e.getTaskDataById}},ee=(e,t,o,i)=>{const r=t[e.rowIndex].tasks[e.index],a=void 0!==r.accessibleLabel?r.accessibleLabel:((e,t,o,i)=>{const r=t[e.rowIndex],a=r.tasks[e.index],{start:n,end:s}=K(a),d=n===s,l=[];if(r.label){const e=i.vis_labelAndValue({LABEL:i.gantt_labelRow(),VALUE:r.label});l.push(e)}if(d){const e=i.vis_labelAndValue({LABEL:i.gantt_labelDate(),VALUE:o(n)});l.push(e)}else{const e=i.vis_labelAndValue({LABEL:i.gantt_labelStart(),VALUE:o(n)}),t=i.vis_labelAndValue({LABEL:i.gantt_labelEnd(),VALUE:o(s)});l.push(e),l.push(t)}if(a.label){const e=i.vis_labelAndValue({LABEL:i.gantt_labelLabel(),VALUE:a.label});l.push(e)}return l.join("; ")})(e,t,o,i);return h.generateAriaLabel(i,a,{isSelected:e.isSelected})},te=(e,t)=>{const o=t[e.index];return o.accessibleLabel||o.label};function oe({rowObj:e,rowData:o,isRowSelected:r,isFocused:n,isHorizontalGridlinesVisible:s,ariaActive:d,children:l}){const h=te(e,o);return t.jsx("div",{id:d?.dataId===e.id?d.ariaId:void 0,"data-oj-row-index":e.index,role:"row","aria-label":h,class:i.classNames([a.rowAxisStyles.labelContainer,r&&a.rowBackgroundStyles.selected,n&&a.rowAxisStyles.labelContainerFocused,s&&a.rowAxisStyles.withLabelSeparatorBottom]),children:t.jsx("div",{role:"rowheader",children:l})},e.id)}function ie({content:e,placement:i="top-end-corner",offset:r,borderColor:a,anchor:n,targetFocusRef:s}){const d=o.useRef(x.useId()),[l,h]=o.useState({x:0,y:0}),c=r||{mainAxis:f.DATATIP_OFFSET,crossAxis:-1*f.DATATIP_OFFSET},u=o.useRef(null),g="element"===n?u:{current:l};return{datatipContent:null!=e?t.jsx(m.Layer,{children:t.jsx(p.Floating,{anchorRef:g,placement:i,offsetValue:c,flipOptions:{crossAxis:!0,mainAxis:!0},shiftOptions:{crossAxis:!1,mainAxis:!1},children:t.jsx("div",{id:d.current,className:b.styles.visDatatipStyle,style:{borderColor:a},children:e})})}):null,datatipProps:{"aria-describedby":d.current,onPointerEnter:e=>{e.eventPhase!==Event.AT_TARGET&&e.eventPhase!==Event.BUBBLING_PHASE||(u.current=e.currentTarget)},onPointerLeave:()=>{h({x:-1e4,y:-1e4})},onPointerMove:e=>{h({x:e.clientX,y:e.clientY})},onFocus:e=>{e.eventPhase!==Event.AT_TARGET&&e.eventPhase!==Event.BUBBLING_PHASE||(u.current=e.target)},onShowFocusDatatip:()=>{u.current=s.current}}}}const re=({targetRef:e,rowData:t,hoveredRowObj:o,focusedRowObj:i,currentRowLabelInteraction:r,rowAxisRegion:a})=>{const{direction:n}=u.useUser(),s="rtl"===n,d={hover:{rowObj:o,anchor:"pointer"},focus:{rowObj:i,anchor:"element"},none:{rowObj:void 0,anchor:"pointer"}},{anchor:l,rowObj:h}=d[r],c=h?t[h.index].accessibleLabel:void 0,m=h&&"element"===l?{x:0,y:h.y+a.y,width:a.w,height:h.height}:void 0;return ie({content:c,anchor:l,placement:"top-start",offset:v.calculateOffset(s,a.w,m),targetFocusRef:e})},ae=({rowObjs:e,hoverProps:t})=>({onPointerMove:o=>{const i=(t=>{const{clientX:o,clientY:i}=t,r=document.elementsFromPoint(o,i);for(let t=0;t<r.length;t++){const o=r[t].dataset.ojRowIndex;if(o)return e[Number(o)].id}})(o);i!==t.hoveredRowLabelId&&t.onRowLabelHoverChange({id:i})}});function ne({innerRef:e,scrollPosition:o,resolvedWidth:r,resolvedMaxWidth:n,currentRowLabel:s,currentRowLabelInteraction:d,hoveredRowLabelId:l,onRowLabelHoverChange:h,layoutObj:{labelPaddingInlineStart:c,labelPaddingInlineEnd:u,rowData:m,rowObjs:g,idRowObjMap:w,isHorizontalGridlinesVisible:p},ariaActive:b,children:x}){const f=r!==1/0?r:void 0,v=n!==1/0?n:void 0,T=Math.min(r,n),k=T===1/0?-1:T-(c+u),A=ae({rowObjs:g,hoverProps:{hoveredRowLabelId:l,onRowLabelHoverChange:h}}),{datatipContent:R,datatipProps:j}=re({rowData:m,hoveredRowObj:l&&w.get(l),focusedRowObj:s?.isFocused?w.get(s.id):void 0,currentRowLabelInteraction:d,rowAxisRegion:{x:0,y:-o,w:2*(c+u),h:-1},targetRef:e});return t.jsxs("div",{ref:e,...y.mergeProps(A,j),class:i.classNames([a.rowAxisStyles.base,p&&a.rowAxisStyles.withSeparatorTop]),style:{width:f,maxWidth:v},children:[t.jsx("div",{role:"grid",class:a.rowAxisStyles.contentContainer,style:{top:-o},children:g.map((e=>t.jsx(oe,{ariaActive:b,rowObj:e,rowData:m,isRowSelected:e.isSelected,isFocused:!!s?.isFocused&&s.id===e.id,isHorizontalGridlinesVisible:p,children:x(M(e,m,k))})))}),R]})}const se=(e,t,o,i,r)=>{const a=((e,t,o)=>{const i=t.max-o.max,r=t.min-o.min,a=e*(t.max-t.min),n=Math.max(i,Math.min(a,r));return{min:Math.max(0,t.min-n),max:t.max-n}})(e,t,i),{min:n,max:s}=o,d=a.min!==n||a.max!==s;return d&&r(a),{newRange:a,isRangeChanged:d}},de=({rowObjs:e})=>{if(0!==e.length&&0!==e[0].taskObjs.length)return{id:e[0].taskObjs[0].id,isFocused:!0}},le=(e,{rowObjs:t,idTaskObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="next"===i?1:-1,{rowIndex:n,renderIndex:s}=r,d=t[n].taskObjs[s+a];if(d)return d.id;const l=t[n+a];if(l){const e="next"===i?l.taskObjs[0]:l.taskObjs[l.taskObjs.length-1];if(e)return e.id}},he=(e,{rowObjs:t,idTaskObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="down"===i?1:-1,{rowIndex:n}=r,s=t[n+a];if(!s)return;const d=s.taskObjs[0];return d?d.id:void 0},ce=(e,t)=>le(e,t,"next"),ue=(e,t)=>le(e,t,"prev"),me=(e,{rowObjs:t,idRowObjMap:o},i)=>{const r=o.get(e);if(!r)return;const a="down"===i?1:-1,{index:n}=r,s=t[n+a];return s?s.id:void 0},ge=(e,t,o,i="auto",r="auto",a=0)=>{const n=Math.min(e.x-t.x-a,0),s=Math.max(0,e.x+e.w-(t.x+t.w)+a),d=o?s:n,l=o?n:s;let h=0;switch(i){case"start":h=d;break;case"end":h=l;break;case"auto":h=(o?l<0:l>0)?l:d;break;default:return i}const c=Math.min(e.y-t.y-a,0),u=Math.max(0,e.y+e.h-(t.y+t.h)+a);let m=0;switch(r){case"top":m=c;break;case"bottom":m=u;break;case"auto":m=c<0?c:u;break;default:return r}return{dx:-h,dy:-m}},we=({viewportLayout:e,dataBodyWidth:t,dataBodyHeight:i,viewportStartTime:r,viewportEndTime:a,scrollPosition:n,...s})=>{const{direction:d}=u.useUser(),l="rtl"===d,h=(({getRangeX:e,getRangeY:t,globalRangeX:i,globalRangeY:r,onRangeXChange:a,onRangeYChange:n,isDisabled:s=!1})=>{const d=o.useRef({min:0,max:0}),l=o.useRef({min:0,max:0});return s?{}:{onKbPanHorizontal:t=>{const{detail:{rangeRatio:o}}=t,{newRange:r}=se(o,e(),d.current,i,a);d.current=r},onKbPanVertical:e=>{const{detail:{rangeRatio:o}}=e,{newRange:i}=se(o,t(),l.current,r,n);l.current=i}}})(s),c=o.useRef({min:0,max:0}),m=o.useRef({min:0,max:0}),g=(e=0,o=0)=>{if(0!==e){const{newRange:o}=se(e/t,s.getRangeX(),c.current,s.globalRangeX,s.onRangeXChange);c.current=o}if(0!==o){const{newRange:e}=se(o/i,s.getRangeY(),m.current,s.globalRangeY,s.onRangeYChange);m.current=e}};return s.isDisabled?{}:{...h,onKbPanTaskIntoView:o=>{let s=e.idTaskObjMap.get(o.detail.id);if(!s){const i=e.allIdTaskObjMap.get(o.detail.id);if(!i)return;s=J(i,r,a,t,n,l)}const{x:d,y:h,width:c,height:u}=s,m={x:d,y:h,w:c,h:u},w={x:0,y:0,w:t,h:i},p=e.rowPadding,{dx:b,dy:x}=ge(m,w,l,"auto","auto",p);g(b,x)},onKbPanRowIntoView:o=>{const r=e.allIdRowObjMap.get(o.detail.id);if(!r)return;const a={x:0,y:r.y-n,w:t,h:r.height},s={x:0,y:0,w:t,h:i},d=e.rowPadding,{dy:h}=ge(a,s,l,"auto","auto",d);g(0,h)}}},pe=({captureTargetRef:e,width:t,height:i,viewportStartTime:r,viewportEndTime:a,majorAxisScale:n,minorAxisScale:s,startTime:d,endTime:l,zoomParameters:h,scrollPosition:m,dataBodyHeight:g,totalRowsHeight:w,viewportLayout:p,onViewportChange:b,onScrollPositionChange:x,onCursorChange:f,isPanDisabled:v,isZoomDisabled:k})=>{const A={captureTargetRef:e,width:t,height:i,getRangeX:()=>({min:r,max:a}),getRangeY:()=>({min:m,max:m+g}),globalRangeX:{min:d,max:l},globalRangeY:{min:0,max:w},onRangeXChange:e=>{b?.({viewportStart:c.getISOString(e.min),viewportEnd:c.getISOString(e.max),majorAxisScale:n,minorAxisScale:s})},onRangeYChange:e=>{x?.({y:e.min})},isDisabled:v},{getZoomOrderViewDurationThresholds:R,...j}=h,S={captureTargetRef:e,width:t,...j,zoomOrderViewDurationThresholds:R(t),onViewportChange:b,isDisabled:k},C=(({captureTargetRef:e,width:t,height:i,getRangeX:r,getRangeY:a,globalRangeX:n,globalRangeY:s,onRangeXChange:d,onRangeYChange:l,onDragPanStart:h,onDragPanEnd:m,isDisabled:g=!1})=>{const{direction:w}=u.useUser(),p=o.useRef({min:0,max:0}),b=o.useRef({min:0,max:0}),x=o.useRef({min:0,max:0}),f=o.useRef({min:0,max:0}),v=o.useRef(!1),y=c.useDrag({captureTargetRef:e,onDragStart:()=>{x.current=r(),f.current=a(),h&&h()},onDragMove:({dx:e,dy:o})=>{v.current=!0;const{newRange:r}=se(("rtl"===w?-1:1)*e/t,x.current,p.current,n,d);p.current=r;const{newRange:a}=se(o/i,f.current,b.current,s,l);b.current=a},onDragEnd:({originalEvent:e})=>{v.current&&e.preventDefault(),v.current=!1,m&&m()},isDisabled:g});return g?{}:y})({...A,onDragPanStart:()=>f?.({cursor:"grabbing"}),onDragPanEnd:()=>f?.({cursor:"grabbingUnset"})}),I=(({width:e,height:t,getRangeX:i,getRangeY:r,globalRangeX:a,globalRangeY:n,onRangeXChange:s,onRangeYChange:d,isDisabled:l=!1})=>{const{direction:h}=u.useUser(),m=o.useRef({min:0,max:0}),g=o.useRef({min:0,max:0}),w=c.useWheel({onWheel:({deltaX:o,deltaY:l,ctrlKey:c})=>{if(c)return;const{newRange:u}=se(("rtl"===h?-1:1)*o/e,i(),m.current,a,s);m.current=u;const{newRange:w}=se(l/t,r(),g.current,n,d);g.current=w},isDisabled:l});return l?{}:w})(A),P=we({...A,viewportLayout:p,dataBodyWidth:t,dataBodyHeight:g,viewportStartTime:r,viewportEndTime:a,scrollPosition:m}),L=(({captureTargetRef:e,width:t,startTime:o,endTime:i,viewportStartTime:r,viewportEndTime:a,majorAxisZoomOrder:n,majorAxisZoomOrderIndex:s,minorAxisZoomOrder:d,minorAxisZoomOrderIndex:l,zoomOrderViewDurationThresholds:h,minZoomViewportDuration:m,maxZoomViewportDuration:g,onViewportChange:w,isDisabled:p=!1})=>{const{direction:b}=u.useUser(),x="rtl"===b,f=T.usePinch({captureTargetRef:e,onPinchZoomChange:({origin:{x:e},delta:u})=>{const p=c.getPositionTime(e,r,a,t,x);c.zoomTime(p,r,a,o,i,c.getGestureZoomFactor(u),m,g,h,d,l,n,s,w)},isDisabled:p});return p?{}:f})(S),O=(({width:e,startTime:t,endTime:o,viewportStartTime:i,viewportEndTime:r,majorAxisZoomOrder:a,majorAxisZoomOrderIndex:n,minorAxisZoomOrder:s,minorAxisZoomOrderIndex:d,zoomOrderViewDurationThresholds:l,minZoomViewportDuration:h,maxZoomViewportDuration:m,onViewportChange:g,isDisabled:w=!1})=>{const{direction:p}=u.useUser(),b="rtl"===p,x=c.useWheel({onWheel:({x:u,deltaY:w,ctrlKey:p})=>{if(!p)return;const x=c.getPositionTime(u,i,r,e,b);c.zoomTime(x,i,r,t,o,c.getGestureZoomFactor(w),h,m,l,s,d,a,n,g)},isDisabled:w});return w?{}:x})(S),E=(({startTime:e,endTime:t,viewportStartTime:o,viewportEndTime:i,majorAxisZoomOrder:r,majorAxisZoomOrderIndex:a,minorAxisZoomOrder:n,minorAxisZoomOrderIndex:s,zoomOrderViewDurationThresholds:d,minZoomViewportDuration:l,maxZoomViewportDuration:h,onViewportChange:u,isDisabled:m=!1})=>m?{}:{onKbZoomIn:m=>{const g=o+(i-o)/2;c.zoomTime(g,o,i,e,t,m.detail.zoomFactor,l,h,d,n,s,r,a,u)},onKbZoomOut:m=>{const g=o+(i-o)/2;c.zoomTime(g,o,i,e,t,m.detail.zoomFactor,l,h,d,n,s,r,a,u)}})(S);return{gestureProps:y.mergeProps(C,I,P,L,O,E)}},be=({viewportLayout:e,viewportYOffset:t,dataBodyRegion:o,viewportStartTime:i,viewportEndTime:r,width:a,isRTL:n,selectionProps:s,hoverProps:d,currentProps:l,onCursorChange:h})=>{const{x:u,y:m,w:g,h:w}=o,p=N(s.selectionMode),b=o=>{const s=e.allRowObjs,d=e.spatialIndex,{offsetX:l,offsetY:h}=o;if(!!(l<u||l>u+g||h<m||h>m+w))return;const p={time:c.getPositionTime(l,i,r,a,n),y:h+t},b=((e,t,{time:o,y:i})=>{const r=t.search(o,i,o,i);if(0===r.length)return;let a=r[0];for(let t=0;t<e.length;t++){const o=e[t];for(let e=0;e<o.taskObjs.length;e++){if(0===a)return{rowIndex:t,taskIndex:e};a-=1}}})(s,d.tasks,p);if(!b)return;const{rowIndex:x,taskIndex:f}=b;return s[x].taskObjs[f].id},x={onPointerMove:e=>{const t=b(e);t!==d.hoveredTaskId&&d.onTaskHoverChange({id:t}),p&&h?.({cursor:void 0!==t?"pointer":"pointerUnset"})}},f={onPointerUp:e=>{const t=b(e);void 0!==t&&(p&&h?.({cursor:"pointer"}),t!==l?.currentTask?.id&&l.onCurrentTaskChange({id:t,isFocused:!1}))}},{selectionProps:{onKeyUp:v,...T},selectionContent:A}=k.useSelection({idExtracter:b,selection:s.selectedIds,selectionMode:s.selectionMode,onChange:s.onSelectionChange,getDataById:e.getTaskDataById});return{gestureProps:y.mergeProps(x,f,T),selectionContent:A}},xe=({targetRef:e,datatip:o,rowData:i,dateFormatter:r,hoveredTaskObj:a,focusedTaskObj:n,currentTaskInteraction:s,dataBodyRegion:d})=>{const{direction:l}=u.useUser(),h="rtl"===l,c=R.useTranslationBundle("@oracle/oraclejet-preact"),m={hover:{taskObj:a,anchor:"pointer"},focus:{taskObj:n,anchor:"element"},none:{taskObj:void 0,anchor:"pointer"}},{anchor:g,taskObj:w}=m[s],p=o??(e=>{const{translations:o,dateFormatter:i}=e;return({data:e,rowData:r})=>{if(void 0!==e.accessibleLabel)return{content:e.accessibleLabel};const{start:a,end:n}=K(e),s=a===n,d=[];return r.label&&d.push({key:o.gantt_labelRow(),value:r.label}),s?d.push({key:o.gantt_labelDate(),value:i(a)}):(d.push({key:o.gantt_labelStart(),value:i(a)}),d.push({key:o.gantt_labelEnd(),value:i(n)})),e.label&&d.push({key:o.gantt_labelLabel(),value:e.label}),{content:t.jsx(A.VisTabularDatatip,{tableData:d})}}})({translations:c,dateFormatter:r,isRTL:h}),{content:b,borderColor:x}=w?p(((e,t)=>{const{index:o,rowIndex:i}=t;return{data:e[i].tasks[o],rowData:e[i]}})(i,w)):{content:void 0,borderColor:void 0},f=w&&"element"===g?{x:w.x,y:w.y+d.y,width:w.width,height:w.height}:void 0;return ie({content:b,anchor:g,placement:"top-start",offset:v.calculateOffset(h,d.w,f),borderColor:x,targetFocusRef:e})};function fe({innerRef:e,isRTL:r,scrollPosition:n,onScrollPositionChange:s,isViewportDefined:l,onViewportChange:h,zoomParameters:u,zooming:m,selectedIds:g,selectionMode:w,onSelectionChange:p,hoveredTaskId:b,onTaskHoverChange:x,currentTask:f,onCurrentTaskChange:v,currentTaskInteraction:T,ariaActive:k,getTimeAxesLayout:A,getResolvedViewportLayout:R,rowDataLayout:j,rowAxisSeparator:S,datatip:C,majorAxis:I,minorAxis:P,dataBody:L}){return l?t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:function(d,l){const O=A(d),{position:E,majorAxis:D,minorAxis:M,viewportStartTime:V,viewportEndTime:z,startTime:B,endTime:_}=O,F=D&&D.zoomOrder[D.zoomOrderIndex],H=M.zoomOrder[M.zoomOrderIndex],U=D?D.height:0,{height:W}=M,Z=l-(U+W),Y=R(j,V,z,n,d,Z,r),X=q({selectionProps:{selectedIds:g,selectionMode:w},hoverProps:{hoveredTaskId:b},currentProps:{currentTask:f}},Y.idTaskObjMap),G=c.getDefaultDateFormatter(H,V),K=D&&I(D),N=P(M),$=L({width:d,height:Z,viewportLayout:Y,minorAxisLayout:M,effectsLayout:X,dateFormatter:G,ariaActiveTask:k}),J={top:{components:[K,N,$],dataBodyPos:l-Z},bottom:{components:[$,N,K],dataBodyPos:0}},[Q,ee]=o.useState(),te=e=>ee((t=>void 0===t?e.cursor:"grabbing"===t&&"grabbingUnset"!==e.cursor?"grabbing":"grabbingUnset"!==e.cursor&&"pointerUnset"!==e.cursor?e.cursor:void 0)),{gestureProps:oe}=pe({captureTargetRef:e,width:d,height:l,viewportStartTime:V,viewportEndTime:z,majorAxisScale:F,minorAxisScale:H,startTime:B,endTime:_,zoomParameters:u,scrollPosition:n,dataBodyHeight:Z,totalRowsHeight:j.totalRowsHeight,viewportLayout:Y,onViewportChange:e=>{h&&(h(e),x({id:void 0}))},onScrollPositionChange:e=>{s&&(s(e),x({id:void 0}))},onCursorChange:te,isPanDisabled:!1,isZoomDisabled:"off"===m}),ie={x:0,y:J[E].dataBodyPos,w:d,h:Z},{gestureProps:re,selectionContent:ae}=be({viewportLayout:Y,viewportYOffset:n-J[E].dataBodyPos,dataBodyRegion:ie,viewportStartTime:V,viewportEndTime:z,width:d,isRTL:r,selectionProps:{selectedIds:g,selectionMode:w,onSelectionChange:p},hoverProps:{hoveredTaskId:b,onTaskHoverChange:x},currentProps:{currentTask:f,onCurrentTaskChange:v},onCursorChange:te}),{datatipContent:ne,datatipProps:se}=xe({datatip:C,rowData:Y.rowData,dateFormatter:G,hoveredTaskObj:b&&Y.idTaskObjMap.get(b),focusedTaskObj:X.focusedTaskObj,currentTaskInteraction:T,dataBodyRegion:ie,targetRef:e}),de=y.mergeProps(oe,re,se);return t.jsxs("div",{ref:e,...de,class:i.classNames([a.timeAxisDataBodyStyles.base,a.timeAxisDataBodyStyles.pannable,r?S&&a.timeAxisDataBodyStyles.withRowAxisSeparatorRight:S&&a.timeAxisDataBodyStyles.withRowAxisSeparatorLeft]),style:{cursor:Q},children:[J[E].components,ne,ae]})}}):t.jsx(d.TrackResizeContainer,{width:"100%",height:"100%",children:e=>{const t=A(e),{majorAxis:o,minorAxis:i,viewportStartTime:r,viewportEndTime:a}=t,n=o&&o.zoomOrder[o.zoomOrderIndex],s=i.zoomOrder[i.zoomOrderIndex];return h?.({viewportStart:c.getISOString(r),viewportEnd:c.getISOString(a),majorAxisScale:n,minorAxisScale:s}),null}})}function ve({width:e,height:o,positions:i}){const r=i.map((t=>`M0,${t} H${e}`)).join(" ");return t.jsx("svg",{width:e,height:o,children:t.jsx("path",{class:a.horizontalGridlinesStyles.base,d:r})})}function ye({width:e,height:i,rowData:r,dateFormatter:a,ariaActiveId:n,ariaActiveTaskObj:s}){const d=R.useTranslationBundle("@oracle/oraclejet-preact"),l=o.useRef(0),h=o.useMemo((()=>{const e=0===l.current?[n,v.getRandomId()]:[v.getRandomId(),n];return l.current=Math.abs(l.current-1),e}),[n]),c=s&&ee(s,r,a,d);return t.jsxs("div",{style:{width:e,height:i},children:[t.jsx("div",{role:"img",id:h[0],"aria-label":c}),t.jsx("div",{role:"img",id:h[1],"aria-label":c})]})}function Te({width:e,height:o,rowData:i,dateFormatter:r,layoutObjs:n}){const s=R.useTranslationBundle("@oracle/oraclejet-preact"),d=[];return n.forEach((e=>{e.taskObjs.forEach((e=>{const o=ee(e,i,r,s);d.push(t.jsx("div",{role:"img","aria-label":o,class:a.taskMobileAccStyles.content,style:{width:e.width,height:e.height,top:e.y,left:e.x}}))}))})),t.jsx("div",{class:a.taskMobileAccStyles.base,style:{width:e,height:o},children:d})}function ke({width:e,height:o,rowData:i,dateFormatter:r,ariaActiveId:a,ariaActiveTaskObj:n,layoutObjs:s}){return h.supportsMobileScreenReader?t.jsx(Te,{width:e,height:o,layoutObjs:s,rowData:i,dateFormatter:r}):t.jsx(ye,{width:e,height:o,rowData:i,dateFormatter:r,ariaActiveId:a,ariaActiveTaskObj:n})}function Ae({width:e,height:o,layoutObjs:i}){const r=i.filter((e=>e.isSelected)),n=r.map((({y:t,height:o})=>`M1,${t} H${e-1} V${t+o} H1 Z`)).join(" ");return r.length>0?t.jsx("svg",{width:e,height:o,children:t.jsx("path",{class:a.rowBackgroundStyles.selected,d:n})}):null}const Re=(e,t)=>{const{x:o,y:i,width:r,height:a,borderRadius:n,stroke:s,strokeWidth:d,padding:l}=t,h=o-l,c=i-l,u=r+2*l,m=a+2*l,g=j.rectangleWithBorderRadius(h,c,u,m,n,Math.min(u,m),"0"),w=new Path2D(g);e.strokeStyle=s,e.lineWidth=d,e.stroke(w)},je=(e,t,o)=>{const i="hovered"===o,{x:r,y:a,width:n,height:s,borderRadius:d,fill:l,stroke:h,strokeWidth:c}=t,u=j.rectangleWithBorderRadius(r,a,n,s,d,Math.min(n,s),"0"),m=new Path2D(u);switch(i&&((e,t)=>{e.shadowColor=t.shadowColor,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY,e.shadowBlur=t.shadowBlur})(e,t.hoverEffect.shadow),e.fillStyle="#ffffff",e.fill(m),i&&(e=>{e.shadowColor="transparent",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0})(e),e.strokeStyle=h,e.fillStyle=l,e.lineWidth=c,e.fill(m),e.stroke(m),o){case"selected":Re(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.selectionEffect});break;case"hovered":Re(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.hoverEffect});break;case"focused":Re(e,{x:r,y:a,width:n,height:s,borderRadius:d,...t.focusEffect});break;case void 0:break;default:return o}};function Se({width:e,height:o,layoutObj:i}){return t.jsx(c.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i&&je(e,i,"focused")}})}function Ce({width:e,height:o,layoutObj:i}){return t.jsx(c.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i&&je(e,i,"hovered")}})}function Ie({width:e,height:o,layoutObjs:i}){return t.jsx(c.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i.forEach((t=>je(e,t,"selected")))}})}function Pe({width:e,height:o,layoutObjs:{selectedTaskObjs:i,hoveredTaskObj:r,focusedTaskObj:a}}){return t.jsxs(c.TimeComponentLayersStack,{width:`${e}px`,height:`${o}px`,children:[t.jsx(Se,{width:e,height:o,layoutObj:a}),t.jsx(Ie,{width:e,height:o,layoutObjs:i}),t.jsx(Ce,{width:e,height:o,layoutObj:r})]})}function Le({x:e,y:o,width:r,height:n,label:s,isInner:d,textAlign:h,labelStyle:c}){return t.jsx("div",{"aria-hidden":"true",class:i.classNames([a.taskLabelLayerStyles.label,d&&a.taskLabelLayerStyles.innerLabel]),style:{left:e,top:o,width:r,height:n,textAlign:h,...c},children:t.jsx(l.Text,{variant:c?.color?"inherit":"primary",truncation:"ellipsis",size:"md",weight:"inherit",children:s})})}function Oe({width:e,height:o,layoutObjs:i}){return t.jsx("div",{class:a.taskLabelLayerStyles.base,style:{width:e,height:o},children:i.map((e=>t.jsx(Le,{...e})))})}function Ee({width:e,height:o,layoutObjs:i}){return t.jsx(c.TimeComponentCanvas2D,{width:e,height:o,draw:e=>{i.forEach((t=>{t.taskObjs.forEach((t=>je(e,t)))}))}})}function De({width:e,height:o,minorAxisLayout:{minorGridTicksPos:i,majorGridTicksPos:r},viewportLayout:{gridlines:a,rowData:n,rowObjs:s,taskLabelObjs:d,horizontalGridlinesPos:l,idTaskObjMap:h},effectsLayout:u,dateFormatter:m,ariaActiveTask:g}){return t.jsxs(c.TimeComponentLayersStack,{width:`${e}px`,height:`${o}px`,children:[t.jsx(Ae,{width:e,height:o,layoutObjs:s}),"on"===a.vertical&&t.jsx(c.TimeComponentVerticalGridlines,{width:e,height:o,positions:i,variant:"minor"}),"on"===a.vertical&&r&&t.jsx(c.TimeComponentVerticalGridlines,{width:e,height:o,positions:r,variant:"major"}),l&&t.jsx(ve,{width:e,height:o,positions:l}),t.jsx(ke,{width:e,height:o,layoutObjs:s,rowData:n,dateFormatter:m,ariaActiveId:g?.ariaId,ariaActiveTaskObj:g&&h.get(g.dataId)}),t.jsx(Ee,{width:e,height:o,layoutObjs:s}),t.jsx(Pe,{width:e,height:o,layoutObjs:u}),t.jsx(Oe,{width:e,height:o,layoutObjs:d})]})}function Me({visRef:e,overlayControlsContainerRef:o,panZoomLayout:i,getTimeAxesLayout:r,getHorizontalScrollbarLayout:a,onHorizontalScrollChange:n,getVerticalScrollbarLayout:s,onVerticalScrollChange:d,rowAxisSeparator:l=!1,zoomParameters:h,zooming:u="on",isViewportDefined:m,onViewportChange:g,getResolvedViewportLayout:w,datatip:p,rowDataLayout:b,isRTL:x,scrollPosition:f,onScrollPositionChange:v,selectedIds:y,selectionMode:T,onSelectionChange:k,hoveredTaskId:A,onTaskHoverChange:R,currentTask:j,onCurrentTaskChange:S,currentTaskInteraction:C,ariaActive:I,width:P,height:L}){return t.jsx(c.TimeComponentPanZoomLayout,{overlayControlsContainerRef:o,...i,width:P,height:L,overlayControls:"on"===u&&h&&m?t.jsx(c.TimeComponentZoomControls,{position:i.overlayControlsPosition,zoomParameters:h,onViewportChange:g}):void 0,verticalControl:t.jsx(c.TimeComponentVerticalScrollbarContainer,{getLayout:s,onRangeChange:d,children:e=>t.jsx(c.TimeComponentVerticalScrollbar,{...e})}),horizontalControl:t.jsx(c.TimeComponentHorizontalScrollbarContainer,{getLayout:a,onRangeChange:n,children:e=>t.jsx(c.TimeComponentHorizontalScrollbar,{...e})}),vis:t.jsx(fe,{innerRef:e,isRTL:x,scrollPosition:f,onScrollPositionChange:v,isViewportDefined:m,onViewportChange:g,zoomParameters:h,zooming:u,rowAxisSeparator:l,selectedIds:y,selectionMode:T,onSelectionChange:k,hoveredTaskId:A,onTaskHoverChange:R,currentTask:j,onCurrentTaskChange:S,currentTaskInteraction:C,ariaActive:I,getTimeAxesLayout:r,getResolvedViewportLayout:w,rowDataLayout:b,datatip:p,majorAxis:e=>t.jsx(c.TimeComponentHorizontalTimeAxis,{...e}),minorAxis:e=>t.jsx(c.TimeComponentHorizontalTimeAxis,{...e}),dataBody:e=>t.jsx(De,{...e})})})}const Ve=(e,t,o)=>t.map((t=>e(t,o))),ze=e=>void 0===e?"0px":void 0!==e.height?`${e.height}px`:r.bridgeValues.horizontalTimeAxisHeight,Be=(e,t)=>{const o=((e,t)=>void 0===t?0:void 0!==t.height?t.height:e)(e,t),{scale:i,zoomOrder:r=[t.scale]}=t;return{height:o,zoomOrder:r,zoomOrderIndex:r.indexOf(i)}},_e=(e,t)=>Date.parse(e.getPreviousDate(new Date(t).toISOString())),Fe=(e,t)=>Date.parse(e.getNextDate(new Date(t).toISOString())),He=(e,t,o)=>{const i=[_e(e,t)];for(;i[i.length-1]<o;)i.push(Fe(e,i[i.length-1]));return i},Ue=(e,t)=>{const{type:o,params:i}=t;switch(o){case"exact":{const t=new Map,o=He(e,i.startTime,i.endTime);for(let e=0;e<o.length-1;e++)t.set(o[e],o[e+1]);return{intervals:t,numIntervals:t.size}}case"approximate":{const{startTime:t,endTime:o,numSections:r,numIntervalsPerSection:a}=i,n=((e,t,o,i,r)=>{const a=new Map,n=Math.floor((o-t)/i);for(let s=0;s<i;s++){const i=t+n*s,d=Math.min(t+n*(s+1),o);let l=_e(e,i);for(let t=0;t<r&&!(l>=d);t++){const t=Fe(e,l);a.set(l,t),l=t}l=_e(e,d-1),a.set(l,Fe(e,l))}return a})(e,t,o,r,a),s=[...n.keys()],d=s.reduce(((e,t)=>e+(n.get(t)-Number(t))),0)/s.length;return{intervals:n,numIntervals:(o-t)/d}}default:return o}},We=(e,t)=>e.formatter(new Date(t).toISOString()),Ze=(e,t,o)=>{const i=He(e,t,o),r=i.slice(0,i.length-1).map((t=>We(e,t)));return{ticks:i,labels:r}},Ye=(e,t,o,i,r="start",a,n,s,d,l,h,u,m,g)=>{const w=t+o,p=h,b=u,x=a.slice(0,a.length-1),f=n.map((e=>c.getTimePosition(e,p,b,m,g))),v=a.map((e=>c.getTimePosition(e,p,b,m,g))),y=v.slice(1).map(((e,t)=>g?v[t]-e:e-v[t])),T=a[0]<d;T&&(v[0]=0,y[0]=v[1]),a[a.length-1]>l&&(v[v.length-1]=g?0:m,y[y.length-1]=g?v[v.length-2]-v[v.length-1]:v[v.length-1]-v[v.length-2]);const k=v.slice(0,v.length-1).map(((e,t)=>g?e-y[t]:e)),A=Ve(e,s,i).map((({width:e},t)=>Math.floor(e)-Math.floor(y[t]-w)>0));return{font:i,labelPosition:r,labels:s,labelTicks:x,labelPositions:k,isLabelTruncated:A,isIntervalStartTruncated:T,intervalWidths:y,gridTicksPos:f,isRTL:g}},Xe=(e,t,o,i,r,a,n,s)=>{const{zoomOrderMinLengthFactor:d,maxNumIntervals:l}=((e,t,o,i,r,a,n)=>{const s=t+o,d=a.map((e=>Ue(e,n))),l=Math.max(...d.map((({numIntervals:e})=>e)));return{zoomOrderMinLengthFactor:d.map((({intervals:t},o)=>{const n=a[o],d=[...t.keys()],l=d.map((e=>We(n,t.get(e)))),h=d.map((e=>t.get(e)-e)),c=Ve(e,l,r),u=Math.min(...h.map(((e,t)=>e/Math.max(i,c[t].width+s))));return u})),maxNumIntervals:l}})(e,t,o,i,r,s,{type:"approximate",params:{numSections:4,numIntervalsPerSection:10,startTime:a,endTime:n}});return{getZoomOrderViewDurationThresholds:e=>d.map((t=>e*t)),minorAxisZoomOrder:s,minZoomViewportDuration:(n-a)/l,maxZoomViewportDuration:n-a,startTime:a,endTime:n}},Ge=(e,t,o,i,r,a,n,s,d,l,h,c,u,m)=>g=>{const{zoomOrder:w,zoomOrderIndex:p}=h,b=a(g),{viewportStartTime:x,viewportEndTime:f}=((e,t,o,i,r)=>void 0!==i&&void 0!==r?{viewportStartTime:i,viewportEndTime:r}:void 0!==i&&void 0===r?{viewportStartTime:i,viewportEndTime:Math.min(o,i+e)}:void 0===i&&void 0!==r?{viewportStartTime:Math.max(t,r-e),viewportEndTime:r}:{viewportStartTime:t,viewportEndTime:Math.min(o,t+e)})(b[p],s,d,u,m),{majorAxisLayout:v,minorAxisLayout:y}=((e,t,o,i,r,a,n,s,d,l,h,c,u)=>{const m=u?Ze(u,s,d):{ticks:[],labels:[]},g=Ze(c,s,d),{ticks:w,labels:p}=m,{ticks:b,labels:x}=g,f=new Set(w),v=new Set(b),y=0===w.filter((e=>e>s&&e<d&&!v.has(e))).length,T=y?b.filter((e=>!f.has(e))):b,k=u&&Ye(e,t,o,i,u.labelPosition,w,w,p,a,n,s,d,l,h),A=Ye(e,t,o,r,c.labelPosition,b,T,x,a,n,s,d,l,h);return{minorAxisLayout:{majorGridTicksPos:y&&k?k.gridTicksPos:void 0,minorGridTicksPos:A.gridTicksPos,variant:"minor",...A},majorAxisLayout:k&&{majorGridTicksPos:k.gridTicksPos,minorGridTicksPos:void 0,variant:"major",...k}}})(e,t,o,i,r,s,d,x,f,g,l,w[p],c&&c.zoomOrder[c.zoomOrderIndex]);return{position:n,startTime:s,endTime:d,viewportStartTime:x,viewportEndTime:f,width:g,majorAxis:v&&{width:g,...c,...v},minorAxis:{width:g,...h,...y}}},Ke=[{tokenVar:r.bridgeValues.horizontalTimeAxisHeight,key:"defaultTimeAxisHeight",cssProp:"height"},{tokenVar:r.bridgeValues.horizontalTimeAxisLabelPaddingInlineStart,key:"timeAxisLabelPaddingInlineStart",cssProp:"margin-inline-start"},{tokenVar:r.bridgeValues.horizontalTimeAxisLabelPaddingInlineEnd,key:"timeAxisLabelPaddingInlineEnd",cssProp:"margin-inline-end"},{tokenVar:P.xUnits(12.5),key:"timeAxisLabelMinWidth",cssProp:"min-width"},{tokenVar:I.typographyVars.body.md.fontSize,key:"majorAxisFontSize",cssProp:"font-size"},{tokenVar:I.typographyVars.body.sm.fontSize,key:"minorAxisFontSize",cssProp:"margin-block-start"},{tokenVar:I.typographyVars.body.md.fontWeight.semibold,key:"majorAxisFontWeight"},{tokenVar:I.typographyVars.body.sm.fontWeight.regular,key:"minorAxisFontWeight"}],Ne=e=>"0"===e?0:Number(e.substring(0,e.length-2)),$e=[{tokenVar:a.bridgeValues.rowLabelPaddingInlineStart,key:"rowLabelPaddingInlineStart",cssProp:"padding-inline-start"},{tokenVar:a.bridgeValues.rowLabelPaddingInlineStart,key:"rowLabelPaddingInlineEnd",cssProp:"padding-inline-end"},{tokenVar:P.xUnits(3),key:"rowPaddingTop",cssProp:"padding-top"},{tokenVar:P.xUnits(3),key:"rowPaddingBottom",cssProp:"padding-bottom"},{tokenVar:P.xUnits(6),key:"taskHeight",cssProp:"min-height"},{tokenVar:P.xUnits(1),key:"taskBorderRadius",cssProp:"border-radius"},{tokenVar:a.bridgeValues.taskBgColor,key:"taskBgColor",cssProp:"background-color"},{tokenVar:a.bridgeValues.taskBorderColor,key:"taskBorderColor",cssProp:"border-color"},{tokenVar:a.bridgeValues.taskEffectBorderColor,key:"taskEffectBorderColor",cssProp:"outline-color"},{tokenVar:I.baseVars.boxShadow.md,key:"taskEffectBoxShadow",cssProp:"box-shadow"}],qe=e=>{const[t,o,i,r,...a]=e.split(" ").reverse();return{shadowColor:a.reverse().join(" "),shadowOffsetX:Ne(r??"0"),shadowOffsetY:Ne(i??"0"),shadowBlur:Ne(o??"0")}},Je=e=>e.endsWith("px")?{value:Number(e.substring(0,e.length-2)),suffix:"px"}:e.endsWith("%")?{value:Number(e.substring(0,e.length-1)),suffix:"%"}:{value:1/0,suffix:void 0},Qe=Ke.concat($e),et=({rowAxis:e,gridlines:{horizontal:o="off",vertical:i="on"}={horizontal:"off",vertical:"on"},axisPosition:a="top",minorAxis:n,majorAxis:s,start:d,end:l,viewportStart:h,viewportEnd:m,onViewportChange:g,scrollPosition:{y:w=0}={y:0},onScrollPositionChange:p,rows:b,selectedIds:x,selectionMode:f="none"})=>{const{direction:v}=u.useUser(),{resolvedVars:y,cssContent:T}=S.useCssVars(Qe),{textMeasureContent:k,getTextDimensions:A}=C.useTextDimensions(),R="rtl"===v,j=t.jsxs(t.Fragment,{children:[k,T]}),{startTime:I,endTime:L,viewportStartTime:O,viewportEndTime:E,isValidTimeConfig:M}=((e,t,o,i)=>{const r=c.parseDate(e),a=c.parseDate(t),n=o?c.parseDate(o):void 0,s=i?c.parseDate(i):void 0,d=((e,t,o,i)=>t>e&&(void 0===o||void 0===i||i>o)&&(void 0===o||o>=e&&o<t)&&(void 0===i||i>e&&i<=t))(r,a,n,s);return{startTime:r,endTime:a,viewportStartTime:n,viewportEndTime:s,isValidTimeConfig:d}})(d,l,h,m);if(!A||0===Object.keys(y).length)return{isRTL:R,layoutContent:j,isValidConfig:M,isReady:!1};if(!M)return{isRTL:R,layoutContent:j,isValidConfig:M,isReady:!0};const V=void 0===e?"off":"on",z="on"===e?{}:e,B=z?.width??"max-content",_=z?.maxWidth??"none",F=z?.labelRenderer??D,H=((e,t,o)=>{const i=ze(t);return{position:e,height:`calc(${ze(o)} + ${i})`}})(a,n,s),U={top:{overlayControlsPosition:"topEnd",verticalControlTopGap:(W=H).height,verticalControlBottomGap:"0"},bottom:{overlayControlsPosition:"bottomEnd",verticalControlTopGap:"0",verticalControlBottomGap:W.height}}[W.position];var W;const Z="on"===V?((e,t)=>{const o=`${P.xUnits(1)} + ${r.bridgeValues.horizontalScrollbarHeight}`,i={top:{rowAxisTopGap:e.height,rowAxisBottomGap:`calc(${o})`},bottom:{rowAxisTopGap:"0",rowAxisBottomGap:`calc(${e.height} + ${o})`}},a=Je(t.width),n=Je(t.maxWidth);return{...i[e.position],resolvedRowAxisWidth:a,resolvedRowAxisMaxWidth:n,label:t.label}})(H,{width:B,maxWidth:_,label:F}):void 0,Y=(e=>({defaultTimeAxisHeight:Ne(e.defaultTimeAxisHeight),timeAxisLabelPaddingInlineStart:Ne(e.timeAxisLabelPaddingInlineStart),timeAxisLabelPaddingInlineEnd:Ne(e.timeAxisLabelPaddingInlineEnd),timeAxisLabelMinWidth:Ne(e.timeAxisLabelMinWidth),majorAxisFont:{fontSize:e.majorAxisFontSize,fontWeight:e.majorAxisFontWeight},minorAxisFont:{fontSize:e.minorAxisFontSize,fontWeight:e.minorAxisFontWeight}}))(y),X=s&&Be(Y.defaultTimeAxisHeight,s),G=Be(Y.defaultTimeAxisHeight,n),K=Xe(A,Y.timeAxisLabelPaddingInlineStart,Y.timeAxisLabelPaddingInlineEnd,Y.timeAxisLabelMinWidth,Y.minorAxisFont,I,L,G.zoomOrder),N=Ge(A,Y.timeAxisLabelPaddingInlineStart,Y.timeAxisLabelPaddingInlineEnd,Y.majorAxisFont,Y.minorAxisFont,K.getZoomOrderViewDurationThresholds,a,I,L,R,G,X,O,E),q=(e=>({rowPaddingTop:Ne(e.rowPaddingTop),rowPaddingBottom:Ne(e.rowPaddingBottom)}))(y),J=(e=>({taskHeight:Ne(e.taskHeight),taskBorderRadius:e.taskBorderRadius,taskBgColor:e.taskBgColor,taskBorderColor:e.taskBorderColor,taskEffectBorderColor:e.taskEffectBorderColor,taskEffectBoxShadow:qe(e.taskEffectBoxShadow)}))(y),ee=$(b,{...q,...J},{horizontal:o,vertical:i},{selectedIds:x,selectionMode:f}),te=(e=>({rowLabelPaddingInlineStart:Ne(e.rowLabelPaddingInlineStart),rowLabelPaddingInlineEnd:Ne(e.rowLabelPaddingInlineEnd)}))(y),oe={labelPaddingInlineStart:te.rowLabelPaddingInlineStart,labelPaddingInlineEnd:te.rowLabelPaddingInlineEnd,rowData:ee.rowData,rowObjs:ee.rowObjs,idRowObjMap:ee.idRowObjMap,isHorizontalGridlinesVisible:"on"===o},ie=((e,t,o,i,r)=>a=>{const n=t-e,s=i-o,d=a*n/s,l=a*(e-o)/s,h=r?a-l-d:l;return{thumbWidth:d,thumbLeft:r?void 0:l,thumbRight:r?l:void 0,draggableRegion:{xMin:h,xMax:h+d,yMin:-1/0,yMax:1/0},getNewRange:e=>{const t=r?Math.max(0,a-e-d):e,l=Math.min(o+t/a*s,i-n);return{newMin:l,newMax:l+n}}}})(O??I,E??L,I,L,R),re=(ae=w,ne=void 0,se=0,de=ee.totalRowsHeight,e=>{const t=(ne??e+ae)-ae,o=de-se,i=Math.min(e,e*t/o),r=Math.max(0,e*(ae-se)/o);return{thumbHeight:i,thumbTop:r,draggableRegion:{xMin:-1/0,xMax:1/0,yMin:r,yMax:r+i},getNewRange:i=>{const r=Math.max(0,Math.min(se+i/e*o,de-t));return{newMin:r,newMax:r+t}}}});var ae,ne,se,de;return{scrollPosition:w,panZoomLayout:U,withRowAxisLayout:Z,getTimeAxesLayout:N,zoomParameters:void 0!==O&&void 0!==E?{viewportStartTime:O,viewportEndTime:E,minorAxisZoomOrderIndex:G.zoomOrderIndex,majorAxisZoomOrder:X?.zoomOrder,majorAxisZoomOrderIndex:X?.zoomOrderIndex,...K}:void 0,rowDataLayout:ee,rowAxisLayout:oe,getResolvedViewportLayout:Q,getHorizontalScrollbarLayout:ie,onHorizontalScrollChange:(e,t)=>{g?.({viewportStart:c.getISOString(e),viewportEnd:c.getISOString(t),majorAxisScale:s?.scale,minorAxisScale:n.scale})},getVerticalScrollbarLayout:re,onVerticalScrollChange:e=>{p?.({y:e})},isRTL:R,layoutContent:j,isValidConfig:M,isReady:!0}},tt=({visRef:e,isDisabled:t=!1})=>t?{}:{onKeyDown:t=>{switch(t.key){case"=":case"+":{const o=new CustomEvent("KbZoomIn",{detail:{zoomFactor:c.DEFAULT_ZOOM_IN_FACTOR}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"-":case"_":{const o=new CustomEvent("KbZoomIn",{detail:{zoomFactor:c.DEFAULT_ZOOM_OUT_FACTOR}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"PageUp":{const o=t.shiftKey?new CustomEvent("KbPanHorizontal",{detail:{rangeRatio:.25}}):new CustomEvent("KbPanVertical",{detail:{rangeRatio:.25}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}case"PageDown":{const o=t.shiftKey?new CustomEvent("KbPanHorizontal",{detail:{rangeRatio:-.25}}):new CustomEvent("KbPanVertical",{detail:{rangeRatio:-.25}});e.current?.dispatchEvent(o),L.cancelEvent(t);break}}}},ot=({rowDataLayout:e,currentTask:t,onCurrentTaskChange:o,isRTL:i,isDisabled:r=!1})=>r?{}:{onKeyDown:r=>{switch(r.key){case"ArrowRight":{const a=t&&(i?ue(t.id,e):ce(t.id,e));void 0!==a&&o({id:a,isFocused:!0}),L.cancelEvent(r);break}case"ArrowLeft":{const a=t&&(i?ce(t.id,e):ue(t.id,e));void 0!==a&&o({id:a,isFocused:!0}),L.cancelEvent(r);break}case"ArrowUp":{const i=t&&((e,t)=>he(e,t,"up"))(t.id,e);void 0!==i&&o({id:i,isFocused:!0}),L.cancelEvent(r);break}case"ArrowDown":{const i=t&&((e,t)=>he(e,t,"down"))(t.id,e);void 0!==i&&o({id:i,isFocused:!0}),L.cancelEvent(r);break}}}},it=({rowDataLayout:e,currentRowLabel:t,onCurrentRowLabelChange:o,isDisabled:i=!1})=>i?{}:{onKeyDown:i=>{switch(i.key){case"ArrowUp":{const r=t&&((e,t)=>me(e,t,"up"))(t.id,e);void 0!==r&&o({id:r,isFocused:!0}),L.cancelEvent(i);break}case"ArrowDown":{const r=t&&((e,t)=>me(e,t,"down"))(t.id,e);void 0!==r&&o({id:r,isFocused:!0}),L.cancelEvent(i);break}}}},rt=({visRef:e,rowAxisRef:t,rowDataLayout:i,navigationModes:r,selectionProps:a,isRTL:n,isDisabled:s=!1})=>{const d=o.useRef("tasks"),{onKeyUp:l}=k.useSelection({idExtracter:e=>{if("tasks"===d.current&&"keyup"===e.type)return r.tasks.currentItem?.id},selection:a.selectedIds,selectionMode:a.selectionMode,onChange:a.onSelectionChange,getDataById:i?.getTaskDataById||(()=>{})}).selectionProps,h="tasks"===d.current?{onKeyUp:l}:{},c=tt({visRef:e,isDisabled:s}),u=ot({rowDataLayout:i,currentTask:r.tasks.currentItem,onCurrentTaskChange:r.tasks.onCurrentItemChange,isRTL:n}),m=it({rowDataLayout:i,currentRowLabel:r.rowLabels.currentItem,onCurrentRowLabelChange:r.rowLabels.onCurrentItemChange}),g={onFocus:()=>{const o=new Event("ShowFocusDatatip");e.current?.dispatchEvent(o),t.current?.dispatchEvent(o)}};return s?{}:y.mergeProps(c,g,{onKeyDown:e=>{let t=!1;const o=e=>{const{onCurrentItemChange:t}=r[e.type];t({id:e.id,isFocused:!0})},a=e=>{const{currentItem:t,onCurrentItemChange:o}=r[e];t&&o({id:t.id,isFocused:!1})},s=()=>{const n=((e,t)=>{const o=t.idTaskObjMap.get(e),{rowIndex:i}=o;return t.rowObjs[i].id})(r.tasks.currentItem.id,i);o({id:n,type:"rowLabels"}),a("tasks"),d.current="rowLabels",t=!0,L.cancelEvent(e)},l=()=>{const n=((e,t,o)=>{if(void 0!==o){const i=t.idTaskObjMap.get(o);if(i){const{rowIndex:r}=i;if(t.rowObjs[r].id===e)return o}}const i=t.idRowObjMap.get(e),r=i?.taskObjs[0];if(r)return r.id;const a=de(t);return a?.id})(r.rowLabels.currentItem.id,i,r.tasks.currentItem?.id);void 0!==n&&o({id:n,type:"tasks"}),a("rowLabels"),d.current="tasks",t=!0,L.cancelEvent(e)};switch(e.key){case"Tab":a(d.current);break;case"ArrowLeft":e.altKey&&(n||"tasks"!==d.current?n&&"rowLabels"===d.current&&l():s());break;case"ArrowRight":e.altKey&&(n||"rowLabels"!==d.current?n&&"tasks"===d.current&&s():l())}if(!t)switch(d.current){case"tasks":u.onKeyDown?.(e);break;case"rowLabels":m.onKeyDown?.(e);break;default:return d.current}},onKeyUp:e=>{switch(e.key){case"Tab":{const{currentItem:t,onCurrentItemChange:o}=r[d.current],a=t||de(i);a&&o({id:a.id,isFocused:!0}),L.cancelEvent(e);break}}}},h)};e.Gantt=function({width:e,height:i,testId:r,...a}){const n=o.useRef(null),{scrollPosition:s,panZoomLayout:d,withRowAxisLayout:l,getTimeAxesLayout:h,zoomParameters:c,rowDataLayout:u,rowAxisLayout:m,getResolvedViewportLayout:g,getHorizontalScrollbarLayout:w,onHorizontalScrollChange:p,getVerticalScrollbarLayout:b,onVerticalScrollChange:x,isRTL:f,layoutContent:T,isValidConfig:k,isReady:A}=et(a),R={"aria-label":a["aria-label"],"aria-describedby":a["aria-describedby"],"aria-labelledby":a["aria-labelledby"],role:"application"},j=void 0!==a.viewportStart&&void 0!==a.viewportEnd,[S,C]=o.useState(),[I,P]=o.useState("none"),[L,D]=o.useState(),[M,V]=o.useState("none"),[z,B]=o.useState(),_=e=>{void 0!==e.id&&C({dataId:e.id,ariaId:v.getRandomId(),type:"rowLabel"}),V(void 0!==e.id?"hover":"none"),B(e.id)},[F,H]=o.useState(),U=e=>{if(e.isFocused){const t=new CustomEvent("KbPanTaskIntoView",{detail:{id:e.id}});Y.current?.dispatchEvent(t),C({dataId:e.id,ariaId:v.getRandomId(),type:"task"}),P("focus")}H(e)},[W,Z]=o.useState(),Y=o.useRef(null),X=o.useRef(null),G=o.useRef(null),K=(({rootRef:e,overlayControlsContainerRef:t,isDisabled:i=!1})=>{const r=o.useRef(!1),a=()=>{const e=new Event("ControlsShow");t.current?.dispatchEvent(e)},n=()=>{const e=new Event("ControlsHide");t.current?.dispatchEvent(e)};return i?{}:{onFocus:()=>{r.current=!0,a()},onBlur:t=>{t.relatedTarget&&e.current?.contains(t.relatedTarget)||(r.current=!1,n())},onPointerDown:t=>{"mouse"!==t.pointerType&&e.current?.focus()},onPointerOver:e=>{"mouse"===e.pointerType&&a()},onPointerOut:e=>{"mouse"===e.pointerType&&(r.current||n())}}})({rootRef:n,overlayControlsContainerRef:G,isDisabled:!j}),N=rt({visRef:Y,rowAxisRef:X,navigationModes:{tasks:{currentItem:F,onCurrentItemChange:U},rowLabels:{currentItem:W,onCurrentItemChange:e=>{if(e.isFocused){const t=new CustomEvent("KbPanRowIntoView",{detail:{id:e.id}});Y.current?.dispatchEvent(t),C({dataId:e.id,ariaId:v.getRandomId(),type:"rowLabel"}),V("focus")}Z(e)}}},rowDataLayout:u,selectionProps:{selectedIds:a.selectedIds,selectionMode:a.selectionMode,onSelectionChange:a.onSelectionChange},isRTL:f,isDisabled:!j});if(!A||!k)return t.jsx(O,{innerRef:n,width:e,height:i,...R,children:T});const $=t.jsx(Me,{visRef:Y,overlayControlsContainerRef:G,isRTL:f,isViewportDefined:j,scrollPosition:s,onScrollPositionChange:a.onScrollPositionChange,onViewportChange:a.onViewportChange,rowAxisSeparator:!!l,zoomParameters:c,zooming:a.zooming,panZoomLayout:d,getTimeAxesLayout:h,getHorizontalScrollbarLayout:w,onHorizontalScrollChange:p,getVerticalScrollbarLayout:b,onVerticalScrollChange:x,getResolvedViewportLayout:g,rowDataLayout:u,datatip:a.datatip,selectedIds:a.selectedIds,selectionMode:a.selectionMode,onSelectionChange:a.onSelectionChange,hoveredTaskId:L,onTaskHoverChange:e=>{void 0!==e.id&&C({dataId:e.id,ariaId:v.getRandomId(),type:"task"}),P(void 0!==e.id?"hover":"none"),D(e.id)},currentTask:F,onCurrentTaskChange:U,currentTaskInteraction:I,ariaActive:"task"===S?.type?S:void 0}),q=l&&t.jsx(E,{...l,rowAxis:(e,o)=>t.jsx(ne,{innerRef:X,resolvedWidth:e,resolvedMaxWidth:o,currentRowLabel:W,hoveredRowLabelId:z,onRowLabelHoverChange:_,currentRowLabelInteraction:M,ariaActive:"rowLabel"===S?.type?S:void 0,layoutObj:m,scrollPosition:s,children:l.label}),ganttView:$});return t.jsxs(O,{innerRef:n,width:e,height:i,testId:r,...R,...y.mergeProps(N,K),"aria-activedescendant":S?.ariaId,children:[q||$,T]})}}));
|
|
2
2
|
//# sourceMappingURL=Gantt-d94af58e.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', './grid-767b4587', './boxalignment-905057dc', './mergeInterpolations-9ede4cf7', 'css!./GridStyles.styles.css', './useTestId-
|
|
2
|
-
//# sourceMappingURL=Grid-
|
|
1
|
+
define(['exports', 'preact/jsx-runtime', './grid-767b4587', './boxalignment-905057dc', './mergeInterpolations-9ede4cf7', 'css!./GridStyles.styles.css', './useTestId-b5cd4766'], (function(e,s,t,r,i,n,l){"use strict";const a=[...Object.values(t.gridInterpolations),...Object.values(r.boxAlignmentInterpolations)],d=i.mergeInterpolations(a);e.Grid=({"aria-label":e,"aria-hidden":t,children:r,testId:i,role:n,...a})=>{const{class:o,...c}=d(a),b=l.useTestId(i),u={...c};return s.jsx("div",{class:`GridStyles_baseStyles__11rn47i0 ${o||""}`,style:u,role:n,"aria-label":e,"aria-hidden":t,...b,children:r})}}));
|
|
2
|
+
//# sourceMappingURL=Grid-8911aa0f.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid-
|
|
1
|
+
{"version":3,"file":"Grid-8911aa0f.js","sources":["../../src/UNSAFE_Grid/Grid.tsx"],"sourcesContent":["/**\n * @license\n * Copyright (c) %FIRST_YEAR% %CURRENT_YEAR%, Oracle and/or its affiliates.\n * Licensed under The Universal Permissive License (UPL), Version 1.0\n * as shown at https://oss.oracle.com/licenses/upl/\n * @ignore\n */\nimport { ComponentChildren } from 'preact';\n\nimport { gridInterpolations } from '../utils/UNSAFE_interpolations/grid';\nimport type { GridProps } from '../utils/UNSAFE_interpolations/grid';\nimport { boxAlignmentInterpolations } from '../utils/UNSAFE_interpolations/boxalignment';\nimport type { BoxAlignmentProps } from '../utils/UNSAFE_interpolations/boxalignment';\nimport { mergeInterpolations } from '../utils/UNSAFE_mergeInterpolations';\nimport { baseStyles } from './GridStyles.css';\nimport { TestIdProps, useTestId } from '#hooks/UNSAFE_useTestId';\nimport { HTMLAttributesSignalExcluded } from '#utils/UNSAFE_attributeUtils';\n\ntype Props = GridProps &\n BoxAlignmentProps &\n TestIdProps & {\n /**\n * The aria role for the Grid\n */\n role?: HTMLAttributesSignalExcluded['role'];\n /**\n * aria-label for this Grid\n */\n 'aria-label'?: HTMLAttributesSignalExcluded['aria-label'];\n /**\n * aria-hidden for this Grid\n */\n 'aria-hidden'?: HTMLAttributesSignalExcluded['aria-hidden'];\n /**\n * The children to put in the grid.\n */\n children?: ComponentChildren;\n };\n\nconst interpolations = [\n ...Object.values(gridInterpolations),\n ...Object.values(boxAlignmentInterpolations)\n];\n\nconst styleInterpolations = mergeInterpolations<Props>(interpolations);\n\n/**\n * An implicit grid. Resize your browser to see how items reflow.\n */\nexport const Grid = ({\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n children,\n testId,\n role,\n ...props\n}: Props) => {\n const { class: cls, ...styles } = styleInterpolations(props);\n const testIdProps = useTestId(testId);\n const allStyles = { ...styles };\n return (\n <div\n class={`${baseStyles} ${cls ? cls : ''}`}\n style={allStyles}\n role={role}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden}\n {...testIdProps}>\n {children}\n </div>\n );\n};\n"],"names":["interpolations","Object","values","gridInterpolations","boxAlignmentInterpolations","styleInterpolations","mergeInterpolations","ariaLabel","ariaHidden","children","testId","role","props","class","cls","styles","testIdProps","useTestId","allStyles","_jsx","style"],"mappings":"4MAuCA,MAAMA,EAAiB,IAClBC,OAAOC,OAAOC,yBACdF,OAAOC,OAAOE,+BAGbC,EAAsBC,EAAAA,oBAA2BN,UAKnC,EAClB,aAAcO,EACd,cAAeC,EACfC,WACAC,SACAC,UACGC,MAEH,MAAQC,MAAOC,KAAQC,GAAWV,EAAoBO,GAChDI,EAAcC,YAAUP,GACxBQ,EAAY,IAAKH,GACvB,OACEI,MAAA,MAAA,CACEN,MAAO,mCAAiBC,GAAY,KACpCM,MAAOF,EACPP,KAAMA,EACM,aAAAJ,EACC,cAAAC,KACTQ,EAAWP,SACdA,GAEH"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
define(['exports', 'preact/jsx-runtime', './PRIVATE_PlotArea/themes/PlotAreaStyles.css', './hooks/PRIVATE_useVisDnd/themes/VisDndStyles.css', './classNames-08d99695', './useColorScheme-
|
|
2
|
-
//# sourceMappingURL=Gridlines-
|
|
1
|
+
define(['exports', 'preact/jsx-runtime', './PRIVATE_PlotArea/themes/PlotAreaStyles.css', './hooks/PRIVATE_useVisDnd/themes/VisDndStyles.css', './classNames-08d99695', './useColorScheme-443e7cc7'], (function(e,s,t,i,n,l){"use strict";function o(e,s,t){return{x1:s?e.x+e.width:e.x,x2:s?e.x+e.width:e.x,y1:e.y,y2:e.y+e.height,stroke:t?.lineColor,strokeWidth:t?.lineWidth}}const r={yMajorTick:{isRendered:!0},yMinorTick:{isRendered:!1},xMajorTick:{isRendered:!1},xMinorTick:{isRendered:!1}};e.Gridlines=function({plotArea:e=r,yMinorTicks:i,xMinorTicks:o,xScale:d,yScale:a,isLog:c,yTicks:y,xTicks:h,yAxisPosition:k,isDataXAxis:x}){const S="top"===k||"bottom"===k,[$,L]=d.range(),[m,M]=a.range();let T="",g="",f="",u="";const{yMajorTick:j,yMinorTick:p,xMajorTick:v,xMinorTick:R}=e,A={...r.yMajorTick,...j},W={...r.yMinorTick,...p},P={...r.xMinorTick,...R},C={...r.xMajorTick,...v},b=!0===W?.isRendered||c,w=!0===C?.isRendered||!1===v?.isRendered&&x;if(A?.isRendered)for(let e=1;e<y.length;e++){let s=a.transform(y[e]);e===y.length-1&&(s+=S?-1:1),T+=S?`M${s},${$}L${s},${L}`:`M${$},${s}L${L},${s}`}if(w&&h)for(let e=1;e<h.length;e++){const s=d.transform(h[e]);g+=S?`M${m},${s}L${M},${s}`:`M${s},${m}L${s},${M}`}if(b)for(let e=0;e<i.length;e++){const s=a.transform(i[e]);f+=S?`M${s},${$}L${s},${L}`:`M${$},${s}L${L},${s}`}if(P.isRendered&&o)for(let e=0;e<o.length;e++){const s=d.transform(o[e]);u+=S?`M${m},${s}L${M},${s}`:`M${s},${m}L${s},${M}`}const E=l.useColorScheme();return s.jsxs(s.Fragment,{children:[A?.isRendered&&s.jsx("path",{d:T,class:n.classNames([t.styles.noPointerEvents,t.styles.majorTickLineStyles,"dashed"===A?.lineStyle?t.styles.dashedLine:void 0,"dotted"===A?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:A.lineColor,strokeWidth:A.lineWidth}}),w&&s.jsx("path",{d:g,class:n.classNames([t.styles.noPointerEvents,t.styles.majorTickLineStyles,"dashed"===C?.lineStyle?t.styles.dashedLine:void 0,"dotted"===C?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:C.lineColor,strokeWidth:C.lineWidth}}),b&&s.jsx("path",{d:f,class:n.classNames([t.styles.noPointerEvents,t.styles.minorTickLineStyles,"light"===E?t.styles.lightMinorTickLineStroke:t.styles.darkMinorTickLineStroke,"dashed"===W?.lineStyle?t.styles.dashedLine:void 0,"dotted"===W?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:W?.lineColor,strokeWidth:W?.lineWidth}}),P.isRendered&&s.jsx("path",{d:u,class:n.classNames([t.styles.noPointerEvents,t.styles.minorTickLineStyles,"light"===E?t.styles.lightMinorTickLineStroke:t.styles.darkMinorTickLineStroke,"dashed"===P?.lineStyle?t.styles.dashedLine:void 0,"dotted"===P?.lineStyle?t.styles.dottedLine:void 0]),style:{stroke:P?.lineColor,strokeWidth:P?.lineWidth}})]})},e.PlotArea=function({color:e,yScale:l,isLog:r,availSpace:d,xAxisPosition:a,cursor:c,isDataXAxis:y,isRtl:h,hasAxisLine:k,dragOverStyle:x}){const S=!r&&l.domain()[0]<0&&l.domain()[1]>0,$=function(e,s,t){return{x1:"right"===s?e.x+e.width:e.x,x2:"left"===s?e.x:e.x+e.width,y1:"bottom"===s?e.y+e.height:e.y,y2:"top"===s?e.y:e.y+e.height,stroke:t?.lineColor,strokeWidth:t?.lineWidth}}(d,a),L=function(e,s,t){let i,n,l,o;return"bottom"===t?(i=e.x,n=e.x+e.width,l=s,o=s):(i=s,n=s,l=e.y,o=e.y+e.height),{x1:i,x2:n,y1:l,y2:o}}(d,l.transform(0),a),m=[];switch(x){case"accept":m.push(i.styles.dndDragOverSvgStyle);break;case"reject":m.push(i.styles.dndRejectedStyle),m.push(t.styles.plotAreaStyle);break;case"none":m.push(t.styles.plotAreaStyle)}return s.jsxs(s.Fragment,{children:[s.jsx("rect",{...d,class:n.classNames(m),style:{fill:"accept"===x?void 0:e,cursor:c}}),y&&s.jsx("line",{...o(d,h),class:t.styles.axisLineStyle}),k&&s.jsx("line",{...$,class:t.styles.axisLineStyle}),S&&s.jsx("line",{...L,class:t.styles.baseLineStyle})]})}}));
|
|
2
|
+
//# sourceMappingURL=Gridlines-bef7bbfc.js.map
|