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/dist/scheduler.es.js
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
import "./useInitCoreServices-D1WaWlaI.js";
|
|
4
|
-
import { E as c } from "./index-C6NfgycP.js";
|
|
5
|
-
import "./EzErrorBoundary-D4NBadES.js";
|
|
6
|
-
import "./EzContextMenu-BSA_B6Pr.js";
|
|
7
|
-
import "./tooltip-BCtrEe0z.js";
|
|
8
|
-
import "./TooltipWrapper-BrRTi5EJ.js";
|
|
9
|
-
export {
|
|
10
|
-
c as EzScheduler
|
|
11
|
-
};
|
|
1
|
+
import { t as e } from "./EzScheduler-C1Jtvvju.js";
|
|
2
|
+
export { e as EzScheduler };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { _ as e } from "./EzProvider-AlmsYIDk.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
+
import * as r from "@radix-ui/react-scroll-area";
|
|
5
|
+
//#region src/components/ui/scroll-area.tsx
|
|
6
|
+
function i({ className: i, children: o, ...s }) {
|
|
7
|
+
return /* @__PURE__ */ n(r.Root, {
|
|
8
|
+
"data-slot": "scroll-area",
|
|
9
|
+
className: e("relative", i),
|
|
10
|
+
...s,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ t(r.Viewport, {
|
|
13
|
+
"data-slot": "scroll-area-viewport",
|
|
14
|
+
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
15
|
+
children: o
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ t(a, {}),
|
|
18
|
+
/* @__PURE__ */ t(r.Corner, {})
|
|
19
|
+
]
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function a({ className: n, orientation: i = "vertical", ...a }) {
|
|
23
|
+
return /* @__PURE__ */ t(r.Scrollbar, {
|
|
24
|
+
"data-slot": "scroll-area-scrollbar",
|
|
25
|
+
orientation: i,
|
|
26
|
+
className: e("flex touch-none p-px transition-colors select-none", i === "vertical" && "h-full w-2.5 border-l border-l-transparent", i === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", n),
|
|
27
|
+
...a,
|
|
28
|
+
children: /* @__PURE__ */ t(r.Thumb, {
|
|
29
|
+
"data-slot": "scroll-area-thumb",
|
|
30
|
+
className: "bg-border relative flex-1 rounded-full"
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { a as n, i as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./EzProvider-L2qQMq-v.cjs");let t=require("react");t=e.y(t,1);let n=require("react/jsx-runtime"),r=require("@radix-ui/react-scroll-area");r=e.y(r,1);function i({className:t,children:i,...o}){return(0,n.jsxs)(r.Root,{"data-slot":`scroll-area`,className:e._(`relative`,t),...o,children:[(0,n.jsx)(r.Viewport,{"data-slot":`scroll-area-viewport`,className:`focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1`,children:i}),(0,n.jsx)(a,{}),(0,n.jsx)(r.Corner,{})]})}function a({className:t,orientation:i=`vertical`,...a}){return(0,n.jsx)(r.Scrollbar,{"data-slot":`scroll-area-scrollbar`,orientation:i,className:e._(`flex touch-none p-px transition-colors select-none`,i===`vertical`&&`h-full w-2.5 border-l border-l-transparent`,i===`horizontal`&&`h-2.5 flex-col border-t border-t-transparent`,t),...a,children:(0,n.jsx)(r.Thumb,{"data-slot":`scroll-area-thumb`,className:`bg-border relative flex-1 rounded-full`})})}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { _ as e } from "./EzProvider-AlmsYIDk.js";
|
|
2
|
+
import { a as t, h as n, r, t as i } from "./dropdown-menu-B_7_K13o.js";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/ui/select.tsx
|
|
6
|
+
var s = a.createContext(null), c = ({ value: e, onValueChange: t, children: n, open: r, onOpenChange: c }) => {
|
|
7
|
+
let [l, u] = a.useState(!1), d = r === void 0 ? l : r, f = c || u;
|
|
8
|
+
return /* @__PURE__ */ o(s.Provider, {
|
|
9
|
+
value: {
|
|
10
|
+
value: e,
|
|
11
|
+
onValueChange: t,
|
|
12
|
+
setOpen: f
|
|
13
|
+
},
|
|
14
|
+
children: /* @__PURE__ */ o(i, {
|
|
15
|
+
open: d,
|
|
16
|
+
onOpenChange: f,
|
|
17
|
+
children: n
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}, l = ({ className: t, children: r }) => /* @__PURE__ */ o(n, {
|
|
21
|
+
asChild: !0,
|
|
22
|
+
children: /* @__PURE__ */ o("button", {
|
|
23
|
+
className: e("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
24
|
+
children: r
|
|
25
|
+
})
|
|
26
|
+
}), u = ({ placeholder: e, children: t }) => {
|
|
27
|
+
let n = a.useContext(s);
|
|
28
|
+
return /* @__PURE__ */ o("span", { children: t || n?.value || e });
|
|
29
|
+
}, d = ({ children: t, className: n }) => /* @__PURE__ */ o(r, {
|
|
30
|
+
className: e("max-h-[200px] overflow-y-auto", n),
|
|
31
|
+
children: t
|
|
32
|
+
}), f = ({ value: n, children: r }) => {
|
|
33
|
+
let i = a.useContext(s);
|
|
34
|
+
return /* @__PURE__ */ o(t, {
|
|
35
|
+
className: e("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 text-start", i?.value === n && "font-bold"),
|
|
36
|
+
onSelect: () => {
|
|
37
|
+
i?.onValueChange?.(n), i?.setOpen(!1);
|
|
38
|
+
},
|
|
39
|
+
children: r
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { u as a, l as i, d as n, f as r, c as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./EzProvider-L2qQMq-v.cjs"),t=require("./dropdown-menu-BRP0tyR_.cjs");let n=require("react");n=e.y(n,1);let r=require("react/jsx-runtime");var i=n.createContext(null),a=({value:e,onValueChange:a,children:o,open:s,onOpenChange:c})=>{let[l,u]=n.useState(!1),d=s===void 0?l:s,f=c||u;return(0,r.jsx)(i.Provider,{value:{value:e,onValueChange:a,setOpen:f},children:(0,r.jsx)(t.t,{open:d,onOpenChange:f,children:o})})},o=({className:n,children:i})=>(0,r.jsx)(t.h,{asChild:!0,children:(0,r.jsx)(`button`,{className:e._(`flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,n),children:i})}),s=({placeholder:e,children:t})=>{let a=n.useContext(i);return(0,r.jsx)(`span`,{children:t||a?.value||e})},c=({children:n,className:i})=>(0,r.jsx)(t.r,{className:e._(`max-h-[200px] overflow-y-auto`,i),children:n}),l=({value:a,children:o})=>{let s=n.useContext(i);return(0,r.jsx)(t.a,{className:e._(`flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 text-start`,s?.value===a&&`font-bold`),onSelect:()=>{s?.onValueChange?.(a),s?.setOpen(!1)},children:o})};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface AnimatedTextProps {
|
|
3
|
+
/**
|
|
4
|
+
* The text content to animate.
|
|
5
|
+
* @group Properties
|
|
6
|
+
*/
|
|
7
|
+
text: string;
|
|
8
|
+
/**
|
|
9
|
+
* Custom class names for styling.
|
|
10
|
+
* @group Properties
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Default text color.
|
|
15
|
+
* @group Properties
|
|
16
|
+
*/
|
|
17
|
+
defaultColor?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Text to highlight (will use primary color and wobble effect).
|
|
20
|
+
* @group Properties
|
|
21
|
+
*/
|
|
22
|
+
highlight?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Animation delay.
|
|
25
|
+
* @group Properties
|
|
26
|
+
*/
|
|
27
|
+
delay?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Custom text size class (overrides default).
|
|
30
|
+
* @group Properties
|
|
31
|
+
*/
|
|
32
|
+
textSize?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Direction for the main text.
|
|
35
|
+
* @group Properties
|
|
36
|
+
*/
|
|
37
|
+
textDir?: "ltr" | "rtl";
|
|
38
|
+
/**
|
|
39
|
+
* Direction for the highlight text.
|
|
40
|
+
* @group Properties
|
|
41
|
+
*/
|
|
42
|
+
highlightDir?: "ltr" | "rtl";
|
|
43
|
+
}
|
|
44
|
+
export declare const AnimatedText: React.FC<AnimatedTextProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface BaseCellProps {
|
|
3
|
+
value: any;
|
|
4
|
+
className?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
fallback?: React.ReactNode;
|
|
8
|
+
align?: 'left' | 'center' | 'right';
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* BaseCell - Shared logic for all table cells
|
|
12
|
+
* Handles null/undefined states, core typography, alignment, and tooltips.
|
|
13
|
+
*/
|
|
14
|
+
export declare const BaseCell: React.FC<BaseCellProps>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface BooleanCellProps {
|
|
3
|
+
value: boolean | null | undefined;
|
|
4
|
+
trueLabel?: string;
|
|
5
|
+
falseLabel?: string;
|
|
6
|
+
nullLabel?: string;
|
|
7
|
+
showIcon?: boolean;
|
|
8
|
+
showLabel?: boolean;
|
|
9
|
+
variant?: 'checkbox' | 'switch';
|
|
10
|
+
className?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onChange?: (value: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const BooleanCell: React.FC<BooleanCellProps>;
|
|
15
|
+
export interface BooleanEditorProps {
|
|
16
|
+
value: boolean | null | undefined;
|
|
17
|
+
onChange: (value: boolean) => void;
|
|
18
|
+
trueLabel?: string;
|
|
19
|
+
falseLabel?: string;
|
|
20
|
+
variant?: 'checkbox' | 'switch';
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const BooleanEditor: React.FC<BooleanEditorProps>;
|
|
25
|
+
export interface BooleanFilterProps {
|
|
26
|
+
value: 'all' | 'true' | 'false' | 'null';
|
|
27
|
+
onChange: (value: 'all' | 'true' | 'false' | 'null') => void;
|
|
28
|
+
trueLabel?: string;
|
|
29
|
+
falseLabel?: string;
|
|
30
|
+
nullLabel?: string;
|
|
31
|
+
allLabel?: string;
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const BooleanFilter: React.FC<BooleanFilterProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ProgressCellProps {
|
|
3
|
+
value: number;
|
|
4
|
+
showLabel?: boolean;
|
|
5
|
+
color?: 'default' | 'success' | 'warning' | 'danger' | 'info';
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ProgressCell: React.FC<ProgressCellProps>;
|
|
10
|
+
export interface SparklineCellProps {
|
|
11
|
+
value?: number[];
|
|
12
|
+
values?: number[];
|
|
13
|
+
color?: 'default' | 'success' | 'warning' | 'danger' | 'info';
|
|
14
|
+
height?: number;
|
|
15
|
+
width?: number;
|
|
16
|
+
showDots?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const SparklineCell: React.FC<SparklineCellProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface DeleteConfirmationModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
message?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const DeleteConfirmationModal: React.FC<DeleteConfirmationModalProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Row } from '@tanstack/react-table';
|
|
3
|
+
interface EzContextMenuProps<TData> {
|
|
4
|
+
row?: Row<TData>;
|
|
5
|
+
data?: TData;
|
|
6
|
+
contextId?: string;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
onAction?: (action: string, data: TData) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const EzContextMenu: <TData>({ row, data, contextId, children, enabled, onAction }: EzContextMenuProps<TData>) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
footer?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
10
|
+
closeOnBackdropClick?: boolean;
|
|
11
|
+
showCloseButton?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface PrimitiveCellProps {
|
|
3
|
+
value: any;
|
|
4
|
+
columnType?: 'text' | 'number' | 'date' | 'datetime' | 'longtext';
|
|
5
|
+
meta?: any;
|
|
6
|
+
className?: string;
|
|
7
|
+
align?: 'left' | 'center' | 'right';
|
|
8
|
+
table?: any;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* PrimitiveCell - Unified renderer for simple data types.
|
|
12
|
+
* Replaces TextCell, NumberCell, DateCell, etc.
|
|
13
|
+
*/
|
|
14
|
+
export declare const PrimitiveCell: React.FC<PrimitiveCellProps>;
|
|
15
|
+
export interface PrimitiveEditorProps {
|
|
16
|
+
value: any;
|
|
17
|
+
onChange: (value: any) => void;
|
|
18
|
+
onBlur?: () => void;
|
|
19
|
+
columnType?: string;
|
|
20
|
+
autoFocus?: boolean;
|
|
21
|
+
isFocused?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
meta?: any;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* PrimitiveEditor - Unified editor for simple inputs.
|
|
28
|
+
* Replaces TextEditor, NumberEditor, etc.
|
|
29
|
+
*/
|
|
30
|
+
export declare const PrimitiveEditor: React.FC<PrimitiveEditorProps>;
|
|
31
|
+
export type FilterOperator = 'equals' | 'notEquals' | 'contains' | 'doesNotContain' | 'startsWith' | 'endsWith' | 'gt' | 'gte' | 'lt' | 'lte' | 'between';
|
|
32
|
+
export interface PrimitiveFilterProps {
|
|
33
|
+
columnType: 'text' | 'number' | 'date' | 'datetime' | 'longtext' | string;
|
|
34
|
+
value: any;
|
|
35
|
+
valueTo?: any;
|
|
36
|
+
operator: FilterOperator;
|
|
37
|
+
onChange: (value: any, operator: FilterOperator, valueTo?: any) => void;
|
|
38
|
+
}
|
|
39
|
+
export declare const PrimitiveFilter: React.FC<PrimitiveFilterProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface SearchableSelectProps {
|
|
3
|
+
value?: string | null;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
options: {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
onBlur?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const SearchableSelect: React.FC<SearchableSelectProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
6
|
+
}
|
|
7
|
+
export interface SelectCellProps {
|
|
8
|
+
value: string | string[] | null | undefined;
|
|
9
|
+
options?: SelectOption[];
|
|
10
|
+
multiSelect?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
table?: any;
|
|
13
|
+
}
|
|
14
|
+
export declare const SelectCell: React.FC<SelectCellProps>;
|
|
15
|
+
export interface SelectEditorProps {
|
|
16
|
+
value: any;
|
|
17
|
+
onChange: (value: any) => void;
|
|
18
|
+
options: SelectOption[];
|
|
19
|
+
variant?: 'dropdown' | 'radio' | 'combobox';
|
|
20
|
+
multiSelect?: boolean;
|
|
21
|
+
onBlur?: () => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
isFocused?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare const SelectEditor: React.FC<SelectEditorProps>;
|
|
27
|
+
export interface SelectFilterProps {
|
|
28
|
+
options: SelectOption[];
|
|
29
|
+
selectedValues: string[];
|
|
30
|
+
onChange: (values: string[]) => void;
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const SelectFilter: React.FC<SelectFilterProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type Status = 'Active' | 'Inactive' | 'Pending' | 'Verified' | 'Unverified' | 'On Leave' | 'Completed' | 'In Progress' | 'Archived' | 'Under Review' | 'Approved' | 'Rejected' | 'Draft' | 'Published' | 'Expired' | 'Scheduled' | 'Cancelled' | 'Resolved' | 'Unresolved' | 'Open' | 'Closed' | 'Default' | 'Disapproved' | 'Returned' | 'Public' | 'Private' | 'Restricted' | 'Internal' | 'External' | 'System';
|
|
2
|
+
export interface StatusBadgeProps {
|
|
3
|
+
status: Status | string;
|
|
4
|
+
className?: string;
|
|
5
|
+
showDot?: boolean;
|
|
6
|
+
showIcon?: boolean;
|
|
7
|
+
iconPosition?: 'left' | 'right';
|
|
8
|
+
hideLabel?: boolean;
|
|
9
|
+
showTooltip?: boolean;
|
|
10
|
+
variant?: 'solid' | 'outline';
|
|
11
|
+
customWidth?: string;
|
|
12
|
+
customHeight?: string;
|
|
13
|
+
customFontSize?: string;
|
|
14
|
+
customBgColor?: string;
|
|
15
|
+
customTextColor?: string;
|
|
16
|
+
showBorder?: boolean;
|
|
17
|
+
borderThickness?: string;
|
|
18
|
+
customBorderColor?: string;
|
|
19
|
+
glowIntensity?: 'none' | 'low' | 'medium' | 'high';
|
|
20
|
+
}
|
|
21
|
+
export declare const StatusBadge: import('react').NamedExoticComponent<StatusBadgeProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface TooltipWrapperProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
content?: React.ReactNode;
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
delayDuration?: number;
|
|
7
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
8
|
+
align?: 'start' | 'center' | 'end';
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const TooltipWrapper: React.FC<TooltipWrapperProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './AnimatedText';
|
|
2
|
+
export * from './StatusBadge';
|
|
3
|
+
export * from './BaseCell';
|
|
4
|
+
export * from './PrimitiveRenderer';
|
|
5
|
+
export * from './BooleanRenderer';
|
|
6
|
+
export * from './SelectRenderer';
|
|
7
|
+
export * from './ChartRenderer';
|
|
8
|
+
export * from './HighlightText';
|
|
9
|
+
export * from './SearchableSelect';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ServiceRegistry } from '../services/ServiceRegistry';
|
|
3
|
+
import { ThemeService } from '../services/ThemeService';
|
|
4
|
+
import { I18nService } from '../services/I18nService';
|
|
5
|
+
import { NotificationService } from '../services/NotificationService';
|
|
6
|
+
import { LayoutService } from '../services/LayoutService';
|
|
7
|
+
export interface EzProviderProps {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Optional default locale to initialize the I18nService.
|
|
11
|
+
*/
|
|
12
|
+
defaultLocale?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional custom translations to merge on initialization.
|
|
15
|
+
*/
|
|
16
|
+
translations?: Record<string, Record<string, string>>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* `<EzProvider>` serves as the central orchestration point for all EzUX global services.
|
|
20
|
+
* It initializes a localized `ServiceRegistry`, instantiates core services, and
|
|
21
|
+
* provides them to child components via React Context safely resolving SSR problems.
|
|
22
|
+
*
|
|
23
|
+
* @group Core Components
|
|
24
|
+
*/
|
|
25
|
+
export declare const EzProvider: React.FC<EzProviderProps>;
|
|
26
|
+
/**
|
|
27
|
+
* Hook to access the current `ServiceRegistry`.
|
|
28
|
+
* Throws if called outside of `<EzProvider>`.
|
|
29
|
+
*
|
|
30
|
+
* @group Hooks
|
|
31
|
+
*/
|
|
32
|
+
export declare const useEzServiceRegistry: () => ServiceRegistry;
|
|
33
|
+
/**
|
|
34
|
+
* Access the application-wide `ThemeService`.
|
|
35
|
+
*
|
|
36
|
+
* @group Hooks
|
|
37
|
+
*/
|
|
38
|
+
export declare const useThemeService: () => ThemeService;
|
|
39
|
+
/**
|
|
40
|
+
* Access the application-wide `I18nService`.
|
|
41
|
+
*
|
|
42
|
+
* @group Hooks
|
|
43
|
+
*/
|
|
44
|
+
export declare const useI18nService: () => I18nService;
|
|
45
|
+
/**
|
|
46
|
+
* Access the application-wide `NotificationService`.
|
|
47
|
+
*
|
|
48
|
+
* @group Hooks
|
|
49
|
+
*/
|
|
50
|
+
export declare const useNotificationService: () => NotificationService;
|
|
51
|
+
/**
|
|
52
|
+
* Access the application-wide `LayoutService`.
|
|
53
|
+
*
|
|
54
|
+
* @group Hooks
|
|
55
|
+
*/
|
|
56
|
+
export declare const useLayoutService: () => LayoutService;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared hooks index
|
|
3
|
+
* Exports all shared hooks for easy importing
|
|
4
|
+
*/
|
|
5
|
+
export { useBaseComponent } from './useBaseComponent';
|
|
6
|
+
export type { BaseComponentConfig, BaseComponentState, BaseComponentAPI } from './useBaseComponent';
|
|
7
|
+
export { useVirtualization } from './useVirtualization';
|
|
8
|
+
export type { VirtualizationConfig, VirtualizationResult } from './useVirtualization';
|
|
9
|
+
export { useEzTheme } from './useEzTheme';
|
|
10
|
+
export { useI18n } from './useI18n';
|
|
11
|
+
export { useLifecycleEvents } from './useLifecycleEvents';
|
|
12
|
+
export type { LifecycleCallbacks } from './useLifecycleEvents';
|
|
13
|
+
export { useDataChangeEvents } from './useDataChangeEvents';
|
|
14
|
+
export type { DataChangeCallbacks } from './useDataChangeEvents';
|
|
15
|
+
export { useRowSelectionEvents } from './useRowSelectionEvents';
|
|
16
|
+
export type { RowSelectionCallbacks, RowSelectionState } from './useRowSelectionEvents';
|
|
17
|
+
export { useStateChangeEvents } from './useStateChangeEvents';
|
|
18
|
+
export type { StateChangeCallbacks, SortingState, PaginationState } from './useStateChangeEvents';
|
|
19
|
+
export { useComponentState } from './useComponentState';
|
|
20
|
+
export type { StateConfig } from './useComponentState';
|
|
21
|
+
export { useEventHandlers } from './useEventHandlers';
|
|
22
|
+
export type { EventHandlerConfig } from './useEventHandlers';
|
|
23
|
+
/**
|
|
24
|
+
* An advanced hook for exposing an imperative API from an EzUX component.
|
|
25
|
+
*
|
|
26
|
+
* Standardizes the pattern of using `useImperativeHandle` with optional validation
|
|
27
|
+
* methods and base API merging.
|
|
28
|
+
*
|
|
29
|
+
* @param ref The ref object to attach the API to.
|
|
30
|
+
* @param api The core API methods to expose.
|
|
31
|
+
* @param options Additional imperative methods or overrides.
|
|
32
|
+
* @group Hooks
|
|
33
|
+
*/
|
|
34
|
+
export { useComponentImperativeAPI } from './useComponentImperativeAPI';
|
|
35
|
+
/**
|
|
36
|
+
* A lightweight hook for exposing an imperative API from a component.
|
|
37
|
+
*
|
|
38
|
+
* Consolidates the imperative API pattern using `useImperativeHandle`,
|
|
39
|
+
* ensuring efficient reference stability.
|
|
40
|
+
*
|
|
41
|
+
* @param ref The ref object from the forwardRef or parent component.
|
|
42
|
+
* @param api An object containing the methods and properties to expose.
|
|
43
|
+
* @group Hooks
|
|
44
|
+
*/
|
|
45
|
+
export { useImperativeAPI } from './useImperativeAPI';
|
|
46
|
+
export { useDndHandlers } from './useDndHandlers';
|
|
47
|
+
export { useLoadingState } from './useLoadingState';
|
|
48
|
+
export { useFieldValidation } from './useFieldValidation';
|
|
49
|
+
export { useService } from './useService';
|
|
50
|
+
export { useMediaQuery } from './useMediaQuery';
|
|
51
|
+
export { useCurrentTime } from './useCurrentTime';
|
|
52
|
+
export { useDialogState } from './useDialogState';
|
|
53
|
+
export { useKeyboardNavigation } from './useKeyboardNavigation';
|
|
54
|
+
export { useHistory } from './useHistory';
|
|
55
|
+
export { useServiceState } from './useServiceState';
|
|
56
|
+
export { useInitCoreServices } from './useInitCoreServices';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ServiceRegistry } from '../services/ServiceRegistry';
|
|
2
|
+
import { ComponentEventCallbacks } from '../types/common';
|
|
3
|
+
/**
|
|
4
|
+
* Common properties for all core components.
|
|
5
|
+
* @group Properties
|
|
6
|
+
*/
|
|
7
|
+
export interface BaseComponentProps extends ComponentEventCallbacks {
|
|
8
|
+
/**
|
|
9
|
+
* The shared service registry instance.
|
|
10
|
+
* @group Services
|
|
11
|
+
*/
|
|
12
|
+
serviceRegistry?: ServiceRegistry;
|
|
13
|
+
}
|
|
14
|
+
export type BaseComponentConfig = BaseComponentProps;
|
|
15
|
+
/**
|
|
16
|
+
* Base internal state for core components.
|
|
17
|
+
* @group State
|
|
18
|
+
*/
|
|
19
|
+
export interface BaseComponentState {
|
|
20
|
+
/** Whether the component is processing an async action. @group State */
|
|
21
|
+
isLoading: boolean;
|
|
22
|
+
/** Current error state. @group State */
|
|
23
|
+
error: Error | null;
|
|
24
|
+
/** Whether the component has mounted on the client. @group State */
|
|
25
|
+
isHydrated: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Foundation API shared by all core components.
|
|
29
|
+
* @group Methods
|
|
30
|
+
*/
|
|
31
|
+
export interface BaseComponentAPI {
|
|
32
|
+
/** Shows the global component spinner. @group Methods */
|
|
33
|
+
showSpinner: () => void;
|
|
34
|
+
/** Hides the global component spinner. @group Methods */
|
|
35
|
+
hideSpinner: () => void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A foundational hook that provides shared infrastructure for all core components.
|
|
39
|
+
*
|
|
40
|
+
* Handles service registry resolution, basic lifecycle events, and common loading/error state.
|
|
41
|
+
*
|
|
42
|
+
* @param props The component's props.
|
|
43
|
+
* @group Hooks
|
|
44
|
+
*/
|
|
45
|
+
export declare const useBaseComponent: (props: BaseComponentProps) => {
|
|
46
|
+
/** The resolved service registry for this component. @group Services */
|
|
47
|
+
serviceRegistry: ServiceRegistry;
|
|
48
|
+
/** Current base state (loading, error, hydrated). @group State */
|
|
49
|
+
state: BaseComponentState;
|
|
50
|
+
/** Functional setter for loading state. @group Methods */
|
|
51
|
+
setIsLoading: (isLoading: boolean) => void;
|
|
52
|
+
/** Functional setter for error state. @group Methods */
|
|
53
|
+
setError: (error: Error | null) => void;
|
|
54
|
+
/** Base API (spinner controls). @group Methods */
|
|
55
|
+
api: {
|
|
56
|
+
showSpinner: () => void;
|
|
57
|
+
hideSpinner: () => void;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
export interface ImperativeAPIOptions {
|
|
3
|
+
validateField?: (data: any) => boolean;
|
|
4
|
+
validateEditForm?: () => boolean;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Generic imperative API hook for all EzUX components
|
|
9
|
+
* Standardizes imperative API pattern across components
|
|
10
|
+
*/
|
|
11
|
+
export declare const useComponentImperativeAPI: <T extends Record<string, any>>(ref: Ref<T> | undefined, api: T, options?: ImperativeAPIOptions) => void;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IService } from '../services/ServiceRegistry';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration for the useComponentState hook.
|
|
4
|
+
* @group Properties
|
|
5
|
+
*/
|
|
6
|
+
export interface StateConfig<T> {
|
|
7
|
+
/** Initial state value. @group Data */
|
|
8
|
+
initialState: T;
|
|
9
|
+
/** Optional service for state synchronization. @group Services */
|
|
10
|
+
service?: IService;
|
|
11
|
+
/** LocalStorage key for state persistence. @group Properties */
|
|
12
|
+
persistenceKey?: string;
|
|
13
|
+
/** Delay in milliseconds for state update debouncing. @group Properties */
|
|
14
|
+
debounceMs?: number;
|
|
15
|
+
/** Callback triggered when state changes. @group Events */
|
|
16
|
+
onChange?: (state: T) => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A robust state management hook with support for debouncing, persistence, and service integration.
|
|
20
|
+
*
|
|
21
|
+
* @param config Configuration for the state management.
|
|
22
|
+
* @group Hooks
|
|
23
|
+
*/
|
|
24
|
+
export declare function useComponentState<T>(config: StateConfig<T>): {
|
|
25
|
+
/** The current state object. @group State */
|
|
26
|
+
state: T;
|
|
27
|
+
/** Updates the state (with optional debouncing). @group Methods */
|
|
28
|
+
setState: (updater: T | ((prev: T) => T)) => void;
|
|
29
|
+
/** Updates the state immediately, bypassing debouncing. @group Methods */
|
|
30
|
+
setImmediateState: (newState: T) => void;
|
|
31
|
+
/** Whether a state-related async operation is in progress. @group State */
|
|
32
|
+
loading: boolean;
|
|
33
|
+
/** Functional setter for loading state. @group Methods */
|
|
34
|
+
setLoading: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
35
|
+
/** Current error state. @group State */
|
|
36
|
+
error: Error | null;
|
|
37
|
+
/** Functional setter for error state. @group Methods */
|
|
38
|
+
setError: import('react').Dispatch<import('react').SetStateAction<Error | null>>;
|
|
39
|
+
};
|