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
|
@@ -1,689 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, jsx as r, Fragment as E } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect as A } from "react";
|
|
3
|
-
import { useForm as z } from "@tanstack/react-form";
|
|
4
|
-
import { createPortal as S } from "react-dom";
|
|
5
|
-
import { B as u, X as T } from "./tooltip-BCtrEe0z.js";
|
|
6
|
-
import { I as v } from "./input-jYQ5VKNR.js";
|
|
7
|
-
import { L as o } from "./label-ClOW9UCt.js";
|
|
8
|
-
import { c as h } from "./useInitCoreServices-D1WaWlaI.js";
|
|
9
|
-
import { D as x, P as f } from "./date-time-picker-Dj2eftJI.js";
|
|
10
|
-
import { T as I } from "./calendar-Dy3rVMW2.js";
|
|
11
|
-
const B = [
|
|
12
|
-
{ label: "S", value: "SU" },
|
|
13
|
-
{ label: "M", value: "MO" },
|
|
14
|
-
{ label: "T", value: "TU" },
|
|
15
|
-
{ label: "W", value: "WE" },
|
|
16
|
-
{ label: "T", value: "TH" },
|
|
17
|
-
{ label: "F", value: "FR" },
|
|
18
|
-
{ label: "S", value: "SA" }
|
|
19
|
-
], V = ({
|
|
20
|
-
isOpen: p,
|
|
21
|
-
onClose: m,
|
|
22
|
-
mode: c,
|
|
23
|
-
event: l,
|
|
24
|
-
onSave: k,
|
|
25
|
-
onDelete: y,
|
|
26
|
-
locale: g,
|
|
27
|
-
editorTemplate: N,
|
|
28
|
-
headerTemplate: C,
|
|
29
|
-
footerTemplate: w
|
|
30
|
-
}) => {
|
|
31
|
-
const i = z({
|
|
32
|
-
defaultValues: {
|
|
33
|
-
title: l?.title || "",
|
|
34
|
-
start: l?.start,
|
|
35
|
-
end: l?.end,
|
|
36
|
-
resourceIds: l?.resourceIds || (l?.resourceId ? [l.resourceId] : []) || [],
|
|
37
|
-
location: l?.location || "",
|
|
38
|
-
isAllDay: !!l?.allDay || !!l?.isAllDay || !1,
|
|
39
|
-
description: l?.description || "",
|
|
40
|
-
isTimezoneEnabled: !!l?.timezone,
|
|
41
|
-
startTimezone: l?.timezone?.start || "Asia/Calcutta",
|
|
42
|
-
endTimezone: l?.timezone?.end || "Asia/Calcutta",
|
|
43
|
-
repeatFrequency: l?.recurrence?.frequency || "Never",
|
|
44
|
-
repeatInterval: l?.recurrence?.interval || 1,
|
|
45
|
-
repeatDays: l?.recurrence?.days || [],
|
|
46
|
-
repeatBy: l?.recurrence?.repeatBy || "day",
|
|
47
|
-
repeatEndLevel: l?.recurrence?.end || "Never",
|
|
48
|
-
repeatEndCount: l?.recurrence?.endCount || 1,
|
|
49
|
-
repeatEndUntil: l?.recurrence?.endUntil,
|
|
50
|
-
attachments: l?.attachments || []
|
|
51
|
-
},
|
|
52
|
-
onSubmit: async ({ value: e }) => {
|
|
53
|
-
k({
|
|
54
|
-
...l,
|
|
55
|
-
title: e.title,
|
|
56
|
-
start: e.start,
|
|
57
|
-
end: e.end,
|
|
58
|
-
resourceId: e.resourceIds[0],
|
|
59
|
-
resourceIds: e.resourceIds,
|
|
60
|
-
location: e.location,
|
|
61
|
-
allDay: e.isAllDay,
|
|
62
|
-
description: e.description,
|
|
63
|
-
timezone: e.isTimezoneEnabled ? { start: e.startTimezone, end: e.endTimezone } : void 0,
|
|
64
|
-
recurrence: e.repeatFrequency !== "Never" ? {
|
|
65
|
-
frequency: e.repeatFrequency,
|
|
66
|
-
interval: e.repeatInterval,
|
|
67
|
-
unit: e.repeatFrequency.replace("ly", "") + "(s)",
|
|
68
|
-
end: e.repeatEndLevel,
|
|
69
|
-
endCount: e.repeatEndLevel === "Count" ? e.repeatEndCount : void 0,
|
|
70
|
-
endUntil: e.repeatEndLevel === "Until" ? e.repeatEndUntil : void 0,
|
|
71
|
-
days: e.repeatFrequency === "Weekly" ? e.repeatDays : void 0,
|
|
72
|
-
repeatBy: e.repeatFrequency === "Monthly" || e.repeatFrequency === "Yearly" ? e.repeatBy : void 0
|
|
73
|
-
} : void 0,
|
|
74
|
-
attachments: e.attachments
|
|
75
|
-
}), m();
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
if (A(() => {
|
|
79
|
-
p && i.reset();
|
|
80
|
-
}, [p, l, i]), !p) return null;
|
|
81
|
-
const F = (e) => {
|
|
82
|
-
e.preventDefault(), e.stopPropagation(), i.handleSubmit();
|
|
83
|
-
}, d = c === "view", D = /* @__PURE__ */ a(
|
|
84
|
-
"div",
|
|
85
|
-
{
|
|
86
|
-
"data-testid": "ez-event-modal",
|
|
87
|
-
style: {
|
|
88
|
-
position: "fixed",
|
|
89
|
-
top: 0,
|
|
90
|
-
left: 0,
|
|
91
|
-
width: "100vw",
|
|
92
|
-
height: "100vh",
|
|
93
|
-
zIndex: 1e4,
|
|
94
|
-
backgroundColor: "rgba(0, 0, 0, 0.4)",
|
|
95
|
-
backdropFilter: "blur(2px)",
|
|
96
|
-
pointerEvents: "auto"
|
|
97
|
-
},
|
|
98
|
-
children: [
|
|
99
|
-
/* @__PURE__ */ r(
|
|
100
|
-
"div",
|
|
101
|
-
{
|
|
102
|
-
style: { position: "absolute", inset: 0 },
|
|
103
|
-
onClick: m
|
|
104
|
-
}
|
|
105
|
-
),
|
|
106
|
-
/* @__PURE__ */ a(
|
|
107
|
-
"div",
|
|
108
|
-
{
|
|
109
|
-
className: h(
|
|
110
|
-
"bg-background rounded-xl shadow-2xl flex flex-col border border-border overflow-hidden",
|
|
111
|
-
"animate-in zoom-in-95 fade-in duration-300 ease-out"
|
|
112
|
-
),
|
|
113
|
-
style: {
|
|
114
|
-
backgroundColor: "white",
|
|
115
|
-
width: "650px",
|
|
116
|
-
maxWidth: "95vw",
|
|
117
|
-
maxHeight: "92vh",
|
|
118
|
-
position: "absolute",
|
|
119
|
-
top: "50%",
|
|
120
|
-
left: "50%",
|
|
121
|
-
transform: "translate(-50%, -50%)",
|
|
122
|
-
zIndex: 10001
|
|
123
|
-
},
|
|
124
|
-
children: [
|
|
125
|
-
/* @__PURE__ */ r(
|
|
126
|
-
"div",
|
|
127
|
-
{
|
|
128
|
-
className: "flex items-center justify-between shrink-0 bg-background",
|
|
129
|
-
style: { padding: "16px 40px" },
|
|
130
|
-
children: C ? C(l || {}, c) : /* @__PURE__ */ a(E, { children: [
|
|
131
|
-
/* @__PURE__ */ a("h2", { className: "text-xl font-bold tracking-tight text-foreground", children: [
|
|
132
|
-
c === "create" && "New Event",
|
|
133
|
-
c === "edit" && "Edit Event",
|
|
134
|
-
c === "view" && "Event Details"
|
|
135
|
-
] }),
|
|
136
|
-
/* @__PURE__ */ r(u, { variant: "ghost", size: "icon", className: "h-9 w-9 rounded-full hover:bg-muted text-muted-foreground mr-[-8px]", onClick: m, children: /* @__PURE__ */ r(T, { className: "w-5 h-5" }) })
|
|
137
|
-
] })
|
|
138
|
-
}
|
|
139
|
-
),
|
|
140
|
-
N ? /* @__PURE__ */ r("div", { className: "overflow-y-auto custom-scrollbar flex-1 bg-background", style: { padding: "8px 40px 32px 40px" }, children: N(l || {}) }) : /* @__PURE__ */ a(
|
|
141
|
-
"form",
|
|
142
|
-
{
|
|
143
|
-
onSubmit: F,
|
|
144
|
-
className: "space-y-6 overflow-y-auto custom-scrollbar flex-1 bg-background",
|
|
145
|
-
style: { padding: "8px 40px 32px 40px" },
|
|
146
|
-
children: [
|
|
147
|
-
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
148
|
-
/* @__PURE__ */ r(
|
|
149
|
-
i.Field,
|
|
150
|
-
{
|
|
151
|
-
name: "title",
|
|
152
|
-
validators: {
|
|
153
|
-
onChange: ({ value: e }) => e ? void 0 : "Title is required"
|
|
154
|
-
},
|
|
155
|
-
children: (e) => /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
156
|
-
/* @__PURE__ */ r(o, { htmlFor: "title", className: "text-[13px] font-semibold text-foreground/70", children: "Title" }),
|
|
157
|
-
/* @__PURE__ */ r(
|
|
158
|
-
v,
|
|
159
|
-
{
|
|
160
|
-
id: "title",
|
|
161
|
-
placeholder: "Add title",
|
|
162
|
-
value: e.state.value,
|
|
163
|
-
onChange: (t) => e.handleChange(t.target.value),
|
|
164
|
-
onBlur: e.handleBlur,
|
|
165
|
-
disabled: d,
|
|
166
|
-
className: h(
|
|
167
|
-
"h-10 rounded-md border-border focus-visible:border-primary focus-visible:ring-1 focus-visible:ring-primary/20 bg-background transition-all",
|
|
168
|
-
e.state.meta.errors.length > 0 && "border-destructive focus-visible:border-destructive ring-destructive/20"
|
|
169
|
-
)
|
|
170
|
-
}
|
|
171
|
-
),
|
|
172
|
-
e.state.meta.errors.length > 0 && /* @__PURE__ */ r("p", { className: "text-[12px] font-medium text-destructive mt-1.5 animate-in fade-in slide-in-from-top-1", children: e.state.meta.errors.join(", ") })
|
|
173
|
-
] })
|
|
174
|
-
}
|
|
175
|
-
),
|
|
176
|
-
/* @__PURE__ */ r(
|
|
177
|
-
i.Field,
|
|
178
|
-
{
|
|
179
|
-
name: "location",
|
|
180
|
-
children: (e) => /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
181
|
-
/* @__PURE__ */ r(o, { htmlFor: "location", className: "text-[13px] font-semibold text-foreground/70", children: "Location" }),
|
|
182
|
-
/* @__PURE__ */ r(
|
|
183
|
-
v,
|
|
184
|
-
{
|
|
185
|
-
id: "location",
|
|
186
|
-
placeholder: "Add location",
|
|
187
|
-
value: e.state.value,
|
|
188
|
-
onChange: (t) => e.handleChange(t.target.value),
|
|
189
|
-
disabled: d,
|
|
190
|
-
className: "h-10 rounded-md border-border focus-visible:border-primary focus-visible:ring-1 focus-visible:ring-primary/20 bg-background transition-all"
|
|
191
|
-
}
|
|
192
|
-
)
|
|
193
|
-
] })
|
|
194
|
-
}
|
|
195
|
-
)
|
|
196
|
-
] }),
|
|
197
|
-
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
198
|
-
/* @__PURE__ */ r(
|
|
199
|
-
i.Field,
|
|
200
|
-
{
|
|
201
|
-
name: "start",
|
|
202
|
-
validators: {
|
|
203
|
-
onChange: ({ value: e }) => e ? void 0 : "Start date is required"
|
|
204
|
-
},
|
|
205
|
-
children: (e) => /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
206
|
-
/* @__PURE__ */ r(o, { className: "text-[13px] font-semibold text-foreground/70", children: "Start" }),
|
|
207
|
-
/* @__PURE__ */ r(
|
|
208
|
-
x,
|
|
209
|
-
{
|
|
210
|
-
date: e.state.value,
|
|
211
|
-
setDate: (t) => e.handleChange(t),
|
|
212
|
-
disabled: d,
|
|
213
|
-
required: !0,
|
|
214
|
-
locale: g,
|
|
215
|
-
mode: i.getFieldValue("isAllDay") ? "date" : "datetime",
|
|
216
|
-
className: "border-border focus-visible:border-primary focus-visible:ring-1 focus-visible:ring-primary/20"
|
|
217
|
-
}
|
|
218
|
-
),
|
|
219
|
-
e.state.meta.errors.length > 0 && /* @__PURE__ */ r("p", { className: "text-[12px] font-medium text-destructive mt-1.5", children: e.state.meta.errors.join(", ") })
|
|
220
|
-
] })
|
|
221
|
-
}
|
|
222
|
-
),
|
|
223
|
-
/* @__PURE__ */ r(
|
|
224
|
-
i.Field,
|
|
225
|
-
{
|
|
226
|
-
name: "end",
|
|
227
|
-
validators: {
|
|
228
|
-
onChange: ({ value: e, fieldApi: t }) => {
|
|
229
|
-
if (!e) return "End date is required";
|
|
230
|
-
const n = t.form.getFieldValue("start");
|
|
231
|
-
if (n && e <= n) return "End time must be after start time";
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
children: (e) => /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
235
|
-
/* @__PURE__ */ r(o, { className: "text-[13px] font-semibold text-foreground/70", children: "End" }),
|
|
236
|
-
/* @__PURE__ */ r(
|
|
237
|
-
x,
|
|
238
|
-
{
|
|
239
|
-
date: e.state.value,
|
|
240
|
-
setDate: (t) => e.handleChange(t),
|
|
241
|
-
disabled: d,
|
|
242
|
-
required: !0,
|
|
243
|
-
locale: g,
|
|
244
|
-
mode: i.getFieldValue("isAllDay") ? "date" : "datetime",
|
|
245
|
-
minDate: i.getFieldValue("start"),
|
|
246
|
-
className: h(
|
|
247
|
-
"border-border focus-visible:border-primary focus-visible:ring-1 focus-visible:ring-primary/20",
|
|
248
|
-
e.state.meta.errors.length > 0 && "border-destructive focus-visible:border-destructive ring-destructive/20"
|
|
249
|
-
)
|
|
250
|
-
}
|
|
251
|
-
),
|
|
252
|
-
e.state.meta.errors.length > 0 && /* @__PURE__ */ r("p", { className: "text-[12px] font-medium text-destructive mt-1.5 animate-in fade-in slide-in-from-top-1", children: e.state.meta.errors.join(", ") })
|
|
253
|
-
] })
|
|
254
|
-
}
|
|
255
|
-
)
|
|
256
|
-
] }),
|
|
257
|
-
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
258
|
-
/* @__PURE__ */ r(
|
|
259
|
-
i.Field,
|
|
260
|
-
{
|
|
261
|
-
name: "isAllDay",
|
|
262
|
-
children: (e) => /* @__PURE__ */ r("div", { className: "flex items-center h-10", children: /* @__PURE__ */ a("label", { className: "flex items-center space-x-3 cursor-pointer group select-none", children: [
|
|
263
|
-
/* @__PURE__ */ r(
|
|
264
|
-
"input",
|
|
265
|
-
{
|
|
266
|
-
type: "checkbox",
|
|
267
|
-
checked: e.state.value,
|
|
268
|
-
onChange: (t) => e.handleChange(t.target.checked),
|
|
269
|
-
disabled: d,
|
|
270
|
-
className: "h-4 w-4 rounded border-border/50 text-primary focus:ring-primary/30 accent-primary transition-all cursor-pointer"
|
|
271
|
-
}
|
|
272
|
-
),
|
|
273
|
-
/* @__PURE__ */ r("span", { className: "text-[14px] font-medium text-foreground/70 group-hover:text-foreground", children: "All day event" })
|
|
274
|
-
] }) })
|
|
275
|
-
}
|
|
276
|
-
),
|
|
277
|
-
/* @__PURE__ */ r(
|
|
278
|
-
i.Field,
|
|
279
|
-
{
|
|
280
|
-
name: "isTimezoneEnabled",
|
|
281
|
-
children: (e) => /* @__PURE__ */ r("div", { className: "flex items-center h-10", children: /* @__PURE__ */ a("label", { className: "flex items-center space-x-3 cursor-pointer group select-none", children: [
|
|
282
|
-
/* @__PURE__ */ r(
|
|
283
|
-
"input",
|
|
284
|
-
{
|
|
285
|
-
type: "checkbox",
|
|
286
|
-
checked: e.state.value,
|
|
287
|
-
onChange: (t) => e.handleChange(t.target.checked),
|
|
288
|
-
disabled: d,
|
|
289
|
-
className: "h-4 w-4 rounded border-border/50 text-primary focus:ring-primary/30 accent-primary transition-all cursor-pointer"
|
|
290
|
-
}
|
|
291
|
-
),
|
|
292
|
-
/* @__PURE__ */ r("span", { className: "text-[14px] font-medium text-foreground/70 group-hover:text-foreground", children: "Enable timezone" })
|
|
293
|
-
] }) })
|
|
294
|
-
}
|
|
295
|
-
)
|
|
296
|
-
] }),
|
|
297
|
-
/* @__PURE__ */ r(
|
|
298
|
-
i.Subscribe,
|
|
299
|
-
{
|
|
300
|
-
selector: (e) => [e.values.isTimezoneEnabled],
|
|
301
|
-
children: ([e]) => e && /* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6 p-6 bg-highlight/50 rounded-lg border border-border animate-in slide-in-from-top-2 duration-300", children: [
|
|
302
|
-
/* @__PURE__ */ r(
|
|
303
|
-
i.Field,
|
|
304
|
-
{
|
|
305
|
-
name: "startTimezone",
|
|
306
|
-
children: (t) => /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
307
|
-
/* @__PURE__ */ r(o, { className: "text-[13px] font-semibold text-foreground/70", children: "Start Timezone" }),
|
|
308
|
-
/* @__PURE__ */ a(
|
|
309
|
-
"select",
|
|
310
|
-
{
|
|
311
|
-
className: "w-full h-10 px-3 rounded-md border-border bg-background text-sm focus:outline-none focus-visible:ring-1 focus-visible:ring-primary/20 focus-visible:border-primary appearance-none bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xlmns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20fill%3D%27none%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20stroke%3D%27%236b7280%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20stroke-width%3D%271.5%27%20d%3D%27m6%208%204%204%204-4%27%2F%3E%3C%2Fsvg%3E')] bg-[length:20px] bg-[right_8px_center] bg-no-repeat transition-all",
|
|
312
|
-
value: t.state.value,
|
|
313
|
-
onChange: (n) => t.handleChange(n.target.value),
|
|
314
|
-
children: [
|
|
315
|
-
/* @__PURE__ */ r("option", { value: "Asia/Calcutta", children: "Asia/Calcutta" }),
|
|
316
|
-
/* @__PURE__ */ r("option", { value: "UTC", children: "UTC" }),
|
|
317
|
-
/* @__PURE__ */ r("option", { value: "America/New_York", children: "America/New_York" })
|
|
318
|
-
]
|
|
319
|
-
}
|
|
320
|
-
)
|
|
321
|
-
] })
|
|
322
|
-
}
|
|
323
|
-
),
|
|
324
|
-
/* @__PURE__ */ r(
|
|
325
|
-
i.Field,
|
|
326
|
-
{
|
|
327
|
-
name: "endTimezone",
|
|
328
|
-
children: (t) => /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
329
|
-
/* @__PURE__ */ r(o, { className: "text-[13px] font-semibold text-foreground/70", children: "End Timezone" }),
|
|
330
|
-
/* @__PURE__ */ a(
|
|
331
|
-
"select",
|
|
332
|
-
{
|
|
333
|
-
className: "w-full h-10 px-3 rounded-md border-border bg-background text-sm focus:outline-none focus-visible:ring-1 focus-visible:ring-primary/20 focus-visible:border-primary appearance-none bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xlmns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20fill%3D%27none%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20stroke%3D%27%236b7280%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20stroke-width%3D%271.5%27%20d%3D%27m6%208%204%204%204-4%27%2F%3E%3C%2Fsvg%3E')] bg-[length:20px] bg-[right_8px_center] bg-no-repeat transition-all",
|
|
334
|
-
value: t.state.value,
|
|
335
|
-
onChange: (n) => t.handleChange(n.target.value),
|
|
336
|
-
children: [
|
|
337
|
-
/* @__PURE__ */ r("option", { value: "Asia/Calcutta", children: "Asia/Calcutta" }),
|
|
338
|
-
/* @__PURE__ */ r("option", { value: "UTC", children: "UTC" }),
|
|
339
|
-
/* @__PURE__ */ r("option", { value: "America/New_York", children: "America/New_York" })
|
|
340
|
-
]
|
|
341
|
-
}
|
|
342
|
-
)
|
|
343
|
-
] })
|
|
344
|
-
}
|
|
345
|
-
)
|
|
346
|
-
] })
|
|
347
|
-
}
|
|
348
|
-
),
|
|
349
|
-
/* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
|
|
350
|
-
/* @__PURE__ */ r(
|
|
351
|
-
i.Field,
|
|
352
|
-
{
|
|
353
|
-
name: "repeatFrequency",
|
|
354
|
-
children: (e) => /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
355
|
-
/* @__PURE__ */ r(o, { className: "text-[13px] font-semibold text-foreground/70", children: "Repeat" }),
|
|
356
|
-
/* @__PURE__ */ a(
|
|
357
|
-
"select",
|
|
358
|
-
{
|
|
359
|
-
className: "w-full h-10 px-3 rounded-md border-border bg-background text-sm focus:outline-none focus-visible:ring-1 focus-visible:ring-primary/20 focus-visible:border-primary appearance-none bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xlmns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20fill%3D%27none%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20stroke%3D%27%236b7280%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20stroke-width%3D%271.5%27%20d%3D%27m6%208%204%204%204-4%27%2F%3E%3C%2Fsvg%3E')] bg-[length:20px] bg-[right_8px_center] bg-no-repeat transition-all",
|
|
360
|
-
value: e.state.value,
|
|
361
|
-
onChange: (t) => e.handleChange(t.target.value),
|
|
362
|
-
children: [
|
|
363
|
-
/* @__PURE__ */ r("option", { value: "Never", children: "Never" }),
|
|
364
|
-
/* @__PURE__ */ r("option", { value: "Daily", children: "Daily" }),
|
|
365
|
-
/* @__PURE__ */ r("option", { value: "Weekly", children: "Weekly" }),
|
|
366
|
-
/* @__PURE__ */ r("option", { value: "Monthly", children: "Monthly" }),
|
|
367
|
-
/* @__PURE__ */ r("option", { value: "Yearly", children: "Yearly" })
|
|
368
|
-
]
|
|
369
|
-
}
|
|
370
|
-
)
|
|
371
|
-
] })
|
|
372
|
-
}
|
|
373
|
-
),
|
|
374
|
-
/* @__PURE__ */ r(
|
|
375
|
-
i.Subscribe,
|
|
376
|
-
{
|
|
377
|
-
selector: (e) => [e.values.repeatFrequency],
|
|
378
|
-
children: ([e]) => e !== "Never" && /* @__PURE__ */ r(
|
|
379
|
-
i.Field,
|
|
380
|
-
{
|
|
381
|
-
name: "repeatEndLevel",
|
|
382
|
-
children: (t) => /* @__PURE__ */ a("div", { className: "space-y-2 animate-in slide-in-from-top-2 duration-300", children: [
|
|
383
|
-
/* @__PURE__ */ r(o, { className: "text-[13px] font-semibold text-foreground/70", children: "End" }),
|
|
384
|
-
/* @__PURE__ */ a(
|
|
385
|
-
"select",
|
|
386
|
-
{
|
|
387
|
-
className: "w-full h-10 px-3 rounded-md border-border bg-background text-sm focus:outline-none focus-visible:ring-1 focus-visible:ring-primary/20 focus-visible:border-primary appearance-none bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xlmns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20fill%3D%27none%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20stroke%3D%27%236b7280%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20stroke-width%3D%271.5%27%20d%3D%27m6%208%204%204%204-4%27%2F%3E%3C%2Fsvg%3E')] bg-[length:20px] bg-[right_8px_center] bg-no-repeat transition-all",
|
|
388
|
-
value: t.state.value,
|
|
389
|
-
onChange: (n) => t.handleChange(n.target.value),
|
|
390
|
-
children: [
|
|
391
|
-
/* @__PURE__ */ r("option", { value: "Never", children: "Never" }),
|
|
392
|
-
/* @__PURE__ */ r("option", { value: "Until", children: "Until" }),
|
|
393
|
-
/* @__PURE__ */ r("option", { value: "Count", children: "Count" })
|
|
394
|
-
]
|
|
395
|
-
}
|
|
396
|
-
)
|
|
397
|
-
] })
|
|
398
|
-
}
|
|
399
|
-
)
|
|
400
|
-
}
|
|
401
|
-
)
|
|
402
|
-
] }),
|
|
403
|
-
/* @__PURE__ */ r(
|
|
404
|
-
i.Subscribe,
|
|
405
|
-
{
|
|
406
|
-
selector: (e) => [e.values.repeatFrequency, e.values.repeatEndLevel],
|
|
407
|
-
children: ([e, t]) => e !== "Never" && /* @__PURE__ */ a("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6 animate-in slide-in-from-top-2 duration-300", children: [
|
|
408
|
-
/* @__PURE__ */ r(
|
|
409
|
-
i.Field,
|
|
410
|
-
{
|
|
411
|
-
name: "repeatInterval",
|
|
412
|
-
children: (n) => /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
413
|
-
/* @__PURE__ */ r(o, { className: "text-[13px] font-semibold text-foreground/70", children: "Repeat every" }),
|
|
414
|
-
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
415
|
-
/* @__PURE__ */ r(
|
|
416
|
-
"select",
|
|
417
|
-
{
|
|
418
|
-
className: "flex-1 h-10 px-3 rounded-md border-border bg-background text-sm focus:outline-none focus-visible:ring-1 focus-visible:ring-primary/20 focus-visible:border-primary appearance-none bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xlmns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20fill%3D%27none%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20stroke%3D%27%236b7280%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20stroke-width%3D%271.5%27%20d%3D%27m6%208%204%204%204-4%27%2F%3E%3C%2Fsvg%3E')] bg-[length:20px] bg-[right_8px_center] bg-no-repeat transition-all",
|
|
419
|
-
value: n.state.value,
|
|
420
|
-
onChange: (s) => n.handleChange(parseInt(s.target.value)),
|
|
421
|
-
children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20, 30].map((s) => /* @__PURE__ */ r("option", { value: s, children: s }, s))
|
|
422
|
-
}
|
|
423
|
-
),
|
|
424
|
-
/* @__PURE__ */ r("span", { className: "text-sm font-medium text-muted-foreground whitespace-nowrap", children: e === "Daily" ? "Day(s)" : e.replace("ly", "") + "(s)" })
|
|
425
|
-
] })
|
|
426
|
-
] })
|
|
427
|
-
}
|
|
428
|
-
),
|
|
429
|
-
t === "Until" && /* @__PURE__ */ r(
|
|
430
|
-
i.Field,
|
|
431
|
-
{
|
|
432
|
-
name: "repeatEndUntil",
|
|
433
|
-
children: (n) => /* @__PURE__ */ a("div", { className: "space-y-2 animate-in slide-in-from-top-1", children: [
|
|
434
|
-
/* @__PURE__ */ r(o, { className: "text-[13px] font-semibold text-foreground/70", children: "Until" }),
|
|
435
|
-
/* @__PURE__ */ r(
|
|
436
|
-
x,
|
|
437
|
-
{
|
|
438
|
-
date: n.state.value,
|
|
439
|
-
setDate: (s) => n.handleChange(s),
|
|
440
|
-
disabled: d,
|
|
441
|
-
locale: g,
|
|
442
|
-
mode: "date",
|
|
443
|
-
minDate: i.getFieldValue("start"),
|
|
444
|
-
className: "border-border focus:border-primary"
|
|
445
|
-
}
|
|
446
|
-
)
|
|
447
|
-
] })
|
|
448
|
-
}
|
|
449
|
-
),
|
|
450
|
-
t === "Count" && /* @__PURE__ */ r(
|
|
451
|
-
i.Field,
|
|
452
|
-
{
|
|
453
|
-
name: "repeatEndCount",
|
|
454
|
-
children: (n) => /* @__PURE__ */ a("div", { className: "space-y-2 animate-in slide-in-from-top-1", children: [
|
|
455
|
-
/* @__PURE__ */ r(o, { className: "text-[13px] font-semibold text-foreground/70", children: "Occurrences" }),
|
|
456
|
-
/* @__PURE__ */ r(
|
|
457
|
-
v,
|
|
458
|
-
{
|
|
459
|
-
type: "number",
|
|
460
|
-
min: 1,
|
|
461
|
-
value: n.state.value,
|
|
462
|
-
onChange: (s) => n.handleChange(parseInt(s.target.value)),
|
|
463
|
-
className: "h-10 rounded-md border-border focus-visible:border-primary focus-visible:ring-1 focus-visible:ring-primary/20 bg-background transition-all"
|
|
464
|
-
}
|
|
465
|
-
)
|
|
466
|
-
] })
|
|
467
|
-
}
|
|
468
|
-
)
|
|
469
|
-
] })
|
|
470
|
-
}
|
|
471
|
-
),
|
|
472
|
-
/* @__PURE__ */ r(
|
|
473
|
-
i.Subscribe,
|
|
474
|
-
{
|
|
475
|
-
selector: (e) => [e.values.repeatFrequency],
|
|
476
|
-
children: ([e]) => e === "Weekly" && /* @__PURE__ */ r(
|
|
477
|
-
i.Field,
|
|
478
|
-
{
|
|
479
|
-
name: "repeatDays",
|
|
480
|
-
children: (t) => /* @__PURE__ */ a("div", { className: "space-y-3 animate-in fade-in duration-300", children: [
|
|
481
|
-
/* @__PURE__ */ r(o, { className: "text-[13px] font-semibold text-foreground/70", children: "Repeat On" }),
|
|
482
|
-
/* @__PURE__ */ r("div", { className: "flex flex-wrap gap-2", children: B.map((n) => /* @__PURE__ */ r(
|
|
483
|
-
"button",
|
|
484
|
-
{
|
|
485
|
-
type: "button",
|
|
486
|
-
onClick: () => {
|
|
487
|
-
const s = t.state.value || [];
|
|
488
|
-
s.includes(n.value) ? t.handleChange(s.filter((b) => b !== n.value)) : t.handleChange([...s, n.value]);
|
|
489
|
-
},
|
|
490
|
-
className: h(
|
|
491
|
-
"w-9 h-9 rounded-full flex items-center justify-center text-sm font-bold transition-all border",
|
|
492
|
-
(t.state.value || []).includes(n.value) ? "bg-primary text-white border-primary shadow-sm" : "bg-background text-foreground/60 border-border/60 hover:border-primary/40 hover:text-primary"
|
|
493
|
-
),
|
|
494
|
-
children: n.label
|
|
495
|
-
},
|
|
496
|
-
n.value
|
|
497
|
-
)) })
|
|
498
|
-
] })
|
|
499
|
-
}
|
|
500
|
-
)
|
|
501
|
-
}
|
|
502
|
-
),
|
|
503
|
-
/* @__PURE__ */ r(
|
|
504
|
-
i.Subscribe,
|
|
505
|
-
{
|
|
506
|
-
selector: (e) => [e.values.repeatFrequency],
|
|
507
|
-
children: ([e]) => (e === "Monthly" || e === "Yearly") && /* @__PURE__ */ r(
|
|
508
|
-
i.Field,
|
|
509
|
-
{
|
|
510
|
-
name: "repeatBy",
|
|
511
|
-
children: (t) => /* @__PURE__ */ a("div", { className: "space-y-4 animate-in fade-in duration-300", children: [
|
|
512
|
-
/* @__PURE__ */ r(o, { className: "text-[13px] font-semibold text-foreground/70", children: "Repeat On" }),
|
|
513
|
-
/* @__PURE__ */ a("div", { className: "space-y-3", children: [
|
|
514
|
-
/* @__PURE__ */ a("label", { className: "flex items-center space-x-3 cursor-pointer group", children: [
|
|
515
|
-
/* @__PURE__ */ r(
|
|
516
|
-
"input",
|
|
517
|
-
{
|
|
518
|
-
type: "radio",
|
|
519
|
-
name: "repeatBy",
|
|
520
|
-
checked: t.state.value === "day",
|
|
521
|
-
onChange: () => t.handleChange("day"),
|
|
522
|
-
className: "h-4 w-4 border-border text-primary focus:ring-primary"
|
|
523
|
-
}
|
|
524
|
-
),
|
|
525
|
-
/* @__PURE__ */ r("span", { className: "text-sm text-foreground/80", children: "Day of the month" })
|
|
526
|
-
] }),
|
|
527
|
-
/* @__PURE__ */ a("label", { className: "flex items-center space-x-3 cursor-pointer group", children: [
|
|
528
|
-
/* @__PURE__ */ r(
|
|
529
|
-
"input",
|
|
530
|
-
{
|
|
531
|
-
type: "radio",
|
|
532
|
-
name: "repeatBy",
|
|
533
|
-
checked: t.state.value === "ordinal",
|
|
534
|
-
onChange: () => t.handleChange("ordinal"),
|
|
535
|
-
className: "h-4 w-4 border-border text-primary focus:ring-primary"
|
|
536
|
-
}
|
|
537
|
-
),
|
|
538
|
-
/* @__PURE__ */ r("span", { className: "text-sm text-foreground/80", children: "Ordinal position" })
|
|
539
|
-
] })
|
|
540
|
-
] })
|
|
541
|
-
] })
|
|
542
|
-
}
|
|
543
|
-
)
|
|
544
|
-
}
|
|
545
|
-
),
|
|
546
|
-
/* @__PURE__ */ r(
|
|
547
|
-
i.Field,
|
|
548
|
-
{
|
|
549
|
-
name: "description",
|
|
550
|
-
children: (e) => /* @__PURE__ */ a("div", { className: "space-y-2", children: [
|
|
551
|
-
/* @__PURE__ */ r(o, { htmlFor: "description", className: "text-[13px] font-semibold text-foreground/70", children: "Description" }),
|
|
552
|
-
/* @__PURE__ */ r(
|
|
553
|
-
"textarea",
|
|
554
|
-
{
|
|
555
|
-
id: "description",
|
|
556
|
-
placeholder: "Add description",
|
|
557
|
-
className: "flex min-h-[100px] w-full rounded-md border-border bg-background px-4 py-3 text-sm placeholder:text-muted-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-primary/20 focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50 resize-none transition-all hover:border-border",
|
|
558
|
-
value: e.state.value,
|
|
559
|
-
onChange: (t) => e.handleChange(t.target.value),
|
|
560
|
-
disabled: d
|
|
561
|
-
}
|
|
562
|
-
)
|
|
563
|
-
] })
|
|
564
|
-
}
|
|
565
|
-
),
|
|
566
|
-
/* @__PURE__ */ r(
|
|
567
|
-
i.Field,
|
|
568
|
-
{
|
|
569
|
-
name: "attachments",
|
|
570
|
-
children: (e) => /* @__PURE__ */ a("div", { className: "space-y-4 pt-4 pb-2", children: [
|
|
571
|
-
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
572
|
-
/* @__PURE__ */ a(o, { className: "text-[13px] font-semibold text-foreground/70 flex items-center gap-2", children: [
|
|
573
|
-
/* @__PURE__ */ r(f, { className: "w-4 h-4" }),
|
|
574
|
-
" Attachments"
|
|
575
|
-
] }),
|
|
576
|
-
/* @__PURE__ */ r(
|
|
577
|
-
"input",
|
|
578
|
-
{
|
|
579
|
-
type: "file",
|
|
580
|
-
id: "file-upload",
|
|
581
|
-
multiple: !0,
|
|
582
|
-
className: "hidden",
|
|
583
|
-
onChange: (t) => {
|
|
584
|
-
t.target.files && e.handleChange([...e.state.value || [], ...Array.from(t.target.files)]);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
),
|
|
588
|
-
/* @__PURE__ */ a(
|
|
589
|
-
u,
|
|
590
|
-
{
|
|
591
|
-
type: "button",
|
|
592
|
-
variant: "outline",
|
|
593
|
-
size: "sm",
|
|
594
|
-
className: "h-8 text-xs font-semibold gap-2 border-dashed border-border/50 hover:border-primary/40 hover:text-primary transition-all",
|
|
595
|
-
onClick: () => document.getElementById("file-upload")?.click(),
|
|
596
|
-
children: [
|
|
597
|
-
/* @__PURE__ */ r(f, { className: "w-3 h-3" }),
|
|
598
|
-
" Add Files"
|
|
599
|
-
]
|
|
600
|
-
}
|
|
601
|
-
)
|
|
602
|
-
] }),
|
|
603
|
-
(e.state.value || []).length > 0 && /* @__PURE__ */ r("div", { className: "grid grid-cols-1 gap-3", children: (e.state.value || []).map((t, n) => /* @__PURE__ */ a("div", { className: "flex items-center justify-between p-3 rounded-lg bg-highlight border border-border group hover:border-border transition-all", children: [
|
|
604
|
-
/* @__PURE__ */ a("div", { className: "flex items-center gap-3 overflow-hidden", children: [
|
|
605
|
-
/* @__PURE__ */ r("div", { className: "w-9 h-9 rounded-md bg-white border border-border flex items-center justify-center shrink-0 shadow-sm", children: /* @__PURE__ */ r(f, { className: "w-4 h-4 text-muted-foreground" }) }),
|
|
606
|
-
/* @__PURE__ */ a("div", { className: "flex flex-col overflow-hidden", children: [
|
|
607
|
-
/* @__PURE__ */ r("span", { className: "text-[13px] font-medium text-foreground truncate", children: t.name }),
|
|
608
|
-
/* @__PURE__ */ a("span", { className: "text-[11px] text-muted-foreground font-medium", children: [
|
|
609
|
-
(t.size / 1024).toFixed(1),
|
|
610
|
-
" KB"
|
|
611
|
-
] })
|
|
612
|
-
] })
|
|
613
|
-
] }),
|
|
614
|
-
/* @__PURE__ */ r(
|
|
615
|
-
u,
|
|
616
|
-
{
|
|
617
|
-
type: "button",
|
|
618
|
-
variant: "ghost",
|
|
619
|
-
size: "icon",
|
|
620
|
-
className: "h-8 w-8 text-muted-foreground/50 hover:text-destructive hover:bg-destructive/10 opacity-0 group-hover:opacity-100 transition-all",
|
|
621
|
-
onClick: () => e.handleChange((e.state.value || []).filter((s, b) => b !== n)),
|
|
622
|
-
children: /* @__PURE__ */ r(I, { className: "w-4 h-4" })
|
|
623
|
-
}
|
|
624
|
-
)
|
|
625
|
-
] }, n)) })
|
|
626
|
-
] })
|
|
627
|
-
}
|
|
628
|
-
)
|
|
629
|
-
]
|
|
630
|
-
}
|
|
631
|
-
),
|
|
632
|
-
w ? w(l || {}, c, () => F({}), m) : /* @__PURE__ */ a("div", { style: {
|
|
633
|
-
display: "flex",
|
|
634
|
-
alignItems: "center",
|
|
635
|
-
justifyContent: "flex-end",
|
|
636
|
-
padding: "24px 40px",
|
|
637
|
-
backgroundColor: "var(--highlight)",
|
|
638
|
-
gap: "12px",
|
|
639
|
-
width: "100%",
|
|
640
|
-
flexShrink: 0
|
|
641
|
-
}, children: [
|
|
642
|
-
!d && y && c === "edit" && /* @__PURE__ */ r(u, { type: "button", variant: "ghost", className: "text-destructive hover:bg-destructive/10 hover:text-destructive h-10 px-5 font-bold mr-auto", onClick: () => {
|
|
643
|
-
y(l?.id), m();
|
|
644
|
-
}, children: "Delete" }),
|
|
645
|
-
/* @__PURE__ */ a("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
646
|
-
!d && /* @__PURE__ */ r(
|
|
647
|
-
i.Subscribe,
|
|
648
|
-
{
|
|
649
|
-
selector: (e) => [e.canSubmit, e.isSubmitting],
|
|
650
|
-
children: ([e, t]) => /* @__PURE__ */ r(
|
|
651
|
-
u,
|
|
652
|
-
{
|
|
653
|
-
type: "submit",
|
|
654
|
-
variant: "default",
|
|
655
|
-
className: "h-10 px-10 font-bold rounded-md shrink-0 flex items-center justify-center transition-all hover:opacity-90",
|
|
656
|
-
style: { minWidth: "120px" },
|
|
657
|
-
disabled: !e || t,
|
|
658
|
-
onClick: (n) => {
|
|
659
|
-
n.preventDefault(), n.stopPropagation(), i.handleSubmit();
|
|
660
|
-
},
|
|
661
|
-
children: t ? "Saving..." : "Save"
|
|
662
|
-
}
|
|
663
|
-
)
|
|
664
|
-
}
|
|
665
|
-
),
|
|
666
|
-
/* @__PURE__ */ r(
|
|
667
|
-
u,
|
|
668
|
-
{
|
|
669
|
-
type: "button",
|
|
670
|
-
variant: "outline",
|
|
671
|
-
className: "h-10 px-8 font-bold border border-border hover:bg-highlight text-foreground shrink-0 rounded-md transition-all",
|
|
672
|
-
style: { minWidth: "100px" },
|
|
673
|
-
onClick: m,
|
|
674
|
-
children: "Cancel"
|
|
675
|
-
}
|
|
676
|
-
)
|
|
677
|
-
] })
|
|
678
|
-
] })
|
|
679
|
-
]
|
|
680
|
-
}
|
|
681
|
-
)
|
|
682
|
-
]
|
|
683
|
-
}
|
|
684
|
-
);
|
|
685
|
-
return S(D, document.body);
|
|
686
|
-
};
|
|
687
|
-
export {
|
|
688
|
-
V as EzEventModal
|
|
689
|
-
};
|