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.
- package/LICENSE +21 -0
- package/README.md +56 -0
- package/dist/EzEventModal-DtpvYwGr.js +684 -0
- package/dist/EzGroupingPanel-CFwKUrF_.js +59 -0
- package/dist/EzTableEditDialog-BIk_mNpI.js +60 -0
- package/dist/components/EzKanban/EzKanban.types.d.ts +789 -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 +62 -0
- package/dist/components/EzKanban/components/KanbanCard.d.ts +38 -0
- package/dist/components/EzKanban/components/KanbanColumn.d.ts +55 -0
- package/dist/components/EzKanban/components/KanbanSwimlane.d.ts +46 -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 +45 -0
- package/dist/components/EzKanban/services/KanbanService.d.ts +30 -0
- package/dist/components/EzKanban/state/kanban.store.d.ts +33 -0
- package/dist/components/EzKanban/useEzKanban.d.ts +162 -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 +33 -0
- package/dist/components/EzLayout/EzLanguageSwitcher.d.ts +4 -0
- package/dist/components/EzLayout/EzLayout.types.d.ts +223 -0
- package/dist/components/EzLayout/EzSidebar.d.ts +14 -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 +23 -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 +19 -0
- package/dist/components/EzLayout/useEzLayout.d.ts +26 -0
- package/dist/components/EzScheduler/EzScheduler.types.d.ts +1658 -0
- package/dist/components/EzScheduler/EzSchedulerToolbar.d.ts +117 -0
- package/dist/components/EzScheduler/components/EzEventModal.d.ts +17 -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 +123 -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 +21 -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 +11 -0
- package/dist/components/EzScheduler/hooks/useSchedulerEvents.d.ts +26 -0
- package/dist/components/EzScheduler/hooks/useSchedulerImperative.d.ts +15 -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 +41 -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 +69 -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/tests/phase1_rendering.spec.d.ts +1 -0
- package/dist/components/EzScheduler/tests/phase2_events.spec.d.ts +1 -0
- package/dist/components/EzScheduler/tests/phase3_templates.spec.d.ts +1 -0
- package/dist/components/EzScheduler/tests/phase4_export.spec.d.ts +1 -0
- package/dist/components/EzScheduler/tests/phase5_advanced.spec.d.ts +1 -0
- package/dist/components/EzScheduler/tests/phase6_security.spec.d.ts +1 -0
- package/dist/components/EzScheduler/tests/phase7_regression.spec.d.ts +1 -0
- package/dist/components/EzScheduler/useEzScheduler.d.ts +152 -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 +17 -0
- package/dist/components/EzScheduler/views/AgendaView.d.ts +33 -0
- package/dist/components/EzScheduler/views/DayWeekView.d.ts +182 -0
- package/dist/components/EzScheduler/views/MonthView.d.ts +65 -0
- package/dist/components/EzScheduler/views/TimelineView.d.ts +121 -0
- package/dist/components/EzSignature/EzSignature.d.ts +42 -0
- package/dist/components/EzSignature/EzSignature.test.d.ts +1 -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 +6 -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 +1481 -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 +6 -0
- package/dist/components/EzTable/EzTableToolbar.d.ts +58 -0
- package/dist/components/EzTable/SmartCell.d.ts +7 -0
- package/dist/components/EzTable/__tests__/EzTableDX.test.d.ts +0 -0
- package/dist/components/EzTable/__tests__/EzTableEnterprise.test.d.ts +1 -0
- package/dist/components/EzTable/__tests__/useEzTable.test.d.ts +1 -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/DraggableHeader.d.ts +10 -0
- package/dist/components/EzTable/components/EzTableBodySection.d.ts +70 -0
- package/dist/components/EzTable/components/EzTableCell.d.ts +46 -0
- package/dist/components/EzTable/components/EzTableHeaderSection.d.ts +22 -0
- package/dist/components/EzTable/components/EzTablePaginationSection.d.ts +31 -0
- package/dist/components/EzTable/components/EzTableRow.d.ts +56 -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 +31 -0
- package/dist/components/EzTable/hooks/useTableVirtualization.d.ts +33 -0
- package/dist/components/EzTable/index.d.ts +50 -0
- package/dist/components/EzTable/renderers/index.d.ts +6 -0
- package/dist/components/EzTable/services/TableService.d.ts +26 -0
- package/dist/components/EzTable/useEzTable.d.ts +17 -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 +395 -0
- package/dist/components/EzTreeView/EzTreeViewItem.d.ts +77 -0
- package/dist/components/EzTreeView/EzVirtualTree.d.ts +72 -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 +62 -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/EzTableErrorFallback.d.ts +2 -0
- package/dist/components/shared/components/EzTreeViewErrorFallback.d.ts +2 -0
- package/dist/components/ui/avatar.d.ts +5 -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 +12 -0
- package/dist/components/ui/calendar.d.ts +15 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/checkbox.d.ts +7 -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 +13 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/index.d.ts +26 -0
- package/dist/components/ui/input.d.ts +5 -0
- package/dist/components/ui/label.d.ts +5 -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 +4 -0
- package/dist/components/ui/progress.d.ts +7 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/select.d.ts +24 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/tabs.d.ts +14 -0
- package/dist/components/ui/textarea.d.ts +5 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/ezux.es.js +149 -0
- package/dist/ezux.umd.js +68 -0
- package/dist/index-DBwoXp4n.js +30656 -0
- package/dist/index.d.ts +70 -0
- package/dist/lib/perfect-freehand.d.ts +221 -0
- package/dist/lib/utils.d.ts +2 -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 +1 -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 +12 -0
- package/dist/shared/components/TooltipWrapper.d.ts +12 -0
- package/dist/shared/components/index.d.ts +9 -0
- package/dist/shared/hooks/index.d.ts +56 -0
- package/dist/shared/hooks/useBaseComponent.d.ts +60 -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 +17 -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 +9 -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 +15 -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 +12 -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 +56 -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 +65 -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 +51 -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 +18 -0
- package/dist/shared/types/common.d.ts +292 -0
- package/dist/shared/types/commonTypes.d.ts +101 -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/ezStyleUtils.d.ts +64 -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 +66 -0
- package/dist/shared/utils/validationUtils.d.ts +16 -0
- package/package.json +101 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SchedulerEvent, Resource, ViewType, EzSchedulerComponents, GroupModel } from '../EzScheduler.types';
|
|
3
|
+
import { Virtualizer } from '@tanstack/react-virtual';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the DayWeekView component.
|
|
6
|
+
*/
|
|
7
|
+
interface DayWeekViewProps {
|
|
8
|
+
/**
|
|
9
|
+
* List of days to display in the view.
|
|
10
|
+
* @group Properties
|
|
11
|
+
*/
|
|
12
|
+
daysInView: Date[];
|
|
13
|
+
/**
|
|
14
|
+
* List of events to display.
|
|
15
|
+
* @group Properties
|
|
16
|
+
*/
|
|
17
|
+
visibleEvents: SchedulerEvent[];
|
|
18
|
+
/**
|
|
19
|
+
* Virtualizer for efficient row rendering.
|
|
20
|
+
* @group Properties
|
|
21
|
+
*/
|
|
22
|
+
rowVirtualizer: Virtualizer<HTMLDivElement, Element>;
|
|
23
|
+
/**
|
|
24
|
+
* List of resources to display as columns (in day view).
|
|
25
|
+
* @group Properties
|
|
26
|
+
*/
|
|
27
|
+
resources?: Resource[];
|
|
28
|
+
/**
|
|
29
|
+
* Whether to show resources as separate columns in day view.
|
|
30
|
+
* @group Properties
|
|
31
|
+
*/
|
|
32
|
+
showResourcesInDayView?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Callback when a slot is clicked.
|
|
35
|
+
* @group Events
|
|
36
|
+
*/
|
|
37
|
+
onSlotClick?: (date: Date, resourceId?: string) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Callback when a slot is double-clicked.
|
|
40
|
+
* @group Events
|
|
41
|
+
*/
|
|
42
|
+
onSlotDoubleClick?: (date: Date, resourceId?: string) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Callback when an event is clicked.
|
|
45
|
+
* @group Events
|
|
46
|
+
*/
|
|
47
|
+
onEventClick?: (event: SchedulerEvent) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Callback when an event is double-clicked.
|
|
50
|
+
* @group Events
|
|
51
|
+
*/
|
|
52
|
+
onEventDoubleClick?: (event: SchedulerEvent) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Callback when an event is deleted.
|
|
55
|
+
* @group Events
|
|
56
|
+
*/
|
|
57
|
+
onEventDelete?: (eventId: string) => void;
|
|
58
|
+
/**
|
|
59
|
+
* ID of the currently active event.
|
|
60
|
+
* @group Properties
|
|
61
|
+
*/
|
|
62
|
+
activeEventId?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Reference to the scroll container.
|
|
65
|
+
* @group Properties
|
|
66
|
+
*/
|
|
67
|
+
scrollRef?: React.RefObject<HTMLDivElement | null>;
|
|
68
|
+
/**
|
|
69
|
+
* Callback when the view mode changes.
|
|
70
|
+
* @group Events
|
|
71
|
+
*/
|
|
72
|
+
onViewChange?: (view: ViewType) => void;
|
|
73
|
+
/**
|
|
74
|
+
* Callback when the selected date changes.
|
|
75
|
+
* @group Events
|
|
76
|
+
*/
|
|
77
|
+
onDateChange?: (date: Date) => void;
|
|
78
|
+
/**
|
|
79
|
+
* Locale for date formatting.
|
|
80
|
+
* @group Properties
|
|
81
|
+
*/
|
|
82
|
+
locale?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Custom components for injection.
|
|
85
|
+
* @group Properties
|
|
86
|
+
*/
|
|
87
|
+
components?: EzSchedulerComponents;
|
|
88
|
+
/**
|
|
89
|
+
* Callback when a range is selected.
|
|
90
|
+
* @group Events
|
|
91
|
+
*/
|
|
92
|
+
onRangeSelect?: (start: Date, end: Date, resourceId?: string, position?: {
|
|
93
|
+
x: number;
|
|
94
|
+
y: number;
|
|
95
|
+
}) => void;
|
|
96
|
+
/**
|
|
97
|
+
* Template for the date header.
|
|
98
|
+
* @group Models
|
|
99
|
+
*/
|
|
100
|
+
dateHeaderTemplate?: string | ((props: any) => React.ReactNode);
|
|
101
|
+
/**
|
|
102
|
+
* Whether to show week numbers.
|
|
103
|
+
* @group Properties
|
|
104
|
+
*/
|
|
105
|
+
showWeekNumber?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Rule for calculating week numbers.
|
|
108
|
+
* @group Properties
|
|
109
|
+
*/
|
|
110
|
+
weekRule?: 'FirstDay' | 'FirstFourDayWeek' | 'FirstFullWeek';
|
|
111
|
+
/**
|
|
112
|
+
* Time formatting string (e.g., "HH:mm").
|
|
113
|
+
* @group Properties
|
|
114
|
+
*/
|
|
115
|
+
timeFormat?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Template for cells.
|
|
118
|
+
* @group Models
|
|
119
|
+
*/
|
|
120
|
+
cellTemplate?: (data: any) => React.ReactNode;
|
|
121
|
+
/**
|
|
122
|
+
* Whether to enable HTML sanitization for templates.
|
|
123
|
+
* @group Properties
|
|
124
|
+
*/
|
|
125
|
+
enableHtmlSanitizer?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Callback when hovering over an event.
|
|
128
|
+
* @group Events
|
|
129
|
+
*/
|
|
130
|
+
hover?: (event: SchedulerEvent) => void;
|
|
131
|
+
/**
|
|
132
|
+
* Whether to show an unassigned lane for events without a resource.
|
|
133
|
+
* @group Properties
|
|
134
|
+
*/
|
|
135
|
+
showUnassignedLane?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Start hour for the view (e.g., "08:00").
|
|
138
|
+
* @group Properties
|
|
139
|
+
*/
|
|
140
|
+
startHour?: string;
|
|
141
|
+
/**
|
|
142
|
+
* End hour for the view (e.g., "18:00").
|
|
143
|
+
* @group Properties
|
|
144
|
+
*/
|
|
145
|
+
endHour?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Duration of each slot in minutes.
|
|
148
|
+
* @group Properties
|
|
149
|
+
*/
|
|
150
|
+
slotDuration?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Use 24-hour time format.
|
|
153
|
+
* @group Properties
|
|
154
|
+
*/
|
|
155
|
+
is24Hour?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Callback to toggle 24-hour time format.
|
|
158
|
+
* @group Methods
|
|
159
|
+
*/
|
|
160
|
+
setIs24Hour?: (is24: boolean) => void;
|
|
161
|
+
/**
|
|
162
|
+
* Grouping configuration.
|
|
163
|
+
* @group Models
|
|
164
|
+
*/
|
|
165
|
+
group?: GroupModel;
|
|
166
|
+
/**
|
|
167
|
+
* Callback for cell context menu.
|
|
168
|
+
* @group Events
|
|
169
|
+
*/
|
|
170
|
+
onCellContextMenu?: (args: {
|
|
171
|
+
date: Date;
|
|
172
|
+
x: number;
|
|
173
|
+
y: number;
|
|
174
|
+
}) => void;
|
|
175
|
+
/**
|
|
176
|
+
* Text direction.
|
|
177
|
+
* @group Appearance
|
|
178
|
+
*/
|
|
179
|
+
dir?: 'ltr' | 'rtl' | 'auto';
|
|
180
|
+
}
|
|
181
|
+
export declare const DayWeekView: React.FC<DayWeekViewProps>;
|
|
182
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SchedulerEvent, EzSchedulerComponents } from '../EzScheduler.types';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the MonthView component.
|
|
4
|
+
*/
|
|
5
|
+
interface MonthViewProps {
|
|
6
|
+
/**
|
|
7
|
+
* The currently displayed date.
|
|
8
|
+
* @group Properties
|
|
9
|
+
*/
|
|
10
|
+
currentDate: Date;
|
|
11
|
+
/**
|
|
12
|
+
* List of days to display in the grid.
|
|
13
|
+
* @group Properties
|
|
14
|
+
*/
|
|
15
|
+
daysInView: Date[];
|
|
16
|
+
/**
|
|
17
|
+
* List of events to display.
|
|
18
|
+
* @group Properties
|
|
19
|
+
*/
|
|
20
|
+
visibleEvents: SchedulerEvent[];
|
|
21
|
+
/**
|
|
22
|
+
* Callback when a slot is clicked.
|
|
23
|
+
* @group Events
|
|
24
|
+
*/
|
|
25
|
+
onSlotClick?: (date: Date) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Callback when a slot is double-clicked.
|
|
28
|
+
* @group Events
|
|
29
|
+
*/
|
|
30
|
+
onSlotDoubleClick?: (date: Date) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Callback when an event is clicked.
|
|
33
|
+
* @group Events
|
|
34
|
+
*/
|
|
35
|
+
onEventClick?: (event: SchedulerEvent) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Custom components for injection.
|
|
38
|
+
* @group Properties
|
|
39
|
+
*/
|
|
40
|
+
components?: EzSchedulerComponents;
|
|
41
|
+
/**
|
|
42
|
+
* Callback when the "more events" indicator is clicked.
|
|
43
|
+
* @group Events
|
|
44
|
+
*/
|
|
45
|
+
moreEventsClick?: (data: {
|
|
46
|
+
date: Date;
|
|
47
|
+
event?: SchedulerEvent;
|
|
48
|
+
}) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Number of months to display.
|
|
51
|
+
* @group Properties
|
|
52
|
+
*/
|
|
53
|
+
monthsCount?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Text direction.
|
|
56
|
+
* @group Appearance
|
|
57
|
+
*/
|
|
58
|
+
dir?: 'ltr' | 'rtl' | 'auto';
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A monthly grid view of events.
|
|
62
|
+
* @group Views
|
|
63
|
+
*/
|
|
64
|
+
export declare const MonthView: React.FC<MonthViewProps>;
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SchedulerEvent, Resource, ViewType, EzSchedulerComponents, GroupModel } from '../EzScheduler.types';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the TimelineView component.
|
|
5
|
+
*/
|
|
6
|
+
interface TimelineViewProps {
|
|
7
|
+
/**
|
|
8
|
+
* The type of timeline view (day, week, month).
|
|
9
|
+
* @group Properties
|
|
10
|
+
*/
|
|
11
|
+
view: ViewType;
|
|
12
|
+
/**
|
|
13
|
+
* The currently displayed date.
|
|
14
|
+
* @group Properties
|
|
15
|
+
*/
|
|
16
|
+
currentDate: Date;
|
|
17
|
+
/**
|
|
18
|
+
* List of days to display in the timeline.
|
|
19
|
+
* @group Properties
|
|
20
|
+
*/
|
|
21
|
+
daysInView: Date[];
|
|
22
|
+
/**
|
|
23
|
+
* List of events to display.
|
|
24
|
+
* @group Properties
|
|
25
|
+
*/
|
|
26
|
+
visibleEvents: SchedulerEvent[];
|
|
27
|
+
/**
|
|
28
|
+
* List of resources to display as lanes.
|
|
29
|
+
* @group Properties
|
|
30
|
+
*/
|
|
31
|
+
resources?: Resource[];
|
|
32
|
+
/**
|
|
33
|
+
* Callback when a slot is clicked.
|
|
34
|
+
* @group Events
|
|
35
|
+
*/
|
|
36
|
+
onSlotClick?: (date: Date, resourceId?: string) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Callback when a slot is double-clicked.
|
|
39
|
+
* @group Events
|
|
40
|
+
*/
|
|
41
|
+
onSlotDoubleClick?: (date: Date, resourceId?: string) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Callback when an event is clicked.
|
|
44
|
+
* @group Events
|
|
45
|
+
*/
|
|
46
|
+
onEventClick?: (event: SchedulerEvent) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Callback when an event is deleted.
|
|
49
|
+
* @group Events
|
|
50
|
+
*/
|
|
51
|
+
onEventDelete?: (eventId: string) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Callback when a range is selected.
|
|
54
|
+
* @group Events
|
|
55
|
+
*/
|
|
56
|
+
onRangeSelect?: (start: Date, end: Date, resourceId?: string, position?: {
|
|
57
|
+
x: number;
|
|
58
|
+
y: number;
|
|
59
|
+
}) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Custom components for injection.
|
|
62
|
+
* @group Properties
|
|
63
|
+
*/
|
|
64
|
+
components?: EzSchedulerComponents;
|
|
65
|
+
/**
|
|
66
|
+
* Whether to show the current time indicator.
|
|
67
|
+
* @group Properties
|
|
68
|
+
*/
|
|
69
|
+
currentTimeIndicator?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Whether to show resource header names.
|
|
72
|
+
* @group Properties
|
|
73
|
+
*/
|
|
74
|
+
showResourceHeaders?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Grouping configuration.
|
|
77
|
+
* @group Models
|
|
78
|
+
*/
|
|
79
|
+
group?: GroupModel;
|
|
80
|
+
/**
|
|
81
|
+
* Whether to show an unassigned lane for events without a resource.
|
|
82
|
+
* @group Properties
|
|
83
|
+
*/
|
|
84
|
+
showUnassignedLane?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Start hour for the timeline (e.g., "08:00").
|
|
87
|
+
* @group Properties
|
|
88
|
+
*/
|
|
89
|
+
startHour?: string;
|
|
90
|
+
/**
|
|
91
|
+
* End hour for the timeline (e.g., "18:00").
|
|
92
|
+
* @group Properties
|
|
93
|
+
*/
|
|
94
|
+
endHour?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Duration of each slot in minutes.
|
|
97
|
+
* @group Properties
|
|
98
|
+
*/
|
|
99
|
+
slotDuration?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Use 24-hour time format.
|
|
102
|
+
* @group Properties
|
|
103
|
+
*/
|
|
104
|
+
is24Hour?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Reference to the scroll container for external control and auto-scrolling.
|
|
107
|
+
* @group Properties
|
|
108
|
+
*/
|
|
109
|
+
scrollRef?: React.RefObject<HTMLDivElement | null>;
|
|
110
|
+
/**
|
|
111
|
+
* Text direction.
|
|
112
|
+
* @group Appearance
|
|
113
|
+
*/
|
|
114
|
+
dir?: 'ltr' | 'rtl' | 'auto';
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* A horizontal timeline view with resource lanes.
|
|
118
|
+
* @group Views
|
|
119
|
+
*/
|
|
120
|
+
export declare const TimelineView: React.FC<TimelineViewProps>;
|
|
121
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EzSignatureProps, EzSignatureRef } from './EzSignature.types';
|
|
3
|
+
/**
|
|
4
|
+
* EzSignature is a high-fidelity digital ink and signature capture engine.
|
|
5
|
+
* It provides a smooth, pressure-sensitive drawing experience using SVG
|
|
6
|
+
* and perfect-freehand algorithms, suitable for legal and formal validations.
|
|
7
|
+
*
|
|
8
|
+
|
|
9
|
+
* ### Key Features
|
|
10
|
+
* - **Natural Ink Flow**: Advanced smoothing and streamlining for professional-looking signatures.
|
|
11
|
+
* - **Pressure Sensitivity**: Dynamically adjusts stroke width based on pointer pressure.
|
|
12
|
+
* - **Multi-Format Export**: Save signatures as high-resolution `PNG`, `JPEG`, or vector `SVG`.
|
|
13
|
+
* - **Vector Persistence**: Stores signatures as geometric point data for lossless scaling and reproduction.
|
|
14
|
+
* - **Undo/Redo Stack**: Full transactional history for correcting mistakes during capture.
|
|
15
|
+
* - **Theme Aware**: Automatically adjusts stroke colors based on active theme or custom palettes.
|
|
16
|
+
*
|
|
17
|
+
* ### Minimal Example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <EzSignature
|
|
20
|
+
* width={400}
|
|
21
|
+
* height={200}
|
|
22
|
+
* onSave={(dataUrl) => submitSignature(dataUrl)}
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ### Imperative Control
|
|
27
|
+
* ```tsx
|
|
28
|
+
* const sigRef = useRef<EzSignatureRef>(null);
|
|
29
|
+
*
|
|
30
|
+
* return (
|
|
31
|
+
* <>
|
|
32
|
+
* <EzSignature ref={sigRef} />
|
|
33
|
+
* <button onClick={() => sigRef.current?.clear()}>Clear</button>
|
|
34
|
+
* <button onClick={() => sigRef.current?.save('png')}>Download</button>
|
|
35
|
+
* </>
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @group Core Components
|
|
40
|
+
*/
|
|
41
|
+
declare const EzSignature: React.ForwardRefExoticComponent<EzSignatureProps & React.RefAttributes<EzSignatureRef>>;
|
|
42
|
+
export default EzSignature;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { SharedBaseProps } from '../../shared/types/BaseProps';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the EzSignature component.
|
|
4
|
+
* @group Properties
|
|
5
|
+
*/
|
|
6
|
+
export interface EzSignatureProps extends SharedBaseProps {
|
|
7
|
+
/**
|
|
8
|
+
* Width of the signature canvas.
|
|
9
|
+
* @default '100%'
|
|
10
|
+
* @group Properties
|
|
11
|
+
*/
|
|
12
|
+
width?: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* Height of the signature canvas.
|
|
15
|
+
* @default 300
|
|
16
|
+
* @group Properties
|
|
17
|
+
*/
|
|
18
|
+
height?: string | number;
|
|
19
|
+
/**
|
|
20
|
+
* Background color of the signature pad.
|
|
21
|
+
* @default 'transparent'
|
|
22
|
+
* @group Properties
|
|
23
|
+
*/
|
|
24
|
+
backgroundColor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Stroke color of the signature.
|
|
27
|
+
* @default 'currentColor' (uses theme foreground)
|
|
28
|
+
* @group Properties
|
|
29
|
+
*/
|
|
30
|
+
strokeColor?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Minimum stroke width.
|
|
33
|
+
* @default 2
|
|
34
|
+
* @group Properties
|
|
35
|
+
*/
|
|
36
|
+
minStrokeWidth?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Maximum stroke width.
|
|
39
|
+
* @default 4
|
|
40
|
+
* @group Properties
|
|
41
|
+
*/
|
|
42
|
+
maxStrokeWidth?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Factor to smooth the stroke.
|
|
45
|
+
* @default 0.5
|
|
46
|
+
* @group Properties
|
|
47
|
+
*/
|
|
48
|
+
smoothing?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Effect of pressure on the stroke's size.
|
|
51
|
+
* @default 0.5
|
|
52
|
+
* @group Properties
|
|
53
|
+
*/
|
|
54
|
+
thinning?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Callback when signature stroke ends.
|
|
57
|
+
* @group Events
|
|
58
|
+
*/
|
|
59
|
+
onEnd?: (event: React.PointerEvent<SVGSVGElement>) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Callback when signature changes (after each stroke).
|
|
62
|
+
* @group Events
|
|
63
|
+
*/
|
|
64
|
+
onChange?: (signature: string[]) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Callback when signature is saved.
|
|
67
|
+
* @group Events
|
|
68
|
+
*/
|
|
69
|
+
onSave?: (signature: string, format: string) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Read only mode.
|
|
72
|
+
* @group Properties
|
|
73
|
+
*/
|
|
74
|
+
readOnly?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Disabled mode.
|
|
77
|
+
* @group Properties
|
|
78
|
+
*/
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Imperative API for EzSignature.
|
|
83
|
+
* @group Methods
|
|
84
|
+
*/
|
|
85
|
+
export interface EzSignatureRef {
|
|
86
|
+
/**
|
|
87
|
+
* Clears the signature pad.
|
|
88
|
+
* @group Methods
|
|
89
|
+
*/
|
|
90
|
+
clear: () => void;
|
|
91
|
+
/**
|
|
92
|
+
* Undoes the last stroke.
|
|
93
|
+
* @group Methods
|
|
94
|
+
*/
|
|
95
|
+
undo: () => void;
|
|
96
|
+
/**
|
|
97
|
+
* Redoes the last undone stroke.
|
|
98
|
+
* @group Methods
|
|
99
|
+
*/
|
|
100
|
+
redo: () => void;
|
|
101
|
+
/**
|
|
102
|
+
* Checks if undo is possible.
|
|
103
|
+
* @group Methods
|
|
104
|
+
*/
|
|
105
|
+
canUndo: () => boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Checks if redo is possible.
|
|
108
|
+
* @group Methods
|
|
109
|
+
*/
|
|
110
|
+
canRedo: () => boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Saves the signature to a Base64 string.
|
|
113
|
+
* @group Methods
|
|
114
|
+
*/
|
|
115
|
+
save: (format?: 'png' | 'jpeg' | 'svg') => Promise<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Loads a signature from a JSON string of points or Base64 (if supported).
|
|
118
|
+
* Currently supports loading array of Point arrays.
|
|
119
|
+
* @group Methods
|
|
120
|
+
*/
|
|
121
|
+
load: (data: any) => void;
|
|
122
|
+
/**
|
|
123
|
+
* Checks if signature is empty.
|
|
124
|
+
* @group Methods
|
|
125
|
+
*/
|
|
126
|
+
isEmpty: () => boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Returns the geometric data of the signature.
|
|
129
|
+
* @group Methods
|
|
130
|
+
*/
|
|
131
|
+
getSignature: () => number[][][];
|
|
132
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Column, Table } from '@tanstack/react-table';
|
|
2
|
+
interface EzColumnMenuProps<TData, TValue> {
|
|
3
|
+
column: Column<TData, TValue>;
|
|
4
|
+
table: Table<TData>;
|
|
5
|
+
}
|
|
6
|
+
export declare function EzColumnMenu<TData, TValue>({ column, table }: EzColumnMenuProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface EzDateFilterTreeProps {
|
|
2
|
+
uniqueValues: Map<any, number>;
|
|
3
|
+
selectedValues: Set<any> | null;
|
|
4
|
+
onBulkSelect: (values: any[], checked: boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function EzDateFilterTree({ uniqueValues, selectedValues, onBulkSelect }: EzDateFilterTreeProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Column } from '@tanstack/react-table';
|
|
2
|
+
interface EzExcelFilterProps<TData, TValue> {
|
|
3
|
+
column: Column<TData, TValue>;
|
|
4
|
+
}
|
|
5
|
+
export declare function EzExcelFilter<TData, TValue>({ column }: EzExcelFilterProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FilterGroup } from './EzTable.types';
|
|
3
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
4
|
+
interface EzFilterBuilderProps {
|
|
5
|
+
filter: FilterGroup;
|
|
6
|
+
columns: ColumnDef<any>[];
|
|
7
|
+
onChange: (filter: FilterGroup) => void;
|
|
8
|
+
depth?: number;
|
|
9
|
+
onRemove?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const EzFilterBuilder: React.FC<EzFilterBuilderProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { GroupingState, Column } from '@tanstack/react-table';
|
|
3
|
+
interface EzGroupingPanelProps {
|
|
4
|
+
grouping: GroupingState;
|
|
5
|
+
onGroupingChange: (grouping: GroupingState) => void;
|
|
6
|
+
columns: Column<any, any>[];
|
|
7
|
+
}
|
|
8
|
+
export declare const EzGroupingPanel: React.FC<EzGroupingPanelProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Header } from '@tanstack/react-table';
|
|
3
|
+
interface EzHeaderContextMenuProps {
|
|
4
|
+
header: Header<any, any>;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function EzHeaderContextMenu({ header, children }: EzHeaderContextMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EzTableLocalization } from './EzTable.types';
|
|
2
|
+
interface PaginationProps {
|
|
3
|
+
pageIndex: number;
|
|
4
|
+
pageSize: number;
|
|
5
|
+
pageCount: number;
|
|
6
|
+
totalRows: number;
|
|
7
|
+
onPageChange: (page: number) => void;
|
|
8
|
+
onPageSizeChange: (size: number) => void;
|
|
9
|
+
canPreviousPage: boolean;
|
|
10
|
+
canNextPage: boolean;
|
|
11
|
+
localization?: EzTableLocalization;
|
|
12
|
+
changes?: {
|
|
13
|
+
added: number;
|
|
14
|
+
edited: number;
|
|
15
|
+
deleted: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare const EzPagination: React.FC<PaginationProps>;
|
|
19
|
+
export {};
|