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
package/README.md
CHANGED
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
# ezUX
|
|
1
|
+
# ezUX | Premium React UI Kit for Enterprise Dashboards
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
>
|
|
3
|
+
> **High-performance React components** for building modern enterprise applications. Powered by **TanStack** (Table, Query, Virtual) and built with **TypeScript**.
|
|
4
|
+
>
|
|
5
5
|
> 🔗 **[View ezux-showcase on GitHub](https://github.com/zee24-cmd/ezux-showcase)** | 🌐 **[Live Showcase](https://ezux-showcase.vercel.app)**
|
|
6
|
+
|
|
6
7
|

|
|
7
8
|

|
|
8
9
|

|
|
9
10
|
|
|
10
|
-
##
|
|
11
|
+
## Why ezUX?
|
|
12
|
+
|
|
13
|
+
ezUX is a comprehensive **component library** designed for developers who need to build complex **enterprise dashboards** quickly. It focuses on performance, type-safety, and flexibility by being **TanStack-first**.
|
|
14
|
+
|
|
15
|
+
## Key Features
|
|
16
|
+
|
|
17
|
+
- **TanStack First Architecture**: Leverage the power of **TanStack Table**, **TanStack Query**, and **TanStack Virtual** for maximum performance and flexible data handling.
|
|
18
|
+
- **Enterprise-Grade Components**: Specialized components for complex UI needs: **Scheduler**, **Kanban Board**, **Pivot Table**, and **Virtualized Tree View**.
|
|
19
|
+
- **Full TypeScript Support**: 100% type-safe components with exported types for a seamless developer experience.
|
|
20
|
+
- **High-Performance Data Grid**: Handle 100k+ rows with ease using integrated row and column virtualization.
|
|
21
|
+
- **Modern Styling**: Styled with **Tailwind CSS v4** and CSS variables for easy theming and dark mode support.
|
|
22
|
+
- **Accessibility (A11Y)**: Built with WAI-ARIA patterns to ensure your **dashboard** is accessible to everyone.
|
|
11
23
|
|
|
12
|
-
|
|
13
|
-
- **Enterprise Ready**: Includes complex components like Scheduler, Kanban, Pivot Table, and Virtualized Trees out of the box.
|
|
14
|
-
- **Type Safe**: Written in TypeScript with full type definitions.
|
|
15
|
-
- **Themable**: CSS-variable based theming system with dark mode support.
|
|
16
|
-
- **Accessible**: Follows WAI-ARIA patterns for all interactive components.
|
|
24
|
+
## Core Components
|
|
17
25
|
|
|
18
|
-
|
|
26
|
+
- **EzTable**: High-performance **React Data Grid** with grouping, filtering, and pivot capabilities.
|
|
27
|
+
- **EzScheduler**: Interactive **Timeline Scheduler** with drag-and-drop and resource grouping.
|
|
28
|
+
- **EzKanban**: Advanced **Kanban Board** with swimlanes and timeline integration.
|
|
29
|
+
- **EzTreeView**: Efficient **Virtualized Tree** for handling deep nesting and large datasets.
|
|
30
|
+
- **EzSignature**: Type-safe electronic signature component with smooth canvas rendering and validation.
|
|
31
|
+
- **EzLayout**: Responsive orchestration engine for complex **enterprise UI** layouts.
|
|
19
32
|
|
|
20
|
-
- **EzTable**: High-performance data grid with grouping, filtering, and pivot capabilities.
|
|
21
|
-
- **EzScheduler**: Drag-and-drop timeline management with resource grouping.
|
|
22
|
-
- **EzKanban**: Trello-like board with swimlanes and timeline views.
|
|
23
|
-
- **EzTreeView**: Virtualized tree handling unlimited nesting.
|
|
24
|
-
- **EzLayout**: A fluid orchestration engine for complex interfaces.
|
|
25
33
|
|
|
26
34
|
## Prerequisites
|
|
27
35
|
|
|
@@ -54,6 +62,35 @@ function App() {
|
|
|
54
62
|
}
|
|
55
63
|
```
|
|
56
64
|
|
|
65
|
+
### Advanced Table Features
|
|
66
|
+
|
|
67
|
+
`EzTable` supports powerful features like grouping, filtering, and batch editing out of the box.
|
|
68
|
+
|
|
69
|
+
```tsx
|
|
70
|
+
import { EzTable, useEzTable } from 'ezux';
|
|
71
|
+
|
|
72
|
+
function UserDashboard() {
|
|
73
|
+
const table = useEzTable({
|
|
74
|
+
data: users,
|
|
75
|
+
columns: [
|
|
76
|
+
{ accessorKey: 'name', header: 'Name' },
|
|
77
|
+
{ accessorKey: 'role', header: 'Role', enableGrouping: true },
|
|
78
|
+
{ accessorKey: 'status', header: 'Status', enableColumnFilter: true },
|
|
79
|
+
],
|
|
80
|
+
enableGrouping: true,
|
|
81
|
+
enableFiltering: true,
|
|
82
|
+
editSettings: {
|
|
83
|
+
allowEditing: true,
|
|
84
|
+
mode: 'Batch',
|
|
85
|
+
primaryKey: 'id'
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
return <EzTable {...table} onBatchSave={(changes) => console.log(changes)} />;
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
|
|
57
94
|
## Documentation
|
|
58
95
|
|
|
59
96
|
Visit the [Live Showcase](https://ezux-showcase.vercel.app) for full documentation and interactive examples.
|
|
@@ -61,3 +98,9 @@ Visit the [Live Showcase](https://ezux-showcase.vercel.app) for full documentati
|
|
|
61
98
|
## License
|
|
62
99
|
|
|
63
100
|
MIT © [Zeeshan Sayed](https://github.com/ezux)
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
### Tags & Keywords
|
|
105
|
+
`react`, `components`, `table`, `scheduler`, `kanban`, `dashboard`, `enterprise`, `ui-kit`, `tanstack`, `typescript`, `react-components`, `data-grid`, `workflow-builder`, `scheduler-component`, `kanban-board`
|
|
106
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./EzProvider-L2qQMq-v.cjs"),t=require("./button-BBMwzUtG.cjs"),n=require("./Modal-BmX1C448.cjs"),r=require("./card-CPlRZxbq.cjs");let i=require("react");i=e.y(i,1);let a=require("react/jsx-runtime");var o=({isOpen:e,onClose:i,onConfirm:o,title:s,message:c,description:l})=>{let{t:u}=r.c();return(0,a.jsx)(n.t,{isOpen:e,onClose:i,title:s||u(`confirm_delete`)||`Confirm Delete`,size:`sm`,footer:(0,a.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,a.jsx)(t.t,{variant:`ghost`,onClick:i,children:u(`cancel`)||`Cancel`}),(0,a.jsx)(t.t,{variant:`destructive`,onClick:()=>{o(),i()},children:u(`delete`)||`Delete`})]}),children:(0,a.jsxs)(`div`,{className:`py-2`,children:[(0,a.jsx)(`p`,{children:c||u(`confirm_delete_message`)||`Are you sure you want to delete this item?`}),(l||u(`action_cannot_be_undone`))&&(0,a.jsx)(`p`,{className:`text-sm text-muted-foreground mt-2`,children:l||u(`action_cannot_be_undone`)||`This action cannot be undone.`})]})})};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { t as e } from "./button-CYyNwV8S.js";
|
|
2
|
+
import { t } from "./Modal-CrzpKyjK.js";
|
|
3
|
+
import { c as n } from "./card-ZUNxcdIM.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
|
+
//#region src/shared/components/DeleteConfirmationModal.tsx
|
|
7
|
+
var a = ({ isOpen: a, onClose: o, onConfirm: s, title: c, message: l, description: u }) => {
|
|
8
|
+
let { t: d } = n();
|
|
9
|
+
return /* @__PURE__ */ r(t, {
|
|
10
|
+
isOpen: a,
|
|
11
|
+
onClose: o,
|
|
12
|
+
title: c || d("confirm_delete") || "Confirm Delete",
|
|
13
|
+
size: "sm",
|
|
14
|
+
footer: /* @__PURE__ */ i("div", {
|
|
15
|
+
className: "flex justify-end gap-2",
|
|
16
|
+
children: [/* @__PURE__ */ r(e, {
|
|
17
|
+
variant: "ghost",
|
|
18
|
+
onClick: o,
|
|
19
|
+
children: d("cancel") || "Cancel"
|
|
20
|
+
}), /* @__PURE__ */ r(e, {
|
|
21
|
+
variant: "destructive",
|
|
22
|
+
onClick: () => {
|
|
23
|
+
s(), o();
|
|
24
|
+
},
|
|
25
|
+
children: d("delete") || "Delete"
|
|
26
|
+
})]
|
|
27
|
+
}),
|
|
28
|
+
children: /* @__PURE__ */ i("div", {
|
|
29
|
+
className: "py-2",
|
|
30
|
+
children: [/* @__PURE__ */ r("p", { children: l || d("confirm_delete_message") || "Are you sure you want to delete this item?" }), (u || d("action_cannot_be_undone")) && /* @__PURE__ */ r("p", {
|
|
31
|
+
className: "text-sm text-muted-foreground mt-2",
|
|
32
|
+
children: u || d("action_cannot_be_undone") || "This action cannot be undone."
|
|
33
|
+
})]
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { a as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./EzProvider-L2qQMq-v.cjs"),t=require("./EzErrorBoundary-d_2g-_EK.cjs");let n=require("react");n=e.y(n,1);let r=require("lucide-react"),i=require("react/jsx-runtime"),a=require("@tanstack/react-virtual"),o=require("@tanstack/virtual-core"),s=require("@radix-ui/react-context-menu");s=e.y(s,1);var c=class{name=`VirtualizationService`;virtualizers=new Map;createVirtualizer(e,t){let n=new o.Virtualizer({count:t.count,getScrollElement:t.getScrollElement,estimateSize:t.estimateSize,overscan:t.overscan??5,horizontal:t.horizontal??!1,scrollToFn:o.elementScroll,observeElementRect:(e,t)=>{let n=e.scrollElement;if(!n||n===window)return;let r=new ResizeObserver(e=>{t(e[0].contentRect)});return r.observe(n),()=>r.disconnect()},observeElementOffset:(e,t)=>{let n=e.scrollElement;if(!n)return;let r=()=>{t(n===window?window.scrollY:n.scrollTop,!0)};return n.addEventListener(`scroll`,r,{passive:!0}),t(n===window?window.scrollY:n.scrollTop,!1),()=>n.removeEventListener(`scroll`,r)}});return this.virtualizers.set(e,n),n}registerVirtualizer(e,t){this.virtualizers.set(e,t)}getVirtualizer(e){return this.virtualizers.get(e)}cleanup(){this.virtualizers.clear()}},l=r=>{let{rowCount:i,rowHeight:o=48,overscanCount:s=5,enableRowVirtualization:l=!0,columnCount:u=0,columnWidth:d=150,enableColumnVirtualization:f=!1,scrollMargin:p=0,scrollPaddingStart:m=0,scrollPaddingEnd:h=0,progressiveRendering:g=!1,prefetchDistance:_=5,adaptiveSizing:v=!1,languageDirection:y=`ltr`,debug:b=!1,customRangeExtractor:x,onScroll:S,onScrollStart:C,onScrollStop:w}=r,T=(0,n.useRef)(null),[E,D]=(0,n.useState)(g?1:s||_),O=(0,n.useRef)(null),k=(0,n.useRef)(null),A=(0,n.useRef)(!1),j=`lanugageDirection`;(0,n.useEffect)(()=>{if(!g)return;let e,t=()=>{D(1),clearTimeout(e),e=setTimeout(()=>{D(s||_)},150)},n=T.current;if(n)return n.addEventListener(`scroll`,t,{passive:!0}),()=>{n.removeEventListener(`scroll`,t),clearTimeout(e)}},[g,s,_]);let M=(0,n.useMemo)(()=>x||(e=>{let t=(0,a.defaultRangeExtractor)(e);return t.length===0&&e.count>0?[0]:t}),[x]),N=(0,n.useCallback)((e,t,n)=>{(0,a.elementScroll)(e,t,n)},[]),P=(0,a.useVirtualizer)((0,n.useMemo)(()=>({count:i,getScrollElement:()=>T.current,estimateSize:typeof o==`function`?o:()=>o,overscan:E,scrollMargin:p,scrollPaddingStart:m,scrollPaddingEnd:h,rangeExtractor:M,scrollToFn:N,measureElement:v?e=>e.getBoundingClientRect().height:void 0,[j]:y,onChange:e=>{let t=e.scrollOffset??0;k.current!==null&&cancelAnimationFrame(k.current),k.current=requestAnimationFrame(()=>{S?.(t),k.current=null}),e.isScrolling?A.current||(A.current=!0,C?.()):A.current&&(A.current=!1,w?.())}}),[i,o,E,v,p,m,h,M,N,y,S,C,w]));(0,n.useEffect)(()=>{b&&console.log(`[DEBUG_VIRTUAL] Virtualizer instance changed`)},[P,b]);let F=e.n(),I=(0,n.useMemo)(()=>t.i(F,`VirtualizationService`,()=>new c),[]);(0,n.useEffect)(()=>{r.id&&I&&I.registerVirtualizer(r.id,P)},[r.id,P,I]);let L=(0,a.useVirtualizer)((0,n.useMemo)(()=>({horizontal:!0,count:f&&u?u:0,getScrollElement:()=>T.current,estimateSize:typeof d==`function`?d:()=>d,overscan:E,rangeExtractor:M,[j]:y}),[f,u,d,E,M])),R=f&&u?L:void 0;(0,n.useEffect)(()=>()=>{O.current&&clearTimeout(O.current),k.current!==null&&cancelAnimationFrame(k.current)},[]),(0,n.useEffect)(()=>{b&&process.env.NODE_ENV!==`production`&&console.log(`Virtualization Debug:`,{rowCount:i,visibleRows:P.getVirtualItems().length,activeOverscan:E,scrollOffset:P.scrollOffset})},[b,i,P,E]);let z=(e,t)=>{P.scrollToIndex(e,t)};return{parentRef:T,rowVirtualizer:P,columnVirtualizer:R,scrollToIndex:z,scrollToRow:z,scrollToColumn:R?(e,t)=>{R.scrollToIndex(e,t)}:void 0,getVirtualItems:()=>P.getVirtualItems(),scrollOffset:P.scrollOffset??0}},u=s.Root,d=s.Trigger,f=s.Group,p=s.Portal,m=s.Sub,h=s.RadioGroup,g=n.forwardRef(({className:t,inset:n,children:a,...o},c)=>(0,i.jsxs)(s.SubTrigger,{ref:c,className:e._(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[state=open]:bg-zinc-100 data-[state=open]:text-zinc-900 dark:focus:bg-zinc-800 dark:focus:text-zinc-50 dark:data-[state=open]:bg-zinc-800 dark:data-[state=open]:text-zinc-50`,n&&`pl-8`,t),...o,children:[a,(0,i.jsx)(r.ChevronRight,{className:`ml-auto h-4 w-4`})]}));g.displayName=s.SubTrigger.displayName;var _=n.forwardRef(({className:t,...n},r)=>(0,i.jsx)(s.SubContent,{ref:r,className:e._(`z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50`,t),...n}));_.displayName=s.SubContent.displayName;var v=n.forwardRef(({className:t,...n},r)=>(0,i.jsx)(s.Portal,{children:(0,i.jsx)(s.Content,{ref:r,className:e._(`z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50`,t),...n})}));v.displayName=s.Content.displayName;var y=n.forwardRef(({className:t,inset:n,...r},a)=>(0,i.jsx)(s.Item,{ref:a,className:e._(`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50`,n&&`pl-8`,t),...r}));y.displayName=s.Item.displayName;var b=n.forwardRef(({className:t,children:n,checked:a,...o},c)=>(0,i.jsxs)(s.CheckboxItem,{ref:c,className:e._(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50`,t),checked:a,...o,children:[(0,i.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,i.jsx)(s.ItemIndicator,{children:(0,i.jsx)(r.Check,{className:`h-4 w-4`})})}),n]}));b.displayName=s.CheckboxItem.displayName;var x=n.forwardRef(({className:t,children:n,...a},o)=>(0,i.jsxs)(s.RadioItem,{ref:o,className:e._(`relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50`,t),...a,children:[(0,i.jsx)(`span`,{className:`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,children:(0,i.jsx)(s.ItemIndicator,{children:(0,i.jsx)(r.Circle,{className:`h-2 w-2 fill-current`})})}),n]}));x.displayName=s.RadioItem.displayName;var S=n.forwardRef(({className:t,inset:n,...r},a)=>(0,i.jsx)(s.Label,{ref:a,className:e._(`px-2 py-1.5 text-sm font-semibold text-zinc-950 dark:text-zinc-50`,n&&`pl-8`,t),...r}));S.displayName=s.Label.displayName;var C=n.forwardRef(({className:t,...n},r)=>(0,i.jsx)(s.Separator,{ref:r,className:e._(`-mx-1 my-1 h-px bg-zinc-200 dark:bg-zinc-800`,t),...n}));C.displayName=s.Separator.displayName;var w=({className:t,...n})=>(0,i.jsx)(`span`,{className:e._(`ml-auto text-xs tracking-widest text-zinc-500 dark:text-zinc-400`,t),...n});w.displayName=`ContextMenuShortcut`;var T=({row:t,data:r,contextId:a,children:o,enabled:s=!0,onAction:c})=>{let l=e.n();if(!s)return(0,i.jsx)(i.Fragment,{children:o});let f=r||t?.original,p=(()=>{if(!a)return[];let e=l.get(`ContextMenuService`);return e?e.getItems(a,f):[]})(),m=p.length>0,h=e=>{c?.(e,f)};return(0,i.jsxs)(u,{children:[(0,i.jsx)(d,{asChild:!0,children:(0,i.jsx)(`span`,{className:`contents`,children:o})}),(0,i.jsx)(v,{className:`w-64`,children:m?p.map((e,t)=>(0,i.jsx)(n.default.Fragment,{children:e.isSeparator?(0,i.jsx)(C,{}):(0,i.jsxs)(y,{inset:!0,onSelect:()=>{e.onClick?e.onClick(f):h(e.action)},disabled:e.disabled,className:e.className,children:[e.label,e.shortcut&&(0,i.jsx)(w,{children:e.shortcut})]})},e.id||t)):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(y,{inset:!0,onSelect:()=>h(`copy`),children:[`Copy Data`,(0,i.jsx)(w,{children:`⌘C`})]}),(0,i.jsx)(C,{}),t&&(0,i.jsxs)(i.Fragment,{children:[t.getIsPinned()!==`top`&&(0,i.jsx)(y,{inset:!0,onSelect:()=>h(`pin-top`),children:`Pin to Top`}),t.getIsPinned()!==`bottom`&&(0,i.jsx)(y,{inset:!0,onSelect:()=>h(`pin-bottom`),children:`Pin to Bottom`}),t.getIsPinned()&&(0,i.jsx)(y,{inset:!0,onSelect:()=>h(`unpin`),children:`Unpin Row`}),(0,i.jsx)(C,{})]}),(0,i.jsxs)(y,{inset:!0,className:`text-red-600 focus:text-red-600 focus:bg-red-50 dark:focus:bg-red-950/50`,onSelect:()=>h(`delete`),children:[`Delete Row`,(0,i.jsx)(w,{children:`⌘⌫`})]})]})})]})};Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return x}});
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { _ as e, n as t } from "./EzProvider-AlmsYIDk.js";
|
|
2
|
+
import { i as n } from "./EzErrorBoundary-C7a6VisX.js";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import i, { useCallback as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
5
|
+
import { Check as u, ChevronRight as d, Circle as f } from "lucide-react";
|
|
6
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
7
|
+
import { defaultRangeExtractor as g, elementScroll as _, useVirtualizer as v } from "@tanstack/react-virtual";
|
|
8
|
+
import { Virtualizer as y, elementScroll as b } from "@tanstack/virtual-core";
|
|
9
|
+
import * as x from "@radix-ui/react-context-menu";
|
|
10
|
+
//#region src/shared/services/VirtualizationService.ts
|
|
11
|
+
var S = class {
|
|
12
|
+
name = "VirtualizationService";
|
|
13
|
+
virtualizers = /* @__PURE__ */ new Map();
|
|
14
|
+
createVirtualizer(e, t) {
|
|
15
|
+
let n = new y({
|
|
16
|
+
count: t.count,
|
|
17
|
+
getScrollElement: t.getScrollElement,
|
|
18
|
+
estimateSize: t.estimateSize,
|
|
19
|
+
overscan: t.overscan ?? 5,
|
|
20
|
+
horizontal: t.horizontal ?? !1,
|
|
21
|
+
scrollToFn: b,
|
|
22
|
+
observeElementRect: (e, t) => {
|
|
23
|
+
let n = e.scrollElement;
|
|
24
|
+
if (!n || n === window) return;
|
|
25
|
+
let r = new ResizeObserver((e) => {
|
|
26
|
+
t(e[0].contentRect);
|
|
27
|
+
});
|
|
28
|
+
return r.observe(n), () => r.disconnect();
|
|
29
|
+
},
|
|
30
|
+
observeElementOffset: (e, t) => {
|
|
31
|
+
let n = e.scrollElement;
|
|
32
|
+
if (!n) return;
|
|
33
|
+
let r = () => {
|
|
34
|
+
t(n === window ? window.scrollY : n.scrollTop, !0);
|
|
35
|
+
};
|
|
36
|
+
return n.addEventListener("scroll", r, { passive: !0 }), t(n === window ? window.scrollY : n.scrollTop, !1), () => n.removeEventListener("scroll", r);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return this.virtualizers.set(e, n), n;
|
|
40
|
+
}
|
|
41
|
+
registerVirtualizer(e, t) {
|
|
42
|
+
this.virtualizers.set(e, t);
|
|
43
|
+
}
|
|
44
|
+
getVirtualizer(e) {
|
|
45
|
+
return this.virtualizers.get(e);
|
|
46
|
+
}
|
|
47
|
+
cleanup() {
|
|
48
|
+
this.virtualizers.clear();
|
|
49
|
+
}
|
|
50
|
+
}, C = (e) => {
|
|
51
|
+
let { rowCount: r, rowHeight: i = 48, overscanCount: u = 5, enableRowVirtualization: d = !0, columnCount: f = 0, columnWidth: p = 150, enableColumnVirtualization: m = !1, scrollMargin: h = 0, scrollPaddingStart: y = 0, scrollPaddingEnd: b = 0, progressiveRendering: x = !1, prefetchDistance: C = 5, adaptiveSizing: w = !1, languageDirection: T = "ltr", debug: E = !1, customRangeExtractor: D, onScroll: O, onScrollStart: k, onScrollStop: A } = e, j = c(null), [M, N] = l(x ? 1 : u || C), P = c(null), F = c(null), I = c(!1), L = "lanugageDirection";
|
|
52
|
+
o(() => {
|
|
53
|
+
if (!x) return;
|
|
54
|
+
let e, t = () => {
|
|
55
|
+
N(1), clearTimeout(e), e = setTimeout(() => {
|
|
56
|
+
N(u || C);
|
|
57
|
+
}, 150);
|
|
58
|
+
}, n = j.current;
|
|
59
|
+
if (n) return n.addEventListener("scroll", t, { passive: !0 }), () => {
|
|
60
|
+
n.removeEventListener("scroll", t), clearTimeout(e);
|
|
61
|
+
};
|
|
62
|
+
}, [
|
|
63
|
+
x,
|
|
64
|
+
u,
|
|
65
|
+
C
|
|
66
|
+
]);
|
|
67
|
+
let R = s(() => D || ((e) => {
|
|
68
|
+
let t = g(e);
|
|
69
|
+
return t.length === 0 && e.count > 0 ? [0] : t;
|
|
70
|
+
}), [D]), z = a((e, t, n) => {
|
|
71
|
+
_(e, t, n);
|
|
72
|
+
}, []), B = v(s(() => ({
|
|
73
|
+
count: r,
|
|
74
|
+
getScrollElement: () => j.current,
|
|
75
|
+
estimateSize: typeof i == "function" ? i : () => i,
|
|
76
|
+
overscan: M,
|
|
77
|
+
scrollMargin: h,
|
|
78
|
+
scrollPaddingStart: y,
|
|
79
|
+
scrollPaddingEnd: b,
|
|
80
|
+
rangeExtractor: R,
|
|
81
|
+
scrollToFn: z,
|
|
82
|
+
measureElement: w ? (e) => e.getBoundingClientRect().height : void 0,
|
|
83
|
+
[L]: T,
|
|
84
|
+
onChange: (e) => {
|
|
85
|
+
let t = e.scrollOffset ?? 0;
|
|
86
|
+
F.current !== null && cancelAnimationFrame(F.current), F.current = requestAnimationFrame(() => {
|
|
87
|
+
O?.(t), F.current = null;
|
|
88
|
+
}), e.isScrolling ? I.current || (I.current = !0, k?.()) : I.current && (I.current = !1, A?.());
|
|
89
|
+
}
|
|
90
|
+
}), [
|
|
91
|
+
r,
|
|
92
|
+
i,
|
|
93
|
+
M,
|
|
94
|
+
w,
|
|
95
|
+
h,
|
|
96
|
+
y,
|
|
97
|
+
b,
|
|
98
|
+
R,
|
|
99
|
+
z,
|
|
100
|
+
T,
|
|
101
|
+
O,
|
|
102
|
+
k,
|
|
103
|
+
A
|
|
104
|
+
]));
|
|
105
|
+
o(() => {
|
|
106
|
+
E && console.log("[DEBUG_VIRTUAL] Virtualizer instance changed");
|
|
107
|
+
}, [B, E]);
|
|
108
|
+
let V = t(), H = s(() => n(V, "VirtualizationService", () => new S()), []);
|
|
109
|
+
o(() => {
|
|
110
|
+
e.id && H && H.registerVirtualizer(e.id, B);
|
|
111
|
+
}, [
|
|
112
|
+
e.id,
|
|
113
|
+
B,
|
|
114
|
+
H
|
|
115
|
+
]);
|
|
116
|
+
let U = v(s(() => ({
|
|
117
|
+
horizontal: !0,
|
|
118
|
+
count: m && f ? f : 0,
|
|
119
|
+
getScrollElement: () => j.current,
|
|
120
|
+
estimateSize: typeof p == "function" ? p : () => p,
|
|
121
|
+
overscan: M,
|
|
122
|
+
rangeExtractor: R,
|
|
123
|
+
[L]: T
|
|
124
|
+
}), [
|
|
125
|
+
m,
|
|
126
|
+
f,
|
|
127
|
+
p,
|
|
128
|
+
M,
|
|
129
|
+
R
|
|
130
|
+
])), W = m && f ? U : void 0;
|
|
131
|
+
o(() => () => {
|
|
132
|
+
P.current && clearTimeout(P.current), F.current !== null && cancelAnimationFrame(F.current);
|
|
133
|
+
}, []), o(() => {
|
|
134
|
+
E && process.env.NODE_ENV !== "production" && console.log("Virtualization Debug:", {
|
|
135
|
+
rowCount: r,
|
|
136
|
+
visibleRows: B.getVirtualItems().length,
|
|
137
|
+
activeOverscan: M,
|
|
138
|
+
scrollOffset: B.scrollOffset
|
|
139
|
+
});
|
|
140
|
+
}, [
|
|
141
|
+
E,
|
|
142
|
+
r,
|
|
143
|
+
B,
|
|
144
|
+
M
|
|
145
|
+
]);
|
|
146
|
+
let G = (e, t) => {
|
|
147
|
+
B.scrollToIndex(e, t);
|
|
148
|
+
};
|
|
149
|
+
return {
|
|
150
|
+
parentRef: j,
|
|
151
|
+
rowVirtualizer: B,
|
|
152
|
+
columnVirtualizer: W,
|
|
153
|
+
scrollToIndex: G,
|
|
154
|
+
scrollToRow: G,
|
|
155
|
+
scrollToColumn: W ? (e, t) => {
|
|
156
|
+
W.scrollToIndex(e, t);
|
|
157
|
+
} : void 0,
|
|
158
|
+
getVirtualItems: () => B.getVirtualItems(),
|
|
159
|
+
scrollOffset: B.scrollOffset ?? 0
|
|
160
|
+
};
|
|
161
|
+
}, w = x.Root, T = x.Trigger, E = x.Group, D = x.Portal, O = x.Sub, k = x.RadioGroup, A = r.forwardRef(({ className: t, inset: n, children: r, ...i }, a) => /* @__PURE__ */ h(x.SubTrigger, {
|
|
162
|
+
ref: a,
|
|
163
|
+
className: e("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[state=open]:bg-zinc-100 data-[state=open]:text-zinc-900 dark:focus:bg-zinc-800 dark:focus:text-zinc-50 dark:data-[state=open]:bg-zinc-800 dark:data-[state=open]:text-zinc-50", n && "pl-8", t),
|
|
164
|
+
...i,
|
|
165
|
+
children: [r, /* @__PURE__ */ m(d, { className: "ml-auto h-4 w-4" })]
|
|
166
|
+
}));
|
|
167
|
+
A.displayName = x.SubTrigger.displayName;
|
|
168
|
+
var j = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ m(x.SubContent, {
|
|
169
|
+
ref: r,
|
|
170
|
+
className: e("z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50", t),
|
|
171
|
+
...n
|
|
172
|
+
}));
|
|
173
|
+
j.displayName = x.SubContent.displayName;
|
|
174
|
+
var M = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ m(x.Portal, { children: /* @__PURE__ */ m(x.Content, {
|
|
175
|
+
ref: r,
|
|
176
|
+
className: e("z-50 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white p-1 text-zinc-950 shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50", t),
|
|
177
|
+
...n
|
|
178
|
+
}) }));
|
|
179
|
+
M.displayName = x.Content.displayName;
|
|
180
|
+
var N = r.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ m(x.Item, {
|
|
181
|
+
ref: i,
|
|
182
|
+
className: e("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50", n && "pl-8", t),
|
|
183
|
+
...r
|
|
184
|
+
}));
|
|
185
|
+
N.displayName = x.Item.displayName;
|
|
186
|
+
var P = r.forwardRef(({ className: t, children: n, checked: r, ...i }, a) => /* @__PURE__ */ h(x.CheckboxItem, {
|
|
187
|
+
ref: a,
|
|
188
|
+
className: e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50", t),
|
|
189
|
+
checked: r,
|
|
190
|
+
...i,
|
|
191
|
+
children: [/* @__PURE__ */ m("span", {
|
|
192
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
193
|
+
children: /* @__PURE__ */ m(x.ItemIndicator, { children: /* @__PURE__ */ m(u, { className: "h-4 w-4" }) })
|
|
194
|
+
}), n]
|
|
195
|
+
}));
|
|
196
|
+
P.displayName = x.CheckboxItem.displayName;
|
|
197
|
+
var F = r.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ h(x.RadioItem, {
|
|
198
|
+
ref: i,
|
|
199
|
+
className: e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-zinc-100 focus:text-zinc-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50", t),
|
|
200
|
+
...r,
|
|
201
|
+
children: [/* @__PURE__ */ m("span", {
|
|
202
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
203
|
+
children: /* @__PURE__ */ m(x.ItemIndicator, { children: /* @__PURE__ */ m(f, { className: "h-2 w-2 fill-current" }) })
|
|
204
|
+
}), n]
|
|
205
|
+
}));
|
|
206
|
+
F.displayName = x.RadioItem.displayName;
|
|
207
|
+
var I = r.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ m(x.Label, {
|
|
208
|
+
ref: i,
|
|
209
|
+
className: e("px-2 py-1.5 text-sm font-semibold text-zinc-950 dark:text-zinc-50", n && "pl-8", t),
|
|
210
|
+
...r
|
|
211
|
+
}));
|
|
212
|
+
I.displayName = x.Label.displayName;
|
|
213
|
+
var L = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ m(x.Separator, {
|
|
214
|
+
ref: r,
|
|
215
|
+
className: e("-mx-1 my-1 h-px bg-zinc-200 dark:bg-zinc-800", t),
|
|
216
|
+
...n
|
|
217
|
+
}));
|
|
218
|
+
L.displayName = x.Separator.displayName;
|
|
219
|
+
var R = ({ className: t, ...n }) => /* @__PURE__ */ m("span", {
|
|
220
|
+
className: e("ml-auto text-xs tracking-widest text-zinc-500 dark:text-zinc-400", t),
|
|
221
|
+
...n
|
|
222
|
+
});
|
|
223
|
+
R.displayName = "ContextMenuShortcut";
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region src/shared/components/EzContextMenu.tsx
|
|
226
|
+
var z = ({ row: e, data: n, contextId: r, children: a, enabled: o = !0, onAction: s }) => {
|
|
227
|
+
let c = t();
|
|
228
|
+
if (!o) return /* @__PURE__ */ m(p, { children: a });
|
|
229
|
+
let l = n || e?.original, u = (() => {
|
|
230
|
+
if (!r) return [];
|
|
231
|
+
let e = c.get("ContextMenuService");
|
|
232
|
+
return e ? e.getItems(r, l) : [];
|
|
233
|
+
})(), d = u.length > 0, f = (e) => {
|
|
234
|
+
s?.(e, l);
|
|
235
|
+
};
|
|
236
|
+
return /* @__PURE__ */ h(w, { children: [/* @__PURE__ */ m(T, {
|
|
237
|
+
asChild: !0,
|
|
238
|
+
children: /* @__PURE__ */ m("span", {
|
|
239
|
+
className: "contents",
|
|
240
|
+
children: a
|
|
241
|
+
})
|
|
242
|
+
}), /* @__PURE__ */ m(M, {
|
|
243
|
+
className: "w-64",
|
|
244
|
+
children: d ? u.map((e, t) => /* @__PURE__ */ m(i.Fragment, { children: e.isSeparator ? /* @__PURE__ */ m(L, {}) : /* @__PURE__ */ h(N, {
|
|
245
|
+
inset: !0,
|
|
246
|
+
onSelect: () => {
|
|
247
|
+
e.onClick ? e.onClick(l) : f(e.action);
|
|
248
|
+
},
|
|
249
|
+
disabled: e.disabled,
|
|
250
|
+
className: e.className,
|
|
251
|
+
children: [e.label, e.shortcut && /* @__PURE__ */ m(R, { children: e.shortcut })]
|
|
252
|
+
}) }, e.id || t)) : /* @__PURE__ */ h(p, { children: [
|
|
253
|
+
/* @__PURE__ */ h(N, {
|
|
254
|
+
inset: !0,
|
|
255
|
+
onSelect: () => f("copy"),
|
|
256
|
+
children: ["Copy Data", /* @__PURE__ */ m(R, { children: "⌘C" })]
|
|
257
|
+
}),
|
|
258
|
+
/* @__PURE__ */ m(L, {}),
|
|
259
|
+
e && /* @__PURE__ */ h(p, { children: [
|
|
260
|
+
e.getIsPinned() !== "top" && /* @__PURE__ */ m(N, {
|
|
261
|
+
inset: !0,
|
|
262
|
+
onSelect: () => f("pin-top"),
|
|
263
|
+
children: "Pin to Top"
|
|
264
|
+
}),
|
|
265
|
+
e.getIsPinned() !== "bottom" && /* @__PURE__ */ m(N, {
|
|
266
|
+
inset: !0,
|
|
267
|
+
onSelect: () => f("pin-bottom"),
|
|
268
|
+
children: "Pin to Bottom"
|
|
269
|
+
}),
|
|
270
|
+
e.getIsPinned() && /* @__PURE__ */ m(N, {
|
|
271
|
+
inset: !0,
|
|
272
|
+
onSelect: () => f("unpin"),
|
|
273
|
+
children: "Unpin Row"
|
|
274
|
+
}),
|
|
275
|
+
/* @__PURE__ */ m(L, {})
|
|
276
|
+
] }),
|
|
277
|
+
/* @__PURE__ */ h(N, {
|
|
278
|
+
inset: !0,
|
|
279
|
+
className: "text-red-600 focus:text-red-600 focus:bg-red-50 dark:focus:bg-red-950/50",
|
|
280
|
+
onSelect: () => f("delete"),
|
|
281
|
+
children: ["Delete Row", /* @__PURE__ */ m(R, { children: "⌘⌫" })]
|
|
282
|
+
})
|
|
283
|
+
] })
|
|
284
|
+
})] });
|
|
285
|
+
};
|
|
286
|
+
//#endregion
|
|
287
|
+
export { C as _, E as a, D as c, L as d, R as f, T as g, A as h, M as i, k as l, j as m, w as n, N as o, O as p, P as r, I as s, z as t, F as u };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Component as e, useImperativeHandle as t, useMemo as n } from "react";
|
|
2
|
+
import { AlertTriangle as r, RefreshCw as i } from "lucide-react";
|
|
3
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
+
//#region src/shared/utils/serviceUtils.ts
|
|
5
|
+
var s = (e, t, n) => {
|
|
6
|
+
let r = e.get(t);
|
|
7
|
+
return r || (r = n(), e.register(t, r)), r;
|
|
8
|
+
}, c = (e, t) => {
|
|
9
|
+
Object.entries(t).forEach(([t, n]) => {
|
|
10
|
+
e.get(t) || e.register(t, n());
|
|
11
|
+
});
|
|
12
|
+
}, l = (e, r, i) => {
|
|
13
|
+
let a = n(() => i ? {
|
|
14
|
+
...r,
|
|
15
|
+
...i
|
|
16
|
+
} : r, [r, i]);
|
|
17
|
+
t(e, () => a, [a]);
|
|
18
|
+
}, u = class extends e {
|
|
19
|
+
constructor(e) {
|
|
20
|
+
super(e), this.state = {
|
|
21
|
+
hasError: !1,
|
|
22
|
+
error: null,
|
|
23
|
+
errorInfo: null
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static getDerivedStateFromError(e) {
|
|
27
|
+
return {
|
|
28
|
+
hasError: !0,
|
|
29
|
+
error: e,
|
|
30
|
+
errorInfo: null
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
componentDidCatch(e, t) {
|
|
34
|
+
console.error("Error caught by ErrorBoundary:", e, t), this.setState({ errorInfo: t });
|
|
35
|
+
}
|
|
36
|
+
handleReset = () => {
|
|
37
|
+
this.setState({
|
|
38
|
+
hasError: !1,
|
|
39
|
+
error: null,
|
|
40
|
+
errorInfo: null
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
render() {
|
|
44
|
+
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ a("div", {
|
|
45
|
+
className: "flex flex-col items-center justify-center min-h-screen p-4",
|
|
46
|
+
children: /* @__PURE__ */ o("div", {
|
|
47
|
+
className: "flex flex-col items-center gap-4 max-w-md w-full",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ a("div", {
|
|
50
|
+
className: "flex items-center justify-center w-16 h-16 rounded-full bg-destructive/10",
|
|
51
|
+
children: /* @__PURE__ */ a(r, { className: "w-8 h-8 text-destructive" })
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ o("div", {
|
|
54
|
+
className: "flex flex-col items-center gap-2 text-center",
|
|
55
|
+
children: [/* @__PURE__ */ a("h2", {
|
|
56
|
+
className: "text-lg font-semibold",
|
|
57
|
+
children: "Something went wrong"
|
|
58
|
+
}), /* @__PURE__ */ a("p", {
|
|
59
|
+
className: "text-sm text-muted-foreground",
|
|
60
|
+
children: "An unexpected error occurred. Please try again."
|
|
61
|
+
})]
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ o("button", {
|
|
64
|
+
onClick: this.handleReset,
|
|
65
|
+
className: "flex items-center gap-2 px-4 py-2 text-sm font-medium text-primary hover:bg-primary/10 rounded-md transition-colors",
|
|
66
|
+
children: [/* @__PURE__ */ a(i, { className: "w-4 h-4" }), "Try Again"]
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
})
|
|
70
|
+
}) : this.props.children;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
export { s as i, l as n, c as r, u as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("react"),t=require("lucide-react"),n=require("react/jsx-runtime");var r=(e,t,n)=>{let r=e.get(t);return r||(r=n(),e.register(t,r)),r},i=(e,t)=>{Object.entries(t).forEach(([t,n])=>{e.get(t)||e.register(t,n())})},a=(t,n,r)=>{let i=(0,e.useMemo)(()=>r?{...n,...r}:n,[n,r]);(0,e.useImperativeHandle)(t,()=>i,[i])},o=class extends e.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e,errorInfo:null}}componentDidCatch(e,t){console.error(`Error caught by ErrorBoundary:`,e,t),this.setState({errorInfo:t})}handleReset=()=>{this.setState({hasError:!1,error:null,errorInfo:null})};render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,n.jsx)(`div`,{className:`flex flex-col items-center justify-center min-h-screen p-4`,children:(0,n.jsxs)(`div`,{className:`flex flex-col items-center gap-4 max-w-md w-full`,children:[(0,n.jsx)(`div`,{className:`flex items-center justify-center w-16 h-16 rounded-full bg-destructive/10`,children:(0,n.jsx)(t.AlertTriangle,{className:`w-8 h-8 text-destructive`})}),(0,n.jsxs)(`div`,{className:`flex flex-col items-center gap-2 text-center`,children:[(0,n.jsx)(`h2`,{className:`text-lg font-semibold`,children:`Something went wrong`}),(0,n.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`An unexpected error occurred. Please try again.`})]}),(0,n.jsxs)(`button`,{onClick:this.handleReset,className:`flex items-center gap-2 px-4 py-2 text-sm font-medium text-primary hover:bg-primary/10 rounded-md transition-colors`,children:[(0,n.jsx)(t.RefreshCw,{className:`w-4 h-4`}),`Try Again`]})]})}):this.props.children}};Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|