ezux 1.0.0

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.
Files changed (293) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +56 -0
  3. package/dist/EzEventModal-DtpvYwGr.js +684 -0
  4. package/dist/EzGroupingPanel-CFwKUrF_.js +59 -0
  5. package/dist/EzTableEditDialog-BIk_mNpI.js +60 -0
  6. package/dist/components/EzKanban/EzKanban.types.d.ts +789 -0
  7. package/dist/components/EzKanban/components/CardEditorModal.d.ts +23 -0
  8. package/dist/components/EzKanban/components/EzKanbanErrorFallback.d.ts +1 -0
  9. package/dist/components/EzKanban/components/FilterPopover.d.ts +10 -0
  10. package/dist/components/EzKanban/components/KanbanBoard.d.ts +62 -0
  11. package/dist/components/EzKanban/components/KanbanCard.d.ts +38 -0
  12. package/dist/components/EzKanban/components/KanbanColumn.d.ts +55 -0
  13. package/dist/components/EzKanban/components/KanbanSwimlane.d.ts +46 -0
  14. package/dist/components/EzKanban/components/KanbanToolbar.d.ts +41 -0
  15. package/dist/components/EzKanban/exports.d.ts +4 -0
  16. package/dist/components/EzKanban/hooks/useKanbanCards.d.ts +36 -0
  17. package/dist/components/EzKanban/hooks/useKanbanColumns.d.ts +27 -0
  18. package/dist/components/EzKanban/hooks/useKanbanDragDrop.d.ts +31 -0
  19. package/dist/components/EzKanban/hooks/useKanbanFilters.d.ts +23 -0
  20. package/dist/components/EzKanban/hooks/useKanbanState.d.ts +79 -0
  21. package/dist/components/EzKanban/hooks/useKanbanSwimlanes.d.ts +27 -0
  22. package/dist/components/EzKanban/hooks/useKanbanVirtualization.d.ts +16 -0
  23. package/dist/components/EzKanban/index.d.ts +45 -0
  24. package/dist/components/EzKanban/services/KanbanService.d.ts +30 -0
  25. package/dist/components/EzKanban/state/kanban.store.d.ts +33 -0
  26. package/dist/components/EzKanban/useEzKanban.d.ts +162 -0
  27. package/dist/components/EzKanban/views/KanbanTimelineView.d.ts +15 -0
  28. package/dist/components/EzLayout/Authentication/AuthSlider.d.ts +13 -0
  29. package/dist/components/EzLayout/Authentication/InputPassword.d.ts +7 -0
  30. package/dist/components/EzLayout/Authentication/SignInForm.d.ts +21 -0
  31. package/dist/components/EzLayout/Authentication/SignUpForm.d.ts +20 -0
  32. package/dist/components/EzLayout/EzHeader.d.ts +33 -0
  33. package/dist/components/EzLayout/EzLanguageSwitcher.d.ts +4 -0
  34. package/dist/components/EzLayout/EzLayout.types.d.ts +223 -0
  35. package/dist/components/EzLayout/EzSidebar.d.ts +14 -0
  36. package/dist/components/EzLayout/EzThemeColorChanger.d.ts +9 -0
  37. package/dist/components/EzLayout/EzThemeSwitcher.d.ts +8 -0
  38. package/dist/components/EzLayout/EzUserProfile.d.ts +23 -0
  39. package/dist/components/EzLayout/components/MainContent.d.ts +13 -0
  40. package/dist/components/EzLayout/hooks/useLayoutImperative.d.ts +17 -0
  41. package/dist/components/EzLayout/hooks/useLayoutState.d.ts +25 -0
  42. package/dist/components/EzLayout/index.d.ts +19 -0
  43. package/dist/components/EzLayout/useEzLayout.d.ts +26 -0
  44. package/dist/components/EzScheduler/EzScheduler.types.d.ts +1658 -0
  45. package/dist/components/EzScheduler/EzSchedulerToolbar.d.ts +117 -0
  46. package/dist/components/EzScheduler/components/EzEventModal.d.ts +17 -0
  47. package/dist/components/EzScheduler/components/EzOverlapAlert.d.ts +12 -0
  48. package/dist/components/EzScheduler/components/EzQuickInfoPopup.d.ts +22 -0
  49. package/dist/components/EzScheduler/components/EzResourceSidebar.d.ts +33 -0
  50. package/dist/components/EzScheduler/components/EzSchedulerContent.d.ts +123 -0
  51. package/dist/components/EzScheduler/components/EzSchedulerQuickAdd.d.ts +17 -0
  52. package/dist/components/EzScheduler/components/RecurrenceEditor.d.ts +7 -0
  53. package/dist/components/EzScheduler/components/SchedulerLoadingSpinner.d.ts +2 -0
  54. package/dist/components/EzScheduler/components/dnd/DraggableEvent.d.ts +21 -0
  55. package/dist/components/EzScheduler/components/dnd/DroppableSlot.d.ts +19 -0
  56. package/dist/components/EzScheduler/hooks/useRecurrence.d.ts +2 -0
  57. package/dist/components/EzScheduler/hooks/useSchedulerEventHandlers.d.ts +11 -0
  58. package/dist/components/EzScheduler/hooks/useSchedulerEvents.d.ts +26 -0
  59. package/dist/components/EzScheduler/hooks/useSchedulerImperative.d.ts +15 -0
  60. package/dist/components/EzScheduler/hooks/useSchedulerNavigation.d.ts +9 -0
  61. package/dist/components/EzScheduler/hooks/useSchedulerResources.d.ts +10 -0
  62. package/dist/components/EzScheduler/hooks/useSchedulerState.d.ts +14 -0
  63. package/dist/components/EzScheduler/hooks/useSchedulerVirtualization.d.ts +9 -0
  64. package/dist/components/EzScheduler/index.d.ts +41 -0
  65. package/dist/components/EzScheduler/models/EventSettings.d.ts +11 -0
  66. package/dist/components/EzScheduler/models/View.d.ts +49 -0
  67. package/dist/components/EzScheduler/models/index.d.ts +2 -0
  68. package/dist/components/EzScheduler/services/AttendeeService.d.ts +15 -0
  69. package/dist/components/EzScheduler/services/AuditService.d.ts +15 -0
  70. package/dist/components/EzScheduler/services/CollisionDetectionService.d.ts +19 -0
  71. package/dist/components/EzScheduler/services/DragAndDropService.d.ts +16 -0
  72. package/dist/components/EzScheduler/services/HistoryService.d.ts +31 -0
  73. package/dist/components/EzScheduler/services/ICalendarImportService.d.ts +16 -0
  74. package/dist/components/EzScheduler/services/PrintService.d.ts +7 -0
  75. package/dist/components/EzScheduler/services/RecurrenceEngine.d.ts +7 -0
  76. package/dist/components/EzScheduler/services/ReminderService.d.ts +17 -0
  77. package/dist/components/EzScheduler/services/SchedulerService.d.ts +69 -0
  78. package/dist/components/EzScheduler/services/SearchService.d.ts +11 -0
  79. package/dist/components/EzScheduler/services/SecurityService.d.ts +25 -0
  80. package/dist/components/EzScheduler/services/TimezoneService.d.ts +20 -0
  81. package/dist/components/EzScheduler/services/VirtualScrollingService.d.ts +34 -0
  82. package/dist/components/EzScheduler/state/scheduler.store.d.ts +27 -0
  83. package/dist/components/EzScheduler/templates/CellTemplate.d.ts +42 -0
  84. package/dist/components/EzScheduler/templates/EditorTemplate.d.ts +32 -0
  85. package/dist/components/EzScheduler/templates/HeaderTemplate.d.ts +36 -0
  86. package/dist/components/EzScheduler/tests/phase1_rendering.spec.d.ts +1 -0
  87. package/dist/components/EzScheduler/tests/phase2_events.spec.d.ts +1 -0
  88. package/dist/components/EzScheduler/tests/phase3_templates.spec.d.ts +1 -0
  89. package/dist/components/EzScheduler/tests/phase4_export.spec.d.ts +1 -0
  90. package/dist/components/EzScheduler/tests/phase5_advanced.spec.d.ts +1 -0
  91. package/dist/components/EzScheduler/tests/phase6_security.spec.d.ts +1 -0
  92. package/dist/components/EzScheduler/tests/phase7_regression.spec.d.ts +1 -0
  93. package/dist/components/EzScheduler/useEzScheduler.d.ts +152 -0
  94. package/dist/components/EzScheduler/utils/createDragConstraint.d.ts +7 -0
  95. package/dist/components/EzScheduler/utils/getWeekNumber.d.ts +8 -0
  96. package/dist/components/EzScheduler/utils/sanitizeHtml.d.ts +17 -0
  97. package/dist/components/EzScheduler/views/AgendaView.d.ts +33 -0
  98. package/dist/components/EzScheduler/views/DayWeekView.d.ts +182 -0
  99. package/dist/components/EzScheduler/views/MonthView.d.ts +65 -0
  100. package/dist/components/EzScheduler/views/TimelineView.d.ts +121 -0
  101. package/dist/components/EzSignature/EzSignature.d.ts +42 -0
  102. package/dist/components/EzSignature/EzSignature.test.d.ts +1 -0
  103. package/dist/components/EzSignature/EzSignature.types.d.ts +132 -0
  104. package/dist/components/EzSignature/index.d.ts +2 -0
  105. package/dist/components/EzTable/EzColumnMenu.d.ts +7 -0
  106. package/dist/components/EzTable/EzDateFilterTree.d.ts +7 -0
  107. package/dist/components/EzTable/EzExcelFilter.d.ts +6 -0
  108. package/dist/components/EzTable/EzFilterBuilder.d.ts +12 -0
  109. package/dist/components/EzTable/EzGroupingPanel.d.ts +9 -0
  110. package/dist/components/EzTable/EzHeaderContextMenu.d.ts +8 -0
  111. package/dist/components/EzTable/EzPagination.d.ts +19 -0
  112. package/dist/components/EzTable/EzTable.types.d.ts +1481 -0
  113. package/dist/components/EzTable/EzTableEditDialog.d.ts +15 -0
  114. package/dist/components/EzTable/EzTableFooter.d.ts +10 -0
  115. package/dist/components/EzTable/EzTableOverlays.d.ts +11 -0
  116. package/dist/components/EzTable/EzTableStatusBar.d.ts +6 -0
  117. package/dist/components/EzTable/EzTableToolbar.d.ts +58 -0
  118. package/dist/components/EzTable/SmartCell.d.ts +7 -0
  119. package/dist/components/EzTable/__tests__/EzTableDX.test.d.ts +0 -0
  120. package/dist/components/EzTable/__tests__/EzTableEnterprise.test.d.ts +1 -0
  121. package/dist/components/EzTable/__tests__/useEzTable.test.d.ts +1 -0
  122. package/dist/components/EzTable/components/AdvancedColumnFilter.d.ts +16 -0
  123. package/dist/components/EzTable/components/BooleanFilterSection.d.ts +7 -0
  124. package/dist/components/EzTable/components/DraggableHeader.d.ts +10 -0
  125. package/dist/components/EzTable/components/EzTableBodySection.d.ts +70 -0
  126. package/dist/components/EzTable/components/EzTableCell.d.ts +46 -0
  127. package/dist/components/EzTable/components/EzTableHeaderSection.d.ts +22 -0
  128. package/dist/components/EzTable/components/EzTablePaginationSection.d.ts +31 -0
  129. package/dist/components/EzTable/components/EzTableRow.d.ts +56 -0
  130. package/dist/components/EzTable/components/FilterActionButtons.d.ts +16 -0
  131. package/dist/components/EzTable/components/FilterRuleSelect.d.ts +26 -0
  132. package/dist/components/EzTable/components/SelectAllCheckbox.d.ts +21 -0
  133. package/dist/components/EzTable/components/SelectFilterSection.d.ts +18 -0
  134. package/dist/components/EzTable/components/VirtualizedFilterList.d.ts +21 -0
  135. package/dist/components/EzTable/constants/filterOptions.d.ts +47 -0
  136. package/dist/components/EzTable/context/EzTableContext.d.ts +10 -0
  137. package/dist/components/EzTable/context/TableConfigContext.d.ts +13 -0
  138. package/dist/components/EzTable/context/TableStore.d.ts +17 -0
  139. package/dist/components/EzTable/filterUtils.d.ts +5 -0
  140. package/dist/components/EzTable/hooks/useAutoFit.d.ts +4 -0
  141. package/dist/components/EzTable/hooks/useCellEventHandlers.d.ts +16 -0
  142. package/dist/components/EzTable/hooks/useColumnSizeVars.d.ts +6 -0
  143. package/dist/components/EzTable/hooks/useContainerResize.d.ts +11 -0
  144. package/dist/components/EzTable/hooks/useDialogStateInitialization.d.ts +8 -0
  145. package/dist/components/EzTable/hooks/useFilterSelection.d.ts +12 -0
  146. package/dist/components/EzTable/hooks/useTableFiltering.d.ts +23 -0
  147. package/dist/components/EzTable/hooks/useTableHistory.d.ts +87 -0
  148. package/dist/components/EzTable/hooks/useTableImperative.d.ts +42 -0
  149. package/dist/components/EzTable/hooks/useTableSelection.d.ts +32 -0
  150. package/dist/components/EzTable/hooks/useTableState.d.ts +31 -0
  151. package/dist/components/EzTable/hooks/useTableVirtualization.d.ts +33 -0
  152. package/dist/components/EzTable/index.d.ts +50 -0
  153. package/dist/components/EzTable/renderers/index.d.ts +6 -0
  154. package/dist/components/EzTable/services/TableService.d.ts +26 -0
  155. package/dist/components/EzTable/useEzTable.d.ts +17 -0
  156. package/dist/components/EzTable/utils/TextMeasurer.d.ts +1 -0
  157. package/dist/components/EzTable/utils/TruncatedTooltip.d.ts +7 -0
  158. package/dist/components/EzTable/utils/columnTypeDetector.d.ts +5 -0
  159. package/dist/components/EzTable/utils/filterTypeGuards.d.ts +3 -0
  160. package/dist/components/EzTable/utils/index.d.ts +1 -0
  161. package/dist/components/EzTreeView/EzTreeView.types.d.ts +395 -0
  162. package/dist/components/EzTreeView/EzTreeViewItem.d.ts +77 -0
  163. package/dist/components/EzTreeView/EzVirtualTree.d.ts +72 -0
  164. package/dist/components/EzTreeView/components/EzTreeViewLoadingSpinner.d.ts +2 -0
  165. package/dist/components/EzTreeView/hooks/useTreeDragDrop.d.ts +31 -0
  166. package/dist/components/EzTreeView/hooks/useTreeExpansion.d.ts +21 -0
  167. package/dist/components/EzTreeView/hooks/useTreeImperative.d.ts +28 -0
  168. package/dist/components/EzTreeView/hooks/useTreeSelection.d.ts +31 -0
  169. package/dist/components/EzTreeView/hooks/useTreeState.d.ts +21 -0
  170. package/dist/components/EzTreeView/hooks/useTreeVirtualization.d.ts +18 -0
  171. package/dist/components/EzTreeView/index.d.ts +40 -0
  172. package/dist/components/EzTreeView/services/TreeService.d.ts +11 -0
  173. package/dist/components/EzTreeView/useEzTreeView.d.ts +62 -0
  174. package/dist/components/EzTreeView/utils/treeUtils.d.ts +17 -0
  175. package/dist/components/shared/components/EzErrorBoundary.d.ts +18 -0
  176. package/dist/components/shared/components/EzLayoutErrorFallback.d.ts +2 -0
  177. package/dist/components/shared/components/EzLoadingSpinner.d.ts +8 -0
  178. package/dist/components/shared/components/EzSchedulerErrorFallback.d.ts +2 -0
  179. package/dist/components/shared/components/EzTableErrorFallback.d.ts +2 -0
  180. package/dist/components/shared/components/EzTreeViewErrorFallback.d.ts +2 -0
  181. package/dist/components/ui/avatar.d.ts +5 -0
  182. package/dist/components/ui/badge.d.ts +9 -0
  183. package/dist/components/ui/breadcrumb.d.ts +19 -0
  184. package/dist/components/ui/button.d.ts +12 -0
  185. package/dist/components/ui/calendar.d.ts +15 -0
  186. package/dist/components/ui/card.d.ts +8 -0
  187. package/dist/components/ui/checkbox.d.ts +7 -0
  188. package/dist/components/ui/command.d.ts +78 -0
  189. package/dist/components/ui/context-menu.d.ts +27 -0
  190. package/dist/components/ui/date-time-picker.d.ts +13 -0
  191. package/dist/components/ui/dropdown-menu.d.ts +27 -0
  192. package/dist/components/ui/index.d.ts +26 -0
  193. package/dist/components/ui/input.d.ts +5 -0
  194. package/dist/components/ui/label.d.ts +5 -0
  195. package/dist/components/ui/modal.d.ts +9 -0
  196. package/dist/components/ui/password-input.d.ts +5 -0
  197. package/dist/components/ui/popover.d.ts +4 -0
  198. package/dist/components/ui/progress.d.ts +7 -0
  199. package/dist/components/ui/radio-group.d.ts +5 -0
  200. package/dist/components/ui/scroll-area.d.ts +5 -0
  201. package/dist/components/ui/select.d.ts +24 -0
  202. package/dist/components/ui/skeleton.d.ts +2 -0
  203. package/dist/components/ui/switch.d.ts +4 -0
  204. package/dist/components/ui/table.d.ts +10 -0
  205. package/dist/components/ui/tabs.d.ts +14 -0
  206. package/dist/components/ui/textarea.d.ts +5 -0
  207. package/dist/components/ui/tooltip.d.ts +7 -0
  208. package/dist/ezux.es.js +149 -0
  209. package/dist/ezux.umd.js +68 -0
  210. package/dist/index-DBwoXp4n.js +30656 -0
  211. package/dist/index.d.ts +70 -0
  212. package/dist/lib/perfect-freehand.d.ts +221 -0
  213. package/dist/lib/utils.d.ts +2 -0
  214. package/dist/shared/components/AnimatedText.d.ts +44 -0
  215. package/dist/shared/components/BaseCell.d.ts +14 -0
  216. package/dist/shared/components/BooleanRenderer.d.ts +34 -0
  217. package/dist/shared/components/ChartRenderer.d.ts +19 -0
  218. package/dist/shared/components/DeleteConfirmationModal.d.ts +11 -0
  219. package/dist/shared/components/EzContextMenu.d.ts +12 -0
  220. package/dist/shared/components/EzNotificationDropdown.d.ts +1 -0
  221. package/dist/shared/components/HighlightText.d.ts +4 -0
  222. package/dist/shared/components/Modal.d.ts +13 -0
  223. package/dist/shared/components/NotificationPanel.d.ts +2 -0
  224. package/dist/shared/components/PrimitiveRenderer.d.ts +39 -0
  225. package/dist/shared/components/SearchableSelect.d.ts +13 -0
  226. package/dist/shared/components/SelectRenderer.d.ts +33 -0
  227. package/dist/shared/components/StatusBadge.d.ts +12 -0
  228. package/dist/shared/components/TooltipWrapper.d.ts +12 -0
  229. package/dist/shared/components/index.d.ts +9 -0
  230. package/dist/shared/hooks/index.d.ts +56 -0
  231. package/dist/shared/hooks/useBaseComponent.d.ts +60 -0
  232. package/dist/shared/hooks/useComponentImperativeAPI.d.ts +11 -0
  233. package/dist/shared/hooks/useComponentState.d.ts +39 -0
  234. package/dist/shared/hooks/useCurrentTime.d.ts +6 -0
  235. package/dist/shared/hooks/useDataChangeEvents.d.ts +53 -0
  236. package/dist/shared/hooks/useDebounce.d.ts +10 -0
  237. package/dist/shared/hooks/useDeleteConfirmation.d.ts +9 -0
  238. package/dist/shared/hooks/useDialogState.d.ts +21 -0
  239. package/dist/shared/hooks/useDndHandlers.d.ts +17 -0
  240. package/dist/shared/hooks/useEditing.d.ts +107 -0
  241. package/dist/shared/hooks/useEventHandlers.d.ts +61 -0
  242. package/dist/shared/hooks/useEzTheme.d.ts +22 -0
  243. package/dist/shared/hooks/useFieldValidation.d.ts +24 -0
  244. package/dist/shared/hooks/useHistory.d.ts +13 -0
  245. package/dist/shared/hooks/useI18n.d.ts +9 -0
  246. package/dist/shared/hooks/useImperativeAPI.d.ts +8 -0
  247. package/dist/shared/hooks/useInitCoreServices.d.ts +5 -0
  248. package/dist/shared/hooks/useKeyboardNavigation.d.ts +36 -0
  249. package/dist/shared/hooks/useKeyboardShortcuts.d.ts +14 -0
  250. package/dist/shared/hooks/useLifecycleEvents.d.ts +22 -0
  251. package/dist/shared/hooks/useLoadingState.d.ts +17 -0
  252. package/dist/shared/hooks/useMediaQuery.d.ts +6 -0
  253. package/dist/shared/hooks/useNotificationService.d.ts +8 -0
  254. package/dist/shared/hooks/usePerformanceMonitor.d.ts +15 -0
  255. package/dist/shared/hooks/useRowSelectionEvents.d.ts +44 -0
  256. package/dist/shared/hooks/useSelection.d.ts +73 -0
  257. package/dist/shared/hooks/useService.d.ts +12 -0
  258. package/dist/shared/hooks/useServiceState.d.ts +12 -0
  259. package/dist/shared/hooks/useStateChangeEvents.d.ts +61 -0
  260. package/dist/shared/hooks/useTheme.d.ts +13 -0
  261. package/dist/shared/hooks/useVirtualization.d.ts +85 -0
  262. package/dist/shared/services/BaseService.d.ts +56 -0
  263. package/dist/shared/services/ContextMenuService.d.ts +58 -0
  264. package/dist/shared/services/ExportService.d.ts +35 -0
  265. package/dist/shared/services/FocusManagerService.d.ts +33 -0
  266. package/dist/shared/services/HierarchyService.d.ts +43 -0
  267. package/dist/shared/services/I18nService.d.ts +65 -0
  268. package/dist/shared/services/LayoutService.d.ts +80 -0
  269. package/dist/shared/services/NotificationService.d.ts +44 -0
  270. package/dist/shared/services/PersistenceService.d.ts +69 -0
  271. package/dist/shared/services/ServiceRegistry.d.ts +51 -0
  272. package/dist/shared/services/ThemeService.d.ts +49 -0
  273. package/dist/shared/services/VirtualizationService.d.ts +51 -0
  274. package/dist/shared/state/store.d.ts +10 -0
  275. package/dist/shared/themes.d.ts +25 -0
  276. package/dist/shared/types/BaseProps.d.ts +18 -0
  277. package/dist/shared/types/common.d.ts +292 -0
  278. package/dist/shared/types/commonTypes.d.ts +101 -0
  279. package/dist/shared/types/index.d.ts +2 -0
  280. package/dist/shared/utils/canvasUtils.d.ts +16 -0
  281. package/dist/shared/utils/commonUtils.d.ts +28 -0
  282. package/dist/shared/utils/csvUtils.d.ts +7 -0
  283. package/dist/shared/utils/dateUtils.d.ts +5 -0
  284. package/dist/shared/utils/dndUtils.d.ts +16 -0
  285. package/dist/shared/utils/ezStyleUtils.d.ts +64 -0
  286. package/dist/shared/utils/formatUtils.d.ts +20 -0
  287. package/dist/shared/utils/imperativeApiUtils.d.ts +36 -0
  288. package/dist/shared/utils/index.d.ts +11 -0
  289. package/dist/shared/utils/renderUtils.d.ts +6 -0
  290. package/dist/shared/utils/serviceUtils.d.ts +10 -0
  291. package/dist/shared/utils/styleUtils.d.ts +66 -0
  292. package/dist/shared/utils/validationUtils.d.ts +16 -0
  293. package/package.json +101 -0
