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,400 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { _ as e } from "./EzProvider-AlmsYIDk.js";
|
|
3
|
+
import { n as t, t as n } from "./button-CYyNwV8S.js";
|
|
4
|
+
import { t as r } from "./input-Cj3sQK3M.js";
|
|
5
|
+
import { n as i, r as a, t as o } from "./avatar-BvCUJ-_r.js";
|
|
6
|
+
import { t as s } from "./label-DWEV--5W.js";
|
|
7
|
+
import { a as c, c as l, d as u, f as d, h as f, i as p, l as m, m as h, n as ee, o as te, p as ne, r as re, s as ie, t as ae, u as oe } from "./dropdown-menu-B_7_K13o.js";
|
|
8
|
+
import { t as se } from "./NotificationPanel-BzpDc10Q.js";
|
|
9
|
+
import { A as ce, C as le, D as ue, E as de, O as fe, S as pe, T as g, _, b as me, c as he, d as ge, f as _e, g as v, h as y, j as ve, k as ye, l as be, m as b, n as xe, p as x, s as Se, u as Ce, v as S, w as we, x as Te, y as Ee } from "./EzTable-D2p1IWHc.js";
|
|
10
|
+
import { n as C, r as w, t as T } from "./popover-D1akYj0W.js";
|
|
11
|
+
import { i as E, n as D, r as De, t as Oe } from "./tooltip-B1wC9m05.js";
|
|
12
|
+
import { a as ke, i as Ae, n as je, r as Me, t as Ne } from "./select-D4tFaSai.js";
|
|
13
|
+
import { t as O } from "./checkbox-DRkQuB4W.js";
|
|
14
|
+
import { a as Pe, c as Fe, d as Ie, f as Le, g as Re, h as ze, i as Be, l as Ve, m as He, n as Ue, o as We, p as Ge, r as Ke, s as qe, u as Je } from "./EzContextMenu-srLxujt8.js";
|
|
15
|
+
import { a as Ye, i as Xe, n as Ze, o as Qe, r as $e, s as et, t as k } from "./card-ZUNxcdIM.js";
|
|
16
|
+
import { a as tt, c as nt, d as rt, f as it, i as at, l as ot, o as st, p as ct, s as lt, t as ut, u as dt } from "./KanbanBoard-B7_Z5sh1.js";
|
|
17
|
+
import { n as ft, t as pt } from "./scroll-area-BJs87d45.js";
|
|
18
|
+
import { t as mt } from "./calendar-DOIPGsyI.js";
|
|
19
|
+
import { t as ht } from "./date-time-picker-fUzf4TnU.js";
|
|
20
|
+
import { t as gt } from "./EzTableToolbar-BH5z9fSJ.js";
|
|
21
|
+
import { t as _t } from "./EzTableFooter-DrLoWelo.js";
|
|
22
|
+
import { r as vt, t as yt } from "./EzSchedulerToolbar-Ba4gbvUg.js";
|
|
23
|
+
import { t as bt } from "./EzEventModal-C079wLjP.js";
|
|
24
|
+
import { t as xt } from "./EzSchedulerQuickAdd-BIC8xbSn.js";
|
|
25
|
+
import * as A from "react";
|
|
26
|
+
import j, { useEffect as St, useState as M } from "react";
|
|
27
|
+
import { Slot as Ct } from "@radix-ui/react-slot";
|
|
28
|
+
import { ChevronDown as wt, ChevronRight as Tt, Eye as Et, EyeOff as Dt, MoreHorizontal as Ot, Search as kt, X as At } from "lucide-react";
|
|
29
|
+
import { jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
30
|
+
//#region src/components/EzScheduler/components/EzResourceSidebar.tsx
|
|
31
|
+
var jt = ({ resources: e, selectedResourceIds: t, onSelectionChange: n, className: i = "" }) => {
|
|
32
|
+
let [a, o] = j.useState(""), c = j.useMemo(() => a ? e.filter((e) => e.name.toLowerCase().includes(a.toLowerCase())) : e, [e, a]), l = (e) => {
|
|
33
|
+
t.includes(e) ? n(t.filter((t) => t !== e)) : n([...t, e]);
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ P("div", {
|
|
36
|
+
className: `p-4 border-r border-border bg-background flex flex-col gap-4 overflow-y-auto ${i}`,
|
|
37
|
+
children: [/* @__PURE__ */ P("div", {
|
|
38
|
+
className: "flex flex-col gap-3",
|
|
39
|
+
children: [/* @__PURE__ */ P("div", {
|
|
40
|
+
className: "relative",
|
|
41
|
+
children: [/* @__PURE__ */ N(kt, { className: "absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ N(r, {
|
|
42
|
+
type: "search",
|
|
43
|
+
placeholder: "Search resources...",
|
|
44
|
+
className: "pl-9 h-9 text-sm",
|
|
45
|
+
value: a,
|
|
46
|
+
onChange: (e) => o(e.target.value)
|
|
47
|
+
})]
|
|
48
|
+
}), /* @__PURE__ */ P("div", {
|
|
49
|
+
className: "flex items-center justify-between",
|
|
50
|
+
children: [/* @__PURE__ */ P("h3", {
|
|
51
|
+
className: "font-semibold text-xs uppercase tracking-wider text-muted-foreground",
|
|
52
|
+
children: [c.length, " Found"]
|
|
53
|
+
}), /* @__PURE__ */ N("button", {
|
|
54
|
+
onClick: () => {
|
|
55
|
+
if (c.every((e) => t.includes(e.id))) n(t.filter((e) => !c.find((t) => t.id === e)));
|
|
56
|
+
else {
|
|
57
|
+
let e = c.map((e) => e.id);
|
|
58
|
+
n(Array.from(/* @__PURE__ */ new Set([...t, ...e])));
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
className: "text-xs text-primary hover:text-primary/80 font-medium",
|
|
62
|
+
children: "Select All"
|
|
63
|
+
})]
|
|
64
|
+
})]
|
|
65
|
+
}), /* @__PURE__ */ P("div", {
|
|
66
|
+
className: "flex flex-col gap-2 min-h-0 flex-1 overflow-y-auto",
|
|
67
|
+
children: [c.map((e) => /* @__PURE__ */ P("div", {
|
|
68
|
+
className: "flex items-center space-x-2 p-1 hover:bg-muted/50 rounded transition-colors",
|
|
69
|
+
children: [/* @__PURE__ */ N(O, {
|
|
70
|
+
id: `res-${e.id}`,
|
|
71
|
+
checked: t.includes(e.id),
|
|
72
|
+
onCheckedChange: () => l(e.id),
|
|
73
|
+
className: "data-[state=checked]:bg-primary data-[state=checked]:border-primary"
|
|
74
|
+
}), /* @__PURE__ */ P(s, {
|
|
75
|
+
htmlFor: `res-${e.id}`,
|
|
76
|
+
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",
|
|
77
|
+
children: [/* @__PURE__ */ N("span", {
|
|
78
|
+
className: "w-2.5 h-2.5 rounded-full shrink-0",
|
|
79
|
+
style: { backgroundColor: e.color || "#ccc" }
|
|
80
|
+
}), /* @__PURE__ */ N("span", {
|
|
81
|
+
className: "truncate",
|
|
82
|
+
children: e.name
|
|
83
|
+
})]
|
|
84
|
+
})]
|
|
85
|
+
}, e.id)), c.length === 0 && /* @__PURE__ */ N("div", {
|
|
86
|
+
className: "text-center py-8 text-sm text-muted-foreground",
|
|
87
|
+
children: "No resources found."
|
|
88
|
+
})]
|
|
89
|
+
})]
|
|
90
|
+
});
|
|
91
|
+
}, F = [
|
|
92
|
+
"#06d6a0",
|
|
93
|
+
"#ef476f",
|
|
94
|
+
"#ffd166",
|
|
95
|
+
"#118ab2",
|
|
96
|
+
"#073b4c"
|
|
97
|
+
], Mt = ({ text: e, className: t = "", defaultColor: n = "#2d2e33", highlight: r, delay: i, textSize: a, textDir: o, highlightDir: s }) => {
|
|
98
|
+
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] = M(!1);
|
|
99
|
+
St(() => {
|
|
100
|
+
let e = () => {
|
|
101
|
+
f(document.documentElement.classList.contains("dark") || window.matchMedia("(prefers-color-scheme: dark)").matches);
|
|
102
|
+
};
|
|
103
|
+
e();
|
|
104
|
+
let t = new MutationObserver(() => {
|
|
105
|
+
e();
|
|
106
|
+
});
|
|
107
|
+
t.observe(document.documentElement, {
|
|
108
|
+
attributes: !0,
|
|
109
|
+
attributeFilter: ["class"]
|
|
110
|
+
});
|
|
111
|
+
let n = window.matchMedia("(prefers-color-scheme: dark)");
|
|
112
|
+
return n.addEventListener("change", e), () => {
|
|
113
|
+
t.disconnect(), n.removeEventListener("change", e);
|
|
114
|
+
};
|
|
115
|
+
}, []);
|
|
116
|
+
let p = d ? "#ffffff" : n;
|
|
117
|
+
return /* @__PURE__ */ P("span", {
|
|
118
|
+
className: `flex flex-col justify-center items-center ${l}`,
|
|
119
|
+
style: { letterSpacing: "-0.05em" },
|
|
120
|
+
children: [
|
|
121
|
+
/* @__PURE__ */ N("style", { children: "\n @keyframes wobble {\n 0% { transform: translateX(0); }\n 20% { transform: translateX(-4px); }\n 40% { transform: translateX(4px); }\n 60% { transform: translateX(-4px); }\n 80% { transform: translateX(4px); }\n 100% { transform: translateX(0); }\n }\n " }),
|
|
122
|
+
/* @__PURE__ */ N("span", {
|
|
123
|
+
className: "flex flex-wrap justify-center text-center",
|
|
124
|
+
dir: o,
|
|
125
|
+
children: c.map((e, t) => /* @__PURE__ */ N(I, {
|
|
126
|
+
char: e,
|
|
127
|
+
defaultColor: p,
|
|
128
|
+
brandColor: F[t % F.length]
|
|
129
|
+
}, `main-${t}`))
|
|
130
|
+
}),
|
|
131
|
+
r && /* @__PURE__ */ N("span", {
|
|
132
|
+
className: "flex flex-wrap justify-center text-center mt-2",
|
|
133
|
+
dir: s,
|
|
134
|
+
children: u.map((e, t) => /* @__PURE__ */ N(I, {
|
|
135
|
+
char: e,
|
|
136
|
+
defaultColor: "oklch(var(--primary))",
|
|
137
|
+
brandColor: F[(c.length + t) % F.length]
|
|
138
|
+
}, `highlight-${t}`))
|
|
139
|
+
})
|
|
140
|
+
]
|
|
141
|
+
});
|
|
142
|
+
}, I = ({ char: e, defaultColor: t, brandColor: n }) => {
|
|
143
|
+
let [r, i] = M(!1);
|
|
144
|
+
return /* @__PURE__ */ N("span", {
|
|
145
|
+
onMouseEnter: () => {
|
|
146
|
+
i(!0);
|
|
147
|
+
},
|
|
148
|
+
onAnimationEnd: () => {
|
|
149
|
+
i(!1);
|
|
150
|
+
},
|
|
151
|
+
style: {
|
|
152
|
+
display: "inline-block",
|
|
153
|
+
whiteSpace: "pre",
|
|
154
|
+
cursor: "default",
|
|
155
|
+
fontWeight: 900,
|
|
156
|
+
padding: "0 1px",
|
|
157
|
+
color: r ? n : t,
|
|
158
|
+
animation: r ? "wobble 0.8s ease-in-out 2" : "none",
|
|
159
|
+
transition: "color 0.2s ease"
|
|
160
|
+
},
|
|
161
|
+
children: e
|
|
162
|
+
});
|
|
163
|
+
}, L = A.forwardRef(({ ...e }, t) => /* @__PURE__ */ N("nav", {
|
|
164
|
+
ref: t,
|
|
165
|
+
"aria-label": "breadcrumb",
|
|
166
|
+
...e
|
|
167
|
+
}));
|
|
168
|
+
L.displayName = "Breadcrumb";
|
|
169
|
+
var R = A.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ N("ol", {
|
|
170
|
+
ref: r,
|
|
171
|
+
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),
|
|
172
|
+
...n
|
|
173
|
+
}));
|
|
174
|
+
R.displayName = "BreadcrumbList";
|
|
175
|
+
var z = A.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ N("li", {
|
|
176
|
+
ref: r,
|
|
177
|
+
className: e("inline-flex items-center gap-1.5", t),
|
|
178
|
+
...n
|
|
179
|
+
}));
|
|
180
|
+
z.displayName = "BreadcrumbItem";
|
|
181
|
+
var B = A.forwardRef(({ asChild: t, className: n, ...r }, i) => /* @__PURE__ */ N(t ? Ct : "a", {
|
|
182
|
+
ref: i,
|
|
183
|
+
className: e("transition-colors hover:text-zinc-950 dark:hover:text-zinc-50", n),
|
|
184
|
+
...r
|
|
185
|
+
}));
|
|
186
|
+
B.displayName = "BreadcrumbLink";
|
|
187
|
+
var V = A.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ N("span", {
|
|
188
|
+
ref: r,
|
|
189
|
+
role: "link",
|
|
190
|
+
"aria-disabled": "true",
|
|
191
|
+
"aria-current": "page",
|
|
192
|
+
className: e("font-normal text-zinc-950 dark:text-zinc-50", t),
|
|
193
|
+
...n
|
|
194
|
+
}));
|
|
195
|
+
V.displayName = "BreadcrumbPage";
|
|
196
|
+
var H = ({ children: t, className: n, ...r }) => /* @__PURE__ */ N("li", {
|
|
197
|
+
role: "presentation",
|
|
198
|
+
"aria-hidden": "true",
|
|
199
|
+
className: e("[&>svg]:size-3.5", n),
|
|
200
|
+
...r,
|
|
201
|
+
children: t ?? /* @__PURE__ */ N(Tt, {})
|
|
202
|
+
});
|
|
203
|
+
H.displayName = "BreadcrumbSeparator";
|
|
204
|
+
var U = ({ className: t, ...n }) => /* @__PURE__ */ P("span", {
|
|
205
|
+
role: "presentation",
|
|
206
|
+
"aria-hidden": "true",
|
|
207
|
+
className: e("flex h-9 w-9 items-center justify-center", t),
|
|
208
|
+
...n,
|
|
209
|
+
children: [/* @__PURE__ */ N(Ot, { className: "h-4 w-4" }), /* @__PURE__ */ N("span", {
|
|
210
|
+
className: "sr-only",
|
|
211
|
+
children: "More"
|
|
212
|
+
})]
|
|
213
|
+
});
|
|
214
|
+
U.displayName = "BreadcrumbElipsis";
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region src/components/ui/password-input.tsx
|
|
217
|
+
var W = A.forwardRef(({ className: t, ...n }, i) => {
|
|
218
|
+
let [a, o] = A.useState(!1);
|
|
219
|
+
return /* @__PURE__ */ P("div", {
|
|
220
|
+
className: "relative",
|
|
221
|
+
children: [/* @__PURE__ */ N(r, {
|
|
222
|
+
type: a ? "text" : "password",
|
|
223
|
+
className: e("pr-10", t),
|
|
224
|
+
ref: i,
|
|
225
|
+
...n
|
|
226
|
+
}), /* @__PURE__ */ P("button", {
|
|
227
|
+
type: "button",
|
|
228
|
+
onClick: () => o((e) => !e),
|
|
229
|
+
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",
|
|
230
|
+
tabIndex: -1,
|
|
231
|
+
children: [N(a ? Dt : Et, {
|
|
232
|
+
className: "h-4 w-4",
|
|
233
|
+
"aria-hidden": "true"
|
|
234
|
+
}), /* @__PURE__ */ P("span", {
|
|
235
|
+
className: "sr-only",
|
|
236
|
+
children: [a ? "Hide" : "Show", " password"]
|
|
237
|
+
})]
|
|
238
|
+
})]
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
W.displayName = "PasswordInput";
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/components/ui/skeleton.tsx
|
|
244
|
+
function Nt({ className: t, ...n }) {
|
|
245
|
+
return /* @__PURE__ */ N("div", {
|
|
246
|
+
className: e("animate-pulse rounded-md bg-zinc-100 dark:bg-zinc-800", t),
|
|
247
|
+
...n
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region src/components/ui/table.tsx
|
|
252
|
+
var G = A.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ N("div", {
|
|
253
|
+
className: "relative w-full overflow-auto",
|
|
254
|
+
children: /* @__PURE__ */ N("table", {
|
|
255
|
+
ref: r,
|
|
256
|
+
className: e("w-full caption-bottom text-sm", t),
|
|
257
|
+
...n
|
|
258
|
+
})
|
|
259
|
+
}));
|
|
260
|
+
G.displayName = "Table";
|
|
261
|
+
var K = A.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ N("thead", {
|
|
262
|
+
ref: r,
|
|
263
|
+
className: e("[&_tr]:border-b", t),
|
|
264
|
+
...n
|
|
265
|
+
}));
|
|
266
|
+
K.displayName = "TableHeader";
|
|
267
|
+
var q = A.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ N("tbody", {
|
|
268
|
+
ref: r,
|
|
269
|
+
className: e("[&_tr:last-child]:border-0", t),
|
|
270
|
+
...n
|
|
271
|
+
}));
|
|
272
|
+
q.displayName = "TableBody";
|
|
273
|
+
var J = A.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ N("tfoot", {
|
|
274
|
+
ref: r,
|
|
275
|
+
className: e("border-t bg-zinc-100/50 font-medium [&>tr]:last:border-b-0 dark:bg-zinc-800/50", t),
|
|
276
|
+
...n
|
|
277
|
+
}));
|
|
278
|
+
J.displayName = "TableFooter";
|
|
279
|
+
var Y = A.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ N("tr", {
|
|
280
|
+
ref: r,
|
|
281
|
+
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),
|
|
282
|
+
...n
|
|
283
|
+
}));
|
|
284
|
+
Y.displayName = "TableRow";
|
|
285
|
+
var X = A.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ N("th", {
|
|
286
|
+
ref: r,
|
|
287
|
+
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),
|
|
288
|
+
...n
|
|
289
|
+
}));
|
|
290
|
+
X.displayName = "TableHead";
|
|
291
|
+
var Z = A.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ N("td", {
|
|
292
|
+
ref: r,
|
|
293
|
+
className: e("p-4 align-middle [&:has([role=checkbox])]:pr-0", t),
|
|
294
|
+
...n
|
|
295
|
+
}));
|
|
296
|
+
Z.displayName = "TableCell";
|
|
297
|
+
var Q = A.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ N("caption", {
|
|
298
|
+
ref: r,
|
|
299
|
+
className: e("mt-4 text-sm text-zinc-500 dark:text-zinc-400", t),
|
|
300
|
+
...n
|
|
301
|
+
}));
|
|
302
|
+
Q.displayName = "TableCaption";
|
|
303
|
+
//#endregion
|
|
304
|
+
//#region src/components/ui/progress.tsx
|
|
305
|
+
function Pt({ className: t, value: n = 0, max: r = 100, ref: i, ...a }) {
|
|
306
|
+
let o = Math.min(Math.max(n / r * 100, 0), 100);
|
|
307
|
+
return /* @__PURE__ */ N("div", {
|
|
308
|
+
ref: i,
|
|
309
|
+
className: e("relative h-4 w-full overflow-hidden rounded-full bg-secondary", t),
|
|
310
|
+
...a,
|
|
311
|
+
children: /* @__PURE__ */ N("div", {
|
|
312
|
+
className: "h-full w-full flex-1 bg-primary transition-all duration-300 ease-in-out",
|
|
313
|
+
style: { transform: `translateX(-${100 - o}%)` }
|
|
314
|
+
})
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region src/components/ui/modal.tsx
|
|
319
|
+
var Ft = ({ isOpen: t, onClose: r, title: i, children: a, className: o }) => (A.useEffect(() => (t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
320
|
+
document.body.style.overflow = "";
|
|
321
|
+
}), [t]), t ? /* @__PURE__ */ P("div", {
|
|
322
|
+
className: "fixed inset-0 z-[100] flex items-center justify-center p-4",
|
|
323
|
+
children: [/* @__PURE__ */ N("div", {
|
|
324
|
+
className: "absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity",
|
|
325
|
+
onClick: r
|
|
326
|
+
}), /* @__PURE__ */ P("div", {
|
|
327
|
+
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),
|
|
328
|
+
children: [/* @__PURE__ */ P("div", {
|
|
329
|
+
className: "flex items-center justify-between p-4 border-b",
|
|
330
|
+
children: [i && /* @__PURE__ */ N("h2", {
|
|
331
|
+
className: "text-lg font-bold truncate",
|
|
332
|
+
children: i
|
|
333
|
+
}), /* @__PURE__ */ N(n, {
|
|
334
|
+
variant: "ghost",
|
|
335
|
+
size: "icon",
|
|
336
|
+
onClick: r,
|
|
337
|
+
className: "h-8 w-8 rounded-full ml-auto",
|
|
338
|
+
children: /* @__PURE__ */ N(At, { className: "h-4 w-4" })
|
|
339
|
+
})]
|
|
340
|
+
}), /* @__PURE__ */ N("div", {
|
|
341
|
+
className: "flex-1 overflow-y-auto custom-scrollbar",
|
|
342
|
+
children: a
|
|
343
|
+
})]
|
|
344
|
+
})]
|
|
345
|
+
}) : null), $ = A.forwardRef(({ options: t, value: r, onValueChange: i, placeholder: a = "Select option...", searchPlaceholder: o = "Search...", emptyText: s = "No results found.", className: c, dropdownWidth: l = "w-[400px]", disabled: u, dir: d }, f) => {
|
|
346
|
+
let [p, m] = A.useState(!1), h = A.useMemo(() => t.find((e) => e.value === r)?.label || "", [t, r]);
|
|
347
|
+
return /* @__PURE__ */ P(T, {
|
|
348
|
+
open: p,
|
|
349
|
+
onOpenChange: m,
|
|
350
|
+
dir: d,
|
|
351
|
+
children: [/* @__PURE__ */ N(w, {
|
|
352
|
+
asChild: !0,
|
|
353
|
+
children: /* @__PURE__ */ P(n, {
|
|
354
|
+
ref: f,
|
|
355
|
+
variant: "ghost",
|
|
356
|
+
role: "combobox",
|
|
357
|
+
"aria-expanded": p,
|
|
358
|
+
disabled: u,
|
|
359
|
+
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", c),
|
|
360
|
+
children: [/* @__PURE__ */ N("span", {
|
|
361
|
+
className: "truncate",
|
|
362
|
+
children: h || /* @__PURE__ */ N("span", {
|
|
363
|
+
className: "text-muted-foreground",
|
|
364
|
+
children: a
|
|
365
|
+
})
|
|
366
|
+
}), /* @__PURE__ */ N(wt, { className: e("ml-2 h-4 w-4 shrink-0 opacity-50 transition-transform duration-200", p && "rotate-180") })]
|
|
367
|
+
})
|
|
368
|
+
}), /* @__PURE__ */ N(C, {
|
|
369
|
+
className: e("p-0 border-border/10 shadow-xl overflow-hidden bg-white dark:bg-zinc-950", l),
|
|
370
|
+
align: d === "rtl" ? "end" : "start",
|
|
371
|
+
dir: d,
|
|
372
|
+
children: /* @__PURE__ */ P(x, { children: [/* @__PURE__ */ N(v, {
|
|
373
|
+
placeholder: o,
|
|
374
|
+
className: "h-11 border-none focus:ring-0"
|
|
375
|
+
}), /* @__PURE__ */ P(S, {
|
|
376
|
+
className: "max-h-[300px] overflow-y-auto",
|
|
377
|
+
children: [/* @__PURE__ */ N(b, {
|
|
378
|
+
className: "py-6 text-sm text-muted-foreground",
|
|
379
|
+
children: s
|
|
380
|
+
}), /* @__PURE__ */ N(y, {
|
|
381
|
+
className: "p-1 space-y-1",
|
|
382
|
+
children: t.map((e) => /* @__PURE__ */ N(_, {
|
|
383
|
+
value: e.label,
|
|
384
|
+
onSelect: () => {
|
|
385
|
+
i?.(e.value), m(!1);
|
|
386
|
+
},
|
|
387
|
+
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",
|
|
388
|
+
children: /* @__PURE__ */ N("span", {
|
|
389
|
+
className: "whitespace-normal leading-relaxed flex-1",
|
|
390
|
+
children: e.label
|
|
391
|
+
})
|
|
392
|
+
}, e.value))
|
|
393
|
+
})]
|
|
394
|
+
})] })
|
|
395
|
+
})]
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
$.displayName = "Combobox";
|
|
399
|
+
//#endregion
|
|
400
|
+
export { Mt as AnimatedText, o as Avatar, i as AvatarFallback, a as AvatarImage, it as Badge, ce as BaseCell, le as BooleanCell, we as BooleanEditor, g as BooleanFilter, L as Breadcrumb, U as BreadcrumbEllipsis, z as BreadcrumbItem, B as BreadcrumbLink, R as BreadcrumbList, V as BreadcrumbPage, H as BreadcrumbSeparator, n as Button, mt as Calendar, k as Card, Ze as CardContent, $e as CardDescription, Xe as CardFooter, Ye as CardHeader, Qe as CardTitle, O as Checkbox, $ as Combobox, x as Command, b as CommandEmpty, y as CommandGroup, v as CommandInput, _ as CommandItem, S as CommandList, Ee as CommandSeparator, me as CommandShortcut, Ue as ContextMenu, Ke as ContextMenuCheckboxItem, Be as ContextMenuContent, Pe as ContextMenuGroup, We as ContextMenuItem, qe as ContextMenuLabel, Fe as ContextMenuPortal, Ve as ContextMenuRadioGroup, Je as ContextMenuRadioItem, Ie as ContextMenuSeparator, Le as ContextMenuShortcut, Ge as ContextMenuSub, He as ContextMenuSubContent, ze as ContextMenuSubTrigger, Re as ContextMenuTrigger, ht as DateTimePicker, ae as DropdownMenu, ee as DropdownMenuCheckboxItem, re as DropdownMenuContent, p as DropdownMenuGroup, c as DropdownMenuItem, te as DropdownMenuLabel, ie as DropdownMenuPortal, l as DropdownMenuRadioGroup, m as DropdownMenuRadioItem, oe as DropdownMenuSeparator, u as DropdownMenuShortcut, d as DropdownMenuSub, ne as DropdownMenuSubContent, h as DropdownMenuSubTrigger, f as DropdownMenuTrigger, bt as EzEventModal, ut as EzKanbanBoard, tt as EzKanbanCard, lt as EzKanbanCardEditor, at as EzKanbanColumn, vt as EzNotificationDropdown, jt as EzResourceSidebar, xt as EzSchedulerQuickAdd, yt as EzSchedulerToolbar, _t as EzTableFooter, xe as EzTablePrimitive, gt as EzTableToolbar, r as Input, s as Label, Ft as Modal, se as NotificationPanel, W as PasswordInput, T as Popover, C as PopoverContent, w as PopoverTrigger, ue as PrimitiveCell, fe as PrimitiveEditor, ye as PrimitiveFilter, Pt as Progress, Se as ProgressCell, Te as RadioGroup, pe as RadioGroupItem, pt as ScrollArea, ft as ScrollBar, _e as SearchableSelect, Ne as Select, be as SelectCell, je as SelectContent, Ce as SelectEditor, ge as SelectFilter, Me as SelectItem, Ae as SelectTrigger, ke as SelectValue, Nt as Skeleton, he as SparklineCell, st as StatusBadge, de as Switch, G as Table, q as TableBody, Q as TableCaption, Z as TableCell, J as TableFooter, X as TableHead, K as TableHeader, Y as TableRow, nt as Tabs, ot as TabsContent, dt as TabsList, rt as TabsTrigger, et as Textarea, Oe as Tooltip, D as TooltipContent, De as TooltipProvider, E as TooltipTrigger, ct as badgeVariants, t as buttonVariants, ve as calculateColWidth };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./EzProvider-L2qQMq-v.cjs");let t=require("react");t=e.y(t,1);let n=require("react/jsx-runtime");function r({className:t,ref:r,...i}){return(0,n.jsx)(`div`,{ref:r,className:e._(`relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,t),...i})}function i({className:t,ref:r,...i}){return(0,n.jsx)(`img`,{ref:r,className:e._(`aspect-square h-full w-full`,t),...i})}function a({className:t,ref:r,...i}){return(0,n.jsx)(`div`,{ref:r,className:e._(`flex h-full w-full items-center justify-center rounded-full bg-zinc-100 dark:bg-zinc-800`,t),...i})}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { _ as e } from "./EzProvider-AlmsYIDk.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/ui/avatar.tsx
|
|
5
|
+
function n({ className: n, ref: r, ...i }) {
|
|
6
|
+
return /* @__PURE__ */ t("div", {
|
|
7
|
+
ref: r,
|
|
8
|
+
className: e("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", n),
|
|
9
|
+
...i
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function r({ className: n, ref: r, ...i }) {
|
|
13
|
+
return /* @__PURE__ */ t("img", {
|
|
14
|
+
ref: r,
|
|
15
|
+
className: e("aspect-square h-full w-full", n),
|
|
16
|
+
...i
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function i({ className: n, ref: r, ...i }) {
|
|
20
|
+
return /* @__PURE__ */ t("div", {
|
|
21
|
+
ref: r,
|
|
22
|
+
className: e("flex h-full w-full items-center justify-center rounded-full bg-zinc-100 dark:bg-zinc-800", n),
|
|
23
|
+
...i
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { i as n, r, n 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("@radix-ui/react-slot"),r=require("class-variance-authority"),i=require("lucide-react"),a=require("react/jsx-runtime");var o=(0,r.cva)(`inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,outline:`border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}});function s({className:t,variant:r,size:s,asChild:c=!1,isLoading:l=!1,children:u,disabled:d,ref:f,...p}){return(0,a.jsx)(c?n.Slot:`button`,{className:e._(o({variant:r,size:s,className:t})),ref:f,disabled:l||d,...p,children:c?u:(0,a.jsxs)(a.Fragment,{children:[l&&(0,a.jsx)(i.Loader2,{className:`mr-2 h-4 w-4 animate-spin`}),u]})})}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { _ as e } from "./EzProvider-AlmsYIDk.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Slot as t } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
import { Loader2 as r } from "lucide-react";
|
|
6
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/ui/button.tsx
|
|
8
|
+
var s = n("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
12
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
13
|
+
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
14
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
15
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
16
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
default: "h-9 px-4 py-2",
|
|
20
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
21
|
+
lg: "h-10 rounded-md px-8",
|
|
22
|
+
icon: "h-9 w-9"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
variant: "default",
|
|
27
|
+
size: "default"
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
function c({ className: n, variant: c, size: l, asChild: u = !1, isLoading: d = !1, children: f, disabled: p, ref: m, ...h }) {
|
|
31
|
+
return /* @__PURE__ */ a(u ? t : "button", {
|
|
32
|
+
className: e(s({
|
|
33
|
+
variant: c,
|
|
34
|
+
size: l,
|
|
35
|
+
className: n
|
|
36
|
+
})),
|
|
37
|
+
ref: m,
|
|
38
|
+
disabled: d || p,
|
|
39
|
+
...h,
|
|
40
|
+
children: u ? f : /* @__PURE__ */ o(i, { children: [d && /* @__PURE__ */ a(r, { className: "mr-2 h-4 w-4 animate-spin" }), f] })
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { s as n, c as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./EzProvider-L2qQMq-v.cjs"),t=require("./button-BBMwzUtG.cjs"),n=require("./tooltip-Qmzrg5u5.cjs");let r=require("react"),i=require("lucide-react"),a=require("react/jsx-runtime"),o=require("date-fns");function s({selected:s,onSelect:c,className:l,locale:u,minDate:d,modifiers:f={}}){let[p,m]=(0,r.useState)(new Date),h=()=>m((0,o.subMonths)(p,1)),g=()=>m((0,o.addMonths)(p,1)),_=(0,o.eachDayOfInterval)({start:(0,o.startOfWeek)((0,o.startOfMonth)(p),{weekStartsOn:0}),end:(0,o.endOfWeek)((0,o.endOfMonth)(p),{weekStartsOn:0})}),v=(0,r.useMemo)(()=>new Intl.DateTimeFormat(u,{month:`long`,year:`numeric`}),[u]),y=(0,r.useMemo)(()=>new Intl.DateTimeFormat(u,{day:`numeric`}),[u]);return(0,a.jsxs)(`div`,{className:e._(`p-4 bg-background text-foreground select-none`,l),style:{minWidth:`280px`},children:[(0,a.jsxs)(`div`,{className:`flex items-center justify-between mb-4 px-1`,children:[(0,a.jsx)(`div`,{className:`font-bold text-lg text-foreground`,children:v.format(p)}),(0,a.jsxs)(`div`,{className:`flex gap-1`,children:[(0,a.jsx)(t.t,{variant:`ghost`,size:`icon`,onClick:h,className:`h-8 w-8 text-muted-foreground hover:text-primary hover:bg-primary/5`,children:(0,a.jsx)(i.ChevronLeft,{className:`h-5 w-5`})}),(0,a.jsx)(t.t,{variant:`ghost`,size:`icon`,onClick:g,className:`h-8 w-8 text-muted-foreground hover:text-primary hover:bg-primary/5`,children:(0,a.jsx)(i.ChevronRight,{className:`h-5 w-5`})})]})]}),(0,a.jsx)(`div`,{className:`grid gap-0 mb-2`,style:{display:`grid`,gridTemplateColumns:`repeat(7, 1fr)`},children:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`].map((e,t)=>(0,a.jsx)(`div`,{className:`text-center text-[13px] text-muted-foreground/60 font-medium h-8 flex items-center justify-center`,children:e},t))}),(0,a.jsx)(`div`,{className:`grid gap-y-1`,style:{display:`grid`,gridTemplateColumns:`repeat(7, 1fr)`},children:_.map(t=>{let r=s&&(0,o.isSameDay)(t,s),i=(0,o.isSameMonth)(t,p),l=d?(0,o.isBefore)(t,(0,o.startOfDay)(d)):!1,u=f[t.toISOString().split(`T`)[0]],m=u?.disabled,h=l||m,g=(0,a.jsx)(`button`,{onClick:()=>!h&&c&&c(t),disabled:h,className:e._(`h-9 w-9 p-0 text-[14px] rounded-md flex items-center justify-center transition-all duration-150 relative`,`hover:bg-accent text-foreground`,r?`bg-primary text-primary-foreground hover:bg-primary/90 font-bold shadow-sm z-10`:``,!i&&`text-muted-foreground/30`,(0,o.isToday)(t)&&!r&&`text-primary font-bold border-b-2 border-primary rounded-none`,h&&`opacity-50 cursor-not-allowed hover:bg-transparent text-muted-foreground`,u?.className),children:(0,a.jsx)(`time`,{dateTime:t.toISOString(),children:y.format(t)})});return(0,a.jsx)(`div`,{className:`flex items-center justify-center`,children:u?.tooltip?(0,a.jsx)(n.r,{children:(0,a.jsxs)(n.t,{delayDuration:300,children:[(0,a.jsx)(n.i,{asChild:!0,children:(0,a.jsx)(`span`,{className:`cursor-default`,children:g})}),(0,a.jsx)(n.n,{className:`text-xs font-semibold px-2 py-1`,children:u.tooltip})]})}):g},t.toString())})}),(0,a.jsx)(`div`,{className:`mt-2 pt-2 border-t border-border/30 flex justify-center`,children:(0,a.jsx)(t.t,{variant:`ghost`,className:`text-primary font-bold hover:bg-primary/5 w-full h-10 text-[15px]`,onClick:()=>{let e=new Date;m(e),c&&c(e)},children:`Today`})})]})}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { _ as e } from "./EzProvider-AlmsYIDk.js";
|
|
2
|
+
import { t } from "./button-CYyNwV8S.js";
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "./tooltip-B1wC9m05.js";
|
|
4
|
+
import { useMemo as o, useState as s } from "react";
|
|
5
|
+
import { ChevronLeft as c, ChevronRight as l } from "lucide-react";
|
|
6
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
+
import { addMonths as f, eachDayOfInterval as p, endOfMonth as m, endOfWeek as h, isBefore as g, isSameDay as _, isSameMonth as v, isToday as y, startOfDay as b, startOfMonth as x, startOfWeek as S, subMonths as C } from "date-fns";
|
|
8
|
+
//#region src/components/ui/calendar.tsx
|
|
9
|
+
function w({ selected: w, onSelect: T, className: E, locale: D, minDate: O, modifiers: k = {} }) {
|
|
10
|
+
let [A, j] = s(/* @__PURE__ */ new Date()), M = () => j(C(A, 1)), N = () => j(f(A, 1)), P = p({
|
|
11
|
+
start: S(x(A), { weekStartsOn: 0 }),
|
|
12
|
+
end: h(m(A), { weekStartsOn: 0 })
|
|
13
|
+
}), F = o(() => new Intl.DateTimeFormat(D, {
|
|
14
|
+
month: "long",
|
|
15
|
+
year: "numeric"
|
|
16
|
+
}), [D]), I = o(() => new Intl.DateTimeFormat(D, { day: "numeric" }), [D]);
|
|
17
|
+
return /* @__PURE__ */ d("div", {
|
|
18
|
+
className: e("p-4 bg-background text-foreground select-none", E),
|
|
19
|
+
style: { minWidth: "280px" },
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ d("div", {
|
|
22
|
+
className: "flex items-center justify-between mb-4 px-1",
|
|
23
|
+
children: [/* @__PURE__ */ u("div", {
|
|
24
|
+
className: "font-bold text-lg text-foreground",
|
|
25
|
+
children: F.format(A)
|
|
26
|
+
}), /* @__PURE__ */ d("div", {
|
|
27
|
+
className: "flex gap-1",
|
|
28
|
+
children: [/* @__PURE__ */ u(t, {
|
|
29
|
+
variant: "ghost",
|
|
30
|
+
size: "icon",
|
|
31
|
+
onClick: M,
|
|
32
|
+
className: "h-8 w-8 text-muted-foreground hover:text-primary hover:bg-primary/5",
|
|
33
|
+
children: /* @__PURE__ */ u(c, { className: "h-5 w-5" })
|
|
34
|
+
}), /* @__PURE__ */ u(t, {
|
|
35
|
+
variant: "ghost",
|
|
36
|
+
size: "icon",
|
|
37
|
+
onClick: N,
|
|
38
|
+
className: "h-8 w-8 text-muted-foreground hover:text-primary hover:bg-primary/5",
|
|
39
|
+
children: /* @__PURE__ */ u(l, { className: "h-5 w-5" })
|
|
40
|
+
})]
|
|
41
|
+
})]
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ u("div", {
|
|
44
|
+
className: "grid gap-0 mb-2",
|
|
45
|
+
style: {
|
|
46
|
+
display: "grid",
|
|
47
|
+
gridTemplateColumns: "repeat(7, 1fr)"
|
|
48
|
+
},
|
|
49
|
+
children: [
|
|
50
|
+
"Su",
|
|
51
|
+
"Mo",
|
|
52
|
+
"Tu",
|
|
53
|
+
"We",
|
|
54
|
+
"Th",
|
|
55
|
+
"Fr",
|
|
56
|
+
"Sa"
|
|
57
|
+
].map((e, t) => /* @__PURE__ */ u("div", {
|
|
58
|
+
className: "text-center text-[13px] text-muted-foreground/60 font-medium h-8 flex items-center justify-center",
|
|
59
|
+
children: e
|
|
60
|
+
}, t))
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ u("div", {
|
|
63
|
+
className: "grid gap-y-1",
|
|
64
|
+
style: {
|
|
65
|
+
display: "grid",
|
|
66
|
+
gridTemplateColumns: "repeat(7, 1fr)"
|
|
67
|
+
},
|
|
68
|
+
children: P.map((t) => {
|
|
69
|
+
let o = w && _(t, w), s = v(t, A), c = O ? g(t, b(O)) : !1, l = k[t.toISOString().split("T")[0]], f = l?.disabled, p = c || f, m = /* @__PURE__ */ u("button", {
|
|
70
|
+
onClick: () => !p && T && T(t),
|
|
71
|
+
disabled: p,
|
|
72
|
+
className: e("h-9 w-9 p-0 text-[14px] rounded-md flex items-center justify-center transition-all duration-150 relative", "hover:bg-accent text-foreground", o ? "bg-primary text-primary-foreground hover:bg-primary/90 font-bold shadow-sm z-10" : "", !s && "text-muted-foreground/30", y(t) && !o && "text-primary font-bold border-b-2 border-primary rounded-none", p && "opacity-50 cursor-not-allowed hover:bg-transparent text-muted-foreground", l?.className),
|
|
73
|
+
children: /* @__PURE__ */ u("time", {
|
|
74
|
+
dateTime: t.toISOString(),
|
|
75
|
+
children: I.format(t)
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
return /* @__PURE__ */ u("div", {
|
|
79
|
+
className: "flex items-center justify-center",
|
|
80
|
+
children: l?.tooltip ? /* @__PURE__ */ u(i, { children: /* @__PURE__ */ d(a, {
|
|
81
|
+
delayDuration: 300,
|
|
82
|
+
children: [/* @__PURE__ */ u(n, {
|
|
83
|
+
asChild: !0,
|
|
84
|
+
children: /* @__PURE__ */ u("span", {
|
|
85
|
+
className: "cursor-default",
|
|
86
|
+
children: m
|
|
87
|
+
})
|
|
88
|
+
}), /* @__PURE__ */ u(r, {
|
|
89
|
+
className: "text-xs font-semibold px-2 py-1",
|
|
90
|
+
children: l.tooltip
|
|
91
|
+
})]
|
|
92
|
+
}) }) : m
|
|
93
|
+
}, t.toString());
|
|
94
|
+
})
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ u("div", {
|
|
97
|
+
className: "mt-2 pt-2 border-t border-border/30 flex justify-center",
|
|
98
|
+
children: /* @__PURE__ */ u(t, {
|
|
99
|
+
variant: "ghost",
|
|
100
|
+
className: "text-primary font-bold hover:bg-primary/5 w-full h-10 text-[15px]",
|
|
101
|
+
onClick: () => {
|
|
102
|
+
let e = /* @__PURE__ */ new Date();
|
|
103
|
+
j(e), T && T(e);
|
|
104
|
+
},
|
|
105
|
+
children: "Today"
|
|
106
|
+
})
|
|
107
|
+
})
|
|
108
|
+
]
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
export { w as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./EzProvider-L2qQMq-v.cjs");let t=require("react");t=e.y(t,1);let n=require("react/jsx-runtime");var r=()=>e.r();function i({className:t,ref:r,...i}){return(0,n.jsx)(`textarea`,{className:e._(`flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,t),ref:r,...i})}function a({className:t,ref:r,...i}){return(0,n.jsx)(`div`,{ref:r,className:e._(`rounded-xl border bg-card text-card-foreground shadow`,t),...i})}function o({className:t,ref:r,...i}){return(0,n.jsx)(`div`,{ref:r,className:e._(`flex flex-col space-y-1.5 p-6`,t),...i})}function s({className:t,ref:r,...i}){return(0,n.jsx)(`div`,{ref:r,className:e._(`font-semibold leading-none tracking-tight`,t),...i})}function c({className:t,ref:r,...i}){return(0,n.jsx)(`div`,{ref:r,className:e._(`text-sm text-muted-foreground`,t),...i})}function l({className:t,ref:r,...i}){return(0,n.jsx)(`div`,{ref:r,className:e._(`p-6 pt-0`,t),...i})}function u({className:t,ref:r,...i}){return(0,n.jsx)(`div`,{ref:r,className:e._(`flex items-center p-6 pt-0`,t),...i})}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
|