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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./EzProvider-L2qQMq-v.cjs"),t=require("./button-BBMwzUtG.cjs"),n=require("./input-CYlvlbF7.cjs"),r=require("./avatar-BSdRHETK.cjs"),i=require("./label-BGgvoZWD.cjs"),a=require("./dropdown-menu-BRP0tyR_.cjs"),o=require("./EzScheduler-CkqTngI6.cjs"),s=require("./select-sVieKbLu.cjs"),c=require("./checkbox-BrCh_Iid.cjs"),l=require("./TooltipWrapper-DfbFAZ1U.cjs"),u=require("./Modal-BmX1C448.cjs"),d=require("./card-CPlRZxbq.cjs"),f=require("./date-time-picker-Bs-7XzHD.cjs");let p=require("react");p=e.y(p,1);let m=require("class-variance-authority"),h=require("lucide-react"),g=require("react/jsx-runtime"),_=require("@tanstack/react-form"),v=require("@dnd-kit/core"),y=require("@tanstack/react-virtual"),b=require("date-fns"),x=require("@dnd-kit/utilities"),S=require("@dnd-kit/sortable");var C=(0,m.cva)(`inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,destructive:`border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function w({className:t,variant:n,...r}){return(0,g.jsx)(`div`,{className:e._(C({variant:n}),t),...r})}var T=p.createContext(void 0);function E({className:t,defaultValue:n,value:r,onValueChange:i,children:a,ref:o,...s}){let[c,l]=p.useState(n||``),u=r!==void 0,d=u?r:c,f=p.useCallback(e=>{u||l(e),i?.(e)},[u,i]);return(0,g.jsx)(T.Provider,{value:{value:d,onValueChange:f},children:(0,g.jsx)(`div`,{ref:o,className:e._(t),...s,children:a})})}function D({className:t,ref:n,...r}){return(0,g.jsx)(`div`,{ref:n,className:e._(`inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground`,t),...r})}function O({className:t,value:n,onClick:r,ref:i,...a}){let o=p.useContext(T);if(!o)throw Error(`TabsTrigger must be used within Tabs`);return(0,g.jsx)(`button`,{ref:i,type:`button`,className:e._(`inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50`,o.value===n&&`bg-background text-foreground shadow-sm`,t),onClick:e=>{o.onValueChange(n),r?.(e)},...a})}function k({className:t,value:n,children:r,ref:i,...a}){let o=p.useContext(T);if(!o)throw Error(`TabsContent must be used within Tabs`);return o.value===n?(0,g.jsx)(`div`,{ref:i,className:e._(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,t),...a,children:r}):null}var A=({isOpen:e,onClose:a,onSave:o,onDelete:l,card:m,columns:v=[],columnId:y,customFields:b=[],currentUser:x={id:`current-user`,name:`Current User`}})=>{let{t:S}=d.c(),C=()=>typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,w=(0,_.useForm)({defaultValues:{title:m?.title||``,description:m?.description||``,columnId:m?.columnId||y||v[0]?.id||``,priority:m?.priority||`medium`,startDate:m?.startDate?new Date(m.startDate):void 0,dueDate:m?.dueDate?new Date(m.dueDate):void 0,checklists:m?.checklists||[],attachments:m?.attachments||[],comments:m?.comments||[],coverImage:m?.coverImage||``,customFieldValues:m?.customFieldValues||{},subtasks:m?.subtasks||[],timeTracking:m?.timeTracking||{estimated:0,actual:0},activity:m?.activity||[],assignees:m?.assignees||[],tags:m?.tags||[],...m},onSubmit:async({value:e})=>{o(e),a()}});(0,p.useEffect)(()=>{},[e,m]);let T=()=>{m?.id&&l&&l(m.id)},[A,j]=(0,p.useState)({}),M=()=>{let e={id:C(),title:`Checklist`,items:[]};w.pushFieldValue(`checklists`,e)},N=(e,t)=>{j(n=>({...n,[e]:t}))},P=e=>{let t=A[e]?.trim();if(!t)return;let n=(w.getFieldValue(`checklists`)||[]).map(n=>n.id===e?{...n,items:[...n.items,{id:C(),text:t,isChecked:!1}]}:n);w.setFieldValue(`checklists`,n),j(t=>({...t,[e]:``}))},F=(e,t)=>{let n=(w.getFieldValue(`checklists`)||[]).map(n=>n.id===e?{...n,items:n.items.map(e=>e.id===t?{...e,isChecked:!e.isChecked}:e)}:n);w.setFieldValue(`checklists`,n)},[I,L]=(0,p.useState)(``),[R,z]=(0,p.useState)(null),[B,V]=(0,p.useState)(``),[H,U]=(0,p.useState)(null),W=()=>{if(!I.trim())return;let e={id:C(),text:I,authorId:x.id,authorName:x.name,createdAt:new Date};w.pushFieldValue(`comments`,e),L(``);let t={id:C(),type:`comment`,text:`commented "${I.slice(0,20)}${I.length>20?`...`:``}"`,userId:x.id,userName:x.name,createdAt:new Date};w.pushFieldValue(`activity`,t)},G=e=>{z(e.id),V(e.text)},K=()=>{if(R&&B.trim()){let e=(w.getFieldValue(`comments`)||[]).map(e=>e.id===R?{...e,text:B}:e);w.setFieldValue(`comments`,e),z(null),V(``)}},q=()=>{z(null),V(``)},ee=e=>{U(e)},te=()=>{U(null)},ne=e=>{let t=w.getFieldValue(`comments`)||[];w.setFieldValue(`comments`,t.filter(t=>t.id!==e)),U(null);let n={id:C(),type:`delete`,text:`deleted a comment`,userId:x.id,userName:x.name,createdAt:new Date};w.pushFieldValue(`activity`,n)},[J,Y]=(0,p.useState)(``),X=()=>{if(!J.trim())return;let e={id:C(),title:J,isCompleted:!1};w.pushFieldValue(`subtasks`,e),Y(``)},re=e=>{let t=(w.getFieldValue(`subtasks`)||[]).map(t=>t.id===e?{...t,isCompleted:!t.isCompleted}:t);w.setFieldValue(`subtasks`,t)},ie=e=>{let t=w.getFieldValue(`subtasks`)||[];w.setFieldValue(`subtasks`,t.filter(t=>t.id!==e))},Z=p.default.useRef(null),[Q,ae]=(0,p.useState)(!1),[oe,se]=(0,p.useState)(null),ce=async e=>{let t=e.target.files?.[0];if(!t)return;ae(!0),se(null),await new Promise(e=>setTimeout(e,1500));let n={id:C(),name:t.name,url:URL.createObjectURL(t),type:t.type.startsWith(`image/`)?`image`:`file`,size:t.size,uploadedAt:new Date};w.pushFieldValue(`attachments`,n),ae(!1),Z.current&&(Z.current.value=``);let r={id:C(),type:`attachment`,text:`attached ${t.name}`,userId:x.id,userName:x.name,createdAt:new Date};w.pushFieldValue(`activity`,r)},le=e=>{let t=w.getFieldValue(`attachments`)||[];w.setFieldValue(`attachments`,t.filter(t=>t.id!==e));let n={id:C(),type:`delete`,text:`removed an attachment`,userId:x.id,userName:x.name,createdAt:new Date};w.pushFieldValue(`activity`,n)},$=!!m?.id,ue=e=>{e.preventDefault(),e.stopPropagation(),w.handleSubmit()},de=(0,g.jsxs)(`div`,{className:`space-y-6`,children:[(0,g.jsx)(`div`,{className:`flex items-start justify-between gap-4`,children:(0,g.jsxs)(`div`,{className:`flex-1 space-y-4`,children:[(0,g.jsx)(w.Field,{name:`title`,children:e=>(0,g.jsxs)(`div`,{className:`space-y-2`,children:[(0,g.jsx)(i.t,{htmlFor:`title`,className:`text-right`,children:S(`common.title`)}),(0,g.jsx)(n.t,{id:`title`,value:e.state.value,onChange:t=>e.handleChange(t.target.value),placeholder:S(`kanban.cardTitlePlaceholder`),className:`text-lg font-semibold`})]})}),(0,g.jsxs)(`div`,{className:`flex gap-4 items-center`,children:[(0,g.jsx)(`div`,{className:`w-[200px]`,children:(0,g.jsx)(w.Field,{name:`columnId`,children:e=>(0,g.jsxs)(s.t,{value:e.state.value,onValueChange:t=>e.handleChange(t),children:[(0,g.jsx)(s.i,{children:(0,g.jsx)(s.a,{placeholder:`Status`})}),(0,g.jsx)(s.n,{children:v.map(e=>(0,g.jsx)(s.r,{value:e.id,children:e.name},e.id))})]})})}),$&&(0,g.jsxs)(`span`,{className:`text-sm text-muted-foreground font-mono`,children:[`#`,m?.id?.slice(0,8)]})]})]})}),(0,g.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-4`,children:[(0,g.jsx)(w.Field,{name:`priority`,children:e=>(0,g.jsxs)(`div`,{className:`space-y-2`,children:[(0,g.jsx)(i.t,{children:`Priority`}),(0,g.jsxs)(s.t,{value:e.state.value,onValueChange:t=>e.handleChange(t),children:[(0,g.jsx)(s.i,{children:(0,g.jsx)(s.a,{placeholder:`Priority`})}),(0,g.jsxs)(s.n,{children:[(0,g.jsx)(s.r,{value:`low`,children:`Low`}),(0,g.jsx)(s.r,{value:`medium`,children:`Medium`}),(0,g.jsx)(s.r,{value:`high`,children:`High`}),(0,g.jsx)(s.r,{value:`critical`,children:`Critical`})]})]})]})}),(0,g.jsx)(w.Field,{name:`startDate`,children:e=>(0,g.jsxs)(`div`,{className:`space-y-2`,children:[(0,g.jsx)(i.t,{children:`Start Date`}),(0,g.jsx)(f.t,{date:e.state.value,setDate:t=>e.handleChange(t),mode:`date`})]})}),(0,g.jsx)(w.Field,{name:`dueDate`,children:e=>(0,g.jsxs)(`div`,{className:`space-y-2`,children:[(0,g.jsx)(i.t,{children:`Due Date`}),(0,g.jsx)(f.t,{date:e.state.value,setDate:t=>e.handleChange(t),mode:`date`})]})})]}),(0,g.jsx)(w.Field,{name:`description`,children:e=>(0,g.jsxs)(`div`,{className:`space-y-2`,children:[(0,g.jsx)(i.t,{children:`Description`}),(0,g.jsx)(d.s,{value:e.state.value||``,onChange:t=>e.handleChange(t.target.value),className:`min-h-[150px]`})]})}),b.length>0&&(0,g.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4 border-t pt-4`,children:b.map(e=>(0,g.jsx)(w.Field,{name:`customFieldValues.${e.id}`,children:t=>(0,g.jsxs)(`div`,{className:`space-y-2`,children:[(0,g.jsx)(i.t,{children:e.name}),e.type===`text`&&(0,g.jsx)(n.t,{value:t.state.value||``,onChange:e=>t.handleChange(e.target.value)}),e.type===`number`&&(0,g.jsx)(n.t,{type:`number`,value:t.state.value||``,onChange:e=>t.handleChange(Number(e.target.value))}),e.type===`date`&&(0,g.jsx)(f.t,{date:t.state.value,setDate:e=>t.handleChange(e),mode:`date`}),e.type===`select`&&(0,g.jsxs)(s.t,{value:t.state.value||``,onValueChange:e=>t.handleChange(e),children:[(0,g.jsx)(s.i,{children:(0,g.jsx)(s.a,{placeholder:`Select...`})}),(0,g.jsx)(s.n,{children:e.options?.map(e=>(0,g.jsx)(s.r,{value:e,children:e},e))})]}),e.type===`checkbox`&&(0,g.jsxs)(`div`,{className:`flex items-center space-x-2`,children:[(0,g.jsx)(c.t,{checked:!!t.state.value,onCheckedChange:e=>t.handleChange(!!e)}),(0,g.jsx)(`span`,{className:`text-sm font-medium`,children:e.name})]})]})},e.id))}),(0,g.jsxs)(E,{defaultValue:`subtasks`,className:`w-full`,children:[(0,g.jsxs)(D,{className:`grid w-full grid-cols-5`,children:[(0,g.jsx)(O,{value:`subtasks`,children:`Subtasks`}),(0,g.jsx)(O,{value:`checklists`,children:`Checklists`}),(0,g.jsx)(O,{value:`attachments`,children:`Attachments`}),(0,g.jsx)(O,{value:`comments`,children:`Comments`}),(0,g.jsx)(O,{value:`activity`,children:`Activity`})]}),(0,g.jsxs)(k,{value:`subtasks`,className:`space-y-4 pt-4`,children:[(0,g.jsx)(w.Field,{name:`subtasks`,children:e=>(0,g.jsxs)(`div`,{className:`space-y-2`,children:[e.state.value?.map(e=>(0,g.jsxs)(`div`,{className:`flex items-center gap-2 border p-3 rounded-md`,children:[(0,g.jsx)(c.t,{checked:e.isCompleted,onCheckedChange:()=>re(e.id)}),(0,g.jsx)(`span`,{className:e.isCompleted?`line-through text-muted-foreground flex-1`:`flex-1`,children:e.title}),(0,g.jsx)(t.t,{variant:`ghost`,size:`icon`,onClick:()=>ie(e.id),children:(0,g.jsx)(h.X,{className:`w-4 h-4`})})]},e.id)),(!e.state.value||e.state.value.length===0)&&(0,g.jsx)(`div`,{className:`text-center py-8 text-muted-foreground border border-dashed rounded-lg`,children:`No subtasks yet.`})]})}),(0,g.jsxs)(`div`,{className:`flex gap-2`,children:[(0,g.jsx)(n.t,{value:J,onChange:e=>Y(e.target.value),placeholder:`Add a subtask...`,onKeyDown:e=>e.key===`Enter`&&X()}),(0,g.jsx)(t.t,{onClick:X,disabled:!J.trim(),children:`Add`})]})]}),(0,g.jsxs)(k,{value:`checklists`,className:`space-y-4 pt-4`,children:[(0,g.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,g.jsx)(`h3`,{className:`font-medium`,children:`Checklists`}),(0,g.jsxs)(t.t,{size:`sm`,onClick:M,variant:`outline`,children:[(0,g.jsx)(h.Plus,{className:`w-4 h-4 mr-2`}),` Add Checklist`]})]}),(0,g.jsx)(w.Field,{name:`checklists`,children:e=>(0,g.jsxs)(`div`,{className:`space-y-4`,children:[e.state.value?.map(e=>{let r=e.items.length>0?Math.round(e.items.filter(e=>e.isChecked).length/e.items.length*100):0;return(0,g.jsxs)(`div`,{className:`border rounded-md p-4 space-y-3`,children:[(0,g.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,g.jsx)(`div`,{className:`font-medium`,children:e.title}),(0,g.jsxs)(`div`,{className:`text-xs text-muted-foreground`,children:[r,`%`]})]}),(0,g.jsx)(`div`,{className:`h-2 w-full bg-muted rounded-full overflow-hidden`,children:(0,g.jsx)(`div`,{className:`h-full bg-primary transition-all`,style:{width:`${r}%`}})}),(0,g.jsx)(`div`,{className:`space-y-2`,children:e.items.map(t=>(0,g.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,g.jsx)(c.t,{checked:t.isChecked,onCheckedChange:()=>F(e.id,t.id)}),(0,g.jsx)(`span`,{className:t.isChecked?`line-through text-muted-foreground`:``,children:t.text})]},t.id))}),(0,g.jsxs)(`div`,{className:`pt-2 flex gap-2`,children:[(0,g.jsx)(n.t,{placeholder:`Add an item...`,className:`h-8 text-sm`,value:A[e.id]||``,onChange:t=>N(e.id,t.target.value),onKeyDown:t=>t.key===`Enter`&&P(e.id)}),(0,g.jsx)(t.t,{size:`sm`,onClick:()=>P(e.id),disabled:!A[e.id]?.trim(),children:`Add`})]})]},e.id)}),(!e.state.value||e.state.value.length===0)&&(0,g.jsx)(`div`,{className:`text-center py-8 text-muted-foreground border border-dashed rounded-lg`,children:`No checklists yet.`})]})})]}),(0,g.jsxs)(k,{value:`attachments`,className:`space-y-4 pt-4`,children:[(0,g.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,g.jsx)(`h3`,{className:`font-medium`,children:`Attachments`}),(0,g.jsx)(`input`,{type:`file`,className:`hidden`,ref:Z,onChange:ce}),(0,g.jsxs)(`div`,{className:`flex items-center gap-2`,children:[oe&&(0,g.jsx)(`span`,{className:`text-xs text-red-500`,children:oe}),(0,g.jsxs)(t.t,{size:`sm`,variant:`outline`,onClick:()=>Z.current?.click(),disabled:Q,children:[Q?(0,g.jsx)(h.Loader2,{className:`w-4 h-4 mr-2 animate-spin`}):(0,g.jsx)(h.Paperclip,{className:`w-4 h-4 mr-2`}),Q?`Uploading...`:`Upload`]})]})]}),(0,g.jsx)(w.Field,{name:`attachments`,children:e=>(0,g.jsxs)(`div`,{className:`grid grid-cols-2 gap-2`,children:[e.state.value?.map(e=>(0,g.jsxs)(`div`,{className:`border p-2 rounded flex items-center gap-2`,children:[(0,g.jsx)(`div`,{className:`w-10 h-10 bg-muted flex items-center justify-center rounded`,children:(0,g.jsx)(h.Image,{className:`w-5 h-5 text-muted-foreground`})}),(0,g.jsxs)(`div`,{className:`overflow-hidden`,children:[(0,g.jsx)(`div`,{className:`truncate font-medium text-sm`,children:e.name}),(0,g.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:e.type})]}),(0,g.jsx)(t.t,{variant:`ghost`,size:`icon`,className:`ml-auto`,onClick:()=>le(e.id),children:(0,g.jsx)(h.X,{className:`w-4 h-4 text-muted-foreground`})})]},e.id)),(!e.state.value||e.state.value.length===0)&&!Q&&(0,g.jsx)(`div`,{className:`text-center py-8 text-muted-foreground border border-dashed rounded-lg`,children:`No attachments yet.`})]})})]}),(0,g.jsxs)(k,{value:`comments`,className:`space-y-4 pt-4`,children:[(0,g.jsx)(w.Field,{name:`comments`,children:e=>(0,g.jsxs)(`div`,{className:`space-y-4`,children:[e.state.value?.map(e=>(0,g.jsxs)(`div`,{className:`flex gap-3`,children:[(0,g.jsx)(r.t,{className:`w-8 h-8`,children:(0,g.jsx)(r.n,{children:e.authorName[0]})}),(0,g.jsxs)(`div`,{className:`space-y-1 w-full`,children:[(0,g.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,g.jsx)(`span`,{className:`font-semibold text-sm`,children:e.authorName}),(0,g.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:new Date(e.createdAt).toLocaleString()})]}),R===e.id?(0,g.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,g.jsx)(d.s,{value:B,onChange:e=>V(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)?K():e.key===`Escape`&&q()},autoFocus:!0}),(0,g.jsxs)(`div`,{className:`flex gap-2 justify-end`,children:[(0,g.jsx)(t.t,{size:`sm`,variant:`ghost`,onClick:q,children:`Cancel`}),(0,g.jsx)(t.t,{size:`sm`,onClick:K,children:`Save`})]})]}):(0,g.jsx)(`div`,{className:`text-sm bg-muted/50 p-2 rounded-md`,children:e.text}),H===e.id&&(0,g.jsxs)(`div`,{className:`flex items-center gap-2 p-2 bg-red-50 text-red-800 rounded-md text-sm mt-2`,children:[(0,g.jsx)(h.AlertTriangle,{className:`w-4 h-4`}),(0,g.jsx)(`span`,{className:`flex-1`,children:`Delete this comment?`}),(0,g.jsx)(t.t,{size:`sm`,variant:`ghost`,className:`h-6 px-2 hover:bg-red-100 text-red-800`,onClick:te,children:`No`}),(0,g.jsx)(t.t,{size:`sm`,variant:`destructive`,className:`h-6 px-2`,onClick:()=>ne(e.id),children:`Yes`})]})]}),(0,g.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,g.jsx)(t.t,{variant:`ghost`,size:`icon`,className:`h-6 w-6`,onClick:()=>G(e),disabled:!!H,children:(0,g.jsx)(h.Edit2,{className:`w-3 h-3 text-muted-foreground`})}),(0,g.jsx)(t.t,{variant:`ghost`,size:`icon`,className:`h-6 w-6`,onClick:()=>ee(e.id),disabled:!!H,children:(0,g.jsx)(h.Trash2,{className:`w-3 h-3 text-muted-foreground`})})]})]},e.id)),(!e.state.value||e.state.value.length===0)&&(0,g.jsx)(`div`,{className:`text-center py-8 text-muted-foreground`,children:`No comments yet.`})]})}),(0,g.jsx)(`div`,{className:`pt-4 border-t sticky bottom-0 bg-background`,children:(0,g.jsxs)(`div`,{className:`flex gap-2`,children:[(0,g.jsx)(r.t,{className:`w-8 h-8`,children:(0,g.jsx)(r.n,{children:x?.name?.[0]||`U`})}),(0,g.jsxs)(`div`,{className:`flex-1 space-y-2`,children:[(0,g.jsx)(d.s,{value:I,onChange:e=>L(e.target.value),placeholder:`Write a comment...`,rows:2}),(0,g.jsx)(`div`,{className:`flex justify-end`,children:(0,g.jsx)(t.t,{size:`sm`,onClick:W,disabled:!I.trim(),children:`Send`})})]})]})})]}),(0,g.jsx)(k,{value:`activity`,className:`space-y-4 pt-4`,children:(0,g.jsx)(w.Field,{name:`activity`,children:e=>(0,g.jsxs)(`div`,{className:`space-y-4`,children:[e.state.value?.map(e=>(0,g.jsxs)(`div`,{className:`flex gap-3 text-sm`,children:[(0,g.jsx)(`div`,{className:`mt-1`,children:(0,g.jsx)(h.Activity,{className:`w-4 h-4 text-muted-foreground`})}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`span`,{className:`font-semibold`,children:e.userName}),` `,(0,g.jsx)(`span`,{className:`text-muted-foreground`,children:e.text}),(0,g.jsx)(`div`,{className:`text-xs text-muted-foreground mt-1`,children:new Date(e.createdAt).toLocaleString()})]})]},e.id)),(!e.state.value||e.state.value.length===0)&&(0,g.jsx)(`div`,{className:`text-center py-8 text-muted-foreground`,children:`No activity yet.`})]})})})]})]});return(0,g.jsxs)(u.t,{isOpen:e,onClose:a,title:$?`Edit Card`:`New Card`,className:`sm:max-w-[800px] h-[85vh] flex flex-col`,children:[(0,g.jsx)(`div`,{className:`flex-1 overflow-y-auto pr-2`,children:de}),(0,g.jsxs)(`div`,{className:`flex justify-between pt-4 border-t mt-4`,children:[$&&(0,g.jsx)(t.t,{variant:`destructive`,onClick:T,children:`Delete Card`}),(0,g.jsxs)(`div`,{className:`flex gap-2 ml-auto`,children:[(0,g.jsx)(t.t,{variant:`outline`,onClick:a,children:`Cancel`}),(0,g.jsx)(t.t,{onClick:e=>ue(e),children:`Save`})]})]})]})},j={Active:{color:`emerald`,label:`Active`,icon:h.CheckCircle2},Verified:{color:`emerald`,label:`Verified`,icon:h.CheckCircle2},Approved:{color:`emerald`,label:`Approved`,icon:h.CheckCircle2},Published:{color:`teal`,label:`Published`,icon:h.CheckCircle2},Resolved:{color:`teal`,label:`Resolved`,icon:h.CheckCircle2},Completed:{color:`indigo`,label:`Completed`,icon:h.CheckCircle2},"In Progress":{color:`sky`,label:`In Progress`,icon:h.PlayCircle},Open:{color:`sky`,label:`Open`,icon:h.Unlock},Pending:{color:`amber`,label:`Pending`,icon:h.Clock},"Under Review":{color:`amber`,label:`Under Review`,icon:h.FileText},Scheduled:{color:`orange`,label:`Scheduled`,icon:h.Clock},Returned:{color:`orange`,label:`Returned`,icon:h.RefreshCcw},Rejected:{color:`red`,label:`Rejected`,icon:h.XCircle},Disapproved:{color:`red`,label:`Disapproved`,icon:h.XCircle},Unresolved:{color:`red`,label:`Unresolved`,icon:h.AlertCircle},Expired:{color:`red`,label:`Expired`,icon:h.StopCircle},Cancelled:{color:`rose`,label:`Cancelled`,icon:h.XCircle},Unverified:{color:`rose`,label:`Unverified`,icon:h.HelpCircle},Inactive:{color:`slate`,label:`Inactive`,icon:h.XCircle},"On Leave":{color:`blue`,label:`On Leave`,icon:h.Clock},Archived:{color:`gray`,label:`Archived`,icon:h.Archive},Draft:{color:`gray`,label:`Draft`,icon:h.FileText},Closed:{color:`gray`,label:`Closed`,icon:h.Lock},Public:{color:`blue`,label:`Public`,icon:h.Globe},Private:{color:`slate`,label:`Private`,icon:h.Lock},Restricted:{color:`amber`,label:`Restricted`,icon:h.ShieldAlert},Internal:{color:`indigo`,label:`Internal`,icon:h.Users},External:{color:`blue`,label:`External`,icon:h.Globe},System:{color:`violet`,label:`System`,icon:h.Settings},Default:{color:`gray`,label:`Default`,icon:h.HelpCircle}},M={none:`none`,low:`0 0 10px -5px`,medium:`0 0 20px -8px`,high:`0 0 30px -4px`},N=(0,p.memo)(({status:t,className:n,showDot:r=!1,showIcon:i=!1,iconPosition:a=`left`,hideLabel:o=!1,showTooltip:s=!0,variant:c=`solid`,customWidth:l,customHeight:u,customFontSize:d=`11px`,customBgColor:f,customTextColor:p,showBorder:m=!1,borderThickness:h=`1px`,customBorderColor:_,glowIntensity:v=`medium`})=>{let y=j[t]||j.Default,b=y.color,x=y.icon,S=b===`gray`||b===`slate`;return(0,g.jsxs)(`div`,{style:{width:l||void 0,height:u||void 0,fontSize:d,backgroundColor:f||void 0,color:p||void 0,borderWidth:m?h:`0px`,borderColor:_||(m?`currentColor`:`transparent`),borderStyle:m?`solid`:`none`,boxShadow:v!==`none`&&!f?`${M[v]} var(--tw-shadow-color)`:void 0},title:s?y.label:void 0,className:e._(`inline-flex items-center justify-center gap-2 transition-all duration-300 rounded-full font-bold`,o?`p-1.5 w-[28px] h-[28px]`:`px-3 py-1`,!l&&!o&&`min-w-[120px]`,!u&&!o&&`min-h-[28px]`,!f&&(c===`solid`?`bg-${b}-100`:`bg-transparent`),!p&&`text-${b}-950`,!f&&`dark:bg-${b}-300`,!p&&(S?`dark:text-white dark:bg-gray-800`:`dark:text-black`),`shadow-${b}-500/40`,s&&`cursor-help`,n),children:[a===`left`&&i&&(0,g.jsx)(x,{className:e._(`shrink-0 stroke-[3px]`,o?`w-4 h-4`:`w-3.5 h-3.5`)}),r&&!i&&!o&&(0,g.jsx)(`span`,{className:e._(`w-1.5 h-1.5 rounded-full flex-shrink-0`,`bg-${b}-700`,S?`dark:bg-white`:`dark:bg-black/70`)}),!o&&(0,g.jsx)(`span`,{className:`uppercase tracking-widest font-black leading-none`,children:y.label}),a===`right`&&i&&(0,g.jsx)(x,{className:e._(`shrink-0 stroke-[3px]`,o?`w-4 h-4`:`w-3.5 h-3.5`)})]})});N.displayName=`StatusBadge`;var P={formatDate:(e,t=`PP`)=>{if(!e)return``;let n=new Date(e);return(0,b.isValid)(n)?(0,b.format)(n,t):``},formatDateTime:(e,t=`PP p`)=>{if(!e)return``;let n=new Date(e);return(0,b.isValid)(n)?(0,b.format)(n,t):``},isValidDate:e=>(0,b.isValid)(new Date(e))},F=({card:t,onClick:n,onDoubleClick:i,isDragging:a,isHighlighted:o,enableTooltip:s,tooltipTemplate:c,customFields:u,slots:f,slotProps:p,className:m,dir:_})=>{let v=_===`rtl`,{attributes:y,listeners:b,setNodeRef:C,transform:T,transition:E,isDragging:D}=(0,S.useSortable)({id:t.id,data:{type:`card`,card:t}}),O=a||D,k={transform:x.CSS.Translate.toString(T),transition:E},A={low:`Pending`,medium:`In Progress`,high:`Active`,critical:`Inactive`},j=t.checklists?.reduce((e,t)=>e+t.items.length,0)||0,M=t.checklists?.reduce((e,t)=>e+t.items.filter(e=>e.isChecked).length,0)||0,F=t.subtasks?.length||0,I=t.subtasks?.filter(e=>e.isCompleted).length||0,L=(0,g.jsxs)(`div`,{className:`p-0 space-y-2`,children:[t.coverImage&&(0,g.jsx)(`div`,{className:`h-32 w-full overflow-hidden rounded-t-lg`,children:(0,g.jsx)(`img`,{src:t.coverImage,alt:`Cover`,className:`w-full h-full object-cover`})}),(0,g.jsxs)(`div`,{className:e._(`p-3 space-y-2`,t.coverImage?`pt-1`:``),children:[(0,g.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,g.jsx)(`h4`,{className:`font-medium text-sm line-clamp-2 flex-1`,children:t.title}),t.priority&&(0,g.jsx)(N,{status:A[t.priority]||`Pending`,className:`shrink-0`})]}),t.description&&(0,g.jsx)(`p`,{className:`text-xs text-muted-foreground line-clamp-2`,children:t.description}),t.tags&&t.tags.length>0&&(0,g.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:t.tags.map(e=>(0,g.jsx)(w,{variant:`secondary`,className:`text-xs px-2 py-0`,style:{backgroundColor:e.color,color:`#fff`},children:e.name},e.id))}),(j>0||t.attachments&&t.attachments.length>0||t.comments&&t.comments.length>0||F>0||t.timeTracking)&&(0,g.jsxs)(`div`,{className:`flex items-center gap-3 text-muted-foreground pt-1 flex-wrap`,children:[t.attachments&&t.attachments.length>0&&(0,g.jsxs)(`div`,{className:`flex items-center gap-1 text-xs`,children:[(0,g.jsx)(h.Paperclip,{className:`w-3 h-3`}),(0,g.jsx)(`span`,{children:t.attachments.length})]}),t.comments&&t.comments.length>0&&(0,g.jsxs)(`div`,{className:`flex items-center gap-1 text-xs`,children:[(0,g.jsx)(h.MessageSquare,{className:`w-3 h-3`}),(0,g.jsx)(`span`,{children:t.comments.length})]}),j>0&&(0,g.jsxs)(`div`,{className:`flex items-center gap-1 text-xs`,children:[(0,g.jsx)(h.CheckSquare,{className:`w-3 h-3`}),(0,g.jsxs)(`span`,{children:[M,`/`,j]})]}),F>0&&(0,g.jsxs)(`div`,{className:`flex items-center gap-1 text-xs`,children:[(0,g.jsx)(h.List,{className:`w-3 h-3`}),(0,g.jsxs)(`span`,{children:[I,`/`,F]})]}),t.timeTracking&&(t.timeTracking.estimated>0||t.timeTracking.actual>0)&&(0,g.jsxs)(`div`,{className:`flex items-center gap-1 text-xs`,title:`Estimated: ${t.timeTracking.estimated}h, Actual: ${t.timeTracking.actual}h`,children:[(0,g.jsx)(h.Clock,{className:`w-3 h-3`}),(0,g.jsxs)(`span`,{children:[t.timeTracking.actual,`h / `,t.timeTracking.estimated,`h`]})]})]}),(0,g.jsxs)(`div`,{className:`flex items-center justify-between pt-1`,children:[t.assignees&&t.assignees.length>0&&(0,g.jsxs)(`div`,{className:`flex -space-x-2`,children:[t.assignees.slice(0,3).map(e=>(0,g.jsx)(r.t,{className:`w-6 h-6 border-2 border-background`,children:e.avatarUrl?(0,g.jsx)(r.r,{src:e.avatarUrl,alt:e.name}):(0,g.jsx)(r.n,{className:`text-xs`,children:e.name.substring(0,2).toUpperCase()})},e.id)),t.assignees.length>3&&(0,g.jsx)(`div`,{className:`w-6 h-6 rounded-full bg-muted border-2 border-background flex items-center justify-center`,children:(0,g.jsxs)(`span`,{className:`text-xs`,children:[`+`,t.assignees.length-3]})})]}),t.dueDate&&(0,g.jsxs)(`div`,{className:e._(`flex items-center gap-1 text-xs text-muted-foreground`,v?`mr-auto`:`ml-auto`),children:[(0,g.jsx)(h.Calendar,{className:`w-3 h-3`}),(0,g.jsx)(`span`,{children:P.formatDate(t.dueDate)})]})]})]}),u&&u.length>0&&t.customFieldValues&&(0,g.jsx)(`div`,{className:`px-3 pb-3 gap-1 flex flex-wrap`,children:u.map(e=>{let n=t.customFieldValues?.[e.id];return n==null||n===``?null:(0,g.jsxs)(`div`,{className:`text-xs bg-muted px-1.5 py-0.5 rounded flex items-center gap-1 max-w-full truncate`,children:[(0,g.jsxs)(`span`,{className:`text-muted-foreground opacity-70`,children:[e.name,`:`]}),(0,g.jsx)(`span`,{className:`font-medium truncate`,children:e.type===`date`?P.formatDate(n):String(n)})]},e.id)})})]}),R=f?.cardContent,z=R?(0,g.jsx)(R,{card:t,...p?.cardContent}):L,B=(0,g.jsx)(d.t,{ref:C,style:k,...y,...b,onClick:()=>n?.(t),onDoubleClick:()=>i?.(t),id:t.id,"data-card-id":t.id,className:e._(`cursor-pointer transition-all hover:shadow-md overflow-hidden`,O&&`opacity-50 ring-2 ring-primary/50`,o&&`ring-2 ring-primary bg-primary/5 transition-colors duration-300`,m),children:z}),V=f?.card;return V?(0,g.jsx)(V,{card:t,defaultContent:B,...p?.card}):(0,g.jsx)(l.t,{enabled:s,content:c?c(t):null,children:B})};F.displayName=`KanbanCard`;var I=(0,p.memo)(F),L=({cards:e,estimateSize:t=120,overscan:n=5})=>{let r=(0,p.useRef)(null),i=(0,y.useVirtualizer)({count:e.length,getScrollElement:()=>r.current,estimateSize:()=>t,overscan:n});return{parentRef:r,virtualizer:i,virtualItems:i.getVirtualItems(),totalSize:i.getTotalSize()}},R=({column:n,cards:r,onCardClick:i,onCardDoubleClick:o,onCardDragStart:s,onAddCard:c,onToggleCollapse:l,onDeleteColumn:u,onUpdateColumn:f,onColumnClick:m,selectedColumnId:_,draggedCardId:v,highlightedCardId:y,isDropTarget:b,customFields:C,className:w,dir:T,slots:E,slotProps:D})=>{let O=T===`rtl`,{t:k}=d.c(),[A,j]=p.default.useState(!1),M=E?.card||I,[N,P]=p.default.useState(n.name),F=p.default.useRef(null);p.default.useEffect(()=>{A&&F.current&&(F.current.focus(),F.current.select())},[A]);let R=()=>{N.trim()&&N!==n.name?f?.(n.id,{name:N}):P(n.name),j(!1)},z=e=>{e.key===`Enter`?R():e.key===`Escape`&&(P(n.name),j(!1))},B=n.wipLimit&&r.length>n.wipLimit,V=n.wipLimit&&r.length===n.wipLimit,{setNodeRef:H,attributes:U,listeners:W,transform:G,transition:K,isDragging:q}=(0,S.useSortable)({id:n.id,data:{type:`column`,column:n}});return(0,g.jsxs)(d.t,{ref:H,style:{transform:x.CSS.Translate.toString(G),transition:K},className:e._(`flex flex-col w-80 shrink-0 transition-all duration-200`,_===n.id?`ring-2 ring-primary border-primary`:``,q?`opacity-50`:``,b?`ring-2 ring-primary/70 border-primary/50 bg-primary/5`:``,w),onClick:()=>m?.(n.id),children:[(0,g.jsxs)(d.a,{className:`pb-3`,onDoubleClick:()=>j(!0),children:[(0,g.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,g.jsxs)(`div`,{className:`flex items-center gap-2 flex-1`,children:[(0,g.jsx)(`div`,{...U,...W,className:`cursor-grab active:cursor-grabbing p-1 hover:bg-muted rounded text-muted-foreground/50 hover:text-primary transition-colors`,children:(0,g.jsx)(h.MoreHorizontal,{className:`h-4 w-4`})}),(0,g.jsx)(t.t,{variant:`ghost`,size:`sm`,className:`h-6 w-6 p-0`,onClick:()=>l?.(n.id),children:n.isCollapsed?O?(0,g.jsx)(h.ChevronRight,{className:`h-4 w-4 rotate-180`}):(0,g.jsx)(h.ChevronRight,{className:`h-4 w-4`}):(0,g.jsx)(h.ChevronDown,{className:`h-4 w-4`})}),(0,g.jsxs)(`div`,{className:`flex items-center gap-2 flex-1 min-w-0`,children:[A?(0,g.jsx)(`input`,{ref:F,value:N,onChange:e=>P(e.target.value),onBlur:R,onKeyDown:z,className:`h-6 w-full text-sm font-semibold border rounded px-1 bg-background`,onClick:e=>e.stopPropagation()}):(0,g.jsx)(`h3`,{className:`font-semibold text-sm truncate`,title:n.name,children:n.name}),(0,g.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[r.length,` `,k(`items`)]})]})]}),(0,g.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,g.jsxs)(a.t,{children:[(0,g.jsx)(a.h,{asChild:!0,children:(0,g.jsx)(t.t,{variant:`ghost`,size:`sm`,className:`h-6 w-6 p-0`,children:(0,g.jsx)(h.MoreHorizontal,{className:`h-4 w-4`})})}),(0,g.jsx)(a.r,{align:`end`,children:(0,g.jsxs)(a.a,{className:`text-red-600 focus:text-red-600 focus:bg-red-50`,onClick:()=>u?.(n.id),children:[(0,g.jsx)(h.Trash2,{className:`h-4 w-4 me-2`}),k(`delete_column`)||`Delete Column`]})})]}),(0,g.jsx)(t.t,{variant:`ghost`,size:`sm`,className:`h-6 w-6 p-0`,onClick:()=>c?.(n.id),children:(0,g.jsx)(h.Plus,{className:`h-4 w-4`})})]})]}),n.wipLimit&&(0,g.jsx)(`div`,{className:`mt-2`,children:(0,g.jsx)(`div`,{className:`h-1 w-full bg-muted rounded-full overflow-hidden`,children:(0,g.jsx)(`div`,{className:e._(`h-full transition-all`,B?`bg-red-500`:V?`bg-yellow-500`:`bg-green-500`),style:{width:`${Math.min(r.length/n.wipLimit*100,100)}%`}})})})]}),!n.isCollapsed&&(()=>{let t=r.sort((e,t)=>e.position-t.position);if(t.length>50){let{parentRef:e,virtualItems:n,totalSize:r}=L({cards:t,estimateSize:120,overscan:5});return(0,g.jsxs)(d.n,{ref:e,className:`flex-1 overflow-y-auto max-h-[calc(100vh-200px)]`,children:[(0,g.jsx)(`div`,{style:{height:`${r}px`,position:`relative`},children:n.map(e=>{let n=t[e.index];return(0,g.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,width:`100%`,transform:`translateY(${e.start}px)`,paddingBottom:`8px`},children:(0,g.jsx)(`div`,{style:{position:`absolute`,top:0,left:0,width:`100%`,transform:`translateY(${e.start}px)`,paddingBottom:`8px`},children:(0,g.jsx)(M,{card:n,onClick:i,onDoubleClick:o,onDragStart:s,isDragging:v===n.id,isHighlighted:y===n.id,customFields:C,dir:T,...D?.card})},n.id)},n.id)})}),t.length===0&&(0,g.jsx)(`div`,{className:`text-center py-8 text-sm text-muted-foreground`,children:k(`no_cards`)})]})}return(0,g.jsxs)(d.n,{className:`flex-1 overflow-y-auto max-h-[calc(100vh-200px)] space-y-2`,children:[(0,g.jsx)(S.SortableContext,{items:r.map(e=>e.id),strategy:S.verticalListSortingStrategy,children:t.map(e=>(0,g.jsx)(M,{card:e,onClick:i,onDoubleClick:o,onDragStart:s,isDragging:v===e.id,isHighlighted:y===e.id,customFields:C,dir:T,...D?.card},e.id))}),r.length===0&&(0,g.jsx)(`div`,{className:e._(`flex h-32 items-center justify-center rounded-lg border border-dashed text-sm transition-all duration-150`,b?`border-primary/60 bg-primary/5 text-primary/70`:`text-muted-foreground`),children:b?`✦ Drop here`:k(`no_cards`)})]})})()]})},z=({swimlaneId:t,columnId:n,children:r,className:i})=>{let{isOver:a,setNodeRef:o}=(0,v.useDroppable)({id:`swimlane-cell-${t}-${n}`,data:{type:`swimlane-cell`,swimlaneId:t,columnId:n}});return(0,g.jsx)(`div`,{ref:o,className:e._(i,a&&`bg-primary/5 transition-colors`),children:r})},B=({swimlane:n,columns:r,cards:i,onCardClick:a,onCardDoubleClick:o,onCardDragStart:s,onCardDragEnd:c,onToggleCollapse:l,draggedCardId:u,highlightedCardId:f,customFields:p,className:m,dir:_,slots:v,slotProps:y})=>{let b=_===`rtl`,{t:x}=d.c(),S=v?.card||I;return(0,g.jsxs)(`div`,{className:e._(`flex flex-col border rounded-lg bg-card text-card-foreground shadow-sm mb-4`,m),children:[(0,g.jsxs)(`div`,{className:`flex items-center gap-2 p-3 border-b bg-muted/30`,children:[(0,g.jsx)(t.t,{variant:`ghost`,size:`sm`,className:`h-6 w-6 p-0`,onClick:()=>l?.(n.id),children:n.isCollapsed?b?(0,g.jsx)(h.ChevronRight,{className:`h-4 w-4 rotate-180`}):(0,g.jsx)(h.ChevronRight,{className:`h-4 w-4`}):(0,g.jsx)(h.ChevronDown,{className:`h-4 w-4`})}),(0,g.jsx)(`h3`,{className:`font-semibold text-sm`,children:n.name}),(0,g.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`(`,i.length,` `,x(`items`),`)`]})]}),!n.isCollapsed&&(0,g.jsx)(`div`,{className:e._(`flex divide-x`,b&&`divide-x-reverse`),children:r.map(e=>{let t=i.filter(t=>t.columnId===e.id);return(0,g.jsx)(z,{swimlaneId:n.id,columnId:e.id,className:`flex-1 min-w-[280px] p-2 min-h-[100px]`,children:(0,g.jsx)(`div`,{className:`space-y-2`,children:t.map(e=>(0,g.jsx)(S,{card:e,onClick:a,onDoubleClick:o,onDragStart:s,onDragEnd:c,isDragging:u===e.id,isHighlighted:f===e.id,customFields:p,dir:_,...y?.card},e.id))})},e.id)})})]})},V=(e,t)=>t.find(t=>t.id===e.columnId)?.color||`hsl(var(--primary))`,H=({cards:e,columns:t,swimlanes:n,onCardUpdate:r,onCardClick:i,onCardCreate:a,className:s,dir:c})=>{let l=(0,p.useMemo)(()=>{let r=[];return n&&n.length>0?(r=n.sort((e,t)=>e.position-t.position).map(e=>({id:e.id,name:e.name,color:e.color})),e.some(e=>!e.swimlaneId)&&r.push({id:`uncategorized`,name:`Uncategorized`,color:`hsl(var(--muted-foreground))`}),r):t.sort((e,t)=>e.position-t.position).map(e=>({id:e.id,name:e.name,color:e.color}))},[n,t,e]),u=(0,p.useMemo)(()=>e.map(e=>{let r=n&&n.length>0?e.swimlaneId||`uncategorized`:e.columnId||`uncategorized`,i=e.startDate?new Date(e.startDate):e.dueDate?(0,b.startOfDay)(new Date(e.dueDate)):(0,b.startOfDay)(new Date),a=e.dueDate?new Date(e.dueDate):(0,b.addDays)(i,1),o=t.find(t=>t.id===e.columnId);return{id:e.id,title:e.title,start:i,end:a,resourceId:r||`uncategorized`,description:e.description,color:V(e,t),status:o?.name,originalCard:e}}),[e,n,t]),d=(0,p.useCallback)(e=>{let i=e.originalCard;if(!i)return;let a={...i,startDate:e.start,dueDate:e.end,...n&&n.length>0?{swimlaneId:e.resourceId}:{columnId:e.resourceId||i.columnId||t[0]?.id||``}};r?.(a,`move`)},[r,n,t]),f=(0,p.useCallback)(e=>{let r=n&&n.length>0,i={title:e.title||`New Card`,startDate:e.start,dueDate:e.end,columnId:!r&&e.resourceId?e.resourceId:t[0]?.id||``,swimlaneId:r&&e.resourceId?e.resourceId:void 0,description:e.description||``,priority:`medium`};a?.(i)},[n,t,a]),m=(0,p.useCallback)(e=>{let t=e.originalCard;t&&i?.(t)},[i]);return(0,g.jsx)(`div`,{className:s,style:{height:`100%`,minHeight:`600px`},children:(0,g.jsx)(o.t,{events:u,resources:l,selectedDate:new Date,view:`TimelineMonth`,views:[`TimelineWeek`,`TimelineMonth`],onEventChange:d,onEventCreate:f,onEventClick:m,showHeaderBar:!0,showResourceHeaders:!0,dir:c})})},U=({board:n,onCardClick:r,onCardDoubleClick:i,onCardDragStart:a,onCardDragEnd:o,onCardDrop:s,onAddCard:c,onToggleColumnCollapse:l,onToggleSwimlaneCollapse:u,onAddColumn:f,onDeleteColumn:m,onUpdateColumn:_,onColumnClick:y,onCreateCard:b,selectedColumnId:x,draggedCardId:C,filteredCards:w,slots:T,slotProps:E,className:D,view:O=`standard`,dir:k})=>{let A=w||n.cards,{t:j}=d.c(),[M,N]=(0,p.useState)(null),[P,F]=(0,p.useState)(null);if(O===`timeline`)return(0,g.jsx)(H,{cards:A,columns:n.columns,swimlanes:n.swimlanes,onCardUpdate:s?async(e,t)=>{t===`move`&&s(e.columnId,e.swimlaneId)}:void 0,onCardClick:r,onCardCreate:b,className:D,dir:k});let I=()=>!n.swimlanes||n.swimlanes.length===0?null:(0,g.jsx)(`div`,{className:e._(`flex flex-col p-4 overflow-y-auto h-full`,D),children:(0,g.jsxs)(S.SortableContext,{items:A.map(e=>e.id),children:[n.swimlanes.sort((e,t)=>e.position-t.position).map(e=>{let t=A.filter(t=>t.swimlaneId===e.id);return(0,g.jsx)(B,{swimlane:e,columns:n.columns.sort((e,t)=>e.position-t.position),cards:t,onCardClick:r,onCardDoubleClick:i,onCardDragStart:a,onCardDragEnd:o,onDrop:s,onToggleCollapse:u,draggedCardId:C,customFields:n.customFields,slots:T,slotProps:E,dir:k},e.id)}),A.some(e=>!e.swimlaneId)&&(0,g.jsx)(B,{swimlane:{id:`uncategorized`,name:j(`uncategorized`),type:`custom`,position:9999,isCollapsed:!1},columns:n.columns.sort((e,t)=>e.position-t.position),cards:A.filter(e=>!e.swimlaneId),onCardClick:r,onCardDoubleClick:i,onCardDragStart:a,onCardDragEnd:o,onDrop:s,onToggleCollapse:()=>{},draggedCardId:C,customFields:n.customFields,slots:T,slotProps:E,dir:k})]})}),L=(0,v.useSensors)((0,v.useSensor)(v.PointerSensor,{activationConstraint:{distance:5}}));return(0,g.jsxs)(v.DndContext,{sensors:L,onDragStart:e=>{let{active:t}=e;t.data.current?.type===`card`&&(N(t.data.current.card),a?.(t.data.current.card))},onDragOver:e=>{let{over:t}=e;if(!t){F(null);return}t.data.current?.type===`column`?F(t.data.current.column.id):t.data.current?.type===`card`?F(t.data.current.card.columnId):t.data.current?.type===`swimlane-cell`?F(t.data.current.columnId):F(null)},onDragEnd:e=>{let{active:t,over:r}=e;if(N(null),F(null),!r){o?.();return}if(t.data.current?.type===`card`){let e,t,i;if(r.data.current?.type===`column`)e=r.data.current.column.id,t=void 0;else if(r.data.current?.type===`swimlane-cell`)e=r.data.current.columnId,i=r.data.current.swimlaneId;else if(r.data.current?.type===`card`){let a=r.data.current.card;e=a.columnId,i=a.swimlaneId;let o=n.cards.filter(t=>t.columnId===e);i&&(o=o.filter(e=>e.swimlaneId===i)),o.sort((e,t)=>(e.position??0)-(t.position??0));let s=o.findIndex(e=>e.id===a.id);t=s>=0?s:void 0}e?s?.(e,i,t):o?.()}else t.data.current?.type===`column`&&r.data.current?.type,o?.()},children:[O===`swimlane`?I():(0,g.jsxs)(`div`,{className:e._(`flex gap-4 overflow-x-auto p-4`,D),children:[(0,g.jsx)(S.SortableContext,{items:n.columns.map(e=>e.id),strategy:S.horizontalListSortingStrategy,children:n.columns.sort((e,t)=>e.position-t.position).map(e=>(0,g.jsx)(R,{column:e,cards:A.filter(t=>t.columnId===e.id),onCardClick:r,onCardDoubleClick:i,onCardDragStart:a,onCardDragEnd:o,onDrop:s,onAddCard:c,onToggleCollapse:l,onDeleteColumn:m,onUpdateColumn:_,onColumnClick:y,selectedColumnId:x,draggedCardId:C,isDropTarget:P===e.id,customFields:n.customFields,slots:T,slotProps:E,dir:k},e.id))}),f&&(0,g.jsx)(`div`,{className:`w-80 shrink-0`,children:(0,g.jsxs)(t.t,{variant:`outline`,className:`w-full h-12 border-dashed`,onClick:f,children:[(0,g.jsx)(h.Plus,{className:`me-2 h-4 w-4`}),j(`add_column`)||`Add Column`]})})]}),(0,g.jsx)(v.DragOverlay,{dropAnimation:{duration:200,easing:`ease`},children:M?(0,g.jsx)(`div`,{className:`rotate-2 opacity-90 shadow-2xl ring-2 ring-primary/60 rounded-lg pointer-events-none w-72`,children:(0,g.jsxs)(`div`,{className:`bg-card border border-border rounded-lg p-3 space-y-1`,children:[(0,g.jsx)(`p`,{className:`font-medium text-sm`,children:M.title}),M.description&&(0,g.jsx)(`p`,{className:`text-xs text-muted-foreground line-clamp-2`,children:M.description})]})}):null})]})};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return D}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./EzProvider-L2qQMq-v.cjs"),t=require("./button-BBMwzUtG.cjs");let n=require("react");n=e.y(n,1);let r=require("lucide-react"),i=require("react/jsx-runtime"),a=require("react-dom");var o=({isOpen:o,onClose:s,title:c,children:l,footer:u,className:d,size:f=`md`,closeOnBackdropClick:p=!0,showCloseButton:m=!0})=>{let h=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!o)return;let e=document.body.style.overflow;document.body.style.overflow=`hidden`;let t=e=>{if(e.key===`Escape`&&s(),e.key===`Tab`){let t=h.current;if(!t)return;let n=t.querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);if(n.length===0)return;let r=n[0],i=n[n.length-1];e.shiftKey?document.activeElement===r&&(i.focus(),e.preventDefault()):document.activeElement===i&&(r.focus(),e.preventDefault())}};return document.addEventListener(`keydown`,t),()=>{document.body.style.overflow=e,document.removeEventListener(`keydown`,t)}},[o,s]),o?(0,a.createPortal)((0,i.jsxs)(`div`,{className:`fixed inset-0 z-[9999] flex items-center justify-center p-4 sm:p-6`,role:`dialog`,"aria-modal":`true`,children:[(0,i.jsx)(`div`,{className:`fixed inset-0 bg-black/50 backdrop-blur-sm transition-opacity animate-in fade-in duration-200`,onClick:p?s:void 0,"aria-hidden":`true`}),(0,i.jsxs)(`div`,{ref:h,className:e._(`relative w-full bg-background rounded-xl border border-border shadow-2xl flex flex-col overflow-hidden animate-in zoom-in-95 slide-in-from-bottom-2 duration-200`,{sm:`max-w-sm`,md:`max-w-lg`,lg:`max-w-2xl`,xl:`max-w-4xl`,full:`max-w-[95vw] h-[95vh]`}[f],d),children:[(c||m)&&(0,i.jsxs)(`div`,{className:`flex items-center justify-between px-6 py-4 border-b border-border bg-muted/10 shrink-0`,children:[(0,i.jsx)(`div`,{className:`text-lg font-semibold leading-none tracking-tight`,children:c}),m&&(0,i.jsxs)(t.t,{variant:`ghost`,size:`icon`,onClick:s,className:`h-8 w-8 rounded-full p-0 text-muted-foreground hover:bg-muted`,children:[(0,i.jsx)(r.X,{className:`h-4 w-4`}),(0,i.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]}),(0,i.jsx)(`div`,{className:`flex-1 overflow-y-auto p-6 custom-scrollbar`,children:l}),u&&(0,i.jsx)(`div`,{className:`flex items-center justify-end gap-2 px-6 py-4 border-t border-border bg-muted/5 shrink-0`,children:u})]})]}),document.body):null};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { _ as e } from "./EzProvider-AlmsYIDk.js";
|
|
2
|
+
import { t } from "./button-CYyNwV8S.js";
|
|
3
|
+
import { useEffect as n, useRef as r } from "react";
|
|
4
|
+
import { X as i } from "lucide-react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { createPortal as s } from "react-dom";
|
|
7
|
+
//#region src/shared/components/Modal.tsx
|
|
8
|
+
var c = ({ isOpen: c, onClose: l, title: u, children: d, footer: f, className: p, size: m = "md", closeOnBackdropClick: h = !0, showCloseButton: g = !0 }) => {
|
|
9
|
+
let _ = r(null);
|
|
10
|
+
return n(() => {
|
|
11
|
+
if (!c) return;
|
|
12
|
+
let e = document.body.style.overflow;
|
|
13
|
+
document.body.style.overflow = "hidden";
|
|
14
|
+
let t = (e) => {
|
|
15
|
+
if (e.key === "Escape" && l(), e.key === "Tab") {
|
|
16
|
+
let t = _.current;
|
|
17
|
+
if (!t) return;
|
|
18
|
+
let n = t.querySelectorAll("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])");
|
|
19
|
+
if (n.length === 0) return;
|
|
20
|
+
let r = n[0], i = n[n.length - 1];
|
|
21
|
+
e.shiftKey ? document.activeElement === r && (i.focus(), e.preventDefault()) : document.activeElement === i && (r.focus(), e.preventDefault());
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
return document.addEventListener("keydown", t), () => {
|
|
25
|
+
document.body.style.overflow = e, document.removeEventListener("keydown", t);
|
|
26
|
+
};
|
|
27
|
+
}, [c, l]), c ? s(/* @__PURE__ */ o("div", {
|
|
28
|
+
className: "fixed inset-0 z-[9999] flex items-center justify-center p-4 sm:p-6",
|
|
29
|
+
role: "dialog",
|
|
30
|
+
"aria-modal": "true",
|
|
31
|
+
children: [/* @__PURE__ */ a("div", {
|
|
32
|
+
className: "fixed inset-0 bg-black/50 backdrop-blur-sm transition-opacity animate-in fade-in duration-200",
|
|
33
|
+
onClick: h ? l : void 0,
|
|
34
|
+
"aria-hidden": "true"
|
|
35
|
+
}), /* @__PURE__ */ o("div", {
|
|
36
|
+
ref: _,
|
|
37
|
+
className: e("relative w-full bg-background rounded-xl border border-border shadow-2xl flex flex-col overflow-hidden animate-in zoom-in-95 slide-in-from-bottom-2 duration-200", {
|
|
38
|
+
sm: "max-w-sm",
|
|
39
|
+
md: "max-w-lg",
|
|
40
|
+
lg: "max-w-2xl",
|
|
41
|
+
xl: "max-w-4xl",
|
|
42
|
+
full: "max-w-[95vw] h-[95vh]"
|
|
43
|
+
}[m], p),
|
|
44
|
+
children: [
|
|
45
|
+
(u || g) && /* @__PURE__ */ o("div", {
|
|
46
|
+
className: "flex items-center justify-between px-6 py-4 border-b border-border bg-muted/10 shrink-0",
|
|
47
|
+
children: [/* @__PURE__ */ a("div", {
|
|
48
|
+
className: "text-lg font-semibold leading-none tracking-tight",
|
|
49
|
+
children: u
|
|
50
|
+
}), g && /* @__PURE__ */ o(t, {
|
|
51
|
+
variant: "ghost",
|
|
52
|
+
size: "icon",
|
|
53
|
+
onClick: l,
|
|
54
|
+
className: "h-8 w-8 rounded-full p-0 text-muted-foreground hover:bg-muted",
|
|
55
|
+
children: [/* @__PURE__ */ a(i, { className: "h-4 w-4" }), /* @__PURE__ */ a("span", {
|
|
56
|
+
className: "sr-only",
|
|
57
|
+
children: "Close"
|
|
58
|
+
})]
|
|
59
|
+
})]
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ a("div", {
|
|
62
|
+
className: "flex-1 overflow-y-auto p-6 custom-scrollbar",
|
|
63
|
+
children: d
|
|
64
|
+
}),
|
|
65
|
+
f && /* @__PURE__ */ a("div", {
|
|
66
|
+
className: "flex items-center justify-end gap-2 px-6 py-4 border-t border-border bg-muted/5 shrink-0",
|
|
67
|
+
children: f
|
|
68
|
+
})
|
|
69
|
+
]
|
|
70
|
+
})]
|
|
71
|
+
}), document.body) : null;
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
export { c as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { _ as e, n as t } from "./EzProvider-AlmsYIDk.js";
|
|
2
|
+
import { useEffect as n, useState as r } from "react";
|
|
3
|
+
import { AlertCircle as i, AlertTriangle as a, CheckCircle as o, Info as s, X as c } from "lucide-react";
|
|
4
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
|
+
//#region src/shared/components/NotificationPanel.tsx
|
|
6
|
+
var d = () => {
|
|
7
|
+
let d = t(), [f, p] = r([]);
|
|
8
|
+
n(() => {
|
|
9
|
+
let e, t = () => {
|
|
10
|
+
let t = d.get("NotificationService");
|
|
11
|
+
t && !e && (e = t.subscribe(p));
|
|
12
|
+
};
|
|
13
|
+
t();
|
|
14
|
+
let n = d.subscribe(() => {
|
|
15
|
+
t();
|
|
16
|
+
});
|
|
17
|
+
return () => {
|
|
18
|
+
e && e(), n();
|
|
19
|
+
};
|
|
20
|
+
}, []);
|
|
21
|
+
let m = (e) => {
|
|
22
|
+
let t = d.get("NotificationService");
|
|
23
|
+
t && t.remove(e);
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ l("div", {
|
|
26
|
+
"data-testid": "notification-panel",
|
|
27
|
+
className: "fixed top-20 right-4 z-[9999] flex flex-col gap-3 pointer-events-none w-[384px] max-w-[calc(100vw-2rem)]",
|
|
28
|
+
children: f.map((t) => /* @__PURE__ */ u("div", {
|
|
29
|
+
className: e("pointer-events-auto flex items-start gap-3 p-4 rounded-xl border shadow-2xl animate-in slide-in-from-right-full duration-300", t.type === "success" && "bg-green-50 border-green-200 text-green-900 dark:bg-green-900/20 dark:border-green-800/50 dark:text-green-100", t.type === "error" && "bg-red-50 border-red-200 text-red-900 dark:bg-red-900/20 dark:border-red-800/50 dark:text-red-100", t.type === "warning" && "bg-amber-50 border-amber-200 text-amber-900 dark:bg-amber-900/20 dark:border-amber-800/50 dark:text-amber-100", t.type === "info" && "bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-900/20 dark:border-blue-800/50 dark:text-blue-100"),
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ u("div", {
|
|
32
|
+
className: "shrink-0 mt-0.5",
|
|
33
|
+
children: [
|
|
34
|
+
t.type === "success" && /* @__PURE__ */ l(o, { className: "h-5 w-5 text-green-600" }),
|
|
35
|
+
t.type === "error" && /* @__PURE__ */ l(i, { className: "h-5 w-5 text-red-600" }),
|
|
36
|
+
t.type === "warning" && /* @__PURE__ */ l(a, { className: "h-5 w-5 text-amber-600" }),
|
|
37
|
+
t.type === "info" && /* @__PURE__ */ l(s, { className: "h-5 w-5 text-blue-600" })
|
|
38
|
+
]
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ l("div", {
|
|
41
|
+
className: "flex-1 text-sm font-medium leading-relaxed",
|
|
42
|
+
children: t.message
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ l("button", {
|
|
45
|
+
onClick: () => m(t.id),
|
|
46
|
+
className: "shrink-0 p-1 hover:bg-black/5 rounded-lg transition-colors",
|
|
47
|
+
children: /* @__PURE__ */ l(c, { className: "h-4 w-4 opacity-50" })
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
}, t.id))
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { d 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("lucide-react"),r=require("react/jsx-runtime");var i=()=>{let i=e.n(),[a,o]=(0,t.useState)([]);(0,t.useEffect)(()=>{let e,t=()=>{let t=i.get(`NotificationService`);t&&!e&&(e=t.subscribe(o))};t();let n=i.subscribe(()=>{t()});return()=>{e&&e(),n()}},[]);let s=e=>{let t=i.get(`NotificationService`);t&&t.remove(e)};return(0,r.jsx)(`div`,{"data-testid":`notification-panel`,className:`fixed top-20 right-4 z-[9999] flex flex-col gap-3 pointer-events-none w-[384px] max-w-[calc(100vw-2rem)]`,children:a.map(t=>(0,r.jsxs)(`div`,{className:e._(`pointer-events-auto flex items-start gap-3 p-4 rounded-xl border shadow-2xl animate-in slide-in-from-right-full duration-300`,t.type===`success`&&`bg-green-50 border-green-200 text-green-900 dark:bg-green-900/20 dark:border-green-800/50 dark:text-green-100`,t.type===`error`&&`bg-red-50 border-red-200 text-red-900 dark:bg-red-900/20 dark:border-red-800/50 dark:text-red-100`,t.type===`warning`&&`bg-amber-50 border-amber-200 text-amber-900 dark:bg-amber-900/20 dark:border-amber-800/50 dark:text-amber-100`,t.type===`info`&&`bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-900/20 dark:border-blue-800/50 dark:text-blue-100`),children:[(0,r.jsxs)(`div`,{className:`shrink-0 mt-0.5`,children:[t.type===`success`&&(0,r.jsx)(n.CheckCircle,{className:`h-5 w-5 text-green-600`}),t.type===`error`&&(0,r.jsx)(n.AlertCircle,{className:`h-5 w-5 text-red-600`}),t.type===`warning`&&(0,r.jsx)(n.AlertTriangle,{className:`h-5 w-5 text-amber-600`}),t.type===`info`&&(0,r.jsx)(n.Info,{className:`h-5 w-5 text-blue-600`})]}),(0,r.jsx)(`div`,{className:`flex-1 text-sm font-medium leading-relaxed`,children:t.message}),(0,r.jsx)(`button`,{onClick:()=>s(t.id),className:`shrink-0 p-1 hover:bg-black/5 rounded-lg transition-colors`,children:(0,r.jsx)(n.X,{className:`h-4 w-4 opacity-50`})})]},t.id))})};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./tooltip-B1wC9m05.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
+
//#region src/shared/utils/imperativeApiUtils.ts
|
|
5
|
+
var s = (e, t, n, r) => ({
|
|
6
|
+
getData: e,
|
|
7
|
+
addRecord: t,
|
|
8
|
+
updateRecord: n,
|
|
9
|
+
deleteRecord: r
|
|
10
|
+
}), c = (e, t) => ({
|
|
11
|
+
showSpinner: e,
|
|
12
|
+
hideSpinner: t
|
|
13
|
+
}), l = (e, t) => {
|
|
14
|
+
let n = { refresh: e };
|
|
15
|
+
return t && (n.forceUpdate = t), n;
|
|
16
|
+
}, u = (e, t, n, r, i, a) => {
|
|
17
|
+
let o = {
|
|
18
|
+
selectRow: e,
|
|
19
|
+
selectRows: t,
|
|
20
|
+
clearSelection: n,
|
|
21
|
+
selectAll: r,
|
|
22
|
+
getSelectedRecords: i
|
|
23
|
+
};
|
|
24
|
+
return a && (o.selectRowByRange = a), o;
|
|
25
|
+
}, d = (e, t) => {
|
|
26
|
+
let n = { scrollToIndex: e };
|
|
27
|
+
return t && (n.goToPage = t), n;
|
|
28
|
+
}, f = (e, t, n) => {
|
|
29
|
+
let r = {};
|
|
30
|
+
return e && (r.exportDataAsCsv = e), t && (r.exportToExcel = t), n && (r.print = n), r;
|
|
31
|
+
}, p = ({ children: s, content: c, enabled: l = !0, delayDuration: u = 300, side: d, align: f, className: p }) => !l || !c ? /* @__PURE__ */ a(i, { children: s }) : /* @__PURE__ */ a(n, { children: /* @__PURE__ */ o(r, {
|
|
32
|
+
delayDuration: u,
|
|
33
|
+
children: [/* @__PURE__ */ a(e, {
|
|
34
|
+
asChild: !0,
|
|
35
|
+
children: s
|
|
36
|
+
}), /* @__PURE__ */ a(t, {
|
|
37
|
+
side: d,
|
|
38
|
+
align: f,
|
|
39
|
+
className: p,
|
|
40
|
+
children: c
|
|
41
|
+
})]
|
|
42
|
+
}) });
|
|
43
|
+
//#endregion
|
|
44
|
+
export { l as a, d as i, s as n, u as o, f as r, c as s, p as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./EzProvider-L2qQMq-v.cjs"),t=require("./tooltip-Qmzrg5u5.cjs");let n=require("react");n=e.y(n,1);let r=require("react/jsx-runtime");var i=(e,t,n,r)=>({getData:e,addRecord:t,updateRecord:n,deleteRecord:r}),a=(e,t)=>({showSpinner:e,hideSpinner:t}),o=(e,t)=>{let n={refresh:e};return t&&(n.forceUpdate=t),n},s=(e,t,n,r,i,a)=>{let o={selectRow:e,selectRows:t,clearSelection:n,selectAll:r,getSelectedRecords:i};return a&&(o.selectRowByRange=a),o},c=(e,t)=>{let n={scrollToIndex:e};return t&&(n.goToPage=t),n},l=(e,t,n)=>{let r={};return e&&(r.exportDataAsCsv=e),t&&(r.exportToExcel=t),n&&(r.print=n),r},u=({children:e,content:n,enabled:i=!0,delayDuration:a=300,side:o,align:s,className:c})=>!i||!n?(0,r.jsx)(r.Fragment,{children:e}):(0,r.jsx)(t.r,{children:(0,r.jsxs)(t.t,{delayDuration:a,children:[(0,r.jsx)(t.i,{asChild:!0,children:e}),(0,r.jsx)(t.n,{side:o,align:s,className:c,children:n})]})});Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return u}});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./EzProvider-L2qQMq-v.cjs");;/* empty css */const t=require("./button-BBMwzUtG.cjs"),n=require("./input-CYlvlbF7.cjs"),r=require("./avatar-BSdRHETK.cjs"),i=require("./label-BGgvoZWD.cjs"),a=require("./dropdown-menu-BRP0tyR_.cjs"),o=require("./NotificationPanel-CFME00wq.cjs"),s=require("./EzTable-CEXvJR1t.cjs"),c=require("./popover-wZKNvYM5.cjs"),l=require("./tooltip-Qmzrg5u5.cjs"),u=require("./select-sVieKbLu.cjs"),d=require("./checkbox-BrCh_Iid.cjs"),f=require("./EzContextMenu-BCUoEQp5.cjs"),p=require("./card-CPlRZxbq.cjs"),m=require("./KanbanBoard-CyitudI1.cjs"),h=require("./scroll-area-DSkE2KB_.cjs"),g=require("./calendar-DEHX32Cp.cjs"),_=require("./date-time-picker-Bs-7XzHD.cjs"),v=require("./EzTableToolbar-DwuumvWP.cjs"),y=require("./EzTableFooter-CtexeDAC.cjs"),b=require("./EzSchedulerToolbar-BJwTpgas.cjs"),x=require("./EzEventModal-CAA9cAM0.cjs"),S=require("./EzSchedulerQuickAdd-BeNfGdWs.cjs");let C=require("react");C=e.y(C,1);let w=require("@radix-ui/react-slot"),T=require("lucide-react"),E=require("react/jsx-runtime");var D=({resources:e,selectedResourceIds:t,onSelectionChange:r,className:a=``})=>{let[o,s]=C.default.useState(``),c=C.default.useMemo(()=>o?e.filter(e=>e.name.toLowerCase().includes(o.toLowerCase())):e,[e,o]),l=e=>{t.includes(e)?r(t.filter(t=>t!==e)):r([...t,e])};return(0,E.jsxs)(`div`,{className:`p-4 border-r border-border bg-background flex flex-col gap-4 overflow-y-auto ${a}`,children:[(0,E.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,E.jsxs)(`div`,{className:`relative`,children:[(0,E.jsx)(T.Search,{className:`absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground`}),(0,E.jsx)(n.t,{type:`search`,placeholder:`Search resources...`,className:`pl-9 h-9 text-sm`,value:o,onChange:e=>s(e.target.value)})]}),(0,E.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,E.jsxs)(`h3`,{className:`font-semibold text-xs uppercase tracking-wider text-muted-foreground`,children:[c.length,` Found`]}),(0,E.jsx)(`button`,{onClick:()=>{if(c.every(e=>t.includes(e.id)))r(t.filter(e=>!c.find(t=>t.id===e)));else{let e=c.map(e=>e.id);r(Array.from(new Set([...t,...e])))}},className:`text-xs text-primary hover:text-primary/80 font-medium`,children:`Select All`})]})]}),(0,E.jsxs)(`div`,{className:`flex flex-col gap-2 min-h-0 flex-1 overflow-y-auto`,children:[c.map(e=>(0,E.jsxs)(`div`,{className:`flex items-center space-x-2 p-1 hover:bg-muted/50 rounded transition-colors`,children:[(0,E.jsx)(d.t,{id:`res-${e.id}`,checked:t.includes(e.id),onCheckedChange:()=>l(e.id),className:`data-[state=checked]:bg-primary data-[state=checked]:border-primary`}),(0,E.jsxs)(i.t,{htmlFor:`res-${e.id}`,className:`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 flex items-center gap-2 cursor-pointer flex-1 py-1`,children:[(0,E.jsx)(`span`,{className:`w-2.5 h-2.5 rounded-full shrink-0`,style:{backgroundColor:e.color||`#ccc`}}),(0,E.jsx)(`span`,{className:`truncate`,children:e.name})]})]},e.id)),c.length===0&&(0,E.jsx)(`div`,{className:`text-center py-8 text-sm text-muted-foreground`,children:`No resources found.`})]})]})},O=[`#06d6a0`,`#ef476f`,`#ffd166`,`#118ab2`,`#073b4c`],k=({text:e,className:t=``,defaultColor:n=`#2d2e33`,highlight:r,delay:i,textSize:a,textDir:o,highlightDir:s})=>{let c=e.split(``),l=`${a||`text-4xl md:text-5xl lg:text-6xl`} font-black tracking-tight ${t}`,u=r?r.split(``):[],[d,f]=(0,C.useState)(!1);(0,C.useEffect)(()=>{let e=()=>{f(document.documentElement.classList.contains(`dark`)||window.matchMedia(`(prefers-color-scheme: dark)`).matches)};e();let t=new MutationObserver(()=>{e()});t.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`]});let n=window.matchMedia(`(prefers-color-scheme: dark)`);return n.addEventListener(`change`,e),()=>{t.disconnect(),n.removeEventListener(`change`,e)}},[]);let p=d?`#ffffff`:n;return(0,E.jsxs)(`span`,{className:`flex flex-col justify-center items-center ${l}`,style:{letterSpacing:`-0.05em`},children:[(0,E.jsx)(`style`,{children:`
|
|
2
|
+
@keyframes wobble {
|
|
3
|
+
0% { transform: translateX(0); }
|
|
4
|
+
20% { transform: translateX(-4px); }
|
|
5
|
+
40% { transform: translateX(4px); }
|
|
6
|
+
60% { transform: translateX(-4px); }
|
|
7
|
+
80% { transform: translateX(4px); }
|
|
8
|
+
100% { transform: translateX(0); }
|
|
9
|
+
}
|
|
10
|
+
`}),(0,E.jsx)(`span`,{className:`flex flex-wrap justify-center text-center`,dir:o,children:c.map((e,t)=>(0,E.jsx)(A,{char:e,defaultColor:p,brandColor:O[t%O.length]},`main-${t}`))}),r&&(0,E.jsx)(`span`,{className:`flex flex-wrap justify-center text-center mt-2`,dir:s,children:u.map((e,t)=>(0,E.jsx)(A,{char:e,defaultColor:`oklch(var(--primary))`,brandColor:O[(c.length+t)%O.length]},`highlight-${t}`))})]})},A=({char:e,defaultColor:t,brandColor:n})=>{let[r,i]=(0,C.useState)(!1);return(0,E.jsx)(`span`,{onMouseEnter:()=>{i(!0)},onAnimationEnd:()=>{i(!1)},style:{display:`inline-block`,whiteSpace:`pre`,cursor:`default`,fontWeight:900,padding:`0 1px`,color:r?n:t,animation:r?`wobble 0.8s ease-in-out 2`:`none`,transition:`color 0.2s ease`},children:e})},j=C.forwardRef(({...e},t)=>(0,E.jsx)(`nav`,{ref:t,"aria-label":`breadcrumb`,...e}));j.displayName=`Breadcrumb`;var M=C.forwardRef(({className:t,...n},r)=>(0,E.jsx)(`ol`,{ref:r,className:e._(`flex flex-wrap items-center gap-1.5 break-words text-sm text-zinc-500 sm:gap-2.5 dark:text-zinc-400`,t),...n}));M.displayName=`BreadcrumbList`;var N=C.forwardRef(({className:t,...n},r)=>(0,E.jsx)(`li`,{ref:r,className:e._(`inline-flex items-center gap-1.5`,t),...n}));N.displayName=`BreadcrumbItem`;var P=C.forwardRef(({asChild:t,className:n,...r},i)=>(0,E.jsx)(t?w.Slot:`a`,{ref:i,className:e._(`transition-colors hover:text-zinc-950 dark:hover:text-zinc-50`,n),...r}));P.displayName=`BreadcrumbLink`;var F=C.forwardRef(({className:t,...n},r)=>(0,E.jsx)(`span`,{ref:r,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:e._(`font-normal text-zinc-950 dark:text-zinc-50`,t),...n}));F.displayName=`BreadcrumbPage`;var I=({children:t,className:n,...r})=>(0,E.jsx)(`li`,{role:`presentation`,"aria-hidden":`true`,className:e._(`[&>svg]:size-3.5`,n),...r,children:t??(0,E.jsx)(T.ChevronRight,{})});I.displayName=`BreadcrumbSeparator`;var L=({className:t,...n})=>(0,E.jsxs)(`span`,{role:`presentation`,"aria-hidden":`true`,className:e._(`flex h-9 w-9 items-center justify-center`,t),...n,children:[(0,E.jsx)(T.MoreHorizontal,{className:`h-4 w-4`}),(0,E.jsx)(`span`,{className:`sr-only`,children:`More`})]});L.displayName=`BreadcrumbElipsis`;var R=C.forwardRef(({className:t,...r},i)=>{let[a,o]=C.useState(!1);return(0,E.jsxs)(`div`,{className:`relative`,children:[(0,E.jsx)(n.t,{type:a?`text`:`password`,className:e._(`pr-10`,t),ref:i,...r}),(0,E.jsxs)(`button`,{type:`button`,onClick:()=>o(e=>!e),className:`absolute right-3 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-zinc-700 dark:text-zinc-400 dark:hover:text-zinc-200 focus:outline-none`,tabIndex:-1,children:[a?(0,E.jsx)(T.EyeOff,{className:`h-4 w-4`,"aria-hidden":`true`}):(0,E.jsx)(T.Eye,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,E.jsxs)(`span`,{className:`sr-only`,children:[a?`Hide`:`Show`,` password`]})]})]})});R.displayName=`PasswordInput`;function z({className:t,...n}){return(0,E.jsx)(`div`,{className:e._(`animate-pulse rounded-md bg-zinc-100 dark:bg-zinc-800`,t),...n})}var B=C.forwardRef(({className:t,...n},r)=>(0,E.jsx)(`div`,{className:`relative w-full overflow-auto`,children:(0,E.jsx)(`table`,{ref:r,className:e._(`w-full caption-bottom text-sm`,t),...n})}));B.displayName=`Table`;var V=C.forwardRef(({className:t,...n},r)=>(0,E.jsx)(`thead`,{ref:r,className:e._(`[&_tr]:border-b`,t),...n}));V.displayName=`TableHeader`;var H=C.forwardRef(({className:t,...n},r)=>(0,E.jsx)(`tbody`,{ref:r,className:e._(`[&_tr:last-child]:border-0`,t),...n}));H.displayName=`TableBody`;var U=C.forwardRef(({className:t,...n},r)=>(0,E.jsx)(`tfoot`,{ref:r,className:e._(`border-t bg-zinc-100/50 font-medium [&>tr]:last:border-b-0 dark:bg-zinc-800/50`,t),...n}));U.displayName=`TableFooter`;var W=C.forwardRef(({className:t,...n},r)=>(0,E.jsx)(`tr`,{ref:r,className:e._(`border-b transition-colors hover:bg-zinc-100/50 data-[state=selected]:bg-zinc-100 dark:hover:bg-zinc-800/50 dark:data-[state=selected]:bg-zinc-800`,t),...n}));W.displayName=`TableRow`;var G=C.forwardRef(({className:t,...n},r)=>(0,E.jsx)(`th`,{ref:r,className:e._(`h-12 px-4 text-left align-middle font-medium text-zinc-500 [&:has([role=checkbox])]:pr-0 dark:text-zinc-400`,t),...n}));G.displayName=`TableHead`;var K=C.forwardRef(({className:t,...n},r)=>(0,E.jsx)(`td`,{ref:r,className:e._(`p-4 align-middle [&:has([role=checkbox])]:pr-0`,t),...n}));K.displayName=`TableCell`;var q=C.forwardRef(({className:t,...n},r)=>(0,E.jsx)(`caption`,{ref:r,className:e._(`mt-4 text-sm text-zinc-500 dark:text-zinc-400`,t),...n}));q.displayName=`TableCaption`;function J({className:t,value:n=0,max:r=100,ref:i,...a}){let o=Math.min(Math.max(n/r*100,0),100);return(0,E.jsx)(`div`,{ref:i,className:e._(`relative h-4 w-full overflow-hidden rounded-full bg-secondary`,t),...a,children:(0,E.jsx)(`div`,{className:`h-full w-full flex-1 bg-primary transition-all duration-300 ease-in-out`,style:{transform:`translateX(-${100-o}%)`}})})}var Y=({isOpen:n,onClose:r,title:i,children:a,className:o})=>(C.useEffect(()=>(n?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[n]),n?(0,E.jsxs)(`div`,{className:`fixed inset-0 z-[100] flex items-center justify-center p-4`,children:[(0,E.jsx)(`div`,{className:`absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity`,onClick:r}),(0,E.jsxs)(`div`,{className:e._(`relative bg-card text-card-foreground w-full max-w-lg rounded-2xl shadow-2xl border flex flex-col max-h-[90vh] overflow-hidden animate-in fade-in zoom-in-95 duration-200`,o),children:[(0,E.jsxs)(`div`,{className:`flex items-center justify-between p-4 border-b`,children:[i&&(0,E.jsx)(`h2`,{className:`text-lg font-bold truncate`,children:i}),(0,E.jsx)(t.t,{variant:`ghost`,size:`icon`,onClick:r,className:`h-8 w-8 rounded-full ml-auto`,children:(0,E.jsx)(T.X,{className:`h-4 w-4`})})]}),(0,E.jsx)(`div`,{className:`flex-1 overflow-y-auto custom-scrollbar`,children:a})]})]}):null),X=C.forwardRef(({options:n,value:r,onValueChange:i,placeholder:a=`Select option...`,searchPlaceholder:o=`Search...`,emptyText:l=`No results found.`,className:u,dropdownWidth:d=`w-[400px]`,disabled:f,dir:p},m)=>{let[h,g]=C.useState(!1),_=C.useMemo(()=>n.find(e=>e.value===r)?.label||``,[n,r]);return(0,E.jsxs)(c.t,{open:h,onOpenChange:g,dir:p,children:[(0,E.jsx)(c.r,{asChild:!0,children:(0,E.jsxs)(t.t,{ref:m,variant:`ghost`,role:`combobox`,"aria-expanded":h,disabled:f,className:e._(`w-full justify-between font-normal bg-white dark:bg-zinc-900 border border-border/10 rounded-xl px-4 py-3 h-12 text-[14px] shadow-sm hover:bg-zinc-50 dark:hover:bg-zinc-800/50 transition-all`,u),children:[(0,E.jsx)(`span`,{className:`truncate`,children:_||(0,E.jsx)(`span`,{className:`text-muted-foreground`,children:a})}),(0,E.jsx)(T.ChevronDown,{className:e._(`ml-2 h-4 w-4 shrink-0 opacity-50 transition-transform duration-200`,h&&`rotate-180`)})]})}),(0,E.jsx)(c.n,{className:e._(`p-0 border-border/10 shadow-xl overflow-hidden bg-white dark:bg-zinc-950`,d),align:p===`rtl`?`end`:`start`,dir:p,children:(0,E.jsxs)(s.p,{children:[(0,E.jsx)(s.g,{placeholder:o,className:`h-11 border-none focus:ring-0`}),(0,E.jsxs)(s.v,{className:`max-h-[300px] overflow-y-auto`,children:[(0,E.jsx)(s.m,{className:`py-6 text-sm text-muted-foreground`,children:l}),(0,E.jsx)(s.h,{className:`p-1 space-y-1`,children:n.map(e=>(0,E.jsx)(s._,{value:e.label,onSelect:()=>{i?.(e.value),g(!1)},className:`px-4 py-3 text-[14px] cursor-default hover:bg-zinc-100 dark:hover:bg-zinc-800 aria-selected:bg-zinc-100 dark:aria-selected:bg-zinc-800 transition-colors rounded-lg text-start`,children:(0,E.jsx)(`span`,{className:`whitespace-normal leading-relaxed flex-1`,children:e.label})},e.value))})]})]})})]})});X.displayName=`Combobox`,exports.AnimatedText=k,exports.Avatar=r.t,exports.AvatarFallback=r.n,exports.AvatarImage=r.r,exports.Badge=m.f,exports.BaseCell=s.A,exports.BooleanCell=s.C,exports.BooleanEditor=s.w,exports.BooleanFilter=s.T,exports.Breadcrumb=j,exports.BreadcrumbEllipsis=L,exports.BreadcrumbItem=N,exports.BreadcrumbLink=P,exports.BreadcrumbList=M,exports.BreadcrumbPage=F,exports.BreadcrumbSeparator=I,exports.Button=t.t,exports.Calendar=g.t,exports.Card=p.t,exports.CardContent=p.n,exports.CardDescription=p.r,exports.CardFooter=p.i,exports.CardHeader=p.a,exports.CardTitle=p.o,exports.Checkbox=d.t,exports.Combobox=X,exports.Command=s.p,exports.CommandEmpty=s.m,exports.CommandGroup=s.h,exports.CommandInput=s.g,exports.CommandItem=s._,exports.CommandList=s.v,exports.CommandSeparator=s.y,exports.CommandShortcut=s.b,exports.ContextMenu=f.n,exports.ContextMenuCheckboxItem=f.r,exports.ContextMenuContent=f.i,exports.ContextMenuGroup=f.a,exports.ContextMenuItem=f.o,exports.ContextMenuLabel=f.s,exports.ContextMenuPortal=f.c,exports.ContextMenuRadioGroup=f.l,exports.ContextMenuRadioItem=f.u,exports.ContextMenuSeparator=f.d,exports.ContextMenuShortcut=f.f,exports.ContextMenuSub=f.p,exports.ContextMenuSubContent=f.m,exports.ContextMenuSubTrigger=f.h,exports.ContextMenuTrigger=f.g,exports.DateTimePicker=_.t,exports.DropdownMenu=a.t,exports.DropdownMenuCheckboxItem=a.n,exports.DropdownMenuContent=a.r,exports.DropdownMenuGroup=a.i,exports.DropdownMenuItem=a.a,exports.DropdownMenuLabel=a.o,exports.DropdownMenuPortal=a.s,exports.DropdownMenuRadioGroup=a.c,exports.DropdownMenuRadioItem=a.l,exports.DropdownMenuSeparator=a.u,exports.DropdownMenuShortcut=a.d,exports.DropdownMenuSub=a.f,exports.DropdownMenuSubContent=a.p,exports.DropdownMenuSubTrigger=a.m,exports.DropdownMenuTrigger=a.h,exports.EzEventModal=x.t,exports.EzKanbanBoard=m.t,exports.EzKanbanCard=m.a,exports.EzKanbanCardEditor=m.s,exports.EzKanbanColumn=m.i,exports.EzNotificationDropdown=b.r,exports.EzResourceSidebar=D,exports.EzSchedulerQuickAdd=S.t,exports.EzSchedulerToolbar=b.t,exports.EzTableFooter=y.t,exports.EzTablePrimitive=s.n,exports.EzTableToolbar=v.t,exports.Input=n.t,exports.Label=i.t,exports.Modal=Y,exports.NotificationPanel=o.t,exports.PasswordInput=R,exports.Popover=c.t,exports.PopoverContent=c.n,exports.PopoverTrigger=c.r,exports.PrimitiveCell=s.D,exports.PrimitiveEditor=s.O,exports.PrimitiveFilter=s.k,exports.Progress=J,exports.ProgressCell=s.s,exports.RadioGroup=s.x,exports.RadioGroupItem=s.S,exports.ScrollArea=h.t,exports.ScrollBar=h.n,exports.SearchableSelect=s.f,exports.Select=u.t,exports.SelectCell=s.l,exports.SelectContent=u.n,exports.SelectEditor=s.u,exports.SelectFilter=s.d,exports.SelectItem=u.r,exports.SelectTrigger=u.i,exports.SelectValue=u.a,exports.Skeleton=z,exports.SparklineCell=s.c,exports.StatusBadge=m.o,exports.Switch=s.E,exports.Table=B,exports.TableBody=H,exports.TableCaption=q,exports.TableCell=K,exports.TableFooter=U,exports.TableHead=G,exports.TableHeader=V,exports.TableRow=W,exports.Tabs=m.c,exports.TabsContent=m.l,exports.TabsList=m.u,exports.TabsTrigger=m.d,exports.Textarea=p.s,exports.Tooltip=l.t,exports.TooltipContent=l.n,exports.TooltipProvider=l.r,exports.TooltipTrigger=l.i,exports.badgeVariants=m.p,exports.buttonVariants=t.n,exports.calculateColWidth=s.j;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { EzTablePrimitive, calculateColWidth } from './components/EzTable';
|
|
2
|
+
export { EzTableToolbar } from './components/EzTable/EzTableToolbar';
|
|
3
|
+
export { EzTableFooter } from './components/EzTable/EzTableFooter';
|
|
4
|
+
export * from './components/EzTable/renderers';
|
|
5
|
+
export { EzSchedulerToolbar } from './components/EzScheduler/EzSchedulerToolbar';
|
|
6
|
+
export { EzEventModal } from './components/EzScheduler/components/EzEventModal';
|
|
7
|
+
export { EzSchedulerQuickAdd } from './components/EzScheduler/components/EzSchedulerQuickAdd';
|
|
8
|
+
export { EzResourceSidebar } from './components/EzScheduler/components/EzResourceSidebar';
|
|
9
|
+
export { CardEditorModal as EzKanbanCardEditor } from './components/EzKanban/components/CardEditorModal';
|
|
10
|
+
export { KanbanBoardComponent as EzKanbanBoard } from './components/EzKanban/components/KanbanBoard';
|
|
11
|
+
export { KanbanColumn as EzKanbanColumn } from './components/EzKanban/components/KanbanColumn';
|
|
12
|
+
export { KanbanCard as EzKanbanCard } from './components/EzKanban/components/KanbanCard';
|
|
13
|
+
export { StatusBadge } from './shared/components/StatusBadge';
|
|
14
|
+
export { AnimatedText } from './shared/components/AnimatedText';
|
|
15
|
+
export type { AnimatedTextProps } from './shared/components/AnimatedText';
|
|
16
|
+
export { NotificationPanel } from './shared/components/NotificationPanel';
|
|
17
|
+
export { EzNotificationDropdown } from './shared/components/EzNotificationDropdown';
|
|
18
|
+
export { Avatar, AvatarImage, AvatarFallback } from './components/ui/avatar';
|
|
19
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis } from './components/ui/breadcrumb';
|
|
20
|
+
export { Button, buttonVariants } from './components/ui/button';
|
|
21
|
+
export { Calendar } from './components/ui/calendar';
|
|
22
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from './components/ui/card';
|
|
23
|
+
export { Checkbox } from './components/ui/checkbox';
|
|
24
|
+
export { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator } from './components/ui/command';
|
|
25
|
+
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup } from './components/ui/context-menu';
|
|
26
|
+
export { DateTimePicker } from './components/ui/date-time-picker';
|
|
27
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup } from './components/ui/dropdown-menu';
|
|
28
|
+
export { Input } from './components/ui/input';
|
|
29
|
+
export { Label } from './components/ui/label';
|
|
30
|
+
export { PasswordInput } from './components/ui/password-input';
|
|
31
|
+
export { Popover, PopoverTrigger, PopoverContent } from './components/ui/popover';
|
|
32
|
+
export { Select, SelectValue, SelectTrigger, SelectContent, SelectItem } from './components/ui/select';
|
|
33
|
+
export { Skeleton } from './components/ui/skeleton';
|
|
34
|
+
export { Switch } from './components/ui/switch';
|
|
35
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption } from './components/ui/table';
|
|
36
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/ui/tabs';
|
|
37
|
+
export { Textarea } from './components/ui/textarea';
|
|
38
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './components/ui/tooltip';
|
|
39
|
+
export { ScrollArea, ScrollBar } from './components/ui/scroll-area';
|
|
40
|
+
export { RadioGroup, RadioGroupItem } from './components/ui/radio-group';
|
|
41
|
+
export { Badge, badgeVariants } from './components/ui/badge';
|
|
42
|
+
export { Progress } from './components/ui/progress';
|
|
43
|
+
export { Modal } from './components/ui/modal';
|
|
44
|
+
export { Combobox, type ComboboxOption } from './components/ui/combobox';
|