@@ -0,0 +1,15 @@
1
+ import { ColumnDef } from '@tanstack/react-table';
2
+ interface EzTableEditDialogProps<TData> {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ onSave: (data: TData) => void;
6
+ columns: ColumnDef<TData, any>[];
7
+ initialData?: Partial<TData>;
8
+ isNew?: boolean;
9
+ onFormRender?: (args: {
10
+ form: any;
11
+ mode: 'Add' | 'Edit';
12
+ }) => void;
13
+ }
14
+ export declare const EzTableEditDialog: <TData extends object>({ open, onClose, onSave, columns, initialData, isNew, onFormRender }: EzTableEditDialogProps<TData>) => import("react/jsx-runtime").JSX.Element | null;
15
+ export {};
@@ -0,0 +1,10 @@
1
+ interface EzTableFooterProps {
2
+ table: any;
3
+ columnVirtualizer: any;
4
+ density: string;
5
+ }
6
+ export declare const EzTableFooter: {
7
+ ({ table, columnVirtualizer, density }: EzTableFooterProps): import("react/jsx-runtime").JSX.Element | null;
8
+ displayName: string;
9
+ };
10
+ export {};
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { EzTableSlots, EzTableLocalization } from './EzTable.types';
3
+ interface EzTableOverlaysProps {
4
+ isLoading: boolean;
5
+ rowCount: number;
6
+ renderNoRowsOverlay?: () => React.ReactNode;
7
+ slots?: EzTableSlots;
8
+ localization?: EzTableLocalization;
9
+ }
10
+ export declare const EzTableOverlays: React.MemoExoticComponent<({ isLoading, rowCount, renderNoRowsOverlay, slots, localization }: EzTableOverlaysProps) => import("react/jsx-runtime").JSX.Element | null>;
11
+ export {};
@@ -0,0 +1,6 @@
1
+ interface EzTableStatusBarProps {
2
+ table: any;
3
+ selectionInfo?: string;
4
+ }
5
+ export declare const EzTableStatusBar: import('react').MemoExoticComponent<({ table, selectionInfo }: EzTableStatusBarProps) => import("react/jsx-runtime").JSX.Element>;
6
+ export {};
@@ -0,0 +1,58 @@
1
+ import { default as React } from 'react';
2
+ import { EzGlobalFilterState } from './EzTable.types';
3
+ /**
4
+ * Props for the EzTable toolbar component.
5
+ * @group Models
6
+ */
7
+ interface EzTableToolbarProps {
8
+ /** Current global filter state. @group State */
9
+ globalFilter: EzGlobalFilterState;
10
+ /** Handler to set the global filter. @group Methods */
11
+ setGlobalFilter: (val: EzGlobalFilterState) => void;
12
+ /** Whether advanced filtering is enabled. @group Properties */
13
+ enableAdvancedFiltering?: boolean;
14
+ /** Whether export functionality is enabled. @group Properties */
15
+ enableExport?: boolean;
16
+ /** Handler for Excel export. @group Events */
17
+ onExportExcel?: () => void;
18
+ /** Handler for CSV export. @group Events */
19
+ onExportCSV?: () => void;
20
+ /** Handler for PDF export. @group Events */
21
+ onExportPDF?: () => void;
22
+ /** Whether change tracking (undo/redo) is enabled. @group Properties */
23
+ enableChangeTracking?: boolean;
24
+ /** Whether undo is available. @group State */
25
+ canUndo: boolean;
26
+ /** Whether redo is available. @group State */
27
+ canRedo: boolean;
28
+ /** Handler for undo. @group Events */
29
+ undo: () => void;
30
+ /** Handler for redo. @group Events */
31
+ redo: () => void;
32
+ /** List of columns for visibility toggle. @group Properties */
33
+ columns: any[];
34
+ /** Whether a filtering operation is pending. @group State */
35
+ isPending?: boolean;
36
+ /** Handler for adding a new record. @group Events */
37
+ onAdd?: () => void;
38
+ /** Handler for saving changes. @group Events */
39
+ onSave?: () => void;
40
+ /** Handler for discarding changes. @group Events */
41
+ onDiscard?: () => void;
42
+ /** Whether editing is enabled. @group Properties */
43
+ enableEditing?: boolean;
44
+ /** Current change counts for badge display. @group State */
45
+ changes?: {
46
+ added: number;
47
+ edited: number;
48
+ deleted: number;
49
+ };
50
+ /** The TanStack Table instance. @group Properties */
51
+ table?: any;
52
+ }
53
+ /**
54
+ * Renders the toolbar for EzTable, providing search, editing actions, and exports.
55
+ * @group Components
56
+ */
57
+ export declare const EzTableToolbar: React.MemoExoticComponent<({ globalFilter, setGlobalFilter, onExportExcel, onExportCSV, onExportPDF, enableChangeTracking, canUndo, canRedo, undo, redo, isPending, onAdd, onSave, onDiscard, enableEditing, changes, table }: EzTableToolbarProps) => import("react/jsx-runtime").JSX.Element>;
58
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * SmartCell - The central dispatcher for table cell rendering and editing.
3
+ * Implements IoC by:
4
+ * 1. Prioritizing column-level overrides (meta.Cell/Editor).
5
+ * 2. Falling back to the TableConfig-provided default renderers.
6
+ */
7
+ export declare const SmartCell: ({ getValue, row, column, table, }: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Props for the advanced column filtering UI.
4
+ * @group Models
5
+ */
6
+ export interface AdvancedColumnFilterProps {
7
+ /** Data type of the column (text, number, date). @group Properties */
8
+ columnType: string;
9
+ /** Unique identifier of the column. @group Properties */
10
+ columnId?: string;
11
+ /** Current filter value (rule or group). @group State */
12
+ value: any;
13
+ /** Handler for filter changes. @group Events */
14
+ onChange: (val: any) => void;
15
+ }
16
+ export declare const AdvancedColumnFilter: React.FC<AdvancedColumnFilterProps>;
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { Column } from '@tanstack/react-table';
3
+ interface BooleanFilterSectionProps {
4
+ column: Column<any, any>;
5
+ }
6
+ export declare const BooleanFilterSection: React.FC<BooleanFilterSectionProps>;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { Header } from '@tanstack/react-table';
3
+ interface DraggableHeaderProps {
4
+ header: Header<any, any>;
5
+ density?: string;
6
+ onAutoFit?: (id: string) => void;
7
+ columnPinning?: any;
8
+ }
9
+ export declare const DraggableHeader: React.MemoExoticComponent<({ header, density, onAutoFit, columnPinning }: DraggableHeaderProps) => import("react/jsx-runtime").JSX.Element>;
10
+ export {};
@@ -0,0 +1,70 @@
1
+ import { default as React } from 'react';
2
+ import { Row, Table } from '@tanstack/react-table';
3
+ /**
4
+ * Props for the body section of EzTable.
5
+ * @group Models
6
+ */
7
+ interface EzTableBodySectionProps<TData extends object> {
8
+ /** The TanStack Table instance. @group Properties */
9
+ table: Table<TData>;
10
+ /** List of TanStack Row instances to render. @group Properties */
11
+ rows: Row<TData>[];
12
+ /** Row virtualizer instance. @group Properties */
13
+ rowVirtualizer: any;
14
+ /** Optional column virtualizer instance. @group Properties */
15
+ columnVirtualizer?: any;
16
+ /** Table density. @group Properties */
17
+ density?: 'compact' | 'standard' | 'comfortable';
18
+ /** Custom class names for the body. @group Properties */
19
+ classNames?: {
20
+ body?: string;
21
+ };
22
+ /** Whether the table is in a loading state. @group Properties */
23
+ isLoading?: boolean;
24
+ /** Whether infinite scroll is enabled. @group Properties */
25
+ enableInfiniteScroll?: boolean;
26
+ /** Whether the table is in a pending/filtering state. @group Properties */
27
+ isPending?: boolean;
28
+ /** Custom renderer for "no rows" overlay. @group Components */
29
+ renderNoRowsOverlay?: () => React.ReactNode;
30
+ /** Custom slots for overriding body components. @group Components */
31
+ slots?: any;
32
+ /** Localization strings. @group Properties */
33
+ localization?: any;
34
+ /** Whether context menu is enabled. @group Properties */
35
+ enableContextMenu?: boolean;
36
+ /** Handler for context menu item click. @group Events */
37
+ onContextMenuItemClick?: (action: string, row: TData) => void;
38
+ /** Helper to check if a cell is currently selected. @group Methods */
39
+ isCellSelected: (rowIndex: number, colIndex: number) => boolean;
40
+ /** Currently focused cell coordinates. @group State */
41
+ focusedCell?: {
42
+ r: number;
43
+ c: number;
44
+ } | null;
45
+ /** Handler for cell mouse down. @group Events */
46
+ onCellMouseDown: (rowIndex: number, colIndex: number, event: React.MouseEvent) => void;
47
+ /** Handler for cell mouse enter. @group Events */
48
+ onCellMouseEnter: (rowIndex: number, colIndex: number) => void;
49
+ /** Handler for cell click. @group Events */
50
+ onCellClick?: (params: any) => void;
51
+ /** Handler for cell double-click. @group Events */
52
+ onCellDoubleClick?: (params: any) => void;
53
+ /** Custom renderer for row detail panel. @group Components */
54
+ renderDetailPanel?: (props: {
55
+ row: Row<TData>;
56
+ }) => React.ReactNode;
57
+ /** Handler for row click. @group Events */
58
+ onRowClick?: (args: any) => void;
59
+ /** Handler for row double-click. @group Events */
60
+ /** Handler for row double-click. @group Events */
61
+ onRowDoubleClick?: (args: any) => void;
62
+ /** Table metadata object (TanStack). @group Properties */
63
+ tableMeta?: any;
64
+ }
65
+ /**
66
+ * Renders the main body section of EzTable with virtualization and overlay support.
67
+ * @group Components
68
+ */
69
+ export declare function EzTableBodySection<TData extends object>({ table, rows, rowVirtualizer, columnVirtualizer, density, classNames, isLoading, enableInfiniteScroll, isPending, renderNoRowsOverlay, slots, localization, enableContextMenu, onContextMenuItemClick, isCellSelected, focusedCell, onCellMouseDown, onCellMouseEnter, onCellClick, onCellDoubleClick, renderDetailPanel, onRowClick, onRowDoubleClick }: EzTableBodySectionProps<TData>): import("react/jsx-runtime").JSX.Element;
70
+ export {};
@@ -0,0 +1,46 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Props for the granular cell component.
4
+ * @group Models
5
+ */
6
+ export interface EzTableCellProps {
7
+ /** The TanStack Cell instance. @group Properties */
8
+ cell: any;
9
+ /** The virtual row index. @group Properties */
10
+ virtualRowIndex: number;
11
+ /** The index of the cell in the row. @group Properties */
12
+ cellIndex: number;
13
+ /** Current pinning state of the column. @group Properties */
14
+ isPinned: any;
15
+ /** Whether the cell is currently selected. @group State */
16
+ isSelected: boolean;
17
+ /** Whether the cell has focus. @group State */
18
+ isFocused: boolean;
19
+ /** Table density. @group Properties */
20
+ density: any;
21
+ /** Handler for cell mouse down. @group Events */
22
+ onCellMouseDown: (rowIndex: number, colIndex: number, event: React.MouseEvent) => void;
23
+ /** Handler for cell mouse enter. @group Events */
24
+ onCellMouseEnter: (rowIndex: number, colIndex: number) => void;
25
+ /** Handler for cell click. @group Events */
26
+ onCellClick?: (params: any) => void;
27
+ /** Handler for cell double-click. @group Events */
28
+ onCellDoubleClick?: (params: any) => void;
29
+ /** Table metadata object (TanStack). @group Properties */
30
+ tableMeta: any;
31
+ /** Row nesting depth. @group Properties */
32
+ rowDepth: number;
33
+ /** Custom renderer for detail panel. @group Components */
34
+ renderDetailPanel?: (props: any) => React.ReactNode;
35
+ /** Whether this is the first visible column. @group Properties */
36
+ isFirstColumn: boolean;
37
+ /** Current column pinning state. @group Properties */
38
+ columnPinning: any;
39
+ /** The TanStack Table instance. @group Properties */
40
+ table?: any;
41
+ }
42
+ /**
43
+ * Highly optimized component for rendering a single table cell.
44
+ * @group Components
45
+ */
46
+ export declare const EzTableCell: React.MemoExoticComponent<({ cell, virtualRowIndex, cellIndex, isPinned, isSelected, isFocused, density, onCellMouseDown, onCellMouseEnter, onCellClick, onCellDoubleClick, tableMeta, rowDepth, renderDetailPanel, isFirstColumn, columnPinning }: EzTableCellProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ import { Table } from '@tanstack/react-table';
3
+ interface EzTableHeaderSectionProps<TData extends object> {
4
+ table: Table<TData>;
5
+ enableStickyHeader?: boolean;
6
+ classNames?: {
7
+ header?: string;
8
+ };
9
+ density?: 'compact' | 'standard' | 'comfortable';
10
+ autoFitColumn: (columnId: string) => void;
11
+ slots?: {
12
+ header?: React.ComponentType<any>;
13
+ };
14
+ columnPinning?: any;
15
+ columnSizing?: any;
16
+ sorting?: any;
17
+ grouping?: any;
18
+ columnVisibility?: any;
19
+ }
20
+ export declare const EzTableHeaderSection: typeof _EzTableHeaderSection;
21
+ declare function _EzTableHeaderSection<TData extends object>({ table, enableStickyHeader, classNames, density, autoFitColumn, slots }: EzTableHeaderSectionProps<TData>): import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,31 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ /**
3
+ * Props for the pagination section of EzTable.
4
+ * @group Models
5
+ */
6
+ interface EzTablePaginationSectionProps {
7
+ /** The TanStack Table instance. @group Properties */
8
+ table: Table<any>;
9
+ /** Optional message to display in the pager. @group Properties */
10
+ pagerMessage?: string;
11
+ /** Whether the pagination section is sticky at the bottom. @group Properties */
12
+ enableStickyPagination?: boolean;
13
+ /** Custom class names for the section. @group Properties */
14
+ classNames?: {
15
+ footer?: string;
16
+ };
17
+ /** Localization strings. @group Properties */
18
+ localization?: any;
19
+ /** Current change counts for display. @group Properties */
20
+ changes?: {
21
+ added: number;
22
+ edited: number;
23
+ deleted: number;
24
+ };
25
+ }
26
+ /**
27
+ * Renders the pagination footer section for EzTable.
28
+ * @group Components
29
+ */
30
+ export declare function EzTablePaginationSection({ table, pagerMessage, enableStickyPagination, classNames, localization, changes }: EzTablePaginationSectionProps): import("react/jsx-runtime").JSX.Element;
31
+ export {};
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Props for the virtualized row component.
3
+ * @group Models
4
+ */
5
+ export interface EzTableRowProps {
6
+ /** Virtual row metadata from the virtualizer. @group Properties */
7
+ virtualRow: any;
8
+ /** The TanStack Row instance. @group Properties */
9
+ row: any;
10
+ /** The TanStack Table instance. @group Properties */
11
+ table: any;
12
+ /** Table density. @group Properties */
13
+ density: any;
14
+ /** Whether context menu is enabled. @group Properties */
15
+ enableContextMenu: boolean;
16
+ /** Handler for context menu item click. @group Events */
17
+ onContextMenuItemClick?: (action: string, row: any) => void;
18
+ /** Helper to check if a cell is selected. @group Methods */
19
+ isCellSelected: (rowIndex: number, colIndex: number) => boolean;
20
+ /** Handler for cell mouse down. @group Events */
21
+ onCellMouseDown: (rowIndex: number, colIndex: number, event: React.MouseEvent) => void;
22
+ /** Handler for cell mouse enter. @group Events */
23
+ onCellMouseEnter: (rowIndex: number, colIndex: number) => void;
24
+ /** Handler for cell click. @group Events */
25
+ onCellClick?: (params: any) => void;
26
+ /** Handler for cell double-click. @group Events */
27
+ onCellDoubleClick?: (params: any) => void;
28
+ /** Currently focused cell coordinates. @group State */
29
+ focusedCell?: {
30
+ r: number;
31
+ c: number;
32
+ } | null;
33
+ /** Custom renderer for detail panel. @group Components */
34
+ renderDetailPanel?: (props: any) => React.ReactNode;
35
+ /** Ref callback for measuring the row element. @group Methods */
36
+ measureElement: (el: HTMLElement | null) => void;
37
+ /** Optional column virtualizer instance. @group Properties */
38
+ columnVirtualizer?: any;
39
+ /** Handler for row click. @group Events */
40
+ onRowClick?: (args: any) => void;
41
+ /** Handler for row double-click. @group Events */
42
+ onRowDoubleClick?: (args: any) => void;
43
+ /** Handler for row mouse enter. @group Events */
44
+ onRowMouseEnter?: (index: number, event: React.MouseEvent) => void;
45
+ /** Handler for row mouse leave. @group Events */
46
+ onRowMouseLeave?: (index: number, event: React.MouseEvent) => void;
47
+ /** Current column pinning state. @group Properties */
48
+ columnPinning: any;
49
+ /** Table metadata object (TanStack). @group Properties */
50
+ tableMeta?: any;
51
+ }
52
+ /**
53
+ * Standardized row component for EzTable, handles virtualization and selection.
54
+ * @group Components
55
+ */
56
+ export declare const EzTableRow: import('react').MemoExoticComponent<({ virtualRow, row, table, density, enableContextMenu, onContextMenuItemClick, isCellSelected, onCellMouseDown, onCellMouseEnter, onCellClick, onCellDoubleClick, focusedCell, renderDetailPanel, measureElement, columnVirtualizer, onRowClick, onRowDoubleClick, onRowMouseEnter, onRowMouseLeave, columnPinning }: EzTableRowProps) => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ interface FilterActionButtonsProps {
3
+ onClear?: () => void;
4
+ onApply?: () => void;
5
+ onAddRule?: () => void;
6
+ onAddGroup?: () => void;
7
+ onRemove?: () => void;
8
+ showClear?: boolean;
9
+ showApply?: boolean;
10
+ showAddRule?: boolean;
11
+ showAddGroup?: boolean;
12
+ showRemove?: boolean;
13
+ className?: string;
14
+ }
15
+ export declare const FilterActionButtons: React.FC<FilterActionButtonsProps>;
16
+ export {};
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Props for the filter rule selection dropdown.
4
+ * @group Models
5
+ */
6
+ interface FilterRuleSelectProps<T extends string> {
7
+ /** Current selection value. @group State */
8
+ value: T;
9
+ /** Handler for selection changes. @group Events */
10
+ onChange: (value: T) => void;
11
+ /** List of available options. @group Properties */
12
+ options: Array<{
13
+ value: string;
14
+ label: string;
15
+ }>;
16
+ /** Placeholder text. @group Properties */
17
+ placeholder: string;
18
+ /** Custom class name. @group Properties */
19
+ className?: string;
20
+ }
21
+ /**
22
+ * A generic selection component for filter rules (fields or operators).
23
+ * @group Components
24
+ */
25
+ export declare const FilterRuleSelect: React.MemoExoticComponent<(<T extends string>({ value, onChange, options, placeholder, className }: FilterRuleSelectProps<T>) => import("react/jsx-runtime").JSX.Element)>;
26
+ export {};
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Props for the "Select All" checkbox component.
4
+ * @group Models
5
+ */
6
+ interface SelectAllCheckboxProps {
7
+ /** Whether the checkbox is checked (all selected). @group State */
8
+ checked: boolean;
9
+ /** Whether the selection is in an indeterminate state. @group State */
10
+ indeterminate: boolean;
11
+ /** Handler for select all toggle. @group Events */
12
+ onSelectAll: (select: boolean) => void;
13
+ /** Whether to show search result specific text. @group Properties */
14
+ showSearchResults?: boolean;
15
+ }
16
+ /**
17
+ * Renders a specialized "Select All" checkbox with indeterminate state support.
18
+ * @group Components
19
+ */
20
+ export declare const SelectAllCheckbox: React.FC<SelectAllCheckboxProps>;
21
+ export {};
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ import { Column } from '@tanstack/react-table';
3
+ /**
4
+ * Props for the select filter section.
5
+ * @group Models
6
+ */
7
+ interface SelectFilterSectionProps {
8
+ /** The TanStack Column instance. @group Properties */
9
+ column: Column<any, any>;
10
+ /** All available unique values for selection. @group Properties */
11
+ allAvailableValues: any[];
12
+ }
13
+ /**
14
+ * Renders a multi-select filter list for a column.
15
+ * @group Components
16
+ */
17
+ export declare const SelectFilterSection: React.FC<SelectFilterSectionProps>;
18
+ export {};
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Props for the virtualized filter list.
4
+ * @group Models
5
+ */
6
+ interface VirtualizedFilterListProps {
7
+ /** Sorted unique values to display. @group Properties */
8
+ sortedUniqueValues: any[];
9
+ /** Set of currently selected values. @group State */
10
+ selectedValues: Set<any> | null;
11
+ /** Handler for selection toggle. @group Events */
12
+ handleSelect: (value: any, checked: boolean) => void;
13
+ /** Optional formatter for display values. @group Methods */
14
+ formatter?: (value: any) => string;
15
+ }
16
+ /**
17
+ * Renders a high-performance virtualized list of filter values.
18
+ * @group Components
19
+ */
20
+ export declare const VirtualizedFilterList: React.FC<VirtualizedFilterListProps>;
21
+ export {};
@@ -0,0 +1,47 @@
1
+ export declare const FILTER_OPERATORS: readonly [{
2
+ readonly value: "contains";
3
+ readonly label: "Contains";
4
+ }, {
5
+ readonly value: "equals";
6
+ readonly label: "Equals";
7
+ }, {
8
+ readonly value: "startsWith";
9
+ readonly label: "Starts With";
10
+ }, {
11
+ readonly value: "endsWith";
12
+ readonly label: "Ends With";
13
+ }, {
14
+ readonly value: "gt";
15
+ readonly label: ">";
16
+ }, {
17
+ readonly value: "lt";
18
+ readonly label: "<";
19
+ }, {
20
+ readonly value: "gte";
21
+ readonly label: ">=";
22
+ }, {
23
+ readonly value: "lte";
24
+ readonly label: "<=";
25
+ }, {
26
+ readonly value: "between";
27
+ readonly label: "Between";
28
+ }, {
29
+ readonly value: "empty";
30
+ readonly label: "Is Empty";
31
+ }, {
32
+ readonly value: "notEmpty";
33
+ readonly label: "Not Empty";
34
+ }, {
35
+ readonly value: "doesNotContain";
36
+ readonly label: "Does Not Contain";
37
+ }, {
38
+ readonly value: "doesNotEqual";
39
+ readonly label: "Does Not Equal";
40
+ }, {
41
+ readonly value: "notEquals";
42
+ readonly label: "Not Equal";
43
+ }, {
44
+ readonly value: "shouldContain";
45
+ readonly label: "Should Contain";
46
+ }];
47
+ export declare const FILTER_OPERATORS_MAP: Map<"endsWith" | "startsWith" | "contains" | "doesNotContain" | "shouldContain" | "equals" | "notEquals" | "doesNotEqual" | "empty" | "notEmpty" | "gt" | "lt" | "gte" | "lte" | "between", "Contains" | "Equals" | "Between" | "Starts With" | "Ends With" | ">" | "<" | ">=" | "<=" | "Is Empty" | "Not Empty" | "Does Not Contain" | "Does Not Equal" | "Not Equal" | "Should Contain">;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { Table } from '@tanstack/react-table';
3
+ export declare const TableInstanceContext: React.Context<Table<any> | null>;
4
+ interface EzTableRootProps<TData> {
5
+ data: TData[];
6
+ children: React.ReactNode;
7
+ }
8
+ export declare const EzTableRoot: <TData extends object>({ data, children }: EzTableRootProps<TData>) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const useTableStore: <T>(selector: (state: any) => T) => T;
10
+ export {};
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ export interface TableRendererConfig {
3
+ Cell: React.ComponentType<any>;
4
+ Editor?: React.ComponentType<any>;
5
+ }
6
+ export interface TableConfig {
7
+ renderers: Record<string, TableRendererConfig>;
8
+ }
9
+ export declare const TableConfigProvider: React.FC<{
10
+ value?: Partial<TableConfig>;
11
+ children: React.ReactNode;
12
+ }>;
13
+ export declare const useTableConfig: () => TableConfig;
@@ -0,0 +1,17 @@
1
+ import { Store } from '@tanstack/store';
2
+ import { ColumnFiltersState, SortingState, VisibilityState } from '@tanstack/react-table';
3
+ export interface TableState<TData> {
4
+ data: TData[];
5
+ globalFilter: string;
6
+ columnFilters: ColumnFiltersState;
7
+ sorting: SortingState;
8
+ pagination: {
9
+ pageIndex: number;
10
+ pageSize: number;
11
+ };
12
+ rowSelection: Record<string, boolean>;
13
+ columnVisibility: VisibilityState;
14
+ isPending: boolean;
15
+ }
16
+ export declare const createTableStore: <TData>(initialData?: TData[]) => Store<TableState<TData>, (cb: TableState<TData>) => TableState<TData>>;
17
+ export type TableStore<TData> = ReturnType<typeof createTableStore<TData>>;
@@ -0,0 +1,5 @@
1
+ import { Row } from '@tanstack/react-table';
2
+ import { EzGlobalFilterState } from './EzTable.types';
3
+ export declare const advancedFilterFn: <TData>(row: Row<TData>, _columnId: string, // Unused but part of signature
4
+ filterValue: EzGlobalFilterState) => boolean;
5
+ export declare const smartColumnFilterFn: <TData>(row: Row<TData>, columnId: string, filterValue: any) => boolean;
@@ -0,0 +1,4 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ export declare const useAutoFit: <TData extends object>(table: Table<TData>) => {
3
+ autoFitColumn: (columnId: string) => void;
4
+ };
@@ -0,0 +1,16 @@
1
+ interface CellEventHandlers {
2
+ table: any;
3
+ editSettings: any;
4
+ toggleRowEditing: (rowIndex: number, editing?: boolean) => void;
5
+ onRowClickProp?: (args: any) => void;
6
+ onRowDoubleClickProp?: (args: any) => void;
7
+ onCellClickProp?: (args: any) => void;
8
+ onCellDoubleClickProp?: (args: any) => void;
9
+ }
10
+ export declare const useCellEventHandlers: ({ table, editSettings, toggleRowEditing, onRowClickProp, onRowDoubleClickProp, onCellClickProp, onCellDoubleClickProp }: CellEventHandlers) => {
11
+ onRowClick: (args: any) => void;
12
+ onRowDoubleClick: (args: any) => void;
13
+ onCellClick: (args: any) => void;
14
+ onCellDoubleClick: (args: any) => void;
15
+ };
16
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ /**
3
+ * Calculates CSS variables for column sizes.
4
+ * Optimized to strictly re-calculate only when sizing or visibility changes.
5
+ */
6
+ export declare const useColumnSizeVars: <TData extends object>(table: Table<TData>) => import('react').CSSProperties;
@@ -0,0 +1,11 @@
1
+ interface UseContainerResizeOptions {
2
+ containerRef: React.RefObject<HTMLDivElement | null>;
3
+ containerSizeRef: React.RefObject<{
4
+ width: number;
5
+ height: number;
6
+ }>;
7
+ resizeTimeoutRef: React.RefObject<NodeJS.Timeout | null>;
8
+ onResize: () => void;
9
+ }
10
+ export declare const useContainerResize: ({ containerRef, containerSizeRef, resizeTimeoutRef, onResize }: UseContainerResizeOptions, deps: React.DependencyList) => void;
11
+ export {};