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,1636 +0,0 @@
|
|
|
1
|
-
import { c as re } from "./EzErrorBoundary-D4NBadES.js";
|
|
2
|
-
import { jsxs as Q, jsx as y, Fragment as se } from "react/jsx-runtime";
|
|
3
|
-
import { useState as R, useRef as ne, useEffect as G, useMemo as oe } from "react";
|
|
4
|
-
import { c as N } from "./useInitCoreServices-D1WaWlaI.js";
|
|
5
|
-
import { C as ae } from "./calendar-Dy3rVMW2.js";
|
|
6
|
-
import { P as ie, a as ce, b as ue } from "./popover-Cmlb7w3R.js";
|
|
7
|
-
import { m as Z, t as H, c as _, n as le, o as de, p as we, q as fe, s as W, r as $, v as he, w as pe, x as j, y as K, z as me, A as X, B as xe, D as A, F as ye, G as z, f as V, h as be, H as ge, i as Te, C as Pe } from "./index-C6NfgycP.js";
|
|
8
|
-
import { X as De } from "./tooltip-BCtrEe0z.js";
|
|
9
|
-
import { C as ke } from "./isBefore-C3Y_wbk3.js";
|
|
10
|
-
const Me = [
|
|
11
|
-
[
|
|
12
|
-
"path",
|
|
13
|
-
{
|
|
14
|
-
d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",
|
|
15
|
-
key: "1miecu"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
], qt = re("paperclip", Me);
|
|
19
|
-
function _e() {
|
|
20
|
-
return Object.assign({}, Z());
|
|
21
|
-
}
|
|
22
|
-
function Ye(s, e) {
|
|
23
|
-
const r = H(s, e?.in).getDay();
|
|
24
|
-
return r === 0 ? 7 : r;
|
|
25
|
-
}
|
|
26
|
-
function He(s, e) {
|
|
27
|
-
const r = Oe(e) ? new e(0) : _(e, 0);
|
|
28
|
-
return r.setFullYear(s.getFullYear(), s.getMonth(), s.getDate()), r.setHours(
|
|
29
|
-
s.getHours(),
|
|
30
|
-
s.getMinutes(),
|
|
31
|
-
s.getSeconds(),
|
|
32
|
-
s.getMilliseconds()
|
|
33
|
-
), r;
|
|
34
|
-
}
|
|
35
|
-
function Oe(s) {
|
|
36
|
-
return typeof s == "function" && s.prototype?.constructor === s;
|
|
37
|
-
}
|
|
38
|
-
const ve = 10;
|
|
39
|
-
class U {
|
|
40
|
-
subPriority = 0;
|
|
41
|
-
validate(e, r) {
|
|
42
|
-
return !0;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
class Ie extends U {
|
|
46
|
-
constructor(e, r, t, n, o) {
|
|
47
|
-
super(), this.value = e, this.validateValue = r, this.setValue = t, this.priority = n, o && (this.subPriority = o);
|
|
48
|
-
}
|
|
49
|
-
validate(e, r) {
|
|
50
|
-
return this.validateValue(e, this.value, r);
|
|
51
|
-
}
|
|
52
|
-
set(e, r, t) {
|
|
53
|
-
return this.setValue(e, r, this.value, t);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
class Ee extends U {
|
|
57
|
-
priority = ve;
|
|
58
|
-
subPriority = -1;
|
|
59
|
-
constructor(e, r) {
|
|
60
|
-
super(), this.context = e || ((t) => _(r, t));
|
|
61
|
-
}
|
|
62
|
-
set(e, r) {
|
|
63
|
-
return r.timestampIsSet ? e : _(e, He(e, this.context));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
class c {
|
|
67
|
-
run(e, r, t, n) {
|
|
68
|
-
const o = this.parse(e, r, t, n);
|
|
69
|
-
return o ? {
|
|
70
|
-
setter: new Ie(
|
|
71
|
-
o.value,
|
|
72
|
-
this.validate,
|
|
73
|
-
this.set,
|
|
74
|
-
this.priority,
|
|
75
|
-
this.subPriority
|
|
76
|
-
),
|
|
77
|
-
rest: o.rest
|
|
78
|
-
} : null;
|
|
79
|
-
}
|
|
80
|
-
validate(e, r, t) {
|
|
81
|
-
return !0;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
class qe extends c {
|
|
85
|
-
priority = 140;
|
|
86
|
-
parse(e, r, t) {
|
|
87
|
-
switch (r) {
|
|
88
|
-
// AD, BC
|
|
89
|
-
case "G":
|
|
90
|
-
case "GG":
|
|
91
|
-
case "GGG":
|
|
92
|
-
return t.era(e, { width: "abbreviated" }) || t.era(e, { width: "narrow" });
|
|
93
|
-
// A, B
|
|
94
|
-
case "GGGGG":
|
|
95
|
-
return t.era(e, { width: "narrow" });
|
|
96
|
-
default:
|
|
97
|
-
return t.era(e, { width: "wide" }) || t.era(e, { width: "abbreviated" }) || t.era(e, { width: "narrow" });
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
set(e, r, t) {
|
|
101
|
-
return r.era = t, e.setFullYear(t, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
102
|
-
}
|
|
103
|
-
incompatibleTokens = ["R", "u", "t", "T"];
|
|
104
|
-
}
|
|
105
|
-
const h = {
|
|
106
|
-
month: /^(1[0-2]|0?\d)/,
|
|
107
|
-
// 0 to 12
|
|
108
|
-
date: /^(3[0-1]|[0-2]?\d)/,
|
|
109
|
-
// 0 to 31
|
|
110
|
-
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
111
|
-
// 0 to 366
|
|
112
|
-
week: /^(5[0-3]|[0-4]?\d)/,
|
|
113
|
-
// 0 to 53
|
|
114
|
-
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
115
|
-
// 0 to 23
|
|
116
|
-
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
117
|
-
// 0 to 24
|
|
118
|
-
hour11h: /^(1[0-1]|0?\d)/,
|
|
119
|
-
// 0 to 11
|
|
120
|
-
hour12h: /^(1[0-2]|0?\d)/,
|
|
121
|
-
// 0 to 12
|
|
122
|
-
minute: /^[0-5]?\d/,
|
|
123
|
-
// 0 to 59
|
|
124
|
-
second: /^[0-5]?\d/,
|
|
125
|
-
// 0 to 59
|
|
126
|
-
singleDigit: /^\d/,
|
|
127
|
-
// 0 to 9
|
|
128
|
-
twoDigits: /^\d{1,2}/,
|
|
129
|
-
// 0 to 99
|
|
130
|
-
threeDigits: /^\d{1,3}/,
|
|
131
|
-
// 0 to 999
|
|
132
|
-
fourDigits: /^\d{1,4}/,
|
|
133
|
-
// 0 to 9999
|
|
134
|
-
anyDigitsSigned: /^-?\d+/,
|
|
135
|
-
singleDigitSigned: /^-?\d/,
|
|
136
|
-
// 0 to 9, -0 to -9
|
|
137
|
-
twoDigitsSigned: /^-?\d{1,2}/,
|
|
138
|
-
// 0 to 99, -0 to -99
|
|
139
|
-
threeDigitsSigned: /^-?\d{1,3}/,
|
|
140
|
-
// 0 to 999, -0 to -999
|
|
141
|
-
fourDigitsSigned: /^-?\d{1,4}/
|
|
142
|
-
// 0 to 9999, -0 to -9999
|
|
143
|
-
}, k = {
|
|
144
|
-
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
145
|
-
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
146
|
-
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
147
|
-
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
148
|
-
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
149
|
-
};
|
|
150
|
-
function p(s, e) {
|
|
151
|
-
return s && {
|
|
152
|
-
value: e(s.value),
|
|
153
|
-
rest: s.rest
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
function w(s, e) {
|
|
157
|
-
const r = e.match(s);
|
|
158
|
-
return r ? {
|
|
159
|
-
value: parseInt(r[0], 10),
|
|
160
|
-
rest: e.slice(r[0].length)
|
|
161
|
-
} : null;
|
|
162
|
-
}
|
|
163
|
-
function M(s, e) {
|
|
164
|
-
const r = e.match(s);
|
|
165
|
-
if (!r)
|
|
166
|
-
return null;
|
|
167
|
-
if (r[0] === "Z")
|
|
168
|
-
return {
|
|
169
|
-
value: 0,
|
|
170
|
-
rest: e.slice(1)
|
|
171
|
-
};
|
|
172
|
-
const t = r[1] === "+" ? 1 : -1, n = r[2] ? parseInt(r[2], 10) : 0, o = r[3] ? parseInt(r[3], 10) : 0, l = r[5] ? parseInt(r[5], 10) : 0;
|
|
173
|
-
return {
|
|
174
|
-
value: t * (n * le + o * de + l * we),
|
|
175
|
-
rest: e.slice(r[0].length)
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
function J(s) {
|
|
179
|
-
return w(h.anyDigitsSigned, s);
|
|
180
|
-
}
|
|
181
|
-
function f(s, e) {
|
|
182
|
-
switch (s) {
|
|
183
|
-
case 1:
|
|
184
|
-
return w(h.singleDigit, e);
|
|
185
|
-
case 2:
|
|
186
|
-
return w(h.twoDigits, e);
|
|
187
|
-
case 3:
|
|
188
|
-
return w(h.threeDigits, e);
|
|
189
|
-
case 4:
|
|
190
|
-
return w(h.fourDigits, e);
|
|
191
|
-
default:
|
|
192
|
-
return w(new RegExp("^\\d{1," + s + "}"), e);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function L(s, e) {
|
|
196
|
-
switch (s) {
|
|
197
|
-
case 1:
|
|
198
|
-
return w(h.singleDigitSigned, e);
|
|
199
|
-
case 2:
|
|
200
|
-
return w(h.twoDigitsSigned, e);
|
|
201
|
-
case 3:
|
|
202
|
-
return w(h.threeDigitsSigned, e);
|
|
203
|
-
case 4:
|
|
204
|
-
return w(h.fourDigitsSigned, e);
|
|
205
|
-
default:
|
|
206
|
-
return w(new RegExp("^-?\\d{1," + s + "}"), e);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
function B(s) {
|
|
210
|
-
switch (s) {
|
|
211
|
-
case "morning":
|
|
212
|
-
return 4;
|
|
213
|
-
case "evening":
|
|
214
|
-
return 17;
|
|
215
|
-
case "pm":
|
|
216
|
-
case "noon":
|
|
217
|
-
case "afternoon":
|
|
218
|
-
return 12;
|
|
219
|
-
default:
|
|
220
|
-
return 0;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
function S(s, e) {
|
|
224
|
-
const r = e > 0, t = r ? e : 1 - e;
|
|
225
|
-
let n;
|
|
226
|
-
if (t <= 50)
|
|
227
|
-
n = s || 100;
|
|
228
|
-
else {
|
|
229
|
-
const o = t + 50, l = Math.trunc(o / 100) * 100, m = s >= o % 100;
|
|
230
|
-
n = s + l - (m ? 100 : 0);
|
|
231
|
-
}
|
|
232
|
-
return r ? n : 1 - n;
|
|
233
|
-
}
|
|
234
|
-
function ee(s) {
|
|
235
|
-
return s % 400 === 0 || s % 4 === 0 && s % 100 !== 0;
|
|
236
|
-
}
|
|
237
|
-
class Ne extends c {
|
|
238
|
-
priority = 130;
|
|
239
|
-
incompatibleTokens = ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"];
|
|
240
|
-
parse(e, r, t) {
|
|
241
|
-
const n = (o) => ({
|
|
242
|
-
year: o,
|
|
243
|
-
isTwoDigitYear: r === "yy"
|
|
244
|
-
});
|
|
245
|
-
switch (r) {
|
|
246
|
-
case "y":
|
|
247
|
-
return p(f(4, e), n);
|
|
248
|
-
case "yo":
|
|
249
|
-
return p(
|
|
250
|
-
t.ordinalNumber(e, {
|
|
251
|
-
unit: "year"
|
|
252
|
-
}),
|
|
253
|
-
n
|
|
254
|
-
);
|
|
255
|
-
default:
|
|
256
|
-
return p(f(r.length, e), n);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
validate(e, r) {
|
|
260
|
-
return r.isTwoDigitYear || r.year > 0;
|
|
261
|
-
}
|
|
262
|
-
set(e, r, t) {
|
|
263
|
-
const n = e.getFullYear();
|
|
264
|
-
if (t.isTwoDigitYear) {
|
|
265
|
-
const l = S(
|
|
266
|
-
t.year,
|
|
267
|
-
n
|
|
268
|
-
);
|
|
269
|
-
return e.setFullYear(l, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
270
|
-
}
|
|
271
|
-
const o = !("era" in r) || r.era === 1 ? t.year : 1 - t.year;
|
|
272
|
-
return e.setFullYear(o, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
class Le extends c {
|
|
276
|
-
priority = 130;
|
|
277
|
-
parse(e, r, t) {
|
|
278
|
-
const n = (o) => ({
|
|
279
|
-
year: o,
|
|
280
|
-
isTwoDigitYear: r === "YY"
|
|
281
|
-
});
|
|
282
|
-
switch (r) {
|
|
283
|
-
case "Y":
|
|
284
|
-
return p(f(4, e), n);
|
|
285
|
-
case "Yo":
|
|
286
|
-
return p(
|
|
287
|
-
t.ordinalNumber(e, {
|
|
288
|
-
unit: "year"
|
|
289
|
-
}),
|
|
290
|
-
n
|
|
291
|
-
);
|
|
292
|
-
default:
|
|
293
|
-
return p(f(r.length, e), n);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
validate(e, r) {
|
|
297
|
-
return r.isTwoDigitYear || r.year > 0;
|
|
298
|
-
}
|
|
299
|
-
set(e, r, t, n) {
|
|
300
|
-
const o = fe(e, n);
|
|
301
|
-
if (t.isTwoDigitYear) {
|
|
302
|
-
const m = S(
|
|
303
|
-
t.year,
|
|
304
|
-
o
|
|
305
|
-
);
|
|
306
|
-
return e.setFullYear(
|
|
307
|
-
m,
|
|
308
|
-
0,
|
|
309
|
-
n.firstWeekContainsDate
|
|
310
|
-
), e.setHours(0, 0, 0, 0), W(e, n);
|
|
311
|
-
}
|
|
312
|
-
const l = !("era" in r) || r.era === 1 ? t.year : 1 - t.year;
|
|
313
|
-
return e.setFullYear(l, 0, n.firstWeekContainsDate), e.setHours(0, 0, 0, 0), W(e, n);
|
|
314
|
-
}
|
|
315
|
-
incompatibleTokens = [
|
|
316
|
-
"y",
|
|
317
|
-
"R",
|
|
318
|
-
"u",
|
|
319
|
-
"Q",
|
|
320
|
-
"q",
|
|
321
|
-
"M",
|
|
322
|
-
"L",
|
|
323
|
-
"I",
|
|
324
|
-
"d",
|
|
325
|
-
"D",
|
|
326
|
-
"i",
|
|
327
|
-
"t",
|
|
328
|
-
"T"
|
|
329
|
-
];
|
|
330
|
-
}
|
|
331
|
-
class Ce extends c {
|
|
332
|
-
priority = 130;
|
|
333
|
-
parse(e, r) {
|
|
334
|
-
return L(r === "R" ? 4 : r.length, e);
|
|
335
|
-
}
|
|
336
|
-
set(e, r, t) {
|
|
337
|
-
const n = _(e, 0);
|
|
338
|
-
return n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0), $(n);
|
|
339
|
-
}
|
|
340
|
-
incompatibleTokens = [
|
|
341
|
-
"G",
|
|
342
|
-
"y",
|
|
343
|
-
"Y",
|
|
344
|
-
"u",
|
|
345
|
-
"Q",
|
|
346
|
-
"q",
|
|
347
|
-
"M",
|
|
348
|
-
"L",
|
|
349
|
-
"w",
|
|
350
|
-
"d",
|
|
351
|
-
"D",
|
|
352
|
-
"e",
|
|
353
|
-
"c",
|
|
354
|
-
"t",
|
|
355
|
-
"T"
|
|
356
|
-
];
|
|
357
|
-
}
|
|
358
|
-
class Qe extends c {
|
|
359
|
-
priority = 130;
|
|
360
|
-
parse(e, r) {
|
|
361
|
-
return L(r === "u" ? 4 : r.length, e);
|
|
362
|
-
}
|
|
363
|
-
set(e, r, t) {
|
|
364
|
-
return e.setFullYear(t, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
365
|
-
}
|
|
366
|
-
incompatibleTokens = ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"];
|
|
367
|
-
}
|
|
368
|
-
class Re extends c {
|
|
369
|
-
priority = 120;
|
|
370
|
-
parse(e, r, t) {
|
|
371
|
-
switch (r) {
|
|
372
|
-
// 1, 2, 3, 4
|
|
373
|
-
case "Q":
|
|
374
|
-
case "QQ":
|
|
375
|
-
return f(r.length, e);
|
|
376
|
-
// 1st, 2nd, 3rd, 4th
|
|
377
|
-
case "Qo":
|
|
378
|
-
return t.ordinalNumber(e, { unit: "quarter" });
|
|
379
|
-
// Q1, Q2, Q3, Q4
|
|
380
|
-
case "QQQ":
|
|
381
|
-
return t.quarter(e, {
|
|
382
|
-
width: "abbreviated",
|
|
383
|
-
context: "formatting"
|
|
384
|
-
}) || t.quarter(e, {
|
|
385
|
-
width: "narrow",
|
|
386
|
-
context: "formatting"
|
|
387
|
-
});
|
|
388
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
389
|
-
case "QQQQQ":
|
|
390
|
-
return t.quarter(e, {
|
|
391
|
-
width: "narrow",
|
|
392
|
-
context: "formatting"
|
|
393
|
-
});
|
|
394
|
-
default:
|
|
395
|
-
return t.quarter(e, {
|
|
396
|
-
width: "wide",
|
|
397
|
-
context: "formatting"
|
|
398
|
-
}) || t.quarter(e, {
|
|
399
|
-
width: "abbreviated",
|
|
400
|
-
context: "formatting"
|
|
401
|
-
}) || t.quarter(e, {
|
|
402
|
-
width: "narrow",
|
|
403
|
-
context: "formatting"
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
validate(e, r) {
|
|
408
|
-
return r >= 1 && r <= 4;
|
|
409
|
-
}
|
|
410
|
-
set(e, r, t) {
|
|
411
|
-
return e.setMonth((t - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
412
|
-
}
|
|
413
|
-
incompatibleTokens = [
|
|
414
|
-
"Y",
|
|
415
|
-
"R",
|
|
416
|
-
"q",
|
|
417
|
-
"M",
|
|
418
|
-
"L",
|
|
419
|
-
"w",
|
|
420
|
-
"I",
|
|
421
|
-
"d",
|
|
422
|
-
"D",
|
|
423
|
-
"i",
|
|
424
|
-
"e",
|
|
425
|
-
"c",
|
|
426
|
-
"t",
|
|
427
|
-
"T"
|
|
428
|
-
];
|
|
429
|
-
}
|
|
430
|
-
class We extends c {
|
|
431
|
-
priority = 120;
|
|
432
|
-
parse(e, r, t) {
|
|
433
|
-
switch (r) {
|
|
434
|
-
// 1, 2, 3, 4
|
|
435
|
-
case "q":
|
|
436
|
-
case "qq":
|
|
437
|
-
return f(r.length, e);
|
|
438
|
-
// 1st, 2nd, 3rd, 4th
|
|
439
|
-
case "qo":
|
|
440
|
-
return t.ordinalNumber(e, { unit: "quarter" });
|
|
441
|
-
// Q1, Q2, Q3, Q4
|
|
442
|
-
case "qqq":
|
|
443
|
-
return t.quarter(e, {
|
|
444
|
-
width: "abbreviated",
|
|
445
|
-
context: "standalone"
|
|
446
|
-
}) || t.quarter(e, {
|
|
447
|
-
width: "narrow",
|
|
448
|
-
context: "standalone"
|
|
449
|
-
});
|
|
450
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
451
|
-
case "qqqqq":
|
|
452
|
-
return t.quarter(e, {
|
|
453
|
-
width: "narrow",
|
|
454
|
-
context: "standalone"
|
|
455
|
-
});
|
|
456
|
-
default:
|
|
457
|
-
return t.quarter(e, {
|
|
458
|
-
width: "wide",
|
|
459
|
-
context: "standalone"
|
|
460
|
-
}) || t.quarter(e, {
|
|
461
|
-
width: "abbreviated",
|
|
462
|
-
context: "standalone"
|
|
463
|
-
}) || t.quarter(e, {
|
|
464
|
-
width: "narrow",
|
|
465
|
-
context: "standalone"
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
validate(e, r) {
|
|
470
|
-
return r >= 1 && r <= 4;
|
|
471
|
-
}
|
|
472
|
-
set(e, r, t) {
|
|
473
|
-
return e.setMonth((t - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
474
|
-
}
|
|
475
|
-
incompatibleTokens = [
|
|
476
|
-
"Y",
|
|
477
|
-
"R",
|
|
478
|
-
"Q",
|
|
479
|
-
"M",
|
|
480
|
-
"L",
|
|
481
|
-
"w",
|
|
482
|
-
"I",
|
|
483
|
-
"d",
|
|
484
|
-
"D",
|
|
485
|
-
"i",
|
|
486
|
-
"e",
|
|
487
|
-
"c",
|
|
488
|
-
"t",
|
|
489
|
-
"T"
|
|
490
|
-
];
|
|
491
|
-
}
|
|
492
|
-
class Be extends c {
|
|
493
|
-
incompatibleTokens = [
|
|
494
|
-
"Y",
|
|
495
|
-
"R",
|
|
496
|
-
"q",
|
|
497
|
-
"Q",
|
|
498
|
-
"L",
|
|
499
|
-
"w",
|
|
500
|
-
"I",
|
|
501
|
-
"D",
|
|
502
|
-
"i",
|
|
503
|
-
"e",
|
|
504
|
-
"c",
|
|
505
|
-
"t",
|
|
506
|
-
"T"
|
|
507
|
-
];
|
|
508
|
-
priority = 110;
|
|
509
|
-
parse(e, r, t) {
|
|
510
|
-
const n = (o) => o - 1;
|
|
511
|
-
switch (r) {
|
|
512
|
-
// 1, 2, ..., 12
|
|
513
|
-
case "M":
|
|
514
|
-
return p(
|
|
515
|
-
w(h.month, e),
|
|
516
|
-
n
|
|
517
|
-
);
|
|
518
|
-
// 01, 02, ..., 12
|
|
519
|
-
case "MM":
|
|
520
|
-
return p(f(2, e), n);
|
|
521
|
-
// 1st, 2nd, ..., 12th
|
|
522
|
-
case "Mo":
|
|
523
|
-
return p(
|
|
524
|
-
t.ordinalNumber(e, {
|
|
525
|
-
unit: "month"
|
|
526
|
-
}),
|
|
527
|
-
n
|
|
528
|
-
);
|
|
529
|
-
// Jan, Feb, ..., Dec
|
|
530
|
-
case "MMM":
|
|
531
|
-
return t.month(e, {
|
|
532
|
-
width: "abbreviated",
|
|
533
|
-
context: "formatting"
|
|
534
|
-
}) || t.month(e, { width: "narrow", context: "formatting" });
|
|
535
|
-
// J, F, ..., D
|
|
536
|
-
case "MMMMM":
|
|
537
|
-
return t.month(e, {
|
|
538
|
-
width: "narrow",
|
|
539
|
-
context: "formatting"
|
|
540
|
-
});
|
|
541
|
-
default:
|
|
542
|
-
return t.month(e, { width: "wide", context: "formatting" }) || t.month(e, {
|
|
543
|
-
width: "abbreviated",
|
|
544
|
-
context: "formatting"
|
|
545
|
-
}) || t.month(e, { width: "narrow", context: "formatting" });
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
validate(e, r) {
|
|
549
|
-
return r >= 0 && r <= 11;
|
|
550
|
-
}
|
|
551
|
-
set(e, r, t) {
|
|
552
|
-
return e.setMonth(t, 1), e.setHours(0, 0, 0, 0), e;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
class Fe extends c {
|
|
556
|
-
priority = 110;
|
|
557
|
-
parse(e, r, t) {
|
|
558
|
-
const n = (o) => o - 1;
|
|
559
|
-
switch (r) {
|
|
560
|
-
// 1, 2, ..., 12
|
|
561
|
-
case "L":
|
|
562
|
-
return p(
|
|
563
|
-
w(h.month, e),
|
|
564
|
-
n
|
|
565
|
-
);
|
|
566
|
-
// 01, 02, ..., 12
|
|
567
|
-
case "LL":
|
|
568
|
-
return p(f(2, e), n);
|
|
569
|
-
// 1st, 2nd, ..., 12th
|
|
570
|
-
case "Lo":
|
|
571
|
-
return p(
|
|
572
|
-
t.ordinalNumber(e, {
|
|
573
|
-
unit: "month"
|
|
574
|
-
}),
|
|
575
|
-
n
|
|
576
|
-
);
|
|
577
|
-
// Jan, Feb, ..., Dec
|
|
578
|
-
case "LLL":
|
|
579
|
-
return t.month(e, {
|
|
580
|
-
width: "abbreviated",
|
|
581
|
-
context: "standalone"
|
|
582
|
-
}) || t.month(e, { width: "narrow", context: "standalone" });
|
|
583
|
-
// J, F, ..., D
|
|
584
|
-
case "LLLLL":
|
|
585
|
-
return t.month(e, {
|
|
586
|
-
width: "narrow",
|
|
587
|
-
context: "standalone"
|
|
588
|
-
});
|
|
589
|
-
default:
|
|
590
|
-
return t.month(e, { width: "wide", context: "standalone" }) || t.month(e, {
|
|
591
|
-
width: "abbreviated",
|
|
592
|
-
context: "standalone"
|
|
593
|
-
}) || t.month(e, { width: "narrow", context: "standalone" });
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
validate(e, r) {
|
|
597
|
-
return r >= 0 && r <= 11;
|
|
598
|
-
}
|
|
599
|
-
set(e, r, t) {
|
|
600
|
-
return e.setMonth(t, 1), e.setHours(0, 0, 0, 0), e;
|
|
601
|
-
}
|
|
602
|
-
incompatibleTokens = [
|
|
603
|
-
"Y",
|
|
604
|
-
"R",
|
|
605
|
-
"q",
|
|
606
|
-
"Q",
|
|
607
|
-
"M",
|
|
608
|
-
"w",
|
|
609
|
-
"I",
|
|
610
|
-
"D",
|
|
611
|
-
"i",
|
|
612
|
-
"e",
|
|
613
|
-
"c",
|
|
614
|
-
"t",
|
|
615
|
-
"T"
|
|
616
|
-
];
|
|
617
|
-
}
|
|
618
|
-
function Ge(s, e, r) {
|
|
619
|
-
const t = H(s, r?.in), n = he(t, r) - e;
|
|
620
|
-
return t.setDate(t.getDate() - n * 7), H(t, r?.in);
|
|
621
|
-
}
|
|
622
|
-
class Xe extends c {
|
|
623
|
-
priority = 100;
|
|
624
|
-
parse(e, r, t) {
|
|
625
|
-
switch (r) {
|
|
626
|
-
case "w":
|
|
627
|
-
return w(h.week, e);
|
|
628
|
-
case "wo":
|
|
629
|
-
return t.ordinalNumber(e, { unit: "week" });
|
|
630
|
-
default:
|
|
631
|
-
return f(r.length, e);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
validate(e, r) {
|
|
635
|
-
return r >= 1 && r <= 53;
|
|
636
|
-
}
|
|
637
|
-
set(e, r, t, n) {
|
|
638
|
-
return W(Ge(e, t, n), n);
|
|
639
|
-
}
|
|
640
|
-
incompatibleTokens = [
|
|
641
|
-
"y",
|
|
642
|
-
"R",
|
|
643
|
-
"u",
|
|
644
|
-
"q",
|
|
645
|
-
"Q",
|
|
646
|
-
"M",
|
|
647
|
-
"L",
|
|
648
|
-
"I",
|
|
649
|
-
"d",
|
|
650
|
-
"D",
|
|
651
|
-
"i",
|
|
652
|
-
"t",
|
|
653
|
-
"T"
|
|
654
|
-
];
|
|
655
|
-
}
|
|
656
|
-
function Ae(s, e, r) {
|
|
657
|
-
const t = H(s, r?.in), n = pe(t, r) - e;
|
|
658
|
-
return t.setDate(t.getDate() - n * 7), t;
|
|
659
|
-
}
|
|
660
|
-
class ze extends c {
|
|
661
|
-
priority = 100;
|
|
662
|
-
parse(e, r, t) {
|
|
663
|
-
switch (r) {
|
|
664
|
-
case "I":
|
|
665
|
-
return w(h.week, e);
|
|
666
|
-
case "Io":
|
|
667
|
-
return t.ordinalNumber(e, { unit: "week" });
|
|
668
|
-
default:
|
|
669
|
-
return f(r.length, e);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
validate(e, r) {
|
|
673
|
-
return r >= 1 && r <= 53;
|
|
674
|
-
}
|
|
675
|
-
set(e, r, t) {
|
|
676
|
-
return $(Ae(e, t));
|
|
677
|
-
}
|
|
678
|
-
incompatibleTokens = [
|
|
679
|
-
"y",
|
|
680
|
-
"Y",
|
|
681
|
-
"u",
|
|
682
|
-
"q",
|
|
683
|
-
"Q",
|
|
684
|
-
"M",
|
|
685
|
-
"L",
|
|
686
|
-
"w",
|
|
687
|
-
"d",
|
|
688
|
-
"D",
|
|
689
|
-
"e",
|
|
690
|
-
"c",
|
|
691
|
-
"t",
|
|
692
|
-
"T"
|
|
693
|
-
];
|
|
694
|
-
}
|
|
695
|
-
const Ve = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ze = [
|
|
696
|
-
31,
|
|
697
|
-
29,
|
|
698
|
-
31,
|
|
699
|
-
30,
|
|
700
|
-
31,
|
|
701
|
-
30,
|
|
702
|
-
31,
|
|
703
|
-
31,
|
|
704
|
-
30,
|
|
705
|
-
31,
|
|
706
|
-
30,
|
|
707
|
-
31
|
|
708
|
-
];
|
|
709
|
-
class $e extends c {
|
|
710
|
-
priority = 90;
|
|
711
|
-
subPriority = 1;
|
|
712
|
-
parse(e, r, t) {
|
|
713
|
-
switch (r) {
|
|
714
|
-
case "d":
|
|
715
|
-
return w(h.date, e);
|
|
716
|
-
case "do":
|
|
717
|
-
return t.ordinalNumber(e, { unit: "date" });
|
|
718
|
-
default:
|
|
719
|
-
return f(r.length, e);
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
validate(e, r) {
|
|
723
|
-
const t = e.getFullYear(), n = ee(t), o = e.getMonth();
|
|
724
|
-
return n ? r >= 1 && r <= Ze[o] : r >= 1 && r <= Ve[o];
|
|
725
|
-
}
|
|
726
|
-
set(e, r, t) {
|
|
727
|
-
return e.setDate(t), e.setHours(0, 0, 0, 0), e;
|
|
728
|
-
}
|
|
729
|
-
incompatibleTokens = [
|
|
730
|
-
"Y",
|
|
731
|
-
"R",
|
|
732
|
-
"q",
|
|
733
|
-
"Q",
|
|
734
|
-
"w",
|
|
735
|
-
"I",
|
|
736
|
-
"D",
|
|
737
|
-
"i",
|
|
738
|
-
"e",
|
|
739
|
-
"c",
|
|
740
|
-
"t",
|
|
741
|
-
"T"
|
|
742
|
-
];
|
|
743
|
-
}
|
|
744
|
-
class je extends c {
|
|
745
|
-
priority = 90;
|
|
746
|
-
subpriority = 1;
|
|
747
|
-
parse(e, r, t) {
|
|
748
|
-
switch (r) {
|
|
749
|
-
case "D":
|
|
750
|
-
case "DD":
|
|
751
|
-
return w(h.dayOfYear, e);
|
|
752
|
-
case "Do":
|
|
753
|
-
return t.ordinalNumber(e, { unit: "date" });
|
|
754
|
-
default:
|
|
755
|
-
return f(r.length, e);
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
validate(e, r) {
|
|
759
|
-
const t = e.getFullYear();
|
|
760
|
-
return ee(t) ? r >= 1 && r <= 366 : r >= 1 && r <= 365;
|
|
761
|
-
}
|
|
762
|
-
set(e, r, t) {
|
|
763
|
-
return e.setMonth(0, t), e.setHours(0, 0, 0, 0), e;
|
|
764
|
-
}
|
|
765
|
-
incompatibleTokens = [
|
|
766
|
-
"Y",
|
|
767
|
-
"R",
|
|
768
|
-
"q",
|
|
769
|
-
"Q",
|
|
770
|
-
"M",
|
|
771
|
-
"L",
|
|
772
|
-
"w",
|
|
773
|
-
"I",
|
|
774
|
-
"d",
|
|
775
|
-
"E",
|
|
776
|
-
"i",
|
|
777
|
-
"e",
|
|
778
|
-
"c",
|
|
779
|
-
"t",
|
|
780
|
-
"T"
|
|
781
|
-
];
|
|
782
|
-
}
|
|
783
|
-
function F(s, e, r) {
|
|
784
|
-
const t = Z(), n = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0, o = H(s, r?.in), l = o.getDay(), D = (e % 7 + 7) % 7, b = 7 - n, g = e < 0 || e > 6 ? e - (l + b) % 7 : (D + b) % 7 - (l + b) % 7;
|
|
785
|
-
return j(o, g, r);
|
|
786
|
-
}
|
|
787
|
-
class Ke extends c {
|
|
788
|
-
priority = 90;
|
|
789
|
-
parse(e, r, t) {
|
|
790
|
-
switch (r) {
|
|
791
|
-
// Tue
|
|
792
|
-
case "E":
|
|
793
|
-
case "EE":
|
|
794
|
-
case "EEE":
|
|
795
|
-
return t.day(e, {
|
|
796
|
-
width: "abbreviated",
|
|
797
|
-
context: "formatting"
|
|
798
|
-
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
799
|
-
// T
|
|
800
|
-
case "EEEEE":
|
|
801
|
-
return t.day(e, {
|
|
802
|
-
width: "narrow",
|
|
803
|
-
context: "formatting"
|
|
804
|
-
});
|
|
805
|
-
// Tu
|
|
806
|
-
case "EEEEEE":
|
|
807
|
-
return t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
808
|
-
default:
|
|
809
|
-
return t.day(e, { width: "wide", context: "formatting" }) || t.day(e, {
|
|
810
|
-
width: "abbreviated",
|
|
811
|
-
context: "formatting"
|
|
812
|
-
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
validate(e, r) {
|
|
816
|
-
return r >= 0 && r <= 6;
|
|
817
|
-
}
|
|
818
|
-
set(e, r, t, n) {
|
|
819
|
-
return e = F(e, t, n), e.setHours(0, 0, 0, 0), e;
|
|
820
|
-
}
|
|
821
|
-
incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
|
|
822
|
-
}
|
|
823
|
-
class Ue extends c {
|
|
824
|
-
priority = 90;
|
|
825
|
-
parse(e, r, t, n) {
|
|
826
|
-
const o = (l) => {
|
|
827
|
-
const m = Math.floor((l - 1) / 7) * 7;
|
|
828
|
-
return (l + n.weekStartsOn + 6) % 7 + m;
|
|
829
|
-
};
|
|
830
|
-
switch (r) {
|
|
831
|
-
// 3
|
|
832
|
-
case "e":
|
|
833
|
-
case "ee":
|
|
834
|
-
return p(f(r.length, e), o);
|
|
835
|
-
// 3rd
|
|
836
|
-
case "eo":
|
|
837
|
-
return p(
|
|
838
|
-
t.ordinalNumber(e, {
|
|
839
|
-
unit: "day"
|
|
840
|
-
}),
|
|
841
|
-
o
|
|
842
|
-
);
|
|
843
|
-
// Tue
|
|
844
|
-
case "eee":
|
|
845
|
-
return t.day(e, {
|
|
846
|
-
width: "abbreviated",
|
|
847
|
-
context: "formatting"
|
|
848
|
-
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
849
|
-
// T
|
|
850
|
-
case "eeeee":
|
|
851
|
-
return t.day(e, {
|
|
852
|
-
width: "narrow",
|
|
853
|
-
context: "formatting"
|
|
854
|
-
});
|
|
855
|
-
// Tu
|
|
856
|
-
case "eeeeee":
|
|
857
|
-
return t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
858
|
-
default:
|
|
859
|
-
return t.day(e, { width: "wide", context: "formatting" }) || t.day(e, {
|
|
860
|
-
width: "abbreviated",
|
|
861
|
-
context: "formatting"
|
|
862
|
-
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
validate(e, r) {
|
|
866
|
-
return r >= 0 && r <= 6;
|
|
867
|
-
}
|
|
868
|
-
set(e, r, t, n) {
|
|
869
|
-
return e = F(e, t, n), e.setHours(0, 0, 0, 0), e;
|
|
870
|
-
}
|
|
871
|
-
incompatibleTokens = [
|
|
872
|
-
"y",
|
|
873
|
-
"R",
|
|
874
|
-
"u",
|
|
875
|
-
"q",
|
|
876
|
-
"Q",
|
|
877
|
-
"M",
|
|
878
|
-
"L",
|
|
879
|
-
"I",
|
|
880
|
-
"d",
|
|
881
|
-
"D",
|
|
882
|
-
"E",
|
|
883
|
-
"i",
|
|
884
|
-
"c",
|
|
885
|
-
"t",
|
|
886
|
-
"T"
|
|
887
|
-
];
|
|
888
|
-
}
|
|
889
|
-
class Je extends c {
|
|
890
|
-
priority = 90;
|
|
891
|
-
parse(e, r, t, n) {
|
|
892
|
-
const o = (l) => {
|
|
893
|
-
const m = Math.floor((l - 1) / 7) * 7;
|
|
894
|
-
return (l + n.weekStartsOn + 6) % 7 + m;
|
|
895
|
-
};
|
|
896
|
-
switch (r) {
|
|
897
|
-
// 3
|
|
898
|
-
case "c":
|
|
899
|
-
case "cc":
|
|
900
|
-
return p(f(r.length, e), o);
|
|
901
|
-
// 3rd
|
|
902
|
-
case "co":
|
|
903
|
-
return p(
|
|
904
|
-
t.ordinalNumber(e, {
|
|
905
|
-
unit: "day"
|
|
906
|
-
}),
|
|
907
|
-
o
|
|
908
|
-
);
|
|
909
|
-
// Tue
|
|
910
|
-
case "ccc":
|
|
911
|
-
return t.day(e, {
|
|
912
|
-
width: "abbreviated",
|
|
913
|
-
context: "standalone"
|
|
914
|
-
}) || t.day(e, { width: "short", context: "standalone" }) || t.day(e, { width: "narrow", context: "standalone" });
|
|
915
|
-
// T
|
|
916
|
-
case "ccccc":
|
|
917
|
-
return t.day(e, {
|
|
918
|
-
width: "narrow",
|
|
919
|
-
context: "standalone"
|
|
920
|
-
});
|
|
921
|
-
// Tu
|
|
922
|
-
case "cccccc":
|
|
923
|
-
return t.day(e, { width: "short", context: "standalone" }) || t.day(e, { width: "narrow", context: "standalone" });
|
|
924
|
-
default:
|
|
925
|
-
return t.day(e, { width: "wide", context: "standalone" }) || t.day(e, {
|
|
926
|
-
width: "abbreviated",
|
|
927
|
-
context: "standalone"
|
|
928
|
-
}) || t.day(e, { width: "short", context: "standalone" }) || t.day(e, { width: "narrow", context: "standalone" });
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
validate(e, r) {
|
|
932
|
-
return r >= 0 && r <= 6;
|
|
933
|
-
}
|
|
934
|
-
set(e, r, t, n) {
|
|
935
|
-
return e = F(e, t, n), e.setHours(0, 0, 0, 0), e;
|
|
936
|
-
}
|
|
937
|
-
incompatibleTokens = [
|
|
938
|
-
"y",
|
|
939
|
-
"R",
|
|
940
|
-
"u",
|
|
941
|
-
"q",
|
|
942
|
-
"Q",
|
|
943
|
-
"M",
|
|
944
|
-
"L",
|
|
945
|
-
"I",
|
|
946
|
-
"d",
|
|
947
|
-
"D",
|
|
948
|
-
"E",
|
|
949
|
-
"i",
|
|
950
|
-
"e",
|
|
951
|
-
"t",
|
|
952
|
-
"T"
|
|
953
|
-
];
|
|
954
|
-
}
|
|
955
|
-
function Se(s, e, r) {
|
|
956
|
-
const t = H(s, r?.in), n = Ye(t, r), o = e - n;
|
|
957
|
-
return j(t, o, r);
|
|
958
|
-
}
|
|
959
|
-
class et extends c {
|
|
960
|
-
priority = 90;
|
|
961
|
-
parse(e, r, t) {
|
|
962
|
-
const n = (o) => o === 0 ? 7 : o;
|
|
963
|
-
switch (r) {
|
|
964
|
-
// 2
|
|
965
|
-
case "i":
|
|
966
|
-
case "ii":
|
|
967
|
-
return f(r.length, e);
|
|
968
|
-
// 2nd
|
|
969
|
-
case "io":
|
|
970
|
-
return t.ordinalNumber(e, { unit: "day" });
|
|
971
|
-
// Tue
|
|
972
|
-
case "iii":
|
|
973
|
-
return p(
|
|
974
|
-
t.day(e, {
|
|
975
|
-
width: "abbreviated",
|
|
976
|
-
context: "formatting"
|
|
977
|
-
}) || t.day(e, {
|
|
978
|
-
width: "short",
|
|
979
|
-
context: "formatting"
|
|
980
|
-
}) || t.day(e, {
|
|
981
|
-
width: "narrow",
|
|
982
|
-
context: "formatting"
|
|
983
|
-
}),
|
|
984
|
-
n
|
|
985
|
-
);
|
|
986
|
-
// T
|
|
987
|
-
case "iiiii":
|
|
988
|
-
return p(
|
|
989
|
-
t.day(e, {
|
|
990
|
-
width: "narrow",
|
|
991
|
-
context: "formatting"
|
|
992
|
-
}),
|
|
993
|
-
n
|
|
994
|
-
);
|
|
995
|
-
// Tu
|
|
996
|
-
case "iiiiii":
|
|
997
|
-
return p(
|
|
998
|
-
t.day(e, {
|
|
999
|
-
width: "short",
|
|
1000
|
-
context: "formatting"
|
|
1001
|
-
}) || t.day(e, {
|
|
1002
|
-
width: "narrow",
|
|
1003
|
-
context: "formatting"
|
|
1004
|
-
}),
|
|
1005
|
-
n
|
|
1006
|
-
);
|
|
1007
|
-
default:
|
|
1008
|
-
return p(
|
|
1009
|
-
t.day(e, {
|
|
1010
|
-
width: "wide",
|
|
1011
|
-
context: "formatting"
|
|
1012
|
-
}) || t.day(e, {
|
|
1013
|
-
width: "abbreviated",
|
|
1014
|
-
context: "formatting"
|
|
1015
|
-
}) || t.day(e, {
|
|
1016
|
-
width: "short",
|
|
1017
|
-
context: "formatting"
|
|
1018
|
-
}) || t.day(e, {
|
|
1019
|
-
width: "narrow",
|
|
1020
|
-
context: "formatting"
|
|
1021
|
-
}),
|
|
1022
|
-
n
|
|
1023
|
-
);
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
validate(e, r) {
|
|
1027
|
-
return r >= 1 && r <= 7;
|
|
1028
|
-
}
|
|
1029
|
-
set(e, r, t) {
|
|
1030
|
-
return e = Se(e, t), e.setHours(0, 0, 0, 0), e;
|
|
1031
|
-
}
|
|
1032
|
-
incompatibleTokens = [
|
|
1033
|
-
"y",
|
|
1034
|
-
"Y",
|
|
1035
|
-
"u",
|
|
1036
|
-
"q",
|
|
1037
|
-
"Q",
|
|
1038
|
-
"M",
|
|
1039
|
-
"L",
|
|
1040
|
-
"w",
|
|
1041
|
-
"d",
|
|
1042
|
-
"D",
|
|
1043
|
-
"E",
|
|
1044
|
-
"e",
|
|
1045
|
-
"c",
|
|
1046
|
-
"t",
|
|
1047
|
-
"T"
|
|
1048
|
-
];
|
|
1049
|
-
}
|
|
1050
|
-
class tt extends c {
|
|
1051
|
-
priority = 80;
|
|
1052
|
-
parse(e, r, t) {
|
|
1053
|
-
switch (r) {
|
|
1054
|
-
case "a":
|
|
1055
|
-
case "aa":
|
|
1056
|
-
case "aaa":
|
|
1057
|
-
return t.dayPeriod(e, {
|
|
1058
|
-
width: "abbreviated",
|
|
1059
|
-
context: "formatting"
|
|
1060
|
-
}) || t.dayPeriod(e, {
|
|
1061
|
-
width: "narrow",
|
|
1062
|
-
context: "formatting"
|
|
1063
|
-
});
|
|
1064
|
-
case "aaaaa":
|
|
1065
|
-
return t.dayPeriod(e, {
|
|
1066
|
-
width: "narrow",
|
|
1067
|
-
context: "formatting"
|
|
1068
|
-
});
|
|
1069
|
-
default:
|
|
1070
|
-
return t.dayPeriod(e, {
|
|
1071
|
-
width: "wide",
|
|
1072
|
-
context: "formatting"
|
|
1073
|
-
}) || t.dayPeriod(e, {
|
|
1074
|
-
width: "abbreviated",
|
|
1075
|
-
context: "formatting"
|
|
1076
|
-
}) || t.dayPeriod(e, {
|
|
1077
|
-
width: "narrow",
|
|
1078
|
-
context: "formatting"
|
|
1079
|
-
});
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
set(e, r, t) {
|
|
1083
|
-
return e.setHours(B(t), 0, 0, 0), e;
|
|
1084
|
-
}
|
|
1085
|
-
incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
|
|
1086
|
-
}
|
|
1087
|
-
class rt extends c {
|
|
1088
|
-
priority = 80;
|
|
1089
|
-
parse(e, r, t) {
|
|
1090
|
-
switch (r) {
|
|
1091
|
-
case "b":
|
|
1092
|
-
case "bb":
|
|
1093
|
-
case "bbb":
|
|
1094
|
-
return t.dayPeriod(e, {
|
|
1095
|
-
width: "abbreviated",
|
|
1096
|
-
context: "formatting"
|
|
1097
|
-
}) || t.dayPeriod(e, {
|
|
1098
|
-
width: "narrow",
|
|
1099
|
-
context: "formatting"
|
|
1100
|
-
});
|
|
1101
|
-
case "bbbbb":
|
|
1102
|
-
return t.dayPeriod(e, {
|
|
1103
|
-
width: "narrow",
|
|
1104
|
-
context: "formatting"
|
|
1105
|
-
});
|
|
1106
|
-
default:
|
|
1107
|
-
return t.dayPeriod(e, {
|
|
1108
|
-
width: "wide",
|
|
1109
|
-
context: "formatting"
|
|
1110
|
-
}) || t.dayPeriod(e, {
|
|
1111
|
-
width: "abbreviated",
|
|
1112
|
-
context: "formatting"
|
|
1113
|
-
}) || t.dayPeriod(e, {
|
|
1114
|
-
width: "narrow",
|
|
1115
|
-
context: "formatting"
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
set(e, r, t) {
|
|
1120
|
-
return e.setHours(B(t), 0, 0, 0), e;
|
|
1121
|
-
}
|
|
1122
|
-
incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
|
|
1123
|
-
}
|
|
1124
|
-
class st extends c {
|
|
1125
|
-
priority = 80;
|
|
1126
|
-
parse(e, r, t) {
|
|
1127
|
-
switch (r) {
|
|
1128
|
-
case "B":
|
|
1129
|
-
case "BB":
|
|
1130
|
-
case "BBB":
|
|
1131
|
-
return t.dayPeriod(e, {
|
|
1132
|
-
width: "abbreviated",
|
|
1133
|
-
context: "formatting"
|
|
1134
|
-
}) || t.dayPeriod(e, {
|
|
1135
|
-
width: "narrow",
|
|
1136
|
-
context: "formatting"
|
|
1137
|
-
});
|
|
1138
|
-
case "BBBBB":
|
|
1139
|
-
return t.dayPeriod(e, {
|
|
1140
|
-
width: "narrow",
|
|
1141
|
-
context: "formatting"
|
|
1142
|
-
});
|
|
1143
|
-
default:
|
|
1144
|
-
return t.dayPeriod(e, {
|
|
1145
|
-
width: "wide",
|
|
1146
|
-
context: "formatting"
|
|
1147
|
-
}) || t.dayPeriod(e, {
|
|
1148
|
-
width: "abbreviated",
|
|
1149
|
-
context: "formatting"
|
|
1150
|
-
}) || t.dayPeriod(e, {
|
|
1151
|
-
width: "narrow",
|
|
1152
|
-
context: "formatting"
|
|
1153
|
-
});
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
set(e, r, t) {
|
|
1157
|
-
return e.setHours(B(t), 0, 0, 0), e;
|
|
1158
|
-
}
|
|
1159
|
-
incompatibleTokens = ["a", "b", "t", "T"];
|
|
1160
|
-
}
|
|
1161
|
-
class nt extends c {
|
|
1162
|
-
priority = 70;
|
|
1163
|
-
parse(e, r, t) {
|
|
1164
|
-
switch (r) {
|
|
1165
|
-
case "h":
|
|
1166
|
-
return w(h.hour12h, e);
|
|
1167
|
-
case "ho":
|
|
1168
|
-
return t.ordinalNumber(e, { unit: "hour" });
|
|
1169
|
-
default:
|
|
1170
|
-
return f(r.length, e);
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
validate(e, r) {
|
|
1174
|
-
return r >= 1 && r <= 12;
|
|
1175
|
-
}
|
|
1176
|
-
set(e, r, t) {
|
|
1177
|
-
const n = e.getHours() >= 12;
|
|
1178
|
-
return n && t < 12 ? e.setHours(t + 12, 0, 0, 0) : !n && t === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(t, 0, 0, 0), e;
|
|
1179
|
-
}
|
|
1180
|
-
incompatibleTokens = ["H", "K", "k", "t", "T"];
|
|
1181
|
-
}
|
|
1182
|
-
class ot extends c {
|
|
1183
|
-
priority = 70;
|
|
1184
|
-
parse(e, r, t) {
|
|
1185
|
-
switch (r) {
|
|
1186
|
-
case "H":
|
|
1187
|
-
return w(h.hour23h, e);
|
|
1188
|
-
case "Ho":
|
|
1189
|
-
return t.ordinalNumber(e, { unit: "hour" });
|
|
1190
|
-
default:
|
|
1191
|
-
return f(r.length, e);
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
validate(e, r) {
|
|
1195
|
-
return r >= 0 && r <= 23;
|
|
1196
|
-
}
|
|
1197
|
-
set(e, r, t) {
|
|
1198
|
-
return e.setHours(t, 0, 0, 0), e;
|
|
1199
|
-
}
|
|
1200
|
-
incompatibleTokens = ["a", "b", "h", "K", "k", "t", "T"];
|
|
1201
|
-
}
|
|
1202
|
-
class at extends c {
|
|
1203
|
-
priority = 70;
|
|
1204
|
-
parse(e, r, t) {
|
|
1205
|
-
switch (r) {
|
|
1206
|
-
case "K":
|
|
1207
|
-
return w(h.hour11h, e);
|
|
1208
|
-
case "Ko":
|
|
1209
|
-
return t.ordinalNumber(e, { unit: "hour" });
|
|
1210
|
-
default:
|
|
1211
|
-
return f(r.length, e);
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
validate(e, r) {
|
|
1215
|
-
return r >= 0 && r <= 11;
|
|
1216
|
-
}
|
|
1217
|
-
set(e, r, t) {
|
|
1218
|
-
return e.getHours() >= 12 && t < 12 ? e.setHours(t + 12, 0, 0, 0) : e.setHours(t, 0, 0, 0), e;
|
|
1219
|
-
}
|
|
1220
|
-
incompatibleTokens = ["h", "H", "k", "t", "T"];
|
|
1221
|
-
}
|
|
1222
|
-
class it extends c {
|
|
1223
|
-
priority = 70;
|
|
1224
|
-
parse(e, r, t) {
|
|
1225
|
-
switch (r) {
|
|
1226
|
-
case "k":
|
|
1227
|
-
return w(h.hour24h, e);
|
|
1228
|
-
case "ko":
|
|
1229
|
-
return t.ordinalNumber(e, { unit: "hour" });
|
|
1230
|
-
default:
|
|
1231
|
-
return f(r.length, e);
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
validate(e, r) {
|
|
1235
|
-
return r >= 1 && r <= 24;
|
|
1236
|
-
}
|
|
1237
|
-
set(e, r, t) {
|
|
1238
|
-
const n = t <= 24 ? t % 24 : t;
|
|
1239
|
-
return e.setHours(n, 0, 0, 0), e;
|
|
1240
|
-
}
|
|
1241
|
-
incompatibleTokens = ["a", "b", "h", "H", "K", "t", "T"];
|
|
1242
|
-
}
|
|
1243
|
-
class ct extends c {
|
|
1244
|
-
priority = 60;
|
|
1245
|
-
parse(e, r, t) {
|
|
1246
|
-
switch (r) {
|
|
1247
|
-
case "m":
|
|
1248
|
-
return w(h.minute, e);
|
|
1249
|
-
case "mo":
|
|
1250
|
-
return t.ordinalNumber(e, { unit: "minute" });
|
|
1251
|
-
default:
|
|
1252
|
-
return f(r.length, e);
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
validate(e, r) {
|
|
1256
|
-
return r >= 0 && r <= 59;
|
|
1257
|
-
}
|
|
1258
|
-
set(e, r, t) {
|
|
1259
|
-
return e.setMinutes(t, 0, 0), e;
|
|
1260
|
-
}
|
|
1261
|
-
incompatibleTokens = ["t", "T"];
|
|
1262
|
-
}
|
|
1263
|
-
class ut extends c {
|
|
1264
|
-
priority = 50;
|
|
1265
|
-
parse(e, r, t) {
|
|
1266
|
-
switch (r) {
|
|
1267
|
-
case "s":
|
|
1268
|
-
return w(h.second, e);
|
|
1269
|
-
case "so":
|
|
1270
|
-
return t.ordinalNumber(e, { unit: "second" });
|
|
1271
|
-
default:
|
|
1272
|
-
return f(r.length, e);
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
validate(e, r) {
|
|
1276
|
-
return r >= 0 && r <= 59;
|
|
1277
|
-
}
|
|
1278
|
-
set(e, r, t) {
|
|
1279
|
-
return e.setSeconds(t, 0), e;
|
|
1280
|
-
}
|
|
1281
|
-
incompatibleTokens = ["t", "T"];
|
|
1282
|
-
}
|
|
1283
|
-
class lt extends c {
|
|
1284
|
-
priority = 30;
|
|
1285
|
-
parse(e, r) {
|
|
1286
|
-
const t = (n) => Math.trunc(n * Math.pow(10, -r.length + 3));
|
|
1287
|
-
return p(f(r.length, e), t);
|
|
1288
|
-
}
|
|
1289
|
-
set(e, r, t) {
|
|
1290
|
-
return e.setMilliseconds(t), e;
|
|
1291
|
-
}
|
|
1292
|
-
incompatibleTokens = ["t", "T"];
|
|
1293
|
-
}
|
|
1294
|
-
class dt extends c {
|
|
1295
|
-
priority = 10;
|
|
1296
|
-
parse(e, r) {
|
|
1297
|
-
switch (r) {
|
|
1298
|
-
case "X":
|
|
1299
|
-
return M(
|
|
1300
|
-
k.basicOptionalMinutes,
|
|
1301
|
-
e
|
|
1302
|
-
);
|
|
1303
|
-
case "XX":
|
|
1304
|
-
return M(k.basic, e);
|
|
1305
|
-
case "XXXX":
|
|
1306
|
-
return M(
|
|
1307
|
-
k.basicOptionalSeconds,
|
|
1308
|
-
e
|
|
1309
|
-
);
|
|
1310
|
-
case "XXXXX":
|
|
1311
|
-
return M(
|
|
1312
|
-
k.extendedOptionalSeconds,
|
|
1313
|
-
e
|
|
1314
|
-
);
|
|
1315
|
-
default:
|
|
1316
|
-
return M(k.extended, e);
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
set(e, r, t) {
|
|
1320
|
-
return r.timestampIsSet ? e : _(
|
|
1321
|
-
e,
|
|
1322
|
-
e.getTime() - K(e) - t
|
|
1323
|
-
);
|
|
1324
|
-
}
|
|
1325
|
-
incompatibleTokens = ["t", "T", "x"];
|
|
1326
|
-
}
|
|
1327
|
-
class wt extends c {
|
|
1328
|
-
priority = 10;
|
|
1329
|
-
parse(e, r) {
|
|
1330
|
-
switch (r) {
|
|
1331
|
-
case "x":
|
|
1332
|
-
return M(
|
|
1333
|
-
k.basicOptionalMinutes,
|
|
1334
|
-
e
|
|
1335
|
-
);
|
|
1336
|
-
case "xx":
|
|
1337
|
-
return M(k.basic, e);
|
|
1338
|
-
case "xxxx":
|
|
1339
|
-
return M(
|
|
1340
|
-
k.basicOptionalSeconds,
|
|
1341
|
-
e
|
|
1342
|
-
);
|
|
1343
|
-
case "xxxxx":
|
|
1344
|
-
return M(
|
|
1345
|
-
k.extendedOptionalSeconds,
|
|
1346
|
-
e
|
|
1347
|
-
);
|
|
1348
|
-
default:
|
|
1349
|
-
return M(k.extended, e);
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
set(e, r, t) {
|
|
1353
|
-
return r.timestampIsSet ? e : _(
|
|
1354
|
-
e,
|
|
1355
|
-
e.getTime() - K(e) - t
|
|
1356
|
-
);
|
|
1357
|
-
}
|
|
1358
|
-
incompatibleTokens = ["t", "T", "X"];
|
|
1359
|
-
}
|
|
1360
|
-
class ft extends c {
|
|
1361
|
-
priority = 40;
|
|
1362
|
-
parse(e) {
|
|
1363
|
-
return J(e);
|
|
1364
|
-
}
|
|
1365
|
-
set(e, r, t) {
|
|
1366
|
-
return [_(e, t * 1e3), { timestampIsSet: !0 }];
|
|
1367
|
-
}
|
|
1368
|
-
incompatibleTokens = "*";
|
|
1369
|
-
}
|
|
1370
|
-
class ht extends c {
|
|
1371
|
-
priority = 20;
|
|
1372
|
-
parse(e) {
|
|
1373
|
-
return J(e);
|
|
1374
|
-
}
|
|
1375
|
-
set(e, r, t) {
|
|
1376
|
-
return [_(e, t), { timestampIsSet: !0 }];
|
|
1377
|
-
}
|
|
1378
|
-
incompatibleTokens = "*";
|
|
1379
|
-
}
|
|
1380
|
-
const pt = {
|
|
1381
|
-
G: new qe(),
|
|
1382
|
-
y: new Ne(),
|
|
1383
|
-
Y: new Le(),
|
|
1384
|
-
R: new Ce(),
|
|
1385
|
-
u: new Qe(),
|
|
1386
|
-
Q: new Re(),
|
|
1387
|
-
q: new We(),
|
|
1388
|
-
M: new Be(),
|
|
1389
|
-
L: new Fe(),
|
|
1390
|
-
w: new Xe(),
|
|
1391
|
-
I: new ze(),
|
|
1392
|
-
d: new $e(),
|
|
1393
|
-
D: new je(),
|
|
1394
|
-
E: new Ke(),
|
|
1395
|
-
e: new Ue(),
|
|
1396
|
-
c: new Je(),
|
|
1397
|
-
i: new et(),
|
|
1398
|
-
a: new tt(),
|
|
1399
|
-
b: new rt(),
|
|
1400
|
-
B: new st(),
|
|
1401
|
-
h: new nt(),
|
|
1402
|
-
H: new ot(),
|
|
1403
|
-
K: new at(),
|
|
1404
|
-
k: new it(),
|
|
1405
|
-
m: new ct(),
|
|
1406
|
-
s: new ut(),
|
|
1407
|
-
S: new lt(),
|
|
1408
|
-
X: new dt(),
|
|
1409
|
-
x: new wt(),
|
|
1410
|
-
t: new ft(),
|
|
1411
|
-
T: new ht()
|
|
1412
|
-
}, mt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, xt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, yt = /^'([^]*?)'?$/, bt = /''/g, gt = /\S/, Tt = /[a-zA-Z]/;
|
|
1413
|
-
function Pt(s, e, r, t) {
|
|
1414
|
-
const n = () => _(r, NaN), o = _e(), l = o.locale ?? me, m = o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, D = o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, b = {
|
|
1415
|
-
firstWeekContainsDate: m,
|
|
1416
|
-
weekStartsOn: D,
|
|
1417
|
-
locale: l
|
|
1418
|
-
}, g = [new Ee(t?.in, r)], C = e.match(xt).map((i) => {
|
|
1419
|
-
const d = i[0];
|
|
1420
|
-
if (d in X) {
|
|
1421
|
-
const T = X[d];
|
|
1422
|
-
return T(i, l.formatLong);
|
|
1423
|
-
}
|
|
1424
|
-
return i;
|
|
1425
|
-
}).join("").match(mt), O = [];
|
|
1426
|
-
for (let i of C) {
|
|
1427
|
-
xe(i) && A(i, e, s), ye(i) && A(i, e, s);
|
|
1428
|
-
const d = i[0], T = pt[d];
|
|
1429
|
-
if (T) {
|
|
1430
|
-
const { incompatibleTokens: E } = T;
|
|
1431
|
-
if (Array.isArray(E)) {
|
|
1432
|
-
const a = O.find(
|
|
1433
|
-
(u) => E.includes(u.token) || u.token === d
|
|
1434
|
-
);
|
|
1435
|
-
if (a)
|
|
1436
|
-
throw new RangeError(
|
|
1437
|
-
`The format string mustn't contain \`${a.fullToken}\` and \`${i}\` at the same time`
|
|
1438
|
-
);
|
|
1439
|
-
} else if (T.incompatibleTokens === "*" && O.length > 0)
|
|
1440
|
-
throw new RangeError(
|
|
1441
|
-
`The format string mustn't contain \`${i}\` and any other token at the same time`
|
|
1442
|
-
);
|
|
1443
|
-
O.push({ token: d, fullToken: i });
|
|
1444
|
-
const Y = T.run(
|
|
1445
|
-
s,
|
|
1446
|
-
i,
|
|
1447
|
-
l.match,
|
|
1448
|
-
b
|
|
1449
|
-
);
|
|
1450
|
-
if (!Y)
|
|
1451
|
-
return n();
|
|
1452
|
-
g.push(Y.setter), s = Y.rest;
|
|
1453
|
-
} else {
|
|
1454
|
-
if (d.match(Tt))
|
|
1455
|
-
throw new RangeError(
|
|
1456
|
-
"Format string contains an unescaped latin alphabet character `" + d + "`"
|
|
1457
|
-
);
|
|
1458
|
-
if (i === "''" ? i = "'" : d === "'" && (i = Dt(i)), s.indexOf(i) === 0)
|
|
1459
|
-
s = s.slice(i.length);
|
|
1460
|
-
else
|
|
1461
|
-
return n();
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
if (s.length > 0 && gt.test(s))
|
|
1465
|
-
return n();
|
|
1466
|
-
const I = g.map((i) => i.priority).sort((i, d) => d - i).filter((i, d, T) => T.indexOf(i) === d).map(
|
|
1467
|
-
(i) => g.filter((d) => d.priority === i).sort((d, T) => T.subPriority - d.subPriority)
|
|
1468
|
-
).map((i) => i[0]);
|
|
1469
|
-
let P = H(r, t?.in);
|
|
1470
|
-
if (isNaN(+P)) return n();
|
|
1471
|
-
const v = {};
|
|
1472
|
-
for (const i of I) {
|
|
1473
|
-
if (!i.validate(P, b))
|
|
1474
|
-
return n();
|
|
1475
|
-
const d = i.set(P, v, b);
|
|
1476
|
-
Array.isArray(d) ? (P = d[0], Object.assign(v, d[1])) : P = d;
|
|
1477
|
-
}
|
|
1478
|
-
return P;
|
|
1479
|
-
}
|
|
1480
|
-
function Dt(s) {
|
|
1481
|
-
return s.match(yt)[1].replace(bt, "'");
|
|
1482
|
-
}
|
|
1483
|
-
function Nt({ date: s, setDate: e, disabled: r, id: t, locale: n, className: o, mode: l = "datetime", minDate: m }) {
|
|
1484
|
-
const [D, b] = R(!1), [g, C] = R("date"), [O, I] = R(""), P = ne(null), v = l === "datetime" ? "M/d/yy h:mm a" : "M/d/yy";
|
|
1485
|
-
G(() => {
|
|
1486
|
-
s && z(s) ? I(V(s, v)) : I("");
|
|
1487
|
-
}, [s, v]);
|
|
1488
|
-
const i = (a) => {
|
|
1489
|
-
const u = a.target.value;
|
|
1490
|
-
I(u);
|
|
1491
|
-
const x = Pt(u, v, /* @__PURE__ */ new Date());
|
|
1492
|
-
z(x) && e(x);
|
|
1493
|
-
}, d = (a) => {
|
|
1494
|
-
if (!a) {
|
|
1495
|
-
e(void 0);
|
|
1496
|
-
return;
|
|
1497
|
-
}
|
|
1498
|
-
const u = s || /* @__PURE__ */ new Date(), x = new Date(a);
|
|
1499
|
-
l === "datetime" ? (x.setHours(u.getHours()), x.setMinutes(u.getMinutes())) : (x.setHours(0), x.setMinutes(0)), e(x), b(!1);
|
|
1500
|
-
}, T = (a, u) => {
|
|
1501
|
-
const x = s || /* @__PURE__ */ new Date(), q = new Date(x);
|
|
1502
|
-
q.setHours(a), q.setMinutes(u), e(q), b(!1);
|
|
1503
|
-
}, E = (a, u) => {
|
|
1504
|
-
a.preventDefault(), a.stopPropagation(), D && g === u ? b(!1) : (C(u), b(!0));
|
|
1505
|
-
}, Y = oe(() => {
|
|
1506
|
-
const a = [];
|
|
1507
|
-
let u = be(/* @__PURE__ */ new Date());
|
|
1508
|
-
for (let x = 0; x < 48; x++)
|
|
1509
|
-
a.push({
|
|
1510
|
-
label: V(u, "h:mm a"),
|
|
1511
|
-
hh: u.getHours(),
|
|
1512
|
-
mm: u.getMinutes()
|
|
1513
|
-
}), u = ge(u, 30);
|
|
1514
|
-
return m && s && Te(s, m) ? a.filter((x) => {
|
|
1515
|
-
const q = x.hh * 60 + x.mm, te = m.getHours() * 60 + m.getMinutes();
|
|
1516
|
-
return q > te;
|
|
1517
|
-
}) : a;
|
|
1518
|
-
}, [s, m]);
|
|
1519
|
-
return G(() => {
|
|
1520
|
-
if (D && g === "time" && P.current && s) {
|
|
1521
|
-
const a = Y.findIndex((u) => u.hh === s.getHours() && u.mm === (s.getMinutes() >= 30 ? 30 : 0));
|
|
1522
|
-
if (a !== -1) {
|
|
1523
|
-
const u = P.current.children[a];
|
|
1524
|
-
u && (P.current.scrollTop = u.offsetTop - 80);
|
|
1525
|
-
}
|
|
1526
|
-
}
|
|
1527
|
-
}, [D, g, s, Y]), /* @__PURE__ */ Q(ie, { open: D, onOpenChange: b, children: [
|
|
1528
|
-
/* @__PURE__ */ y(ce, { asChild: !0, children: /* @__PURE__ */ Q("div", { className: N(
|
|
1529
|
-
"group flex items-center w-full h-10 rounded-md border border-slate-200 bg-background transition-all focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary",
|
|
1530
|
-
r && "opacity-50 cursor-not-allowed",
|
|
1531
|
-
o
|
|
1532
|
-
), children: [
|
|
1533
|
-
/* @__PURE__ */ y(
|
|
1534
|
-
"input",
|
|
1535
|
-
{
|
|
1536
|
-
id: t,
|
|
1537
|
-
className: "flex-1 min-w-0 h-full px-3 bg-transparent text-sm font-medium outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed",
|
|
1538
|
-
value: O,
|
|
1539
|
-
onChange: i,
|
|
1540
|
-
placeholder: l === "datetime" ? "M/D/YY H:MM AM" : "M/D/YY",
|
|
1541
|
-
disabled: r,
|
|
1542
|
-
autoComplete: "off"
|
|
1543
|
-
}
|
|
1544
|
-
),
|
|
1545
|
-
O && !r && /* @__PURE__ */ y(
|
|
1546
|
-
"button",
|
|
1547
|
-
{
|
|
1548
|
-
type: "button",
|
|
1549
|
-
onClick: (a) => {
|
|
1550
|
-
a.preventDefault(), a.stopPropagation(), e(void 0);
|
|
1551
|
-
},
|
|
1552
|
-
onPointerDown: (a) => a.stopPropagation(),
|
|
1553
|
-
className: "h-full px-2 text-slate-400 hover:text-slate-600 transition-colors",
|
|
1554
|
-
children: /* @__PURE__ */ y(De, { className: "w-4 h-4" })
|
|
1555
|
-
}
|
|
1556
|
-
),
|
|
1557
|
-
/* @__PURE__ */ y("div", { className: "h-6 w-[1px] bg-slate-200" }),
|
|
1558
|
-
/* @__PURE__ */ y(
|
|
1559
|
-
"button",
|
|
1560
|
-
{
|
|
1561
|
-
type: "button",
|
|
1562
|
-
onClick: (a) => E(a, "date"),
|
|
1563
|
-
onPointerDown: (a) => a.stopPropagation(),
|
|
1564
|
-
disabled: r,
|
|
1565
|
-
className: N(
|
|
1566
|
-
"h-full px-3 flex items-center justify-center text-slate-500 hover:bg-slate-50 transition-colors",
|
|
1567
|
-
g === "date" && D && "text-primary"
|
|
1568
|
-
),
|
|
1569
|
-
children: /* @__PURE__ */ y(ke, { className: "w-4 h-4" })
|
|
1570
|
-
}
|
|
1571
|
-
),
|
|
1572
|
-
l === "datetime" && /* @__PURE__ */ Q(se, { children: [
|
|
1573
|
-
/* @__PURE__ */ y("div", { className: "h-6 w-[1px] bg-slate-200" }),
|
|
1574
|
-
/* @__PURE__ */ y(
|
|
1575
|
-
"button",
|
|
1576
|
-
{
|
|
1577
|
-
type: "button",
|
|
1578
|
-
onClick: (a) => E(a, "time"),
|
|
1579
|
-
onPointerDown: (a) => a.stopPropagation(),
|
|
1580
|
-
disabled: r,
|
|
1581
|
-
className: N(
|
|
1582
|
-
"h-full px-3 flex items-center justify-center text-slate-500 hover:bg-slate-50 transition-colors rounded-r-md",
|
|
1583
|
-
g === "time" && D && "text-primary"
|
|
1584
|
-
),
|
|
1585
|
-
children: /* @__PURE__ */ y(Pe, { className: "w-4 h-4" })
|
|
1586
|
-
}
|
|
1587
|
-
)
|
|
1588
|
-
] })
|
|
1589
|
-
] }) }),
|
|
1590
|
-
/* @__PURE__ */ y(
|
|
1591
|
-
ue,
|
|
1592
|
-
{
|
|
1593
|
-
className: "w-auto p-0 shadow-xl border border-border bg-popover text-popover-foreground overflow-hidden animate-in fade-in zoom-in-95 duration-150",
|
|
1594
|
-
style: { zIndex: 11e3, maxWidth: "300px", width: "auto" },
|
|
1595
|
-
align: "start",
|
|
1596
|
-
sideOffset: 4,
|
|
1597
|
-
children: g === "date" ? /* @__PURE__ */ y(
|
|
1598
|
-
ae,
|
|
1599
|
-
{
|
|
1600
|
-
selected: s,
|
|
1601
|
-
onSelect: d,
|
|
1602
|
-
locale: n,
|
|
1603
|
-
minDate: m
|
|
1604
|
-
}
|
|
1605
|
-
) : /* @__PURE__ */ y(
|
|
1606
|
-
"div",
|
|
1607
|
-
{
|
|
1608
|
-
ref: P,
|
|
1609
|
-
className: "w-[180px] overflow-y-auto py-1 custom-scrollbar",
|
|
1610
|
-
style: { height: "363px" },
|
|
1611
|
-
children: Y.map((a) => {
|
|
1612
|
-
const u = s && s.getHours() === a.hh && s.getMinutes() === a.mm;
|
|
1613
|
-
return /* @__PURE__ */ y(
|
|
1614
|
-
"button",
|
|
1615
|
-
{
|
|
1616
|
-
type: "button",
|
|
1617
|
-
onClick: () => T(a.hh, a.mm),
|
|
1618
|
-
className: N(
|
|
1619
|
-
"w-full text-left px-4 py-2.5 text-[14px] transition-colors",
|
|
1620
|
-
u ? "bg-primary text-white font-bold" : "text-slate-700 hover:bg-primary/5 hover:text-primary"
|
|
1621
|
-
),
|
|
1622
|
-
children: a.label
|
|
1623
|
-
},
|
|
1624
|
-
a.label
|
|
1625
|
-
);
|
|
1626
|
-
})
|
|
1627
|
-
}
|
|
1628
|
-
)
|
|
1629
|
-
}
|
|
1630
|
-
)
|
|
1631
|
-
] });
|
|
1632
|
-
}
|
|
1633
|
-
export {
|
|
1634
|
-
Nt as D,
|
|
1635
|
-
qt as P
|
|
1636
|
-
};
|