ezux 1.1.13 → 1.1.18
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/README.md +58 -15
- package/dist/DeleteConfirmationModal-CukNDgtX.cjs +1 -0
- package/dist/DeleteConfirmationModal-p8XGDGIw.js +38 -0
- package/dist/EzContextMenu-BCUoEQp5.cjs +1 -0
- package/dist/EzContextMenu-srLxujt8.js +287 -0
- package/dist/EzErrorBoundary-C7a6VisX.js +74 -0
- package/dist/EzErrorBoundary-d_2g-_EK.cjs +1 -0
- package/dist/EzEventModal-C079wLjP.js +725 -0
- package/dist/EzEventModal-CAA9cAM0.cjs +1 -0
- package/dist/EzFlow-C74NbZA9.js +2545 -0
- package/dist/EzFlow-CQFeY7DL.cjs +5 -0
- package/dist/EzGroupingPanel-BVaAJaVU.js +107 -0
- package/dist/EzGroupingPanel-BwWDWEuW.cjs +1 -0
- package/dist/EzKanban-BlJWybKe.js +1575 -0
- package/dist/EzKanban-DdKODRRv.cjs +2 -0
- package/dist/EzLayout-BGnqFtvO.cjs +1 -0
- package/dist/EzLayout-CiaPLniV.js +7005 -0
- package/dist/EzProvider-AlmsYIDk.js +982 -0
- package/dist/EzProvider-L2qQMq-v.cjs +1 -0
- package/dist/EzScheduler-C1Jtvvju.js +2700 -0
- package/dist/EzScheduler-CkqTngI6.cjs +1 -0
- package/dist/EzSchedulerQuickAdd-BIC8xbSn.js +124 -0
- package/dist/EzSchedulerQuickAdd-BeNfGdWs.cjs +1 -0
- package/dist/EzSchedulerToolbar-BJwTpgas.cjs +1 -0
- package/dist/EzSchedulerToolbar-Ba4gbvUg.js +305 -0
- package/dist/EzSignature-7UHO5lSP.js +386 -0
- package/dist/EzSignature-Df7UZ-IS.cjs +1 -0
- package/dist/EzTable-CEXvJR1t.cjs +3 -0
- package/dist/EzTable-D2p1IWHc.js +4290 -0
- package/dist/EzTableEditDialog-BXnnYSSy.cjs +1 -0
- package/dist/EzTableEditDialog-Ccd5XoHm.js +84 -0
- package/dist/EzTableFooter-CtexeDAC.cjs +1 -0
- package/dist/EzTableFooter-DrLoWelo.js +35 -0
- package/dist/EzTableToolbar-BH5z9fSJ.js +160 -0
- package/dist/EzTableToolbar-DwuumvWP.cjs +1 -0
- package/dist/EzTreeView-D1G0Aomc.js +818 -0
- package/dist/EzTreeView-KMGlU4ax.cjs +1 -0
- package/dist/HighlightText-BViuwe03.cjs +1 -0
- package/dist/HighlightText-DNA2R2uf.js +56 -0
- package/dist/KanbanBoard-B7_Z5sh1.js +1697 -0
- package/dist/KanbanBoard-CyitudI1.cjs +1 -0
- package/dist/Modal-BmX1C448.cjs +1 -0
- package/dist/Modal-CrzpKyjK.js +74 -0
- package/dist/NotificationPanel-BzpDc10Q.js +54 -0
- package/dist/NotificationPanel-CFME00wq.cjs +1 -0
- package/dist/TooltipWrapper-BSAmUx9H.js +44 -0
- package/dist/TooltipWrapper-DfbFAZ1U.cjs +1 -0
- package/dist/advanced.cjs +10 -0
- package/dist/advanced.d.ts +44 -0
- package/dist/advanced.es.js +400 -0
- package/dist/avatar-BSdRHETK.cjs +1 -0
- package/dist/avatar-BvCUJ-_r.js +27 -0
- package/dist/button-BBMwzUtG.cjs +1 -0
- package/dist/button-CYyNwV8S.js +44 -0
- package/dist/calendar-DEHX32Cp.cjs +1 -0
- package/dist/calendar-DOIPGsyI.js +112 -0
- package/dist/card-CPlRZxbq.cjs +1 -0
- package/dist/card-ZUNxcdIM.js +60 -0
- package/dist/checkbox-BrCh_Iid.cjs +1 -0
- package/dist/checkbox-DRkQuB4W.js +21 -0
- package/dist/components/EzFlow/EzConnectionLine.d.ts +5 -0
- package/dist/components/EzFlow/EzFlow.examples.d.ts +5 -0
- package/dist/components/EzFlow/EzFlow.types.d.ts +260 -0
- package/dist/components/EzFlow/EzFlowBackground.d.ts +5 -0
- package/dist/components/EzFlow/EzFlowCanvas.d.ts +3 -0
- package/dist/components/EzFlow/EzFlowControls.d.ts +5 -0
- package/dist/components/EzFlow/EzFlowEdge.d.ts +5 -0
- package/dist/components/EzFlow/EzFlowHeader.d.ts +6 -0
- package/dist/components/EzFlow/EzFlowToolbox.d.ts +6 -0
- package/dist/components/EzFlow/EzWorkflow.d.ts +5 -0
- package/dist/components/EzFlow/EzWorkflowPerformance.d.ts +3 -0
- package/dist/components/EzFlow/EzWorkflowServiceAdapters.d.ts +24 -0
- package/dist/components/EzFlow/EzWorkflowValidation.d.ts +95 -0
- package/dist/components/EzFlow/index.d.ts +13 -0
- package/dist/components/EzFlow/nodes/ActionNode.d.ts +3 -0
- package/dist/components/EzFlow/nodes/ApprovalNode.d.ts +3 -0
- package/dist/components/EzFlow/nodes/DecisionNode.d.ts +3 -0
- package/dist/components/EzFlow/nodes/DelayNode.d.ts +3 -0
- package/dist/components/EzFlow/nodes/EndNode.d.ts +3 -0
- package/dist/components/EzFlow/nodes/GroupNode.d.ts +3 -0
- package/dist/components/EzFlow/nodes/LoopNode.d.ts +3 -0
- package/dist/components/EzFlow/nodes/RequestNode.d.ts +3 -0
- package/dist/components/EzFlow/nodes/StartNode.d.ts +3 -0
- package/dist/components/EzFlow/nodes/index.d.ts +9 -0
- package/dist/components/EzKanban/EzKanban.types.d.ts +808 -0
- package/dist/components/EzKanban/components/CardEditorModal.d.ts +23 -0
- package/dist/components/EzKanban/components/EzKanbanErrorFallback.d.ts +1 -0
- package/dist/components/EzKanban/components/FilterPopover.d.ts +10 -0
- package/dist/components/EzKanban/components/KanbanBoard.d.ts +59 -0
- package/dist/components/EzKanban/components/KanbanCard.d.ts +46 -0
- package/dist/components/EzKanban/components/KanbanColumn.d.ts +55 -0
- package/dist/components/EzKanban/components/KanbanSwimlane.d.ts +45 -0
- package/dist/components/EzKanban/components/KanbanToolbar.d.ts +41 -0
- package/dist/components/EzKanban/exports.d.ts +4 -0
- package/dist/components/EzKanban/hooks/useKanbanCards.d.ts +36 -0
- package/dist/components/EzKanban/hooks/useKanbanColumns.d.ts +27 -0
- package/dist/components/EzKanban/hooks/useKanbanDragDrop.d.ts +31 -0
- package/dist/components/EzKanban/hooks/useKanbanFilters.d.ts +23 -0
- package/dist/components/EzKanban/hooks/useKanbanState.d.ts +79 -0
- package/dist/components/EzKanban/hooks/useKanbanSwimlanes.d.ts +27 -0
- package/dist/components/EzKanban/hooks/useKanbanVirtualization.d.ts +16 -0
- package/dist/components/EzKanban/index.d.ts +51 -0
- package/dist/components/EzKanban/services/KanbanService.d.ts +31 -0
- package/dist/components/EzKanban/state/kanban.store.d.ts +33 -0
- package/dist/components/EzKanban/useEzKanban.d.ts +87 -0
- package/dist/components/EzKanban/views/KanbanTimelineView.d.ts +15 -0
- package/dist/components/EzLayout/Authentication/AuthSlider.d.ts +13 -0
- package/dist/components/EzLayout/Authentication/InputPassword.d.ts +7 -0
- package/dist/components/EzLayout/Authentication/SignInForm.d.ts +21 -0
- package/dist/components/EzLayout/Authentication/SignUpForm.d.ts +20 -0
- package/dist/components/EzLayout/EzHeader.d.ts +48 -0
- package/dist/components/EzLayout/EzLanguageSwitcher.d.ts +4 -0
- package/dist/components/EzLayout/EzLayout.types.d.ts +261 -0
- package/dist/components/EzLayout/EzOrganizationSwitcher.d.ts +14 -0
- package/dist/components/EzLayout/EzSidebar.d.ts +24 -0
- package/dist/components/EzLayout/EzThemeColorChanger.d.ts +9 -0
- package/dist/components/EzLayout/EzThemeSwitcher.d.ts +8 -0
- package/dist/components/EzLayout/EzUserProfile.d.ts +27 -0
- package/dist/components/EzLayout/components/EzSidebarFooter.d.ts +8 -0
- package/dist/components/EzLayout/components/EzSidebarNav.d.ts +10 -0
- package/dist/components/EzLayout/components/EzSidebarNavItem.d.ts +11 -0
- package/dist/components/EzLayout/components/MainContent.d.ts +13 -0
- package/dist/components/EzLayout/hooks/useLayoutImperative.d.ts +17 -0
- package/dist/components/EzLayout/hooks/useLayoutState.d.ts +25 -0
- package/dist/components/EzLayout/index.d.ts +23 -0
- package/dist/components/EzLayout/useEzLayout.d.ts +34 -0
- package/dist/components/EzScheduler/EzScheduler.types.d.ts +1252 -0
- package/dist/components/EzScheduler/EzSchedulerToolbar.d.ts +117 -0
- package/dist/components/EzScheduler/components/EzEventModal.d.ts +23 -0
- package/dist/components/EzScheduler/components/EzOverlapAlert.d.ts +12 -0
- package/dist/components/EzScheduler/components/EzQuickInfoPopup.d.ts +22 -0
- package/dist/components/EzScheduler/components/EzResourceSidebar.d.ts +33 -0
- package/dist/components/EzScheduler/components/EzSchedulerContent.d.ts +111 -0
- package/dist/components/EzScheduler/components/EzSchedulerQuickAdd.d.ts +17 -0
- package/dist/components/EzScheduler/components/RecurrenceEditor.d.ts +7 -0
- package/dist/components/EzScheduler/components/SchedulerLoadingSpinner.d.ts +2 -0
- package/dist/components/EzScheduler/components/dnd/DraggableEvent.d.ts +24 -0
- package/dist/components/EzScheduler/components/dnd/DroppableSlot.d.ts +19 -0
- package/dist/components/EzScheduler/hooks/useRecurrence.d.ts +2 -0
- package/dist/components/EzScheduler/hooks/useSchedulerEventHandlers.d.ts +15 -0
- package/dist/components/EzScheduler/hooks/useSchedulerEvents.d.ts +27 -0
- package/dist/components/EzScheduler/hooks/useSchedulerImperative.d.ts +19 -0
- package/dist/components/EzScheduler/hooks/useSchedulerNavigation.d.ts +9 -0
- package/dist/components/EzScheduler/hooks/useSchedulerResources.d.ts +10 -0
- package/dist/components/EzScheduler/hooks/useSchedulerState.d.ts +14 -0
- package/dist/components/EzScheduler/hooks/useSchedulerVirtualization.d.ts +9 -0
- package/dist/components/EzScheduler/index.d.ts +43 -0
- package/dist/components/EzScheduler/models/EventSettings.d.ts +11 -0
- package/dist/components/EzScheduler/models/View.d.ts +49 -0
- package/dist/components/EzScheduler/models/index.d.ts +2 -0
- package/dist/components/EzScheduler/services/AttendeeService.d.ts +15 -0
- package/dist/components/EzScheduler/services/AuditService.d.ts +15 -0
- package/dist/components/EzScheduler/services/CollisionDetectionService.d.ts +19 -0
- package/dist/components/EzScheduler/services/DragAndDropService.d.ts +16 -0
- package/dist/components/EzScheduler/services/HistoryService.d.ts +31 -0
- package/dist/components/EzScheduler/services/ICalendarImportService.d.ts +16 -0
- package/dist/components/EzScheduler/services/PrintService.d.ts +7 -0
- package/dist/components/EzScheduler/services/RecurrenceEngine.d.ts +7 -0
- package/dist/components/EzScheduler/services/ReminderService.d.ts +17 -0
- package/dist/components/EzScheduler/services/SchedulerService.d.ts +71 -0
- package/dist/components/EzScheduler/services/SearchService.d.ts +11 -0
- package/dist/components/EzScheduler/services/SecurityService.d.ts +25 -0
- package/dist/components/EzScheduler/services/TimezoneService.d.ts +20 -0
- package/dist/components/EzScheduler/services/VirtualScrollingService.d.ts +34 -0
- package/dist/components/EzScheduler/state/scheduler.store.d.ts +27 -0
- package/dist/components/EzScheduler/templates/CellTemplate.d.ts +42 -0
- package/dist/components/EzScheduler/templates/EditorTemplate.d.ts +32 -0
- package/dist/components/EzScheduler/templates/HeaderTemplate.d.ts +36 -0
- package/dist/components/EzScheduler/useEzScheduler.d.ts +104 -0
- package/dist/components/EzScheduler/utils/createDragConstraint.d.ts +7 -0
- package/dist/components/EzScheduler/utils/getWeekNumber.d.ts +8 -0
- package/dist/components/EzScheduler/utils/sanitizeHtml.d.ts +18 -0
- package/dist/components/EzScheduler/views/AgendaView.d.ts +28 -0
- package/dist/components/EzScheduler/views/DayWeekView.d.ts +177 -0
- package/dist/components/EzScheduler/views/MonthView.d.ts +60 -0
- package/dist/components/EzScheduler/views/TimelineView.d.ts +116 -0
- package/dist/components/EzSignature/EzSignature.d.ts +42 -0
- package/dist/components/EzSignature/EzSignature.types.d.ts +132 -0
- package/dist/components/EzSignature/index.d.ts +2 -0
- package/dist/components/EzTable/EzColumnMenu.d.ts +7 -0
- package/dist/components/EzTable/EzDateFilterTree.d.ts +7 -0
- package/dist/components/EzTable/EzExcelFilter.d.ts +8 -0
- package/dist/components/EzTable/EzFilterBuilder.d.ts +12 -0
- package/dist/components/EzTable/EzGroupingPanel.d.ts +9 -0
- package/dist/components/EzTable/EzHeaderContextMenu.d.ts +8 -0
- package/dist/components/EzTable/EzPagination.d.ts +19 -0
- package/dist/components/EzTable/EzTable.types.d.ts +1 -0
- package/dist/components/EzTable/EzTableEditDialog.d.ts +15 -0
- package/dist/components/EzTable/EzTableFooter.d.ts +10 -0
- package/dist/components/EzTable/EzTableOverlays.d.ts +11 -0
- package/dist/components/EzTable/EzTableStatusBar.d.ts +10 -0
- package/dist/components/EzTable/EzTableToolbar.d.ts +60 -0
- package/dist/components/EzTable/SmartCell.d.ts +7 -0
- package/dist/components/EzTable/components/AdvancedColumnFilter.d.ts +16 -0
- package/dist/components/EzTable/components/BooleanFilterSection.d.ts +7 -0
- package/dist/components/EzTable/components/EzDraggableHeader.d.ts +10 -0
- package/dist/components/EzTable/components/EzHeaderDragPreview.d.ts +7 -0
- package/dist/components/EzTable/components/EzTableBodySection.d.ts +72 -0
- package/dist/components/EzTable/components/EzTableCell.d.ts +46 -0
- package/dist/components/EzTable/components/EzTableHeaderSection.d.ts +23 -0
- package/dist/components/EzTable/components/EzTablePaginationSection.d.ts +31 -0
- package/dist/components/EzTable/components/EzTableRow.d.ts +58 -0
- package/dist/components/EzTable/components/FilterActionButtons.d.ts +16 -0
- package/dist/components/EzTable/components/FilterRuleSelect.d.ts +26 -0
- package/dist/components/EzTable/components/SelectAllCheckbox.d.ts +21 -0
- package/dist/components/EzTable/components/SelectFilterSection.d.ts +18 -0
- package/dist/components/EzTable/components/VirtualizedFilterList.d.ts +21 -0
- package/dist/components/EzTable/constants/filterOptions.d.ts +47 -0
- package/dist/components/EzTable/context/EzTableContext.d.ts +10 -0
- package/dist/components/EzTable/context/TableConfigContext.d.ts +13 -0
- package/dist/components/EzTable/context/TableStore.d.ts +17 -0
- package/dist/components/EzTable/filterUtils.d.ts +5 -0
- package/dist/components/EzTable/hooks/useAutoFit.d.ts +4 -0
- package/dist/components/EzTable/hooks/useCellEventHandlers.d.ts +16 -0
- package/dist/components/EzTable/hooks/useColumnSizeVars.d.ts +6 -0
- package/dist/components/EzTable/hooks/useContainerResize.d.ts +11 -0
- package/dist/components/EzTable/hooks/useDialogStateInitialization.d.ts +8 -0
- package/dist/components/EzTable/hooks/useFilterSelection.d.ts +12 -0
- package/dist/components/EzTable/hooks/useTableFiltering.d.ts +23 -0
- package/dist/components/EzTable/hooks/useTableHistory.d.ts +87 -0
- package/dist/components/EzTable/hooks/useTableImperative.d.ts +42 -0
- package/dist/components/EzTable/hooks/useTableSelection.d.ts +32 -0
- package/dist/components/EzTable/hooks/useTableState.d.ts +33 -0
- package/dist/components/EzTable/hooks/useTableVirtualization.d.ts +35 -0
- package/dist/components/EzTable/index.d.ts +54 -0
- package/dist/components/EzTable/renderers/index.d.ts +6 -0
- package/dist/components/EzTable/services/TableService.d.ts +29 -0
- package/dist/components/EzTable/types/EzTableColumn.types.d.ts +146 -0
- package/dist/components/EzTable/types/EzTableEdit.types.d.ts +58 -0
- package/dist/components/EzTable/types/EzTableFilter.types.d.ts +50 -0
- package/dist/components/EzTable/types/EzTableProps.d.ts +750 -0
- package/dist/components/EzTable/types/index.d.ts +4 -0
- package/dist/components/EzTable/useEzTable.d.ts +17 -0
- package/dist/components/EzTable/utils/SizingUtils.d.ts +11 -0
- package/dist/components/EzTable/utils/TextMeasurer.d.ts +1 -0
- package/dist/components/EzTable/utils/TruncatedTooltip.d.ts +7 -0
- package/dist/components/EzTable/utils/columnTypeDetector.d.ts +5 -0
- package/dist/components/EzTable/utils/filterTypeGuards.d.ts +3 -0
- package/dist/components/EzTable/utils/index.d.ts +1 -0
- package/dist/components/EzTreeView/EzTreeView.types.d.ts +364 -0
- package/dist/components/EzTreeView/EzTreeViewItem.d.ts +89 -0
- package/dist/components/EzTreeView/EzVirtualTree.d.ts +84 -0
- package/dist/components/EzTreeView/components/EzTreeViewLoadingSpinner.d.ts +2 -0
- package/dist/components/EzTreeView/hooks/useTreeDragDrop.d.ts +31 -0
- package/dist/components/EzTreeView/hooks/useTreeExpansion.d.ts +21 -0
- package/dist/components/EzTreeView/hooks/useTreeImperative.d.ts +28 -0
- package/dist/components/EzTreeView/hooks/useTreeSelection.d.ts +31 -0
- package/dist/components/EzTreeView/hooks/useTreeState.d.ts +21 -0
- package/dist/components/EzTreeView/hooks/useTreeVirtualization.d.ts +18 -0
- package/dist/components/EzTreeView/index.d.ts +40 -0
- package/dist/components/EzTreeView/services/TreeService.d.ts +11 -0
- package/dist/components/EzTreeView/useEzTreeView.d.ts +50 -0
- package/dist/components/EzTreeView/utils/treeUtils.d.ts +17 -0
- package/dist/components/shared/components/EzErrorBoundary.d.ts +18 -0
- package/dist/components/shared/components/EzLayoutErrorFallback.d.ts +2 -0
- package/dist/components/shared/components/EzLoadingSpinner.d.ts +8 -0
- package/dist/components/shared/components/EzSchedulerErrorFallback.d.ts +2 -0
- package/dist/components/shared/components/EzSortableList.d.ts +12 -0
- package/dist/components/shared/components/EzTableErrorFallback.d.ts +2 -0
- package/dist/components/shared/components/EzTreeViewErrorFallback.d.ts +2 -0
- package/dist/components/ui/avatar.d.ts +10 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/breadcrumb.d.ts +19 -0
- package/dist/components/ui/button.d.ts +13 -0
- package/dist/components/ui/calendar.d.ts +15 -0
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/checkbox.d.ts +7 -0
- package/dist/components/ui/combobox.d.ts +19 -0
- package/dist/components/ui/command.d.ts +78 -0
- package/dist/components/ui/context-menu.d.ts +27 -0
- package/dist/components/ui/date-time-picker.d.ts +14 -0
- package/dist/components/ui/dropdown-menu.d.ts +31 -0
- package/dist/components/ui/index.d.ts +27 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/label.d.ts +9 -0
- package/dist/components/ui/modal.d.ts +9 -0
- package/dist/components/ui/password-input.d.ts +5 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/progress.d.ts +7 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +26 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +22 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/tooltip.d.ts +10 -0
- package/dist/date-time-picker-Bs-7XzHD.cjs +1 -0
- package/dist/date-time-picker-fUzf4TnU.js +127 -0
- package/dist/dropdown-menu-BRP0tyR_.cjs +1 -0
- package/dist/dropdown-menu-B_7_K13o.js +78 -0
- package/dist/ezux.css +2 -1
- package/dist/flow.cjs +1 -0
- package/dist/flow.d.ts +2 -0
- package/dist/flow.es.js +2 -0
- package/dist/index.cjs +3 -12
- package/dist/index.d.ts +66 -6404
- package/dist/index.es.js +229 -1041
- package/dist/input-CYlvlbF7.cjs +1 -0
- package/dist/input-Cj3sQK3M.js +14 -0
- package/dist/kanban.cjs +1 -1
- package/dist/kanban.d.ts +2 -1343
- package/dist/kanban.es.js +4 -17
- package/dist/label-BGgvoZWD.cjs +1 -0
- package/dist/label-DWEV--5W.js +16 -0
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +2 -690
- package/dist/layout.es.js +2 -20
- package/dist/lib/perfect-freehand.d.ts +221 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/mock-services.cjs +1 -0
- package/dist/mock-services.d.ts +8 -0
- package/dist/mock-services.es.js +161 -0
- package/dist/popover-D1akYj0W.js +17 -0
- package/dist/popover-wZKNvYM5.cjs +1 -0
- package/dist/scheduler.cjs +1 -1
- package/dist/scheduler.d.ts +2 -1430
- package/dist/scheduler.es.js +2 -11
- package/dist/scroll-area-BJs87d45.js +35 -0
- package/dist/scroll-area-DSkE2KB_.cjs +1 -0
- package/dist/select-D4tFaSai.js +43 -0
- package/dist/select-sVieKbLu.cjs +1 -0
- package/dist/shared/components/AnimatedText.d.ts +44 -0
- package/dist/shared/components/BaseCell.d.ts +14 -0
- package/dist/shared/components/BooleanRenderer.d.ts +34 -0
- package/dist/shared/components/ChartRenderer.d.ts +19 -0
- package/dist/shared/components/DeleteConfirmationModal.d.ts +11 -0
- package/dist/shared/components/EzContextMenu.d.ts +12 -0
- package/dist/shared/components/EzNotificationDropdown.d.ts +2 -0
- package/dist/shared/components/HighlightText.d.ts +4 -0
- package/dist/shared/components/Modal.d.ts +13 -0
- package/dist/shared/components/NotificationPanel.d.ts +2 -0
- package/dist/shared/components/PrimitiveRenderer.d.ts +39 -0
- package/dist/shared/components/SearchableSelect.d.ts +13 -0
- package/dist/shared/components/SelectRenderer.d.ts +33 -0
- package/dist/shared/components/StatusBadge.d.ts +21 -0
- package/dist/shared/components/TooltipWrapper.d.ts +12 -0
- package/dist/shared/components/index.d.ts +9 -0
- package/dist/shared/contexts/EzProvider.d.ts +56 -0
- package/dist/shared/hooks/index.d.ts +56 -0
- package/dist/shared/hooks/useBaseComponent.d.ts +59 -0
- package/dist/shared/hooks/useComponentImperativeAPI.d.ts +11 -0
- package/dist/shared/hooks/useComponentState.d.ts +39 -0
- package/dist/shared/hooks/useCurrentTime.d.ts +6 -0
- package/dist/shared/hooks/useDataChangeEvents.d.ts +53 -0
- package/dist/shared/hooks/useDebounce.d.ts +10 -0
- package/dist/shared/hooks/useDeleteConfirmation.d.ts +9 -0
- package/dist/shared/hooks/useDialogState.d.ts +21 -0
- package/dist/shared/hooks/useDndHandlers.d.ts +19 -0
- package/dist/shared/hooks/useEditing.d.ts +107 -0
- package/dist/shared/hooks/useEventHandlers.d.ts +61 -0
- package/dist/shared/hooks/useEzTheme.d.ts +22 -0
- package/dist/shared/hooks/useFieldValidation.d.ts +24 -0
- package/dist/shared/hooks/useHistory.d.ts +13 -0
- package/dist/shared/hooks/useI18n.d.ts +8 -0
- package/dist/shared/hooks/useImperativeAPI.d.ts +8 -0
- package/dist/shared/hooks/useInitCoreServices.d.ts +5 -0
- package/dist/shared/hooks/useKeyboardNavigation.d.ts +36 -0
- package/dist/shared/hooks/useKeyboardShortcuts.d.ts +14 -0
- package/dist/shared/hooks/useLifecycleEvents.d.ts +22 -0
- package/dist/shared/hooks/useLoadingState.d.ts +17 -0
- package/dist/shared/hooks/useMediaQuery.d.ts +6 -0
- package/dist/shared/hooks/useNotificationService.d.ts +8 -0
- package/dist/shared/hooks/usePerformanceMonitor.d.ts +22 -0
- package/dist/shared/hooks/useRowSelectionEvents.d.ts +44 -0
- package/dist/shared/hooks/useSelection.d.ts +73 -0
- package/dist/shared/hooks/useService.d.ts +12 -0
- package/dist/shared/hooks/useServiceState.d.ts +1 -0
- package/dist/shared/hooks/useStateChangeEvents.d.ts +61 -0
- package/dist/shared/hooks/useTheme.d.ts +13 -0
- package/dist/shared/hooks/useVirtualization.d.ts +85 -0
- package/dist/shared/services/BaseService.d.ts +57 -0
- package/dist/shared/services/ContextMenuService.d.ts +58 -0
- package/dist/shared/services/ExportService.d.ts +35 -0
- package/dist/shared/services/FocusManagerService.d.ts +33 -0
- package/dist/shared/services/HierarchyService.d.ts +43 -0
- package/dist/shared/services/I18nService.d.ts +84 -0
- package/dist/shared/services/LayoutService.d.ts +80 -0
- package/dist/shared/services/NotificationService.d.ts +44 -0
- package/dist/shared/services/PersistenceService.d.ts +69 -0
- package/dist/shared/services/ServiceRegistry.d.ts +52 -0
- package/dist/shared/services/ThemeService.d.ts +49 -0
- package/dist/shared/services/VirtualizationService.d.ts +51 -0
- package/dist/shared/state/store.d.ts +10 -0
- package/dist/shared/themes.d.ts +25 -0
- package/dist/shared/types/BaseProps.d.ts +17 -0
- package/dist/shared/types/common.d.ts +373 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/utils/canvasUtils.d.ts +16 -0
- package/dist/shared/utils/commonUtils.d.ts +28 -0
- package/dist/shared/utils/csvUtils.d.ts +7 -0
- package/dist/shared/utils/dateUtils.d.ts +5 -0
- package/dist/shared/utils/dndUtils.d.ts +16 -0
- package/dist/shared/utils/formatUtils.d.ts +20 -0
- package/dist/shared/utils/imperativeApiUtils.d.ts +36 -0
- package/dist/shared/utils/index.d.ts +11 -0
- package/dist/shared/utils/renderUtils.d.ts +6 -0
- package/dist/shared/utils/serviceUtils.d.ts +10 -0
- package/dist/shared/utils/styleUtils.d.ts +121 -0
- package/dist/shared/utils/validationUtils.d.ts +16 -0
- package/dist/signature.cjs +1 -1
- package/dist/signature.d.ts +2 -410
- package/dist/signature.es.js +2 -4
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +2 -1059
- package/dist/table.es.js +2 -17
- package/dist/theme-vars.css +143 -135
- package/dist/tooltip-B1wC9m05.js +16 -0
- package/dist/tooltip-Qmzrg5u5.cjs +1 -0
- package/dist/treeview.cjs +1 -1
- package/dist/treeview.d.ts +2 -656
- package/dist/treeview.es.js +2 -954
- package/dist/useComponentState-DiSFLYju.js +57 -0
- package/dist/useComponentState-Wcz6pjd6.cjs +1 -0
- package/dist/useImperativeAPI-Dbx2hMTb.js +7 -0
- package/dist/useImperativeAPI-VrgLwXEO.cjs +1 -0
- package/dist/useInitCoreServices-CuBrviDM.js +40 -0
- package/dist/useInitCoreServices-DlALVDNx.cjs +1 -0
- package/dist/useService-CnCBGG3G.js +10 -0
- package/dist/useService-CyF782jv.cjs +1 -0
- package/dist/useServiceState-CkrJZm1D.js +21 -0
- package/dist/useServiceState-PyYQWxHi.cjs +1 -0
- package/package.json +76 -56
- package/dist/EzContextMenu-B6HBUjWv.cjs +0 -5
- package/dist/EzContextMenu-BSA_B6Pr.js +0 -3500
- package/dist/EzErrorBoundary-CEdz_hDo.cjs +0 -41
- package/dist/EzErrorBoundary-D4NBadES.js +0 -3727
- package/dist/EzEventModal-BUMp_BFi.js +0 -689
- package/dist/EzEventModal-xzHfzi0O.cjs +0 -1
- package/dist/EzGroupingPanel-BUsIYDRi.js +0 -143
- package/dist/EzGroupingPanel-D0HdSomF.cjs +0 -1
- package/dist/EzSchedulerQuickAdd-C653LTGh.js +0 -118
- package/dist/EzSchedulerQuickAdd-UnOWCpJd.cjs +0 -1
- package/dist/EzSchedulerToolbar-C-5OdRY6.cjs +0 -1
- package/dist/EzSchedulerToolbar-CO5jjDQg.js +0 -240
- package/dist/EzSignature-BaNesxwC.cjs +0 -1
- package/dist/EzSignature-D4EYwo9W.js +0 -419
- package/dist/EzTableEditDialog-Cd948V1C.js +0 -63
- package/dist/EzTableEditDialog-NiOubaMT.cjs +0 -1
- package/dist/EzTableFooter-CWjfGCjL.cjs +0 -1
- package/dist/EzTableFooter-DveD12RC.js +0 -54
- package/dist/EzTableToolbar-Bz8UWv6j.js +0 -246
- package/dist/EzTableToolbar-DHE7Bb1R.cjs +0 -1
- package/dist/HighlightText-8D6KEyBw.js +0 -68
- package/dist/HighlightText-LtZmzCle.cjs +0 -1
- package/dist/NotificationPanel-D2Y-_ahk.js +0 -68
- package/dist/NotificationPanel-zLxrtTGf.cjs +0 -1
- package/dist/TooltipWrapper-BrRTi5EJ.js +0 -2021
- package/dist/TooltipWrapper-DWts4bAI.cjs +0 -1
- package/dist/avatar-BeK0E4mn.js +0 -41
- package/dist/avatar-DZAaTK2f.cjs +0 -1
- package/dist/bell-DAz8P0BR.js +0 -14
- package/dist/bell-DOX2y38e.cjs +0 -1
- package/dist/calendar-BMZ8ddOf.cjs +0 -1
- package/dist/calendar-Dy3rVMW2.js +0 -90
- package/dist/checkbox-B0lGHUyy.cjs +0 -1
- package/dist/checkbox-boJRxICT.js +0 -46
- package/dist/chevron-down-C3s8jU6B.js +0 -5
- package/dist/chevron-down-DZVL7VHW.cjs +0 -1
- package/dist/chevron-left-BFr8XZyF.js +0 -5
- package/dist/chevron-left-HWhRo6IH.cjs +0 -1
- package/dist/circle-alert-77QqFR-z.cjs +0 -1
- package/dist/circle-alert-B2AMDd8N.js +0 -9
- package/dist/circle-x-Cv7bfIC_.js +0 -9
- package/dist/circle-x-DwVXxhXr.cjs +0 -1
- package/dist/date-time-picker-DTxHdPgQ.cjs +0 -1
- package/dist/date-time-picker-Dj2eftJI.js +0 -1636
- package/dist/download-0ZhO2XaW.cjs +0 -1
- package/dist/download-panVHmk6.js +0 -9
- package/dist/ellipsis-CuqNthAj.js +0 -9
- package/dist/ellipsis-CzlqJf-i.cjs +0 -1
- package/dist/grip-vertical-CSyDKBul.js +0 -12
- package/dist/grip-vertical-DZNBW1Dn.cjs +0 -1
- package/dist/index-B3ipEEhH.cjs +0 -2
- package/dist/index-BPPb7bcs.js +0 -3220
- package/dist/index-BQKw_Vho.js +0 -9604
- package/dist/index-C5STgBSy.js +0 -5203
- package/dist/index-C6NfgycP.js +0 -4644
- package/dist/index-D4f2ZdrG.cjs +0 -2
- package/dist/index-DUY1SqMo.cjs +0 -1
- package/dist/index-c1Zg--dt.cjs +0 -7
- package/dist/input-BgM_la4k.cjs +0 -1
- package/dist/input-jYQ5VKNR.js +0 -21
- package/dist/isBefore-C3Y_wbk3.js +0 -15
- package/dist/isBefore-Cp1ttk6q.cjs +0 -1
- package/dist/label-ClOW9UCt.js +0 -55
- package/dist/label-Dx6oDB-X.cjs +0 -1
- package/dist/layers-BA4i1fYX.js +0 -27
- package/dist/layers-xSPd-hz3.cjs +0 -1
- package/dist/popover-BJq1CKmi.cjs +0 -1
- package/dist/popover-Cmlb7w3R.js +0 -341
- package/dist/scroll-area-9fwpVNxT.js +0 -573
- package/dist/scroll-area-CwwZSSA4.cjs +0 -1
- package/dist/select-GxA46anr.cjs +0 -1
- package/dist/select-mDCun_IR.js +0 -35
- package/dist/settings-CvyjK75A.js +0 -31
- package/dist/settings-DKPknrt8.cjs +0 -1
- package/dist/sortable.esm-CsRPuXyD.cjs +0 -1
- package/dist/sortable.esm-CzMCDPet.js +0 -477
- package/dist/tooltip-B41iztKT.cjs +0 -1
- package/dist/tooltip-BCtrEe0z.js +0 -490
- package/dist/useComponentState-C87xXa5d.js +0 -64
- package/dist/useComponentState-DDgGbBXv.cjs +0 -1
- package/dist/useImperativeAPI-DXmCQvPL.js +0 -7
- package/dist/useImperativeAPI-DbZ3owSV.cjs +0 -1
- package/dist/useInitCoreServices-CwXv2p4S.cjs +0 -1
- package/dist/useInitCoreServices-D1WaWlaI.js +0 -3929
- package/dist/useService-8OoezWr8.cjs +0 -1
- package/dist/useService-BUi3uAqE.js +0 -10
- package/dist/useServiceState-BjpCjUn2.cjs +0 -1
- package/dist/useServiceState-VE-viK8b.js +0 -24
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const h=require("react"),f=require("./EzContextMenu-B6HBUjWv.cjs");function $(e,t,o){const r=e.slice();return r.splice(o<0?r.length+o:o,0,r.splice(t,1)[0]),r}function le(e,t){return e.reduce((o,r,n)=>{const i=t.get(r);return i&&(o[n]=i),o},Array(e.length))}function L(e){return e!==null&&e>=0}function de(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function ue(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const O={scaleX:1,scaleY:1},fe=e=>{var t;let{rects:o,activeNodeRect:r,activeIndex:n,overIndex:i,index:s}=e;const a=(t=o[n])!=null?t:r;if(!a)return null;const d=ge(o,s,n);if(s===n){const c=o[i];return c?{x:n<i?c.left+c.width-(a.left+a.width):c.left-a.left,y:0,...O}:null}return s>n&&s<=i?{x:-a.width-d,y:0,...O}:s<n&&s>=i?{x:a.width+d,y:0,...O}:{x:0,y:0,...O}};function ge(e,t,o){const r=e[t],n=e[t-1],i=e[t+1];return!r||!n&&!i?0:o<t?n?r.left-(n.left+n.width):i.left-(r.left+r.width):i?i.left-(r.left+r.width):r.left-(n.left+n.width)}const U=e=>{let{rects:t,activeIndex:o,overIndex:r,index:n}=e;const i=$(t,r,o),s=t[n],a=i[n];return!a||!s?null:{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}},K={scaleX:1,scaleY:1},pe=e=>{var t;let{activeIndex:o,activeNodeRect:r,index:n,rects:i,overIndex:s}=e;const a=(t=i[o])!=null?t:r;if(!a)return null;if(n===o){const c=i[s];return c?{x:0,y:o<s?c.top+c.height-(a.top+a.height):c.top-a.top,...K}:null}const d=be(i,n,o);return n>o&&n<=s?{x:0,y:-a.height-d,...K}:n<o&&n>=s?{x:0,y:a.height+d,...K}:{x:0,y:0,...K}};function be(e,t,o){const r=e[t],n=e[t-1],i=e[t+1];return r?o<t?n?r.top-(n.top+n.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):n?r.top-(n.top+n.height):0:0}const j="Sortable",B=h.createContext({activeIndex:-1,containerId:j,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:U,disabled:{draggable:!1,droppable:!1}});function ve(e){let{children:t,id:o,items:r,strategy:n=U,disabled:i=!1}=e;const{active:s,dragOverlay:a,droppableRects:d,over:c,measureDroppableContainers:l}=f.useDndContext(),u=f.useUniqueId(j,o),g=a.rect!==null,p=h.useMemo(()=>r.map(y=>typeof y=="object"&&"id"in y?y.id:y),[r]),C=s!=null,R=s?p.indexOf(s.id):-1,x=c?p.indexOf(c.id):-1,w=h.useRef(p),m=!de(p,w.current),I=x!==-1&&R===-1||m,v=ue(i);f.useIsomorphicLayoutEffect(()=>{m&&C&&l(p)},[m,p,C,l]),h.useEffect(()=>{w.current=p},[p]);const S=h.useMemo(()=>({activeIndex:R,containerId:u,disabled:v,disableTransforms:I,items:p,overIndex:x,useDragOverlay:g,sortedRects:le(p,d),strategy:n}),[R,u,v.draggable,v.droppable,I,p,x,d,g,n]);return h.createElement(B.Provider,{value:S},t)}const he=e=>{let{id:t,items:o,activeIndex:r,overIndex:n}=e;return $(o,r,n).indexOf(t)},xe=e=>{let{containerId:t,isSorting:o,wasDragging:r,index:n,items:i,newIndex:s,previousItems:a,previousContainerId:d,transition:c}=e;return!c||!r||a!==i&&n===s?!1:o?!0:s!==n&&t===d},Ie={duration:200,easing:"ease"},H="transform",me=f.CSS.Transition.toString({property:H,duration:0,easing:"linear"}),ye={roleDescription:"sortable"};function Ce(e){let{disabled:t,index:o,node:r,rect:n}=e;const[i,s]=h.useState(null),a=h.useRef(o);return f.useIsomorphicLayoutEffect(()=>{if(!t&&o!==a.current&&r.current){const d=n.current;if(d){const c=f.getClientRect(r.current,{ignoreTransform:!0}),l={x:d.left-c.left,y:d.top-c.top,scaleX:d.width/c.width,scaleY:d.height/c.height};(l.x||l.y)&&s(l)}}o!==a.current&&(a.current=o)},[t,o,r,n]),h.useEffect(()=>{i&&s(null)},[i]),i}function Re(e){let{animateLayoutChanges:t=xe,attributes:o,disabled:r,data:n,getNewIndex:i=he,id:s,strategy:a,resizeObserverConfig:d,transition:c=Ie}=e;const{items:l,containerId:u,activeIndex:g,disabled:p,disableTransforms:C,sortedRects:R,overIndex:x,useDragOverlay:w,strategy:m}=h.useContext(B),I=we(r,p),v=l.indexOf(s),S=h.useMemo(()=>({sortable:{containerId:u,index:v,items:l},...n}),[u,n,v,l]),y=h.useMemo(()=>l.slice(l.indexOf(s)),[l,s]),{rect:N,node:G,isOver:J,setNodeRef:X}=f.useDroppable({id:s,data:S,disabled:I.droppable,resizeObserverConfig:{updateMeasurementsFor:y,...d}}),{active:T,activatorEvent:Q,activeNodeRect:W,attributes:Z,setNodeRef:_,listeners:ee,isDragging:z,over:te,setActivatorNodeRef:re,transform:ne}=f.useDraggable({id:s,data:S,attributes:{...ye,...o},disabled:I.draggable}),oe=f.useCombinedRefs(X,_),D=!!T,q=D&&!C&&L(g)&&L(x),P=!w&&z,Y=P&&q?ne:null,se=q?Y??(a??m)({rects:R,activeNodeRect:W,activeIndex:g,overIndex:x,index:v}):null,E=L(g)&&L(x)?i({id:s,items:l,activeIndex:g,overIndex:x}):v,A=T?.id,b=h.useRef({activeId:A,items:l,newIndex:E,containerId:u}),ie=l!==b.current.items,F=t({active:T,containerId:u,isDragging:z,isSorting:D,id:s,index:v,items:l,newIndex:b.current.newIndex,previousItems:b.current.items,previousContainerId:b.current.containerId,transition:c,wasDragging:b.current.activeId!=null}),k=Ce({disabled:!F,index:v,node:G,rect:N});return h.useEffect(()=>{D&&b.current.newIndex!==E&&(b.current.newIndex=E),u!==b.current.containerId&&(b.current.containerId=u),l!==b.current.items&&(b.current.items=l)},[D,E,u,l]),h.useEffect(()=>{if(A===b.current.activeId)return;if(A!=null&&b.current.activeId==null){b.current.activeId=A;return}const ce=setTimeout(()=>{b.current.activeId=A},50);return()=>clearTimeout(ce)},[A]),{active:T,activeIndex:g,attributes:Z,data:S,rect:N,index:v,newIndex:E,items:l,isOver:J,isSorting:D,isDragging:z,listeners:ee,node:G,overIndex:x,over:te,setNodeRef:oe,setActivatorNodeRef:re,setDroppableNodeRef:X,setDraggableNodeRef:_,transform:k??se,transition:ae()};function ae(){if(k||ie&&b.current.newIndex===v)return me;if(!(P&&!f.isKeyboardEvent(Q)||!c)&&(D||F))return f.CSS.Transition.toString({...c,property:H})}}function we(e,t){var o,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(o=e?.draggable)!=null?o:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}function M(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Se=[f.KeyboardCode.Down,f.KeyboardCode.Right,f.KeyboardCode.Up,f.KeyboardCode.Left],De=(e,t)=>{let{context:{active:o,collisionRect:r,droppableRects:n,droppableContainers:i,over:s,scrollableAncestors:a}}=t;if(Se.includes(e.code)){if(e.preventDefault(),!o||!r)return;const d=[];i.getEnabled().forEach(u=>{if(!u||u!=null&&u.disabled)return;const g=n.get(u.id);if(g)switch(e.code){case f.KeyboardCode.Down:r.top<g.top&&d.push(u);break;case f.KeyboardCode.Up:r.top>g.top&&d.push(u);break;case f.KeyboardCode.Left:r.left>g.left&&d.push(u);break;case f.KeyboardCode.Right:r.left<g.left&&d.push(u);break}});const c=f.closestCorners({collisionRect:r,droppableRects:n,droppableContainers:d});let l=f.getFirstCollision(c,"id");if(l===s?.id&&c.length>1&&(l=c[1].id),l!=null){const u=i.get(o.id),g=i.get(l),p=g?n.get(g.id):null,C=g?.node.current;if(C&&p&&u&&g){const x=f.getScrollableAncestors(C).some((y,N)=>a[N]!==y),w=V(u,g),m=Ae(u,g),I=x||!w?{x:0,y:0}:{x:m?r.width-p.width:0,y:m?r.height-p.height:0},v={x:p.left,y:p.top};return I.x&&I.y?v:f.subtract(v,I)}}}};function V(e,t){return!M(e)||!M(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Ae(e,t){return!M(e)||!M(t)||!V(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}exports.SortableContext=ve;exports.arrayMove=$;exports.horizontalListSortingStrategy=fe;exports.sortableKeyboardCoordinates=De;exports.useSortable=Re;exports.verticalListSortingStrategy=pe;
|
|
@@ -1,477 +0,0 @@
|
|
|
1
|
-
import q, { useMemo as _, useRef as X, useEffect as k, useContext as pe, useState as be } from "react";
|
|
2
|
-
import { u as ve, a as he, b as B, c as xe, d as Ie, e as me, i as we, C as H, K as m, f as ye, g as Re, h as Ce, s as Se, j as De } from "./EzContextMenu-BSA_B6Pr.js";
|
|
3
|
-
function V(e, t, o) {
|
|
4
|
-
const r = e.slice();
|
|
5
|
-
return r.splice(o < 0 ? r.length + o : o, 0, r.splice(t, 1)[0]), r;
|
|
6
|
-
}
|
|
7
|
-
function Ae(e, t) {
|
|
8
|
-
return e.reduce((o, r, n) => {
|
|
9
|
-
const i = t.get(r);
|
|
10
|
-
return i && (o[n] = i), o;
|
|
11
|
-
}, Array(e.length));
|
|
12
|
-
}
|
|
13
|
-
function O(e) {
|
|
14
|
-
return e !== null && e >= 0;
|
|
15
|
-
}
|
|
16
|
-
function Te(e, t) {
|
|
17
|
-
if (e === t)
|
|
18
|
-
return !0;
|
|
19
|
-
if (e.length !== t.length)
|
|
20
|
-
return !1;
|
|
21
|
-
for (let o = 0; o < e.length; o++)
|
|
22
|
-
if (e[o] !== t[o])
|
|
23
|
-
return !1;
|
|
24
|
-
return !0;
|
|
25
|
-
}
|
|
26
|
-
function Ne(e) {
|
|
27
|
-
return typeof e == "boolean" ? {
|
|
28
|
-
draggable: e,
|
|
29
|
-
droppable: e
|
|
30
|
-
} : e;
|
|
31
|
-
}
|
|
32
|
-
const E = {
|
|
33
|
-
scaleX: 1,
|
|
34
|
-
scaleY: 1
|
|
35
|
-
}, Me = (e) => {
|
|
36
|
-
var t;
|
|
37
|
-
let {
|
|
38
|
-
rects: o,
|
|
39
|
-
activeNodeRect: r,
|
|
40
|
-
activeIndex: n,
|
|
41
|
-
overIndex: i,
|
|
42
|
-
index: s
|
|
43
|
-
} = e;
|
|
44
|
-
const a = (t = o[n]) != null ? t : r;
|
|
45
|
-
if (!a)
|
|
46
|
-
return null;
|
|
47
|
-
const d = Oe(o, s, n);
|
|
48
|
-
if (s === n) {
|
|
49
|
-
const c = o[i];
|
|
50
|
-
return c ? {
|
|
51
|
-
x: n < i ? c.left + c.width - (a.left + a.width) : c.left - a.left,
|
|
52
|
-
y: 0,
|
|
53
|
-
...E
|
|
54
|
-
} : null;
|
|
55
|
-
}
|
|
56
|
-
return s > n && s <= i ? {
|
|
57
|
-
x: -a.width - d,
|
|
58
|
-
y: 0,
|
|
59
|
-
...E
|
|
60
|
-
} : s < n && s >= i ? {
|
|
61
|
-
x: a.width + d,
|
|
62
|
-
y: 0,
|
|
63
|
-
...E
|
|
64
|
-
} : {
|
|
65
|
-
x: 0,
|
|
66
|
-
y: 0,
|
|
67
|
-
...E
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
function Oe(e, t, o) {
|
|
71
|
-
const r = e[t], n = e[t - 1], i = e[t + 1];
|
|
72
|
-
return !r || !n && !i ? 0 : o < t ? n ? r.left - (n.left + n.width) : i.left - (r.left + r.width) : i ? i.left - (r.left + r.width) : r.left - (n.left + n.width);
|
|
73
|
-
}
|
|
74
|
-
const J = (e) => {
|
|
75
|
-
let {
|
|
76
|
-
rects: t,
|
|
77
|
-
activeIndex: o,
|
|
78
|
-
overIndex: r,
|
|
79
|
-
index: n
|
|
80
|
-
} = e;
|
|
81
|
-
const i = V(t, r, o), s = t[n], a = i[n];
|
|
82
|
-
return !a || !s ? null : {
|
|
83
|
-
x: a.left - s.left,
|
|
84
|
-
y: a.top - s.top,
|
|
85
|
-
scaleX: a.width / s.width,
|
|
86
|
-
scaleY: a.height / s.height
|
|
87
|
-
};
|
|
88
|
-
}, L = {
|
|
89
|
-
scaleX: 1,
|
|
90
|
-
scaleY: 1
|
|
91
|
-
}, Ue = (e) => {
|
|
92
|
-
var t;
|
|
93
|
-
let {
|
|
94
|
-
activeIndex: o,
|
|
95
|
-
activeNodeRect: r,
|
|
96
|
-
index: n,
|
|
97
|
-
rects: i,
|
|
98
|
-
overIndex: s
|
|
99
|
-
} = e;
|
|
100
|
-
const a = (t = i[o]) != null ? t : r;
|
|
101
|
-
if (!a)
|
|
102
|
-
return null;
|
|
103
|
-
if (n === o) {
|
|
104
|
-
const c = i[s];
|
|
105
|
-
return c ? {
|
|
106
|
-
x: 0,
|
|
107
|
-
y: o < s ? c.top + c.height - (a.top + a.height) : c.top - a.top,
|
|
108
|
-
...L
|
|
109
|
-
} : null;
|
|
110
|
-
}
|
|
111
|
-
const d = Ee(i, n, o);
|
|
112
|
-
return n > o && n <= s ? {
|
|
113
|
-
x: 0,
|
|
114
|
-
y: -a.height - d,
|
|
115
|
-
...L
|
|
116
|
-
} : n < o && n >= s ? {
|
|
117
|
-
x: 0,
|
|
118
|
-
y: a.height + d,
|
|
119
|
-
...L
|
|
120
|
-
} : {
|
|
121
|
-
x: 0,
|
|
122
|
-
y: 0,
|
|
123
|
-
...L
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
function Ee(e, t, o) {
|
|
127
|
-
const r = e[t], n = e[t - 1], i = e[t + 1];
|
|
128
|
-
return r ? o < t ? n ? r.top - (n.top + n.height) : i ? i.top - (r.top + r.height) : 0 : i ? i.top - (r.top + r.height) : n ? r.top - (n.top + n.height) : 0 : 0;
|
|
129
|
-
}
|
|
130
|
-
const Q = "Sortable", W = /* @__PURE__ */ q.createContext({
|
|
131
|
-
activeIndex: -1,
|
|
132
|
-
containerId: Q,
|
|
133
|
-
disableTransforms: !1,
|
|
134
|
-
items: [],
|
|
135
|
-
overIndex: -1,
|
|
136
|
-
useDragOverlay: !1,
|
|
137
|
-
sortedRects: [],
|
|
138
|
-
strategy: J,
|
|
139
|
-
disabled: {
|
|
140
|
-
draggable: !1,
|
|
141
|
-
droppable: !1
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
function qe(e) {
|
|
145
|
-
let {
|
|
146
|
-
children: t,
|
|
147
|
-
id: o,
|
|
148
|
-
items: r,
|
|
149
|
-
strategy: n = J,
|
|
150
|
-
disabled: i = !1
|
|
151
|
-
} = e;
|
|
152
|
-
const {
|
|
153
|
-
active: s,
|
|
154
|
-
dragOverlay: a,
|
|
155
|
-
droppableRects: d,
|
|
156
|
-
over: c,
|
|
157
|
-
measureDroppableContainers: l
|
|
158
|
-
} = ve(), u = he(Q, o), f = a.rect !== null, g = _(() => r.map((I) => typeof I == "object" && "id" in I ? I.id : I), [r]), w = s != null, y = s ? g.indexOf(s.id) : -1, v = c ? g.indexOf(c.id) : -1, R = X(g), x = !Te(g, R.current), h = v !== -1 && y === -1 || x, b = Ne(i);
|
|
159
|
-
B(() => {
|
|
160
|
-
x && w && l(g);
|
|
161
|
-
}, [x, g, w, l]), k(() => {
|
|
162
|
-
R.current = g;
|
|
163
|
-
}, [g]);
|
|
164
|
-
const C = _(
|
|
165
|
-
() => ({
|
|
166
|
-
activeIndex: y,
|
|
167
|
-
containerId: u,
|
|
168
|
-
disabled: b,
|
|
169
|
-
disableTransforms: h,
|
|
170
|
-
items: g,
|
|
171
|
-
overIndex: v,
|
|
172
|
-
useDragOverlay: f,
|
|
173
|
-
sortedRects: Ae(g, d),
|
|
174
|
-
strategy: n
|
|
175
|
-
}),
|
|
176
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
177
|
-
[y, u, b.draggable, b.droppable, h, g, v, d, f, n]
|
|
178
|
-
);
|
|
179
|
-
return q.createElement(W.Provider, {
|
|
180
|
-
value: C
|
|
181
|
-
}, t);
|
|
182
|
-
}
|
|
183
|
-
const Le = (e) => {
|
|
184
|
-
let {
|
|
185
|
-
id: t,
|
|
186
|
-
items: o,
|
|
187
|
-
activeIndex: r,
|
|
188
|
-
overIndex: n
|
|
189
|
-
} = e;
|
|
190
|
-
return V(o, r, n).indexOf(t);
|
|
191
|
-
}, _e = (e) => {
|
|
192
|
-
let {
|
|
193
|
-
containerId: t,
|
|
194
|
-
isSorting: o,
|
|
195
|
-
wasDragging: r,
|
|
196
|
-
index: n,
|
|
197
|
-
items: i,
|
|
198
|
-
newIndex: s,
|
|
199
|
-
previousItems: a,
|
|
200
|
-
previousContainerId: d,
|
|
201
|
-
transition: c
|
|
202
|
-
} = e;
|
|
203
|
-
return !c || !r || a !== i && n === s ? !1 : o ? !0 : s !== n && t === d;
|
|
204
|
-
}, ke = {
|
|
205
|
-
duration: 200,
|
|
206
|
-
easing: "ease"
|
|
207
|
-
}, Z = "transform", $e = /* @__PURE__ */ H.Transition.toString({
|
|
208
|
-
property: Z,
|
|
209
|
-
duration: 0,
|
|
210
|
-
easing: "linear"
|
|
211
|
-
}), ze = {
|
|
212
|
-
roleDescription: "sortable"
|
|
213
|
-
};
|
|
214
|
-
function Ge(e) {
|
|
215
|
-
let {
|
|
216
|
-
disabled: t,
|
|
217
|
-
index: o,
|
|
218
|
-
node: r,
|
|
219
|
-
rect: n
|
|
220
|
-
} = e;
|
|
221
|
-
const [i, s] = be(null), a = X(o);
|
|
222
|
-
return B(() => {
|
|
223
|
-
if (!t && o !== a.current && r.current) {
|
|
224
|
-
const d = n.current;
|
|
225
|
-
if (d) {
|
|
226
|
-
const c = De(r.current, {
|
|
227
|
-
ignoreTransform: !0
|
|
228
|
-
}), l = {
|
|
229
|
-
x: d.left - c.left,
|
|
230
|
-
y: d.top - c.top,
|
|
231
|
-
scaleX: d.width / c.width,
|
|
232
|
-
scaleY: d.height / c.height
|
|
233
|
-
};
|
|
234
|
-
(l.x || l.y) && s(l);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
o !== a.current && (a.current = o);
|
|
238
|
-
}, [t, o, r, n]), k(() => {
|
|
239
|
-
i && s(null);
|
|
240
|
-
}, [i]), i;
|
|
241
|
-
}
|
|
242
|
-
function Be(e) {
|
|
243
|
-
let {
|
|
244
|
-
animateLayoutChanges: t = _e,
|
|
245
|
-
attributes: o,
|
|
246
|
-
disabled: r,
|
|
247
|
-
data: n,
|
|
248
|
-
getNewIndex: i = Le,
|
|
249
|
-
id: s,
|
|
250
|
-
strategy: a,
|
|
251
|
-
resizeObserverConfig: d,
|
|
252
|
-
transition: c = ke
|
|
253
|
-
} = e;
|
|
254
|
-
const {
|
|
255
|
-
items: l,
|
|
256
|
-
containerId: u,
|
|
257
|
-
activeIndex: f,
|
|
258
|
-
disabled: g,
|
|
259
|
-
disableTransforms: w,
|
|
260
|
-
sortedRects: y,
|
|
261
|
-
overIndex: v,
|
|
262
|
-
useDragOverlay: R,
|
|
263
|
-
strategy: x
|
|
264
|
-
} = pe(W), h = Xe(r, g), b = l.indexOf(s), C = _(() => ({
|
|
265
|
-
sortable: {
|
|
266
|
-
containerId: u,
|
|
267
|
-
index: b,
|
|
268
|
-
items: l
|
|
269
|
-
},
|
|
270
|
-
...n
|
|
271
|
-
}), [u, n, b, l]), I = _(() => l.slice(l.indexOf(s)), [l, s]), {
|
|
272
|
-
rect: N,
|
|
273
|
-
node: K,
|
|
274
|
-
isOver: te,
|
|
275
|
-
setNodeRef: P
|
|
276
|
-
} = xe({
|
|
277
|
-
id: s,
|
|
278
|
-
data: C,
|
|
279
|
-
disabled: h.droppable,
|
|
280
|
-
resizeObserverConfig: {
|
|
281
|
-
updateMeasurementsFor: I,
|
|
282
|
-
...d
|
|
283
|
-
}
|
|
284
|
-
}), {
|
|
285
|
-
active: A,
|
|
286
|
-
activatorEvent: re,
|
|
287
|
-
activeNodeRect: ne,
|
|
288
|
-
attributes: oe,
|
|
289
|
-
setNodeRef: Y,
|
|
290
|
-
listeners: se,
|
|
291
|
-
isDragging: z,
|
|
292
|
-
over: ie,
|
|
293
|
-
setActivatorNodeRef: ae,
|
|
294
|
-
transform: ce
|
|
295
|
-
} = Ie({
|
|
296
|
-
id: s,
|
|
297
|
-
data: C,
|
|
298
|
-
attributes: {
|
|
299
|
-
...ze,
|
|
300
|
-
...o
|
|
301
|
-
},
|
|
302
|
-
disabled: h.draggable
|
|
303
|
-
}), le = me(P, Y), S = !!A, j = S && !w && O(f) && O(v), F = !R && z, M = F && j ? ce : null, de = j ? M ?? (a ?? x)({
|
|
304
|
-
rects: y,
|
|
305
|
-
activeNodeRect: ne,
|
|
306
|
-
activeIndex: f,
|
|
307
|
-
overIndex: v,
|
|
308
|
-
index: b
|
|
309
|
-
}) : null, T = O(f) && O(v) ? i({
|
|
310
|
-
id: s,
|
|
311
|
-
items: l,
|
|
312
|
-
activeIndex: f,
|
|
313
|
-
overIndex: v
|
|
314
|
-
}) : b, D = A?.id, p = X({
|
|
315
|
-
activeId: D,
|
|
316
|
-
items: l,
|
|
317
|
-
newIndex: T,
|
|
318
|
-
containerId: u
|
|
319
|
-
}), ue = l !== p.current.items, U = t({
|
|
320
|
-
active: A,
|
|
321
|
-
containerId: u,
|
|
322
|
-
isDragging: z,
|
|
323
|
-
isSorting: S,
|
|
324
|
-
id: s,
|
|
325
|
-
index: b,
|
|
326
|
-
items: l,
|
|
327
|
-
newIndex: p.current.newIndex,
|
|
328
|
-
previousItems: p.current.items,
|
|
329
|
-
previousContainerId: p.current.containerId,
|
|
330
|
-
transition: c,
|
|
331
|
-
wasDragging: p.current.activeId != null
|
|
332
|
-
}), G = Ge({
|
|
333
|
-
disabled: !U,
|
|
334
|
-
index: b,
|
|
335
|
-
node: K,
|
|
336
|
-
rect: N
|
|
337
|
-
});
|
|
338
|
-
return k(() => {
|
|
339
|
-
S && p.current.newIndex !== T && (p.current.newIndex = T), u !== p.current.containerId && (p.current.containerId = u), l !== p.current.items && (p.current.items = l);
|
|
340
|
-
}, [S, T, u, l]), k(() => {
|
|
341
|
-
if (D === p.current.activeId)
|
|
342
|
-
return;
|
|
343
|
-
if (D != null && p.current.activeId == null) {
|
|
344
|
-
p.current.activeId = D;
|
|
345
|
-
return;
|
|
346
|
-
}
|
|
347
|
-
const ge = setTimeout(() => {
|
|
348
|
-
p.current.activeId = D;
|
|
349
|
-
}, 50);
|
|
350
|
-
return () => clearTimeout(ge);
|
|
351
|
-
}, [D]), {
|
|
352
|
-
active: A,
|
|
353
|
-
activeIndex: f,
|
|
354
|
-
attributes: oe,
|
|
355
|
-
data: C,
|
|
356
|
-
rect: N,
|
|
357
|
-
index: b,
|
|
358
|
-
newIndex: T,
|
|
359
|
-
items: l,
|
|
360
|
-
isOver: te,
|
|
361
|
-
isSorting: S,
|
|
362
|
-
isDragging: z,
|
|
363
|
-
listeners: se,
|
|
364
|
-
node: K,
|
|
365
|
-
overIndex: v,
|
|
366
|
-
over: ie,
|
|
367
|
-
setNodeRef: le,
|
|
368
|
-
setActivatorNodeRef: ae,
|
|
369
|
-
setDroppableNodeRef: P,
|
|
370
|
-
setDraggableNodeRef: Y,
|
|
371
|
-
transform: G ?? de,
|
|
372
|
-
transition: fe()
|
|
373
|
-
};
|
|
374
|
-
function fe() {
|
|
375
|
-
if (
|
|
376
|
-
// Temporarily disable transitions for a single frame to set up derived transforms
|
|
377
|
-
G || // Or to prevent items jumping to back to their "new" position when items change
|
|
378
|
-
ue && p.current.newIndex === b
|
|
379
|
-
)
|
|
380
|
-
return $e;
|
|
381
|
-
if (!(F && !we(re) || !c) && (S || U))
|
|
382
|
-
return H.Transition.toString({
|
|
383
|
-
...c,
|
|
384
|
-
property: Z
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
function Xe(e, t) {
|
|
389
|
-
var o, r;
|
|
390
|
-
return typeof e == "boolean" ? {
|
|
391
|
-
draggable: e,
|
|
392
|
-
// Backwards compatibility
|
|
393
|
-
droppable: !1
|
|
394
|
-
} : {
|
|
395
|
-
draggable: (o = e?.draggable) != null ? o : t.draggable,
|
|
396
|
-
droppable: (r = e?.droppable) != null ? r : t.droppable
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
function $(e) {
|
|
400
|
-
if (!e)
|
|
401
|
-
return !1;
|
|
402
|
-
const t = e.data.current;
|
|
403
|
-
return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
|
|
404
|
-
}
|
|
405
|
-
const Ke = [m.Down, m.Right, m.Up, m.Left], He = (e, t) => {
|
|
406
|
-
let {
|
|
407
|
-
context: {
|
|
408
|
-
active: o,
|
|
409
|
-
collisionRect: r,
|
|
410
|
-
droppableRects: n,
|
|
411
|
-
droppableContainers: i,
|
|
412
|
-
over: s,
|
|
413
|
-
scrollableAncestors: a
|
|
414
|
-
}
|
|
415
|
-
} = t;
|
|
416
|
-
if (Ke.includes(e.code)) {
|
|
417
|
-
if (e.preventDefault(), !o || !r)
|
|
418
|
-
return;
|
|
419
|
-
const d = [];
|
|
420
|
-
i.getEnabled().forEach((u) => {
|
|
421
|
-
if (!u || u != null && u.disabled)
|
|
422
|
-
return;
|
|
423
|
-
const f = n.get(u.id);
|
|
424
|
-
if (f)
|
|
425
|
-
switch (e.code) {
|
|
426
|
-
case m.Down:
|
|
427
|
-
r.top < f.top && d.push(u);
|
|
428
|
-
break;
|
|
429
|
-
case m.Up:
|
|
430
|
-
r.top > f.top && d.push(u);
|
|
431
|
-
break;
|
|
432
|
-
case m.Left:
|
|
433
|
-
r.left > f.left && d.push(u);
|
|
434
|
-
break;
|
|
435
|
-
case m.Right:
|
|
436
|
-
r.left < f.left && d.push(u);
|
|
437
|
-
break;
|
|
438
|
-
}
|
|
439
|
-
});
|
|
440
|
-
const c = ye({
|
|
441
|
-
collisionRect: r,
|
|
442
|
-
droppableRects: n,
|
|
443
|
-
droppableContainers: d
|
|
444
|
-
});
|
|
445
|
-
let l = Re(c, "id");
|
|
446
|
-
if (l === s?.id && c.length > 1 && (l = c[1].id), l != null) {
|
|
447
|
-
const u = i.get(o.id), f = i.get(l), g = f ? n.get(f.id) : null, w = f?.node.current;
|
|
448
|
-
if (w && g && u && f) {
|
|
449
|
-
const v = Ce(w).some((I, N) => a[N] !== I), R = ee(u, f), x = Pe(u, f), h = v || !R ? {
|
|
450
|
-
x: 0,
|
|
451
|
-
y: 0
|
|
452
|
-
} : {
|
|
453
|
-
x: x ? r.width - g.width : 0,
|
|
454
|
-
y: x ? r.height - g.height : 0
|
|
455
|
-
}, b = {
|
|
456
|
-
x: g.left,
|
|
457
|
-
y: g.top
|
|
458
|
-
};
|
|
459
|
-
return h.x && h.y ? b : Se(b, h);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
function ee(e, t) {
|
|
465
|
-
return !$(e) || !$(t) ? !1 : e.data.current.sortable.containerId === t.data.current.sortable.containerId;
|
|
466
|
-
}
|
|
467
|
-
function Pe(e, t) {
|
|
468
|
-
return !$(e) || !$(t) || !ee(e, t) ? !1 : e.data.current.sortable.index < t.data.current.sortable.index;
|
|
469
|
-
}
|
|
470
|
-
export {
|
|
471
|
-
qe as S,
|
|
472
|
-
V as a,
|
|
473
|
-
Me as h,
|
|
474
|
-
He as s,
|
|
475
|
-
Be as u,
|
|
476
|
-
Ue as v
|
|
477
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const v=require("./EzErrorBoundary-CEdz_hDo.cjs"),p=require("react/jsx-runtime"),M=require("react"),A=require("./useInitCoreServices-CwXv2p4S.cjs");function oe(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=oe(M);var ne=Symbol.for("react.lazy"),_=s[" use ".trim().toString()];function re(e){return typeof e=="object"&&e!==null&&"then"in e}function $(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ne&&"_payload"in e&&re(e._payload)}function B(e){const o=se(e),t=s.forwardRef((n,r)=>{let{children:i,...l}=n;$(i)&&typeof _=="function"&&(i=_(i._payload));const d=s.Children.toArray(i),a=d.find(ae);if(a){const c=a.props.children,u=d.map(f=>f===a?s.Children.count(c)>1?s.Children.only(null):s.isValidElement(c)?c.props.children:null:f);return p.jsx(o,{...l,ref:r,children:s.isValidElement(c)?s.cloneElement(c,void 0,u):null})}return p.jsx(o,{...l,ref:r,children:i})});return t.displayName=`${e}.Slot`,t}var F=B("Slot");function se(e){const o=s.forwardRef((t,n)=>{let{children:r,...i}=t;if($(r)&&typeof _=="function"&&(r=_(r._payload)),s.isValidElement(r)){const l=ce(r),d=le(i,r.props);return r.type!==s.Fragment&&(d.ref=n?v.composeRefs(n,l):l),s.cloneElement(r,d)}return s.Children.count(r)>1?s.Children.only(null):null});return o.displayName=`${e}.SlotClone`,o}var ie=Symbol("radix.slottable");function ae(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ie}function le(e,o){const t={...o};for(const n in o){const r=e[n],i=o[n];/^on[A-Z]/.test(n)?r&&i?t[n]=(...d)=>{const a=i(...d);return r(...d),a}:r&&(t[n]=r):n==="style"?t[n]={...r,...i}:n==="className"&&(t[n]=[r,i].filter(Boolean).join(" "))}return{...e,...t}}function ce(e){let o=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?e.ref:(o=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}const H=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,V=A.clsx,z=(e,o)=>t=>{var n;if(o?.variants==null)return V(e,t?.class,t?.className);const{variants:r,defaultVariants:i}=o,l=Object.keys(r).map(c=>{const u=t?.[c],f=i?.[c];if(u===null)return null;const y=H(u)||H(f);return r[c][y]}),d=t&&Object.entries(t).reduce((c,u)=>{let[f,y]=u;return y===void 0||(c[f]=y),c},{}),a=o==null||(n=o.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:f,className:y,...m}=u;return Object.entries(m).every(g=>{let[x,h]=g;return Array.isArray(h)?h.includes({...i,...d}[x]):{...i,...d}[x]===h})?[...c,f,y]:c},[]);return V(e,l,a,t?.class,t?.className)};const ue=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],de=v.createLucideIcon("x",ue),G=z("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),W=M.forwardRef(({className:e,variant:o,size:t,asChild:n=!1,isLoading:r=!1,children:i,disabled:l,...d},a)=>{const c=n?F:"button";return p.jsx(c,{className:A.cn(G({variant:o,size:t,className:e})),ref:a,disabled:r||l,...d,children:n?i:p.jsxs(p.Fragment,{children:[r&&p.jsx(v.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),i]})})});W.displayName="Button";var fe=Symbol("radix.slottable");function pe(e){const o=({children:t})=>p.jsx(p.Fragment,{children:t});return o.displayName=`${e}.Slottable`,o.__radixId=fe,o}var ve=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ye="VisuallyHidden",Y=s.forwardRef((e,o)=>p.jsx(v.Primitive.span,{...e,ref:o,style:{...ve,...e.style}}));Y.displayName=ye;var me=Y,[O]=v.createContextScope("Tooltip",[v.createPopperScope]),S=v.createPopperScope(),q="TooltipProvider",he=700,N="tooltip.open",[ge,D]=O(q),U=e=>{const{__scopeTooltip:o,delayDuration:t=he,skipDelayDuration:n=300,disableHoverableContent:r=!1,children:i}=e,l=s.useRef(!0),d=s.useRef(!1),a=s.useRef(0);return s.useEffect(()=>{const c=a.current;return()=>window.clearTimeout(c)},[]),p.jsx(ge,{scope:o,isOpenDelayedRef:l,delayDuration:t,onOpen:s.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:s.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,n)},[n]),isPointerInTransitRef:d,onPointerInTransitChange:s.useCallback(c=>{d.current=c},[]),disableHoverableContent:r,children:i})};U.displayName=q;var R="Tooltip",[xe,j]=O(R),X=e=>{const{__scopeTooltip:o,children:t,open:n,defaultOpen:r,onOpenChange:i,disableHoverableContent:l,delayDuration:d}=e,a=D(R,e.__scopeTooltip),c=S(o),[u,f]=s.useState(null),y=v.useId(),m=s.useRef(0),g=l??a.disableHoverableContent,x=d??a.delayDuration,h=s.useRef(!1),[T,b]=v.useControllableState({prop:n,defaultProp:r??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(N))):a.onClose(),i?.(I)},caller:R}),w=s.useMemo(()=>T?h.current?"delayed-open":"instant-open":"closed",[T]),E=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,h.current=!1,b(!0)},[b]),P=s.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),k=s.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{h.current=!0,b(!0),m.current=0},x)},[x,b]);return s.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),p.jsx(v.Root2,{...c,children:p.jsx(xe,{scope:o,contentId:y,open:T,stateAttribute:w,trigger:u,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{a.isOpenDelayedRef.current?k():E()},[a.isOpenDelayedRef,k,E]),onTriggerLeave:s.useCallback(()=>{g?P():(window.clearTimeout(m.current),m.current=0)},[P,g]),onOpen:E,onClose:P,disableHoverableContent:g,children:t})})};X.displayName=R;var L="TooltipTrigger",K=s.forwardRef((e,o)=>{const{__scopeTooltip:t,...n}=e,r=j(L,t),i=D(L,t),l=S(t),d=s.useRef(null),a=v.useComposedRefs(o,d,r.onTriggerChange),c=s.useRef(!1),u=s.useRef(!1),f=s.useCallback(()=>c.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(v.Anchor,{asChild:!0,...l,children:p.jsx(v.Primitive.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...n,ref:a,onPointerMove:v.composeEventHandlers(e.onPointerMove,y=>{y.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:v.composeEventHandlers(e.onPointerDown,()=>{r.open&&r.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:v.composeEventHandlers(e.onFocus,()=>{c.current||r.onOpen()}),onBlur:v.composeEventHandlers(e.onBlur,r.onClose),onClick:v.composeEventHandlers(e.onClick,r.onClose)})})});K.displayName=L;var be="TooltipPortal",[Me,Te]=O(be,{forceMount:void 0}),C="TooltipContent",Z=s.forwardRef((e,o)=>{const t=Te(C,e.__scopeTooltip),{forceMount:n=t.forceMount,side:r="top",...i}=e,l=j(C,e.__scopeTooltip);return p.jsx(v.Presence,{present:n||l.open,children:l.disableHoverableContent?p.jsx(J,{side:r,...i,ref:o}):p.jsx(Ce,{side:r,...i,ref:o})})}),Ce=s.forwardRef((e,o)=>{const t=j(C,e.__scopeTooltip),n=D(C,e.__scopeTooltip),r=s.useRef(null),i=v.useComposedRefs(o,r),[l,d]=s.useState(null),{trigger:a,onClose:c}=t,u=r.current,{onPointerInTransitChange:f}=n,y=s.useCallback(()=>{d(null),f(!1)},[f]),m=s.useCallback((g,x)=>{const h=g.currentTarget,T={x:g.clientX,y:g.clientY},b=_e(T,h.getBoundingClientRect()),w=Oe(T,b),E=Se(x.getBoundingClientRect()),P=Ne([...w,...E]);d(P),f(!0)},[f]);return s.useEffect(()=>()=>y(),[y]),s.useEffect(()=>{if(a&&u){const g=h=>m(h,u),x=h=>m(h,a);return a.addEventListener("pointerleave",g),u.addEventListener("pointerleave",x),()=>{a.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",x)}}},[a,u,m,y]),s.useEffect(()=>{if(l){const g=x=>{const h=x.target,T={x:x.clientX,y:x.clientY},b=a?.contains(h)||u?.contains(h),w=!je(T,l);b?y():w&&(y(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[a,u,l,c,y]),p.jsx(J,{...e,ref:i})}),[we,Ee]=O(R,{isInside:!1}),Pe=pe("TooltipContent"),J=s.forwardRef((e,o)=>{const{__scopeTooltip:t,children:n,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:l,...d}=e,a=j(C,t),c=S(t),{onClose:u}=a;return s.useEffect(()=>(document.addEventListener(N,u),()=>document.removeEventListener(N,u)),[u]),s.useEffect(()=>{if(a.trigger){const f=y=>{y.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,u]),p.jsx(v.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:p.jsxs(v.Content,{"data-state":a.stateAttribute,...c,...d,ref:o,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(Pe,{children:n}),p.jsx(we,{scope:t,isInside:!0,children:p.jsx(me,{id:a.contentId,role:"tooltip",children:r||n})})]})})});Z.displayName=C;var Q="TooltipArrow",Re=s.forwardRef((e,o)=>{const{__scopeTooltip:t,...n}=e,r=S(t);return Ee(Q,t).isInside?null:p.jsx(v.Arrow,{...r,...n,ref:o})});Re.displayName=Q;function _e(e,o){const t=Math.abs(o.top-e.y),n=Math.abs(o.bottom-e.y),r=Math.abs(o.right-e.x),i=Math.abs(o.left-e.x);switch(Math.min(t,n,r,i)){case i:return"left";case r:return"right";case t:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Oe(e,o,t=5){const n=[];switch(o){case"top":n.push({x:e.x-t,y:e.y+t},{x:e.x+t,y:e.y+t});break;case"bottom":n.push({x:e.x-t,y:e.y-t},{x:e.x+t,y:e.y-t});break;case"left":n.push({x:e.x+t,y:e.y-t},{x:e.x+t,y:e.y+t});break;case"right":n.push({x:e.x-t,y:e.y-t},{x:e.x-t,y:e.y+t});break}return n}function Se(e){const{top:o,right:t,bottom:n,left:r}=e;return[{x:r,y:o},{x:t,y:o},{x:t,y:n},{x:r,y:n}]}function je(e,o){const{x:t,y:n}=e;let r=!1;for(let i=0,l=o.length-1;i<o.length;l=i++){const d=o[i],a=o[l],c=d.x,u=d.y,f=a.x,y=a.y;u>n!=y>n&&t<(f-c)*(n-u)/(y-u)+c&&(r=!r)}return r}function Ne(e){const o=e.slice();return o.sort((t,n)=>t.x<n.x?-1:t.x>n.x?1:t.y<n.y?-1:t.y>n.y?1:0),Le(o)}function Le(e){if(e.length<=1)return e.slice();const o=[];for(let n=0;n<e.length;n++){const r=e[n];for(;o.length>=2;){const i=o[o.length-1],l=o[o.length-2];if((i.x-l.x)*(r.y-l.y)>=(i.y-l.y)*(r.x-l.x))o.pop();else break}o.push(r)}o.pop();const t=[];for(let n=e.length-1;n>=0;n--){const r=e[n];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(r.y-l.y)>=(i.y-l.y)*(r.x-l.x))t.pop();else break}t.push(r)}return t.pop(),o.length===1&&t.length===1&&o[0].x===t[0].x&&o[0].y===t[0].y?o:o.concat(t)}var Ae=U,De=X,ke=K,ee=Z;const Ie=Ae,He=De,Ve=ke,te=s.forwardRef(({className:e,sideOffset:o=4,...t},n)=>p.jsx(ee,{ref:n,sideOffset:o,className:A.cn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));te.displayName=ee.displayName;exports.Button=W;exports.Slot=F;exports.Tooltip=He;exports.TooltipContent=te;exports.TooltipProvider=Ie;exports.TooltipTrigger=Ve;exports.X=de;exports.buttonVariants=G;exports.createSlot=B;exports.cva=z;
|