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.
Files changed (513) hide show
  1. package/README.md +58 -15
  2. package/dist/DeleteConfirmationModal-CukNDgtX.cjs +1 -0
  3. package/dist/DeleteConfirmationModal-p8XGDGIw.js +38 -0
  4. package/dist/EzContextMenu-BCUoEQp5.cjs +1 -0
  5. package/dist/EzContextMenu-srLxujt8.js +287 -0
  6. package/dist/EzErrorBoundary-C7a6VisX.js +74 -0
  7. package/dist/EzErrorBoundary-d_2g-_EK.cjs +1 -0
  8. package/dist/EzEventModal-C079wLjP.js +725 -0
  9. package/dist/EzEventModal-CAA9cAM0.cjs +1 -0
  10. package/dist/EzFlow-C74NbZA9.js +2545 -0
  11. package/dist/EzFlow-CQFeY7DL.cjs +5 -0
  12. package/dist/EzGroupingPanel-BVaAJaVU.js +107 -0
  13. package/dist/EzGroupingPanel-BwWDWEuW.cjs +1 -0
  14. package/dist/EzKanban-BlJWybKe.js +1575 -0
  15. package/dist/EzKanban-DdKODRRv.cjs +2 -0
  16. package/dist/EzLayout-BGnqFtvO.cjs +1 -0
  17. package/dist/EzLayout-CiaPLniV.js +7005 -0
  18. package/dist/EzProvider-AlmsYIDk.js +982 -0
  19. package/dist/EzProvider-L2qQMq-v.cjs +1 -0
  20. package/dist/EzScheduler-C1Jtvvju.js +2700 -0
  21. package/dist/EzScheduler-CkqTngI6.cjs +1 -0
  22. package/dist/EzSchedulerQuickAdd-BIC8xbSn.js +124 -0
  23. package/dist/EzSchedulerQuickAdd-BeNfGdWs.cjs +1 -0
  24. package/dist/EzSchedulerToolbar-BJwTpgas.cjs +1 -0
  25. package/dist/EzSchedulerToolbar-Ba4gbvUg.js +305 -0
  26. package/dist/EzSignature-7UHO5lSP.js +386 -0
  27. package/dist/EzSignature-Df7UZ-IS.cjs +1 -0
  28. package/dist/EzTable-CEXvJR1t.cjs +3 -0
  29. package/dist/EzTable-D2p1IWHc.js +4290 -0
  30. package/dist/EzTableEditDialog-BXnnYSSy.cjs +1 -0
  31. package/dist/EzTableEditDialog-Ccd5XoHm.js +84 -0
  32. package/dist/EzTableFooter-CtexeDAC.cjs +1 -0
  33. package/dist/EzTableFooter-DrLoWelo.js +35 -0
  34. package/dist/EzTableToolbar-BH5z9fSJ.js +160 -0
  35. package/dist/EzTableToolbar-DwuumvWP.cjs +1 -0
  36. package/dist/EzTreeView-D1G0Aomc.js +818 -0
  37. package/dist/EzTreeView-KMGlU4ax.cjs +1 -0
  38. package/dist/HighlightText-BViuwe03.cjs +1 -0
  39. package/dist/HighlightText-DNA2R2uf.js +56 -0
  40. package/dist/KanbanBoard-B7_Z5sh1.js +1697 -0
  41. package/dist/KanbanBoard-CyitudI1.cjs +1 -0
  42. package/dist/Modal-BmX1C448.cjs +1 -0
  43. package/dist/Modal-CrzpKyjK.js +74 -0
  44. package/dist/NotificationPanel-BzpDc10Q.js +54 -0
  45. package/dist/NotificationPanel-CFME00wq.cjs +1 -0
  46. package/dist/TooltipWrapper-BSAmUx9H.js +44 -0
  47. package/dist/TooltipWrapper-DfbFAZ1U.cjs +1 -0
  48. package/dist/advanced.cjs +10 -0
  49. package/dist/advanced.d.ts +44 -0
  50. package/dist/advanced.es.js +400 -0
  51. package/dist/avatar-BSdRHETK.cjs +1 -0
  52. package/dist/avatar-BvCUJ-_r.js +27 -0
  53. package/dist/button-BBMwzUtG.cjs +1 -0
  54. package/dist/button-CYyNwV8S.js +44 -0
  55. package/dist/calendar-DEHX32Cp.cjs +1 -0
  56. package/dist/calendar-DOIPGsyI.js +112 -0
  57. package/dist/card-CPlRZxbq.cjs +1 -0
  58. package/dist/card-ZUNxcdIM.js +60 -0
  59. package/dist/checkbox-BrCh_Iid.cjs +1 -0
  60. package/dist/checkbox-DRkQuB4W.js +21 -0
  61. package/dist/components/EzFlow/EzConnectionLine.d.ts +5 -0
  62. package/dist/components/EzFlow/EzFlow.examples.d.ts +5 -0
  63. package/dist/components/EzFlow/EzFlow.types.d.ts +260 -0
  64. package/dist/components/EzFlow/EzFlowBackground.d.ts +5 -0
  65. package/dist/components/EzFlow/EzFlowCanvas.d.ts +3 -0
  66. package/dist/components/EzFlow/EzFlowControls.d.ts +5 -0
  67. package/dist/components/EzFlow/EzFlowEdge.d.ts +5 -0
  68. package/dist/components/EzFlow/EzFlowHeader.d.ts +6 -0
  69. package/dist/components/EzFlow/EzFlowToolbox.d.ts +6 -0
  70. package/dist/components/EzFlow/EzWorkflow.d.ts +5 -0
  71. package/dist/components/EzFlow/EzWorkflowPerformance.d.ts +3 -0
  72. package/dist/components/EzFlow/EzWorkflowServiceAdapters.d.ts +24 -0
  73. package/dist/components/EzFlow/EzWorkflowValidation.d.ts +95 -0
  74. package/dist/components/EzFlow/index.d.ts +13 -0
  75. package/dist/components/EzFlow/nodes/ActionNode.d.ts +3 -0
  76. package/dist/components/EzFlow/nodes/ApprovalNode.d.ts +3 -0
  77. package/dist/components/EzFlow/nodes/DecisionNode.d.ts +3 -0
  78. package/dist/components/EzFlow/nodes/DelayNode.d.ts +3 -0
  79. package/dist/components/EzFlow/nodes/EndNode.d.ts +3 -0
  80. package/dist/components/EzFlow/nodes/GroupNode.d.ts +3 -0
  81. package/dist/components/EzFlow/nodes/LoopNode.d.ts +3 -0
  82. package/dist/components/EzFlow/nodes/RequestNode.d.ts +3 -0
  83. package/dist/components/EzFlow/nodes/StartNode.d.ts +3 -0
  84. package/dist/components/EzFlow/nodes/index.d.ts +9 -0
  85. package/dist/components/EzKanban/EzKanban.types.d.ts +808 -0
  86. package/dist/components/EzKanban/components/CardEditorModal.d.ts +23 -0
  87. package/dist/components/EzKanban/components/EzKanbanErrorFallback.d.ts +1 -0
  88. package/dist/components/EzKanban/components/FilterPopover.d.ts +10 -0
  89. package/dist/components/EzKanban/components/KanbanBoard.d.ts +59 -0
  90. package/dist/components/EzKanban/components/KanbanCard.d.ts +46 -0
  91. package/dist/components/EzKanban/components/KanbanColumn.d.ts +55 -0
  92. package/dist/components/EzKanban/components/KanbanSwimlane.d.ts +45 -0
  93. package/dist/components/EzKanban/components/KanbanToolbar.d.ts +41 -0
  94. package/dist/components/EzKanban/exports.d.ts +4 -0
  95. package/dist/components/EzKanban/hooks/useKanbanCards.d.ts +36 -0
  96. package/dist/components/EzKanban/hooks/useKanbanColumns.d.ts +27 -0
  97. package/dist/components/EzKanban/hooks/useKanbanDragDrop.d.ts +31 -0
  98. package/dist/components/EzKanban/hooks/useKanbanFilters.d.ts +23 -0
  99. package/dist/components/EzKanban/hooks/useKanbanState.d.ts +79 -0
  100. package/dist/components/EzKanban/hooks/useKanbanSwimlanes.d.ts +27 -0
  101. package/dist/components/EzKanban/hooks/useKanbanVirtualization.d.ts +16 -0
  102. package/dist/components/EzKanban/index.d.ts +51 -0
  103. package/dist/components/EzKanban/services/KanbanService.d.ts +31 -0
  104. package/dist/components/EzKanban/state/kanban.store.d.ts +33 -0
  105. package/dist/components/EzKanban/useEzKanban.d.ts +87 -0
  106. package/dist/components/EzKanban/views/KanbanTimelineView.d.ts +15 -0
  107. package/dist/components/EzLayout/Authentication/AuthSlider.d.ts +13 -0
  108. package/dist/components/EzLayout/Authentication/InputPassword.d.ts +7 -0
  109. package/dist/components/EzLayout/Authentication/SignInForm.d.ts +21 -0
  110. package/dist/components/EzLayout/Authentication/SignUpForm.d.ts +20 -0
  111. package/dist/components/EzLayout/EzHeader.d.ts +48 -0
  112. package/dist/components/EzLayout/EzLanguageSwitcher.d.ts +4 -0
  113. package/dist/components/EzLayout/EzLayout.types.d.ts +261 -0
  114. package/dist/components/EzLayout/EzOrganizationSwitcher.d.ts +14 -0
  115. package/dist/components/EzLayout/EzSidebar.d.ts +24 -0
  116. package/dist/components/EzLayout/EzThemeColorChanger.d.ts +9 -0
  117. package/dist/components/EzLayout/EzThemeSwitcher.d.ts +8 -0
  118. package/dist/components/EzLayout/EzUserProfile.d.ts +27 -0
  119. package/dist/components/EzLayout/components/EzSidebarFooter.d.ts +8 -0
  120. package/dist/components/EzLayout/components/EzSidebarNav.d.ts +10 -0
  121. package/dist/components/EzLayout/components/EzSidebarNavItem.d.ts +11 -0
  122. package/dist/components/EzLayout/components/MainContent.d.ts +13 -0
  123. package/dist/components/EzLayout/hooks/useLayoutImperative.d.ts +17 -0
  124. package/dist/components/EzLayout/hooks/useLayoutState.d.ts +25 -0
  125. package/dist/components/EzLayout/index.d.ts +23 -0
  126. package/dist/components/EzLayout/useEzLayout.d.ts +34 -0
  127. package/dist/components/EzScheduler/EzScheduler.types.d.ts +1252 -0
  128. package/dist/components/EzScheduler/EzSchedulerToolbar.d.ts +117 -0
  129. package/dist/components/EzScheduler/components/EzEventModal.d.ts +23 -0
  130. package/dist/components/EzScheduler/components/EzOverlapAlert.d.ts +12 -0
  131. package/dist/components/EzScheduler/components/EzQuickInfoPopup.d.ts +22 -0
  132. package/dist/components/EzScheduler/components/EzResourceSidebar.d.ts +33 -0
  133. package/dist/components/EzScheduler/components/EzSchedulerContent.d.ts +111 -0
  134. package/dist/components/EzScheduler/components/EzSchedulerQuickAdd.d.ts +17 -0
  135. package/dist/components/EzScheduler/components/RecurrenceEditor.d.ts +7 -0
  136. package/dist/components/EzScheduler/components/SchedulerLoadingSpinner.d.ts +2 -0
  137. package/dist/components/EzScheduler/components/dnd/DraggableEvent.d.ts +24 -0
  138. package/dist/components/EzScheduler/components/dnd/DroppableSlot.d.ts +19 -0
  139. package/dist/components/EzScheduler/hooks/useRecurrence.d.ts +2 -0
  140. package/dist/components/EzScheduler/hooks/useSchedulerEventHandlers.d.ts +15 -0
  141. package/dist/components/EzScheduler/hooks/useSchedulerEvents.d.ts +27 -0
  142. package/dist/components/EzScheduler/hooks/useSchedulerImperative.d.ts +19 -0
  143. package/dist/components/EzScheduler/hooks/useSchedulerNavigation.d.ts +9 -0
  144. package/dist/components/EzScheduler/hooks/useSchedulerResources.d.ts +10 -0
  145. package/dist/components/EzScheduler/hooks/useSchedulerState.d.ts +14 -0
  146. package/dist/components/EzScheduler/hooks/useSchedulerVirtualization.d.ts +9 -0
  147. package/dist/components/EzScheduler/index.d.ts +43 -0
  148. package/dist/components/EzScheduler/models/EventSettings.d.ts +11 -0
  149. package/dist/components/EzScheduler/models/View.d.ts +49 -0
  150. package/dist/components/EzScheduler/models/index.d.ts +2 -0
  151. package/dist/components/EzScheduler/services/AttendeeService.d.ts +15 -0
  152. package/dist/components/EzScheduler/services/AuditService.d.ts +15 -0
  153. package/dist/components/EzScheduler/services/CollisionDetectionService.d.ts +19 -0
  154. package/dist/components/EzScheduler/services/DragAndDropService.d.ts +16 -0
  155. package/dist/components/EzScheduler/services/HistoryService.d.ts +31 -0
  156. package/dist/components/EzScheduler/services/ICalendarImportService.d.ts +16 -0
  157. package/dist/components/EzScheduler/services/PrintService.d.ts +7 -0
  158. package/dist/components/EzScheduler/services/RecurrenceEngine.d.ts +7 -0
  159. package/dist/components/EzScheduler/services/ReminderService.d.ts +17 -0
  160. package/dist/components/EzScheduler/services/SchedulerService.d.ts +71 -0
  161. package/dist/components/EzScheduler/services/SearchService.d.ts +11 -0
  162. package/dist/components/EzScheduler/services/SecurityService.d.ts +25 -0
  163. package/dist/components/EzScheduler/services/TimezoneService.d.ts +20 -0
  164. package/dist/components/EzScheduler/services/VirtualScrollingService.d.ts +34 -0
  165. package/dist/components/EzScheduler/state/scheduler.store.d.ts +27 -0
  166. package/dist/components/EzScheduler/templates/CellTemplate.d.ts +42 -0
  167. package/dist/components/EzScheduler/templates/EditorTemplate.d.ts +32 -0
  168. package/dist/components/EzScheduler/templates/HeaderTemplate.d.ts +36 -0
  169. package/dist/components/EzScheduler/useEzScheduler.d.ts +104 -0
  170. package/dist/components/EzScheduler/utils/createDragConstraint.d.ts +7 -0
  171. package/dist/components/EzScheduler/utils/getWeekNumber.d.ts +8 -0
  172. package/dist/components/EzScheduler/utils/sanitizeHtml.d.ts +18 -0
  173. package/dist/components/EzScheduler/views/AgendaView.d.ts +28 -0
  174. package/dist/components/EzScheduler/views/DayWeekView.d.ts +177 -0
  175. package/dist/components/EzScheduler/views/MonthView.d.ts +60 -0
  176. package/dist/components/EzScheduler/views/TimelineView.d.ts +116 -0
  177. package/dist/components/EzSignature/EzSignature.d.ts +42 -0
  178. package/dist/components/EzSignature/EzSignature.types.d.ts +132 -0
  179. package/dist/components/EzSignature/index.d.ts +2 -0
  180. package/dist/components/EzTable/EzColumnMenu.d.ts +7 -0
  181. package/dist/components/EzTable/EzDateFilterTree.d.ts +7 -0
  182. package/dist/components/EzTable/EzExcelFilter.d.ts +8 -0
  183. package/dist/components/EzTable/EzFilterBuilder.d.ts +12 -0
  184. package/dist/components/EzTable/EzGroupingPanel.d.ts +9 -0
  185. package/dist/components/EzTable/EzHeaderContextMenu.d.ts +8 -0
  186. package/dist/components/EzTable/EzPagination.d.ts +19 -0
  187. package/dist/components/EzTable/EzTable.types.d.ts +1 -0
  188. package/dist/components/EzTable/EzTableEditDialog.d.ts +15 -0
  189. package/dist/components/EzTable/EzTableFooter.d.ts +10 -0
  190. package/dist/components/EzTable/EzTableOverlays.d.ts +11 -0
  191. package/dist/components/EzTable/EzTableStatusBar.d.ts +10 -0
  192. package/dist/components/EzTable/EzTableToolbar.d.ts +60 -0
  193. package/dist/components/EzTable/SmartCell.d.ts +7 -0
  194. package/dist/components/EzTable/components/AdvancedColumnFilter.d.ts +16 -0
  195. package/dist/components/EzTable/components/BooleanFilterSection.d.ts +7 -0
  196. package/dist/components/EzTable/components/EzDraggableHeader.d.ts +10 -0
  197. package/dist/components/EzTable/components/EzHeaderDragPreview.d.ts +7 -0
  198. package/dist/components/EzTable/components/EzTableBodySection.d.ts +72 -0
  199. package/dist/components/EzTable/components/EzTableCell.d.ts +46 -0
  200. package/dist/components/EzTable/components/EzTableHeaderSection.d.ts +23 -0
  201. package/dist/components/EzTable/components/EzTablePaginationSection.d.ts +31 -0
  202. package/dist/components/EzTable/components/EzTableRow.d.ts +58 -0
  203. package/dist/components/EzTable/components/FilterActionButtons.d.ts +16 -0
  204. package/dist/components/EzTable/components/FilterRuleSelect.d.ts +26 -0
  205. package/dist/components/EzTable/components/SelectAllCheckbox.d.ts +21 -0
  206. package/dist/components/EzTable/components/SelectFilterSection.d.ts +18 -0
  207. package/dist/components/EzTable/components/VirtualizedFilterList.d.ts +21 -0
  208. package/dist/components/EzTable/constants/filterOptions.d.ts +47 -0
  209. package/dist/components/EzTable/context/EzTableContext.d.ts +10 -0
  210. package/dist/components/EzTable/context/TableConfigContext.d.ts +13 -0
  211. package/dist/components/EzTable/context/TableStore.d.ts +17 -0
  212. package/dist/components/EzTable/filterUtils.d.ts +5 -0
  213. package/dist/components/EzTable/hooks/useAutoFit.d.ts +4 -0
  214. package/dist/components/EzTable/hooks/useCellEventHandlers.d.ts +16 -0
  215. package/dist/components/EzTable/hooks/useColumnSizeVars.d.ts +6 -0
  216. package/dist/components/EzTable/hooks/useContainerResize.d.ts +11 -0
  217. package/dist/components/EzTable/hooks/useDialogStateInitialization.d.ts +8 -0
  218. package/dist/components/EzTable/hooks/useFilterSelection.d.ts +12 -0
  219. package/dist/components/EzTable/hooks/useTableFiltering.d.ts +23 -0
  220. package/dist/components/EzTable/hooks/useTableHistory.d.ts +87 -0
  221. package/dist/components/EzTable/hooks/useTableImperative.d.ts +42 -0
  222. package/dist/components/EzTable/hooks/useTableSelection.d.ts +32 -0
  223. package/dist/components/EzTable/hooks/useTableState.d.ts +33 -0
  224. package/dist/components/EzTable/hooks/useTableVirtualization.d.ts +35 -0
  225. package/dist/components/EzTable/index.d.ts +54 -0
  226. package/dist/components/EzTable/renderers/index.d.ts +6 -0
  227. package/dist/components/EzTable/services/TableService.d.ts +29 -0
  228. package/dist/components/EzTable/types/EzTableColumn.types.d.ts +146 -0
  229. package/dist/components/EzTable/types/EzTableEdit.types.d.ts +58 -0
  230. package/dist/components/EzTable/types/EzTableFilter.types.d.ts +50 -0
  231. package/dist/components/EzTable/types/EzTableProps.d.ts +750 -0
  232. package/dist/components/EzTable/types/index.d.ts +4 -0
  233. package/dist/components/EzTable/useEzTable.d.ts +17 -0
  234. package/dist/components/EzTable/utils/SizingUtils.d.ts +11 -0
  235. package/dist/components/EzTable/utils/TextMeasurer.d.ts +1 -0
  236. package/dist/components/EzTable/utils/TruncatedTooltip.d.ts +7 -0
  237. package/dist/components/EzTable/utils/columnTypeDetector.d.ts +5 -0
  238. package/dist/components/EzTable/utils/filterTypeGuards.d.ts +3 -0
  239. package/dist/components/EzTable/utils/index.d.ts +1 -0
  240. package/dist/components/EzTreeView/EzTreeView.types.d.ts +364 -0
  241. package/dist/components/EzTreeView/EzTreeViewItem.d.ts +89 -0
  242. package/dist/components/EzTreeView/EzVirtualTree.d.ts +84 -0
  243. package/dist/components/EzTreeView/components/EzTreeViewLoadingSpinner.d.ts +2 -0
  244. package/dist/components/EzTreeView/hooks/useTreeDragDrop.d.ts +31 -0
  245. package/dist/components/EzTreeView/hooks/useTreeExpansion.d.ts +21 -0
  246. package/dist/components/EzTreeView/hooks/useTreeImperative.d.ts +28 -0
  247. package/dist/components/EzTreeView/hooks/useTreeSelection.d.ts +31 -0
  248. package/dist/components/EzTreeView/hooks/useTreeState.d.ts +21 -0
  249. package/dist/components/EzTreeView/hooks/useTreeVirtualization.d.ts +18 -0
  250. package/dist/components/EzTreeView/index.d.ts +40 -0
  251. package/dist/components/EzTreeView/services/TreeService.d.ts +11 -0
  252. package/dist/components/EzTreeView/useEzTreeView.d.ts +50 -0
  253. package/dist/components/EzTreeView/utils/treeUtils.d.ts +17 -0
  254. package/dist/components/shared/components/EzErrorBoundary.d.ts +18 -0
  255. package/dist/components/shared/components/EzLayoutErrorFallback.d.ts +2 -0
  256. package/dist/components/shared/components/EzLoadingSpinner.d.ts +8 -0
  257. package/dist/components/shared/components/EzSchedulerErrorFallback.d.ts +2 -0
  258. package/dist/components/shared/components/EzSortableList.d.ts +12 -0
  259. package/dist/components/shared/components/EzTableErrorFallback.d.ts +2 -0
  260. package/dist/components/shared/components/EzTreeViewErrorFallback.d.ts +2 -0
  261. package/dist/components/ui/avatar.d.ts +10 -0
  262. package/dist/components/ui/badge.d.ts +9 -0
  263. package/dist/components/ui/breadcrumb.d.ts +19 -0
  264. package/dist/components/ui/button.d.ts +13 -0
  265. package/dist/components/ui/calendar.d.ts +15 -0
  266. package/dist/components/ui/card.d.ts +10 -0
  267. package/dist/components/ui/checkbox.d.ts +7 -0
  268. package/dist/components/ui/combobox.d.ts +19 -0
  269. package/dist/components/ui/command.d.ts +78 -0
  270. package/dist/components/ui/context-menu.d.ts +27 -0
  271. package/dist/components/ui/date-time-picker.d.ts +14 -0
  272. package/dist/components/ui/dropdown-menu.d.ts +31 -0
  273. package/dist/components/ui/index.d.ts +27 -0
  274. package/dist/components/ui/input.d.ts +5 -0
  275. package/dist/components/ui/label.d.ts +9 -0
  276. package/dist/components/ui/modal.d.ts +9 -0
  277. package/dist/components/ui/password-input.d.ts +5 -0
  278. package/dist/components/ui/popover.d.ts +10 -0
  279. package/dist/components/ui/progress.d.ts +7 -0
  280. package/dist/components/ui/radio-group.d.ts +5 -0
  281. package/dist/components/ui/resizable.d.ts +8 -0
  282. package/dist/components/ui/scroll-area.d.ts +5 -0
  283. package/dist/components/ui/select.d.ts +26 -0
  284. package/dist/components/ui/skeleton.d.ts +2 -0
  285. package/dist/components/ui/switch.d.ts +6 -0
  286. package/dist/components/ui/table.d.ts +10 -0
  287. package/dist/components/ui/tabs.d.ts +22 -0
  288. package/dist/components/ui/textarea.d.ts +5 -0
  289. package/dist/components/ui/tooltip.d.ts +10 -0
  290. package/dist/date-time-picker-Bs-7XzHD.cjs +1 -0
  291. package/dist/date-time-picker-fUzf4TnU.js +127 -0
  292. package/dist/dropdown-menu-BRP0tyR_.cjs +1 -0
  293. package/dist/dropdown-menu-B_7_K13o.js +78 -0
  294. package/dist/ezux.css +2 -1
  295. package/dist/flow.cjs +1 -0
  296. package/dist/flow.d.ts +2 -0
  297. package/dist/flow.es.js +2 -0
  298. package/dist/index.cjs +3 -12
  299. package/dist/index.d.ts +66 -6404
  300. package/dist/index.es.js +229 -1041
  301. package/dist/input-CYlvlbF7.cjs +1 -0
  302. package/dist/input-Cj3sQK3M.js +14 -0
  303. package/dist/kanban.cjs +1 -1
  304. package/dist/kanban.d.ts +2 -1343
  305. package/dist/kanban.es.js +4 -17
  306. package/dist/label-BGgvoZWD.cjs +1 -0
  307. package/dist/label-DWEV--5W.js +16 -0
  308. package/dist/layout.cjs +1 -1
  309. package/dist/layout.d.ts +2 -690
  310. package/dist/layout.es.js +2 -20
  311. package/dist/lib/perfect-freehand.d.ts +221 -0
  312. package/dist/lib/utils.d.ts +2 -0
  313. package/dist/mock-services.cjs +1 -0
  314. package/dist/mock-services.d.ts +8 -0
  315. package/dist/mock-services.es.js +161 -0
  316. package/dist/popover-D1akYj0W.js +17 -0
  317. package/dist/popover-wZKNvYM5.cjs +1 -0
  318. package/dist/scheduler.cjs +1 -1
  319. package/dist/scheduler.d.ts +2 -1430
  320. package/dist/scheduler.es.js +2 -11
  321. package/dist/scroll-area-BJs87d45.js +35 -0
  322. package/dist/scroll-area-DSkE2KB_.cjs +1 -0
  323. package/dist/select-D4tFaSai.js +43 -0
  324. package/dist/select-sVieKbLu.cjs +1 -0
  325. package/dist/shared/components/AnimatedText.d.ts +44 -0
  326. package/dist/shared/components/BaseCell.d.ts +14 -0
  327. package/dist/shared/components/BooleanRenderer.d.ts +34 -0
  328. package/dist/shared/components/ChartRenderer.d.ts +19 -0
  329. package/dist/shared/components/DeleteConfirmationModal.d.ts +11 -0
  330. package/dist/shared/components/EzContextMenu.d.ts +12 -0
  331. package/dist/shared/components/EzNotificationDropdown.d.ts +2 -0
  332. package/dist/shared/components/HighlightText.d.ts +4 -0
  333. package/dist/shared/components/Modal.d.ts +13 -0
  334. package/dist/shared/components/NotificationPanel.d.ts +2 -0
  335. package/dist/shared/components/PrimitiveRenderer.d.ts +39 -0
  336. package/dist/shared/components/SearchableSelect.d.ts +13 -0
  337. package/dist/shared/components/SelectRenderer.d.ts +33 -0
  338. package/dist/shared/components/StatusBadge.d.ts +21 -0
  339. package/dist/shared/components/TooltipWrapper.d.ts +12 -0
  340. package/dist/shared/components/index.d.ts +9 -0
  341. package/dist/shared/contexts/EzProvider.d.ts +56 -0
  342. package/dist/shared/hooks/index.d.ts +56 -0
  343. package/dist/shared/hooks/useBaseComponent.d.ts +59 -0
  344. package/dist/shared/hooks/useComponentImperativeAPI.d.ts +11 -0
  345. package/dist/shared/hooks/useComponentState.d.ts +39 -0
  346. package/dist/shared/hooks/useCurrentTime.d.ts +6 -0
  347. package/dist/shared/hooks/useDataChangeEvents.d.ts +53 -0
  348. package/dist/shared/hooks/useDebounce.d.ts +10 -0
  349. package/dist/shared/hooks/useDeleteConfirmation.d.ts +9 -0
  350. package/dist/shared/hooks/useDialogState.d.ts +21 -0
  351. package/dist/shared/hooks/useDndHandlers.d.ts +19 -0
  352. package/dist/shared/hooks/useEditing.d.ts +107 -0
  353. package/dist/shared/hooks/useEventHandlers.d.ts +61 -0
  354. package/dist/shared/hooks/useEzTheme.d.ts +22 -0
  355. package/dist/shared/hooks/useFieldValidation.d.ts +24 -0
  356. package/dist/shared/hooks/useHistory.d.ts +13 -0
  357. package/dist/shared/hooks/useI18n.d.ts +8 -0
  358. package/dist/shared/hooks/useImperativeAPI.d.ts +8 -0
  359. package/dist/shared/hooks/useInitCoreServices.d.ts +5 -0
  360. package/dist/shared/hooks/useKeyboardNavigation.d.ts +36 -0
  361. package/dist/shared/hooks/useKeyboardShortcuts.d.ts +14 -0
  362. package/dist/shared/hooks/useLifecycleEvents.d.ts +22 -0
  363. package/dist/shared/hooks/useLoadingState.d.ts +17 -0
  364. package/dist/shared/hooks/useMediaQuery.d.ts +6 -0
  365. package/dist/shared/hooks/useNotificationService.d.ts +8 -0
  366. package/dist/shared/hooks/usePerformanceMonitor.d.ts +22 -0
  367. package/dist/shared/hooks/useRowSelectionEvents.d.ts +44 -0
  368. package/dist/shared/hooks/useSelection.d.ts +73 -0
  369. package/dist/shared/hooks/useService.d.ts +12 -0
  370. package/dist/shared/hooks/useServiceState.d.ts +1 -0
  371. package/dist/shared/hooks/useStateChangeEvents.d.ts +61 -0
  372. package/dist/shared/hooks/useTheme.d.ts +13 -0
  373. package/dist/shared/hooks/useVirtualization.d.ts +85 -0
  374. package/dist/shared/services/BaseService.d.ts +57 -0
  375. package/dist/shared/services/ContextMenuService.d.ts +58 -0
  376. package/dist/shared/services/ExportService.d.ts +35 -0
  377. package/dist/shared/services/FocusManagerService.d.ts +33 -0
  378. package/dist/shared/services/HierarchyService.d.ts +43 -0
  379. package/dist/shared/services/I18nService.d.ts +84 -0
  380. package/dist/shared/services/LayoutService.d.ts +80 -0
  381. package/dist/shared/services/NotificationService.d.ts +44 -0
  382. package/dist/shared/services/PersistenceService.d.ts +69 -0
  383. package/dist/shared/services/ServiceRegistry.d.ts +52 -0
  384. package/dist/shared/services/ThemeService.d.ts +49 -0
  385. package/dist/shared/services/VirtualizationService.d.ts +51 -0
  386. package/dist/shared/state/store.d.ts +10 -0
  387. package/dist/shared/themes.d.ts +25 -0
  388. package/dist/shared/types/BaseProps.d.ts +17 -0
  389. package/dist/shared/types/common.d.ts +373 -0
  390. package/dist/shared/types/index.d.ts +2 -0
  391. package/dist/shared/utils/canvasUtils.d.ts +16 -0
  392. package/dist/shared/utils/commonUtils.d.ts +28 -0
  393. package/dist/shared/utils/csvUtils.d.ts +7 -0
  394. package/dist/shared/utils/dateUtils.d.ts +5 -0
  395. package/dist/shared/utils/dndUtils.d.ts +16 -0
  396. package/dist/shared/utils/formatUtils.d.ts +20 -0
  397. package/dist/shared/utils/imperativeApiUtils.d.ts +36 -0
  398. package/dist/shared/utils/index.d.ts +11 -0
  399. package/dist/shared/utils/renderUtils.d.ts +6 -0
  400. package/dist/shared/utils/serviceUtils.d.ts +10 -0
  401. package/dist/shared/utils/styleUtils.d.ts +121 -0
  402. package/dist/shared/utils/validationUtils.d.ts +16 -0
  403. package/dist/signature.cjs +1 -1
  404. package/dist/signature.d.ts +2 -410
  405. package/dist/signature.es.js +2 -4
  406. package/dist/table.cjs +1 -1
  407. package/dist/table.d.ts +2 -1059
  408. package/dist/table.es.js +2 -17
  409. package/dist/theme-vars.css +143 -135
  410. package/dist/tooltip-B1wC9m05.js +16 -0
  411. package/dist/tooltip-Qmzrg5u5.cjs +1 -0
  412. package/dist/treeview.cjs +1 -1
  413. package/dist/treeview.d.ts +2 -656
  414. package/dist/treeview.es.js +2 -954
  415. package/dist/useComponentState-DiSFLYju.js +57 -0
  416. package/dist/useComponentState-Wcz6pjd6.cjs +1 -0
  417. package/dist/useImperativeAPI-Dbx2hMTb.js +7 -0
  418. package/dist/useImperativeAPI-VrgLwXEO.cjs +1 -0
  419. package/dist/useInitCoreServices-CuBrviDM.js +40 -0
  420. package/dist/useInitCoreServices-DlALVDNx.cjs +1 -0
  421. package/dist/useService-CnCBGG3G.js +10 -0
  422. package/dist/useService-CyF782jv.cjs +1 -0
  423. package/dist/useServiceState-CkrJZm1D.js +21 -0
  424. package/dist/useServiceState-PyYQWxHi.cjs +1 -0
  425. package/package.json +76 -56
  426. package/dist/EzContextMenu-B6HBUjWv.cjs +0 -5
  427. package/dist/EzContextMenu-BSA_B6Pr.js +0 -3500
  428. package/dist/EzErrorBoundary-CEdz_hDo.cjs +0 -41
  429. package/dist/EzErrorBoundary-D4NBadES.js +0 -3727
  430. package/dist/EzEventModal-BUMp_BFi.js +0 -689
  431. package/dist/EzEventModal-xzHfzi0O.cjs +0 -1
  432. package/dist/EzGroupingPanel-BUsIYDRi.js +0 -143
  433. package/dist/EzGroupingPanel-D0HdSomF.cjs +0 -1
  434. package/dist/EzSchedulerQuickAdd-C653LTGh.js +0 -118
  435. package/dist/EzSchedulerQuickAdd-UnOWCpJd.cjs +0 -1
  436. package/dist/EzSchedulerToolbar-C-5OdRY6.cjs +0 -1
  437. package/dist/EzSchedulerToolbar-CO5jjDQg.js +0 -240
  438. package/dist/EzSignature-BaNesxwC.cjs +0 -1
  439. package/dist/EzSignature-D4EYwo9W.js +0 -419
  440. package/dist/EzTableEditDialog-Cd948V1C.js +0 -63
  441. package/dist/EzTableEditDialog-NiOubaMT.cjs +0 -1
  442. package/dist/EzTableFooter-CWjfGCjL.cjs +0 -1
  443. package/dist/EzTableFooter-DveD12RC.js +0 -54
  444. package/dist/EzTableToolbar-Bz8UWv6j.js +0 -246
  445. package/dist/EzTableToolbar-DHE7Bb1R.cjs +0 -1
  446. package/dist/HighlightText-8D6KEyBw.js +0 -68
  447. package/dist/HighlightText-LtZmzCle.cjs +0 -1
  448. package/dist/NotificationPanel-D2Y-_ahk.js +0 -68
  449. package/dist/NotificationPanel-zLxrtTGf.cjs +0 -1
  450. package/dist/TooltipWrapper-BrRTi5EJ.js +0 -2021
  451. package/dist/TooltipWrapper-DWts4bAI.cjs +0 -1
  452. package/dist/avatar-BeK0E4mn.js +0 -41
  453. package/dist/avatar-DZAaTK2f.cjs +0 -1
  454. package/dist/bell-DAz8P0BR.js +0 -14
  455. package/dist/bell-DOX2y38e.cjs +0 -1
  456. package/dist/calendar-BMZ8ddOf.cjs +0 -1
  457. package/dist/calendar-Dy3rVMW2.js +0 -90
  458. package/dist/checkbox-B0lGHUyy.cjs +0 -1
  459. package/dist/checkbox-boJRxICT.js +0 -46
  460. package/dist/chevron-down-C3s8jU6B.js +0 -5
  461. package/dist/chevron-down-DZVL7VHW.cjs +0 -1
  462. package/dist/chevron-left-BFr8XZyF.js +0 -5
  463. package/dist/chevron-left-HWhRo6IH.cjs +0 -1
  464. package/dist/circle-alert-77QqFR-z.cjs +0 -1
  465. package/dist/circle-alert-B2AMDd8N.js +0 -9
  466. package/dist/circle-x-Cv7bfIC_.js +0 -9
  467. package/dist/circle-x-DwVXxhXr.cjs +0 -1
  468. package/dist/date-time-picker-DTxHdPgQ.cjs +0 -1
  469. package/dist/date-time-picker-Dj2eftJI.js +0 -1636
  470. package/dist/download-0ZhO2XaW.cjs +0 -1
  471. package/dist/download-panVHmk6.js +0 -9
  472. package/dist/ellipsis-CuqNthAj.js +0 -9
  473. package/dist/ellipsis-CzlqJf-i.cjs +0 -1
  474. package/dist/grip-vertical-CSyDKBul.js +0 -12
  475. package/dist/grip-vertical-DZNBW1Dn.cjs +0 -1
  476. package/dist/index-B3ipEEhH.cjs +0 -2
  477. package/dist/index-BPPb7bcs.js +0 -3220
  478. package/dist/index-BQKw_Vho.js +0 -9604
  479. package/dist/index-C5STgBSy.js +0 -5203
  480. package/dist/index-C6NfgycP.js +0 -4644
  481. package/dist/index-D4f2ZdrG.cjs +0 -2
  482. package/dist/index-DUY1SqMo.cjs +0 -1
  483. package/dist/index-c1Zg--dt.cjs +0 -7
  484. package/dist/input-BgM_la4k.cjs +0 -1
  485. package/dist/input-jYQ5VKNR.js +0 -21
  486. package/dist/isBefore-C3Y_wbk3.js +0 -15
  487. package/dist/isBefore-Cp1ttk6q.cjs +0 -1
  488. package/dist/label-ClOW9UCt.js +0 -55
  489. package/dist/label-Dx6oDB-X.cjs +0 -1
  490. package/dist/layers-BA4i1fYX.js +0 -27
  491. package/dist/layers-xSPd-hz3.cjs +0 -1
  492. package/dist/popover-BJq1CKmi.cjs +0 -1
  493. package/dist/popover-Cmlb7w3R.js +0 -341
  494. package/dist/scroll-area-9fwpVNxT.js +0 -573
  495. package/dist/scroll-area-CwwZSSA4.cjs +0 -1
  496. package/dist/select-GxA46anr.cjs +0 -1
  497. package/dist/select-mDCun_IR.js +0 -35
  498. package/dist/settings-CvyjK75A.js +0 -31
  499. package/dist/settings-DKPknrt8.cjs +0 -1
  500. package/dist/sortable.esm-CsRPuXyD.cjs +0 -1
  501. package/dist/sortable.esm-CzMCDPet.js +0 -477
  502. package/dist/tooltip-B41iztKT.cjs +0 -1
  503. package/dist/tooltip-BCtrEe0z.js +0 -490
  504. package/dist/useComponentState-C87xXa5d.js +0 -64
  505. package/dist/useComponentState-DDgGbBXv.cjs +0 -1
  506. package/dist/useImperativeAPI-DXmCQvPL.js +0 -7
  507. package/dist/useImperativeAPI-DbZ3owSV.cjs +0 -1
  508. package/dist/useInitCoreServices-CwXv2p4S.cjs +0 -1
  509. package/dist/useInitCoreServices-D1WaWlaI.js +0 -3929
  510. package/dist/useService-8OoezWr8.cjs +0 -1
  511. package/dist/useService-BUi3uAqE.js +0 -10
  512. package/dist/useServiceState-BjpCjUn2.cjs +0 -1
  513. package/dist/useServiceState-VE-viK8b.js +0 -24
@@ -1,573 +0,0 @@
1
- import { jsx as f, jsxs as $, Fragment as ae } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import { u as A, a as se, P as L, b as I, d as ie, e as R, f as C, h as de } from "./EzErrorBoundary-D4NBadES.js";
4
- import { c as j } from "./useInitCoreServices-D1WaWlaI.js";
5
- function ue(e, [o, r]) {
6
- return Math.min(r, Math.max(o, e));
7
- }
8
- function he(e, o) {
9
- return c.useReducer((r, l) => o[r][l] ?? r, e);
10
- }
11
- var V = "ScrollArea", [q] = ie(V), [fe, m] = q(V), G = c.forwardRef(
12
- (e, o) => {
13
- const {
14
- __scopeScrollArea: r,
15
- type: l = "hover",
16
- dir: t,
17
- scrollHideDelay: n = 600,
18
- ...a
19
- } = e, [s, i] = c.useState(null), [h, d] = c.useState(null), [b, u] = c.useState(null), [S, w] = c.useState(null), [x, Y] = c.useState(null), [P, _] = c.useState(0), [U, D] = c.useState(0), [N, y] = c.useState(!1), [W, H] = c.useState(!1), v = A(o, (E) => i(E)), p = se(t);
20
- return /* @__PURE__ */ f(
21
- fe,
22
- {
23
- scope: r,
24
- type: l,
25
- dir: p,
26
- scrollHideDelay: n,
27
- scrollArea: s,
28
- viewport: h,
29
- onViewportChange: d,
30
- content: b,
31
- onContentChange: u,
32
- scrollbarX: S,
33
- onScrollbarXChange: w,
34
- scrollbarXEnabled: N,
35
- onScrollbarXEnabledChange: y,
36
- scrollbarY: x,
37
- onScrollbarYChange: Y,
38
- scrollbarYEnabled: W,
39
- onScrollbarYEnabledChange: H,
40
- onCornerWidthChange: _,
41
- onCornerHeightChange: D,
42
- children: /* @__PURE__ */ f(
43
- L.div,
44
- {
45
- dir: p,
46
- ...a,
47
- ref: v,
48
- style: {
49
- position: "relative",
50
- // Pass corner sizes as CSS vars to reduce re-renders of context consumers
51
- "--radix-scroll-area-corner-width": P + "px",
52
- "--radix-scroll-area-corner-height": U + "px",
53
- ...e.style
54
- }
55
- }
56
- )
57
- }
58
- );
59
- }
60
- );
61
- G.displayName = V;
62
- var J = "ScrollAreaViewport", K = c.forwardRef(
63
- (e, o) => {
64
- const { __scopeScrollArea: r, children: l, nonce: t, ...n } = e, a = m(J, r), s = c.useRef(null), i = A(o, s, a.onViewportChange);
65
- return /* @__PURE__ */ $(ae, { children: [
66
- /* @__PURE__ */ f(
67
- "style",
68
- {
69
- dangerouslySetInnerHTML: {
70
- __html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"
71
- },
72
- nonce: t
73
- }
74
- ),
75
- /* @__PURE__ */ f(
76
- L.div,
77
- {
78
- "data-radix-scroll-area-viewport": "",
79
- ...n,
80
- ref: i,
81
- style: {
82
- /**
83
- * We don't support `visible` because the intention is to have at least one scrollbar
84
- * if this component is used and `visible` will behave like `auto` in that case
85
- * https://developer.mozilla.org/en-US/docs/Web/CSS/overflow#description
86
- *
87
- * We don't handle `auto` because the intention is for the native implementation
88
- * to be hidden if using this component. We just want to ensure the node is scrollable
89
- * so could have used either `scroll` or `auto` here. We picked `scroll` to prevent
90
- * the browser from having to work out whether to render native scrollbars or not,
91
- * we tell it to with the intention of hiding them in CSS.
92
- */
93
- overflowX: a.scrollbarXEnabled ? "scroll" : "hidden",
94
- overflowY: a.scrollbarYEnabled ? "scroll" : "hidden",
95
- ...e.style
96
- },
97
- children: /* @__PURE__ */ f("div", { ref: a.onContentChange, style: { minWidth: "100%", display: "table" }, children: l })
98
- }
99
- )
100
- ] });
101
- }
102
- );
103
- K.displayName = J;
104
- var g = "ScrollAreaScrollbar", Q = c.forwardRef(
105
- (e, o) => {
106
- const { forceMount: r, ...l } = e, t = m(g, e.__scopeScrollArea), { onScrollbarXEnabledChange: n, onScrollbarYEnabledChange: a } = t, s = e.orientation === "horizontal";
107
- return c.useEffect(() => (s ? n(!0) : a(!0), () => {
108
- s ? n(!1) : a(!1);
109
- }), [s, n, a]), t.type === "hover" ? /* @__PURE__ */ f(be, { ...l, ref: o, forceMount: r }) : t.type === "scroll" ? /* @__PURE__ */ f(Se, { ...l, ref: o, forceMount: r }) : t.type === "auto" ? /* @__PURE__ */ f(Z, { ...l, ref: o, forceMount: r }) : t.type === "always" ? /* @__PURE__ */ f(B, { ...l, ref: o }) : null;
110
- }
111
- );
112
- Q.displayName = g;
113
- var be = c.forwardRef((e, o) => {
114
- const { forceMount: r, ...l } = e, t = m(g, e.__scopeScrollArea), [n, a] = c.useState(!1);
115
- return c.useEffect(() => {
116
- const s = t.scrollArea;
117
- let i = 0;
118
- if (s) {
119
- const h = () => {
120
- window.clearTimeout(i), a(!0);
121
- }, d = () => {
122
- i = window.setTimeout(() => a(!1), t.scrollHideDelay);
123
- };
124
- return s.addEventListener("pointerenter", h), s.addEventListener("pointerleave", d), () => {
125
- window.clearTimeout(i), s.removeEventListener("pointerenter", h), s.removeEventListener("pointerleave", d);
126
- };
127
- }
128
- }, [t.scrollArea, t.scrollHideDelay]), /* @__PURE__ */ f(I, { present: r || n, children: /* @__PURE__ */ f(
129
- Z,
130
- {
131
- "data-state": n ? "visible" : "hidden",
132
- ...l,
133
- ref: o
134
- }
135
- ) });
136
- }), Se = c.forwardRef((e, o) => {
137
- const { forceMount: r, ...l } = e, t = m(g, e.__scopeScrollArea), n = e.orientation === "horizontal", a = X(() => i("SCROLL_END"), 100), [s, i] = he("hidden", {
138
- hidden: {
139
- SCROLL: "scrolling"
140
- },
141
- scrolling: {
142
- SCROLL_END: "idle",
143
- POINTER_ENTER: "interacting"
144
- },
145
- interacting: {
146
- SCROLL: "interacting",
147
- POINTER_LEAVE: "idle"
148
- },
149
- idle: {
150
- HIDE: "hidden",
151
- SCROLL: "scrolling",
152
- POINTER_ENTER: "interacting"
153
- }
154
- });
155
- return c.useEffect(() => {
156
- if (s === "idle") {
157
- const h = window.setTimeout(() => i("HIDE"), t.scrollHideDelay);
158
- return () => window.clearTimeout(h);
159
- }
160
- }, [s, t.scrollHideDelay, i]), c.useEffect(() => {
161
- const h = t.viewport, d = n ? "scrollLeft" : "scrollTop";
162
- if (h) {
163
- let b = h[d];
164
- const u = () => {
165
- const S = h[d];
166
- b !== S && (i("SCROLL"), a()), b = S;
167
- };
168
- return h.addEventListener("scroll", u), () => h.removeEventListener("scroll", u);
169
- }
170
- }, [t.viewport, n, i, a]), /* @__PURE__ */ f(I, { present: r || s !== "hidden", children: /* @__PURE__ */ f(
171
- B,
172
- {
173
- "data-state": s === "hidden" ? "hidden" : "visible",
174
- ...l,
175
- ref: o,
176
- onPointerEnter: R(e.onPointerEnter, () => i("POINTER_ENTER")),
177
- onPointerLeave: R(e.onPointerLeave, () => i("POINTER_LEAVE"))
178
- }
179
- ) });
180
- }), Z = c.forwardRef((e, o) => {
181
- const r = m(g, e.__scopeScrollArea), { forceMount: l, ...t } = e, [n, a] = c.useState(!1), s = e.orientation === "horizontal", i = X(() => {
182
- if (r.viewport) {
183
- const h = r.viewport.offsetWidth < r.viewport.scrollWidth, d = r.viewport.offsetHeight < r.viewport.scrollHeight;
184
- a(s ? h : d);
185
- }
186
- }, 10);
187
- return T(r.viewport, i), T(r.content, i), /* @__PURE__ */ f(I, { present: l || n, children: /* @__PURE__ */ f(
188
- B,
189
- {
190
- "data-state": n ? "visible" : "hidden",
191
- ...t,
192
- ref: o
193
- }
194
- ) });
195
- }), B = c.forwardRef((e, o) => {
196
- const { orientation: r = "vertical", ...l } = e, t = m(g, e.__scopeScrollArea), n = c.useRef(null), a = c.useRef(0), [s, i] = c.useState({
197
- content: 0,
198
- viewport: 0,
199
- scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
200
- }), h = ne(s.viewport, s.content), d = {
201
- ...l,
202
- sizes: s,
203
- onSizesChange: i,
204
- hasThumb: h > 0 && h < 1,
205
- onThumbChange: (u) => n.current = u,
206
- onThumbPointerUp: () => a.current = 0,
207
- onThumbPointerDown: (u) => a.current = u
208
- };
209
- function b(u, S) {
210
- return Pe(u, a.current, s, S);
211
- }
212
- return r === "horizontal" ? /* @__PURE__ */ f(
213
- ve,
214
- {
215
- ...d,
216
- ref: o,
217
- onThumbPositionChange: () => {
218
- if (t.viewport && n.current) {
219
- const u = t.viewport.scrollLeft, S = F(u, s, t.dir);
220
- n.current.style.transform = `translate3d(${S}px, 0, 0)`;
221
- }
222
- },
223
- onWheelScroll: (u) => {
224
- t.viewport && (t.viewport.scrollLeft = u);
225
- },
226
- onDragScroll: (u) => {
227
- t.viewport && (t.viewport.scrollLeft = b(u, t.dir));
228
- }
229
- }
230
- ) : r === "vertical" ? /* @__PURE__ */ f(
231
- me,
232
- {
233
- ...d,
234
- ref: o,
235
- onThumbPositionChange: () => {
236
- if (t.viewport && n.current) {
237
- const u = t.viewport.scrollTop, S = F(u, s);
238
- n.current.style.transform = `translate3d(0, ${S}px, 0)`;
239
- }
240
- },
241
- onWheelScroll: (u) => {
242
- t.viewport && (t.viewport.scrollTop = u);
243
- },
244
- onDragScroll: (u) => {
245
- t.viewport && (t.viewport.scrollTop = b(u));
246
- }
247
- }
248
- ) : null;
249
- }), ve = c.forwardRef((e, o) => {
250
- const { sizes: r, onSizesChange: l, ...t } = e, n = m(g, e.__scopeScrollArea), [a, s] = c.useState(), i = c.useRef(null), h = A(o, i, n.onScrollbarXChange);
251
- return c.useEffect(() => {
252
- i.current && s(getComputedStyle(i.current));
253
- }, [i]), /* @__PURE__ */ f(
254
- re,
255
- {
256
- "data-orientation": "horizontal",
257
- ...t,
258
- ref: h,
259
- sizes: r,
260
- style: {
261
- bottom: 0,
262
- left: n.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
263
- right: n.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
264
- "--radix-scroll-area-thumb-width": M(r) + "px",
265
- ...e.style
266
- },
267
- onThumbPointerDown: (d) => e.onThumbPointerDown(d.x),
268
- onDragScroll: (d) => e.onDragScroll(d.x),
269
- onWheelScroll: (d, b) => {
270
- if (n.viewport) {
271
- const u = n.viewport.scrollLeft + d.deltaX;
272
- e.onWheelScroll(u), ce(u, b) && d.preventDefault();
273
- }
274
- },
275
- onResize: () => {
276
- i.current && n.viewport && a && l({
277
- content: n.viewport.scrollWidth,
278
- viewport: n.viewport.offsetWidth,
279
- scrollbar: {
280
- size: i.current.clientWidth,
281
- paddingStart: O(a.paddingLeft),
282
- paddingEnd: O(a.paddingRight)
283
- }
284
- });
285
- }
286
- }
287
- );
288
- }), me = c.forwardRef((e, o) => {
289
- const { sizes: r, onSizesChange: l, ...t } = e, n = m(g, e.__scopeScrollArea), [a, s] = c.useState(), i = c.useRef(null), h = A(o, i, n.onScrollbarYChange);
290
- return c.useEffect(() => {
291
- i.current && s(getComputedStyle(i.current));
292
- }, [i]), /* @__PURE__ */ f(
293
- re,
294
- {
295
- "data-orientation": "vertical",
296
- ...t,
297
- ref: h,
298
- sizes: r,
299
- style: {
300
- top: 0,
301
- right: n.dir === "ltr" ? 0 : void 0,
302
- left: n.dir === "rtl" ? 0 : void 0,
303
- bottom: "var(--radix-scroll-area-corner-height)",
304
- "--radix-scroll-area-thumb-height": M(r) + "px",
305
- ...e.style
306
- },
307
- onThumbPointerDown: (d) => e.onThumbPointerDown(d.y),
308
- onDragScroll: (d) => e.onDragScroll(d.y),
309
- onWheelScroll: (d, b) => {
310
- if (n.viewport) {
311
- const u = n.viewport.scrollTop + d.deltaY;
312
- e.onWheelScroll(u), ce(u, b) && d.preventDefault();
313
- }
314
- },
315
- onResize: () => {
316
- i.current && n.viewport && a && l({
317
- content: n.viewport.scrollHeight,
318
- viewport: n.viewport.offsetHeight,
319
- scrollbar: {
320
- size: i.current.clientHeight,
321
- paddingStart: O(a.paddingTop),
322
- paddingEnd: O(a.paddingBottom)
323
- }
324
- });
325
- }
326
- }
327
- );
328
- }), [pe, ee] = q(g), re = c.forwardRef((e, o) => {
329
- const {
330
- __scopeScrollArea: r,
331
- sizes: l,
332
- hasThumb: t,
333
- onThumbChange: n,
334
- onThumbPointerUp: a,
335
- onThumbPointerDown: s,
336
- onThumbPositionChange: i,
337
- onDragScroll: h,
338
- onWheelScroll: d,
339
- onResize: b,
340
- ...u
341
- } = e, S = m(g, r), [w, x] = c.useState(null), Y = A(o, (v) => x(v)), P = c.useRef(null), _ = c.useRef(""), U = S.viewport, D = l.content - l.viewport, N = C(d), y = C(i), W = X(b, 10);
342
- function H(v) {
343
- if (P.current) {
344
- const p = v.clientX - P.current.left, E = v.clientY - P.current.top;
345
- h({ x: p, y: E });
346
- }
347
- }
348
- return c.useEffect(() => {
349
- const v = (p) => {
350
- const E = p.target;
351
- w?.contains(E) && N(p, D);
352
- };
353
- return document.addEventListener("wheel", v, { passive: !1 }), () => document.removeEventListener("wheel", v, { passive: !1 });
354
- }, [U, w, D, N]), c.useEffect(y, [l, y]), T(w, W), T(S.content, W), /* @__PURE__ */ f(
355
- pe,
356
- {
357
- scope: r,
358
- scrollbar: w,
359
- hasThumb: t,
360
- onThumbChange: C(n),
361
- onThumbPointerUp: C(a),
362
- onThumbPositionChange: y,
363
- onThumbPointerDown: C(s),
364
- children: /* @__PURE__ */ f(
365
- L.div,
366
- {
367
- ...u,
368
- ref: Y,
369
- style: { position: "absolute", ...u.style },
370
- onPointerDown: R(e.onPointerDown, (v) => {
371
- v.button === 0 && (v.target.setPointerCapture(v.pointerId), P.current = w.getBoundingClientRect(), _.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", S.viewport && (S.viewport.style.scrollBehavior = "auto"), H(v));
372
- }),
373
- onPointerMove: R(e.onPointerMove, H),
374
- onPointerUp: R(e.onPointerUp, (v) => {
375
- const p = v.target;
376
- p.hasPointerCapture(v.pointerId) && p.releasePointerCapture(v.pointerId), document.body.style.webkitUserSelect = _.current, S.viewport && (S.viewport.style.scrollBehavior = ""), P.current = null;
377
- })
378
- }
379
- )
380
- }
381
- );
382
- }), z = "ScrollAreaThumb", oe = c.forwardRef(
383
- (e, o) => {
384
- const { forceMount: r, ...l } = e, t = ee(z, e.__scopeScrollArea);
385
- return /* @__PURE__ */ f(I, { present: r || t.hasThumb, children: /* @__PURE__ */ f(we, { ref: o, ...l }) });
386
- }
387
- ), we = c.forwardRef(
388
- (e, o) => {
389
- const { __scopeScrollArea: r, style: l, ...t } = e, n = m(z, r), a = ee(z, r), { onThumbPositionChange: s } = a, i = A(
390
- o,
391
- (b) => a.onThumbChange(b)
392
- ), h = c.useRef(void 0), d = X(() => {
393
- h.current && (h.current(), h.current = void 0);
394
- }, 100);
395
- return c.useEffect(() => {
396
- const b = n.viewport;
397
- if (b) {
398
- const u = () => {
399
- if (d(), !h.current) {
400
- const S = Ce(b, s);
401
- h.current = S, s();
402
- }
403
- };
404
- return s(), b.addEventListener("scroll", u), () => b.removeEventListener("scroll", u);
405
- }
406
- }, [n.viewport, d, s]), /* @__PURE__ */ f(
407
- L.div,
408
- {
409
- "data-state": a.hasThumb ? "visible" : "hidden",
410
- ...t,
411
- ref: i,
412
- style: {
413
- width: "var(--radix-scroll-area-thumb-width)",
414
- height: "var(--radix-scroll-area-thumb-height)",
415
- ...l
416
- },
417
- onPointerDownCapture: R(e.onPointerDownCapture, (b) => {
418
- const S = b.target.getBoundingClientRect(), w = b.clientX - S.left, x = b.clientY - S.top;
419
- a.onThumbPointerDown({ x: w, y: x });
420
- }),
421
- onPointerUp: R(e.onPointerUp, a.onThumbPointerUp)
422
- }
423
- );
424
- }
425
- );
426
- oe.displayName = z;
427
- var k = "ScrollAreaCorner", te = c.forwardRef(
428
- (e, o) => {
429
- const r = m(k, e.__scopeScrollArea), l = !!(r.scrollbarX && r.scrollbarY);
430
- return r.type !== "scroll" && l ? /* @__PURE__ */ f(ge, { ...e, ref: o }) : null;
431
- }
432
- );
433
- te.displayName = k;
434
- var ge = c.forwardRef((e, o) => {
435
- const { __scopeScrollArea: r, ...l } = e, t = m(k, r), [n, a] = c.useState(0), [s, i] = c.useState(0), h = !!(n && s);
436
- return T(t.scrollbarX, () => {
437
- const d = t.scrollbarX?.offsetHeight || 0;
438
- t.onCornerHeightChange(d), i(d);
439
- }), T(t.scrollbarY, () => {
440
- const d = t.scrollbarY?.offsetWidth || 0;
441
- t.onCornerWidthChange(d), a(d);
442
- }), h ? /* @__PURE__ */ f(
443
- L.div,
444
- {
445
- ...l,
446
- ref: o,
447
- style: {
448
- width: n,
449
- height: s,
450
- position: "absolute",
451
- right: t.dir === "ltr" ? 0 : void 0,
452
- left: t.dir === "rtl" ? 0 : void 0,
453
- bottom: 0,
454
- ...e.style
455
- }
456
- }
457
- ) : null;
458
- });
459
- function O(e) {
460
- return e ? parseInt(e, 10) : 0;
461
- }
462
- function ne(e, o) {
463
- const r = e / o;
464
- return isNaN(r) ? 0 : r;
465
- }
466
- function M(e) {
467
- const o = ne(e.viewport, e.content), r = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, l = (e.scrollbar.size - r) * o;
468
- return Math.max(l, 18);
469
- }
470
- function Pe(e, o, r, l = "ltr") {
471
- const t = M(r), n = t / 2, a = o || n, s = t - a, i = r.scrollbar.paddingStart + a, h = r.scrollbar.size - r.scrollbar.paddingEnd - s, d = r.content - r.viewport, b = l === "ltr" ? [0, d] : [d * -1, 0];
472
- return le([i, h], b)(e);
473
- }
474
- function F(e, o, r = "ltr") {
475
- const l = M(o), t = o.scrollbar.paddingStart + o.scrollbar.paddingEnd, n = o.scrollbar.size - t, a = o.content - o.viewport, s = n - l, i = r === "ltr" ? [0, a] : [a * -1, 0], h = ue(e, i);
476
- return le([0, a], [0, s])(h);
477
- }
478
- function le(e, o) {
479
- return (r) => {
480
- if (e[0] === e[1] || o[0] === o[1]) return o[0];
481
- const l = (o[1] - o[0]) / (e[1] - e[0]);
482
- return o[0] + l * (r - e[0]);
483
- };
484
- }
485
- function ce(e, o) {
486
- return e > 0 && e < o;
487
- }
488
- var Ce = (e, o = () => {
489
- }) => {
490
- let r = { left: e.scrollLeft, top: e.scrollTop }, l = 0;
491
- return (function t() {
492
- const n = { left: e.scrollLeft, top: e.scrollTop }, a = r.left !== n.left, s = r.top !== n.top;
493
- (a || s) && o(), r = n, l = window.requestAnimationFrame(t);
494
- })(), () => window.cancelAnimationFrame(l);
495
- };
496
- function X(e, o) {
497
- const r = C(e), l = c.useRef(0);
498
- return c.useEffect(() => () => window.clearTimeout(l.current), []), c.useCallback(() => {
499
- window.clearTimeout(l.current), l.current = window.setTimeout(r, o);
500
- }, [r, o]);
501
- }
502
- function T(e, o) {
503
- const r = C(o);
504
- de(() => {
505
- let l = 0;
506
- if (e) {
507
- const t = new ResizeObserver(() => {
508
- cancelAnimationFrame(l), l = window.requestAnimationFrame(r);
509
- });
510
- return t.observe(e), () => {
511
- window.cancelAnimationFrame(l), t.unobserve(e);
512
- };
513
- }
514
- }, [e, r]);
515
- }
516
- var Re = G, Ee = K, Te = Q, Ae = oe, xe = te;
517
- function We({
518
- className: e,
519
- children: o,
520
- ...r
521
- }) {
522
- return /* @__PURE__ */ $(
523
- Re,
524
- {
525
- "data-slot": "scroll-area",
526
- className: j("relative", e),
527
- ...r,
528
- children: [
529
- /* @__PURE__ */ f(
530
- Ee,
531
- {
532
- "data-slot": "scroll-area-viewport",
533
- className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
534
- children: o
535
- }
536
- ),
537
- /* @__PURE__ */ f(ye, {}),
538
- /* @__PURE__ */ f(xe, {})
539
- ]
540
- }
541
- );
542
- }
543
- function ye({
544
- className: e,
545
- orientation: o = "vertical",
546
- ...r
547
- }) {
548
- return /* @__PURE__ */ f(
549
- Te,
550
- {
551
- "data-slot": "scroll-area-scrollbar",
552
- orientation: o,
553
- className: j(
554
- "flex touch-none p-px transition-colors select-none",
555
- o === "vertical" && "h-full w-2.5 border-l border-l-transparent",
556
- o === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
557
- e
558
- ),
559
- ...r,
560
- children: /* @__PURE__ */ f(
561
- Ae,
562
- {
563
- "data-slot": "scroll-area-thumb",
564
- className: "bg-border relative flex-1 rounded-full"
565
- }
566
- )
567
- }
568
- );
569
- }
570
- export {
571
- We as S,
572
- ye as a
573
- };
@@ -1 +0,0 @@
1
- "use strict";const h=require("react/jsx-runtime"),te=require("react"),b=require("./EzErrorBoundary-CEdz_hDo.cjs"),Y=require("./useInitCoreServices-CwXv2p4S.cjs");function ne(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const s=ne(te);function le(e,[o,r]){return Math.min(r,Math.max(o,e))}function se(e,o){return s.useReducer((r,n)=>o[r][n]??r,e)}var I="ScrollArea",[B]=b.createContextScope(I),[ce,p]=B(I),U=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,type:n="hover",dir:t,scrollHideDelay:l=600,...c}=e,[a,i]=s.useState(null),[f,d]=s.useState(null),[v,u]=s.useState(null),[S,g]=s.useState(null),[E,z]=s.useState(null),[C,A]=s.useState(0),[W,y]=s.useState(0),[_,T]=s.useState(!1),[L,j]=s.useState(!1),m=b.useComposedRefs(o,x=>i(x)),w=b.useDirection(t);return h.jsx(ce,{scope:r,type:n,dir:w,scrollHideDelay:l,scrollArea:a,viewport:f,onViewportChange:d,content:v,onContentChange:u,scrollbarX:S,onScrollbarXChange:g,scrollbarXEnabled:_,onScrollbarXEnabledChange:T,scrollbarY:E,onScrollbarYChange:z,scrollbarYEnabled:L,onScrollbarYEnabledChange:j,onCornerWidthChange:A,onCornerHeightChange:y,children:h.jsx(b.Primitive.div,{dir:w,...c,ref:m,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":W+"px",...e.style}})})});U.displayName=I;var V="ScrollAreaViewport",F=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,children:n,nonce:t,...l}=e,c=p(V,r),a=s.useRef(null),i=b.useComposedRefs(o,a,c.onViewportChange);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),h.jsx(b.Primitive.div,{"data-radix-scroll-area-viewport":"",...l,ref:i,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:h.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});F.displayName=V;var P="ScrollAreaScrollbar",q=s.forwardRef((e,o)=>{const{forceMount:r,...n}=e,t=p(P,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=t,a=e.orientation==="horizontal";return s.useEffect(()=>(a?l(!0):c(!0),()=>{a?l(!1):c(!1)}),[a,l,c]),t.type==="hover"?h.jsx(ae,{...n,ref:o,forceMount:r}):t.type==="scroll"?h.jsx(ie,{...n,ref:o,forceMount:r}):t.type==="auto"?h.jsx($,{...n,ref:o,forceMount:r}):t.type==="always"?h.jsx(M,{...n,ref:o}):null});q.displayName=P;var ae=s.forwardRef((e,o)=>{const{forceMount:r,...n}=e,t=p(P,e.__scopeScrollArea),[l,c]=s.useState(!1);return s.useEffect(()=>{const a=t.scrollArea;let i=0;if(a){const f=()=>{window.clearTimeout(i),c(!0)},d=()=>{i=window.setTimeout(()=>c(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",f),a.addEventListener("pointerleave",d),()=>{window.clearTimeout(i),a.removeEventListener("pointerenter",f),a.removeEventListener("pointerleave",d)}}},[t.scrollArea,t.scrollHideDelay]),h.jsx(b.Presence,{present:r||l,children:h.jsx($,{"data-state":l?"visible":"hidden",...n,ref:o})})}),ie=s.forwardRef((e,o)=>{const{forceMount:r,...n}=e,t=p(P,e.__scopeScrollArea),l=e.orientation==="horizontal",c=O(()=>i("SCROLL_END"),100),[a,i]=se("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return s.useEffect(()=>{if(a==="idle"){const f=window.setTimeout(()=>i("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(f)}},[a,t.scrollHideDelay,i]),s.useEffect(()=>{const f=t.viewport,d=l?"scrollLeft":"scrollTop";if(f){let v=f[d];const u=()=>{const S=f[d];v!==S&&(i("SCROLL"),c()),v=S};return f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[t.viewport,l,i,c]),h.jsx(b.Presence,{present:r||a!=="hidden",children:h.jsx(M,{"data-state":a==="hidden"?"hidden":"visible",...n,ref:o,onPointerEnter:b.composeEventHandlers(e.onPointerEnter,()=>i("POINTER_ENTER")),onPointerLeave:b.composeEventHandlers(e.onPointerLeave,()=>i("POINTER_LEAVE"))})})}),$=s.forwardRef((e,o)=>{const r=p(P,e.__scopeScrollArea),{forceMount:n,...t}=e,[l,c]=s.useState(!1),a=e.orientation==="horizontal",i=O(()=>{if(r.viewport){const f=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;c(a?f:d)}},10);return R(r.viewport,i),R(r.content,i),h.jsx(b.Presence,{present:n||l,children:h.jsx(M,{"data-state":l?"visible":"hidden",...t,ref:o})})}),M=s.forwardRef((e,o)=>{const{orientation:r="vertical",...n}=e,t=p(P,e.__scopeScrollArea),l=s.useRef(null),c=s.useRef(0),[a,i]=s.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=Z(a.viewport,a.content),d={...n,sizes:a,onSizesChange:i,hasThumb:f>0&&f<1,onThumbChange:u=>l.current=u,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:u=>c.current=u};function v(u,S){return ve(u,c.current,a,S)}return r==="horizontal"?h.jsx(de,{...d,ref:o,onThumbPositionChange:()=>{if(t.viewport&&l.current){const u=t.viewport.scrollLeft,S=X(u,a,t.dir);l.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:u=>{t.viewport&&(t.viewport.scrollLeft=u)},onDragScroll:u=>{t.viewport&&(t.viewport.scrollLeft=v(u,t.dir))}}):r==="vertical"?h.jsx(ue,{...d,ref:o,onThumbPositionChange:()=>{if(t.viewport&&l.current){const u=t.viewport.scrollTop,S=X(u,a);l.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:u=>{t.viewport&&(t.viewport.scrollTop=u)},onDragScroll:u=>{t.viewport&&(t.viewport.scrollTop=v(u))}}):null}),de=s.forwardRef((e,o)=>{const{sizes:r,onSizesChange:n,...t}=e,l=p(P,e.__scopeScrollArea),[c,a]=s.useState(),i=s.useRef(null),f=b.useComposedRefs(o,i,l.onScrollbarXChange);return s.useEffect(()=>{i.current&&a(getComputedStyle(i.current))},[i]),h.jsx(J,{"data-orientation":"horizontal",...t,ref:f,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":N(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,v)=>{if(l.viewport){const u=l.viewport.scrollLeft+d.deltaX;e.onWheelScroll(u),re(u,v)&&d.preventDefault()}},onResize:()=>{i.current&&l.viewport&&c&&n({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:i.current.clientWidth,paddingStart:H(c.paddingLeft),paddingEnd:H(c.paddingRight)}})}})}),ue=s.forwardRef((e,o)=>{const{sizes:r,onSizesChange:n,...t}=e,l=p(P,e.__scopeScrollArea),[c,a]=s.useState(),i=s.useRef(null),f=b.useComposedRefs(o,i,l.onScrollbarYChange);return s.useEffect(()=>{i.current&&a(getComputedStyle(i.current))},[i]),h.jsx(J,{"data-orientation":"vertical",...t,ref:f,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":N(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,v)=>{if(l.viewport){const u=l.viewport.scrollTop+d.deltaY;e.onWheelScroll(u),re(u,v)&&d.preventDefault()}},onResize:()=>{i.current&&l.viewport&&c&&n({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:i.current.clientHeight,paddingStart:H(c.paddingTop),paddingEnd:H(c.paddingBottom)}})}})}),[fe,G]=B(P),J=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:t,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:a,onThumbPositionChange:i,onDragScroll:f,onWheelScroll:d,onResize:v,...u}=e,S=p(P,r),[g,E]=s.useState(null),z=b.useComposedRefs(o,m=>E(m)),C=s.useRef(null),A=s.useRef(""),W=S.viewport,y=n.content-n.viewport,_=b.useCallbackRef(d),T=b.useCallbackRef(i),L=O(v,10);function j(m){if(C.current){const w=m.clientX-C.current.left,x=m.clientY-C.current.top;f({x:w,y:x})}}return s.useEffect(()=>{const m=w=>{const x=w.target;g?.contains(x)&&_(w,y)};return document.addEventListener("wheel",m,{passive:!1}),()=>document.removeEventListener("wheel",m,{passive:!1})},[W,g,y,_]),s.useEffect(T,[n,T]),R(g,L),R(S.content,L),h.jsx(fe,{scope:r,scrollbar:g,hasThumb:t,onThumbChange:b.useCallbackRef(l),onThumbPointerUp:b.useCallbackRef(c),onThumbPositionChange:T,onThumbPointerDown:b.useCallbackRef(a),children:h.jsx(b.Primitive.div,{...u,ref:z,style:{position:"absolute",...u.style},onPointerDown:b.composeEventHandlers(e.onPointerDown,m=>{m.button===0&&(m.target.setPointerCapture(m.pointerId),C.current=g.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),j(m))}),onPointerMove:b.composeEventHandlers(e.onPointerMove,j),onPointerUp:b.composeEventHandlers(e.onPointerUp,m=>{const w=m.target;w.hasPointerCapture(m.pointerId)&&w.releasePointerCapture(m.pointerId),document.body.style.webkitUserSelect=A.current,S.viewport&&(S.viewport.style.scrollBehavior=""),C.current=null})})})}),D="ScrollAreaThumb",K=s.forwardRef((e,o)=>{const{forceMount:r,...n}=e,t=G(D,e.__scopeScrollArea);return h.jsx(b.Presence,{present:r||t.hasThumb,children:h.jsx(he,{ref:o,...n})})}),he=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,style:n,...t}=e,l=p(D,r),c=G(D,r),{onThumbPositionChange:a}=c,i=b.useComposedRefs(o,v=>c.onThumbChange(v)),f=s.useRef(void 0),d=O(()=>{f.current&&(f.current(),f.current=void 0)},100);return s.useEffect(()=>{const v=l.viewport;if(v){const u=()=>{if(d(),!f.current){const S=Se(v,a);f.current=S,a()}};return a(),v.addEventListener("scroll",u),()=>v.removeEventListener("scroll",u)}},[l.viewport,d,a]),h.jsx(b.Primitive.div,{"data-state":c.hasThumb?"visible":"hidden",...t,ref:i,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:b.composeEventHandlers(e.onPointerDownCapture,v=>{const S=v.target.getBoundingClientRect(),g=v.clientX-S.left,E=v.clientY-S.top;c.onThumbPointerDown({x:g,y:E})}),onPointerUp:b.composeEventHandlers(e.onPointerUp,c.onThumbPointerUp)})});K.displayName=D;var k="ScrollAreaCorner",Q=s.forwardRef((e,o)=>{const r=p(k,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?h.jsx(be,{...e,ref:o}):null});Q.displayName=k;var be=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,...n}=e,t=p(k,r),[l,c]=s.useState(0),[a,i]=s.useState(0),f=!!(l&&a);return R(t.scrollbarX,()=>{const d=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(d),i(d)}),R(t.scrollbarY,()=>{const d=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(d),c(d)}),f?h.jsx(b.Primitive.div,{...n,ref:o,style:{width:l,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function H(e){return e?parseInt(e,10):0}function Z(e,o){const r=e/o;return isNaN(r)?0:r}function N(e){const o=Z(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*o;return Math.max(n,18)}function ve(e,o,r,n="ltr"){const t=N(r),l=t/2,c=o||l,a=t-c,i=r.scrollbar.paddingStart+c,f=r.scrollbar.size-r.scrollbar.paddingEnd-a,d=r.content-r.viewport,v=n==="ltr"?[0,d]:[d*-1,0];return ee([i,f],v)(e)}function X(e,o,r="ltr"){const n=N(o),t=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,l=o.scrollbar.size-t,c=o.content-o.viewport,a=l-n,i=r==="ltr"?[0,c]:[c*-1,0],f=le(e,i);return ee([0,c],[0,a])(f)}function ee(e,o){return r=>{if(e[0]===e[1]||o[0]===o[1])return o[0];const n=(o[1]-o[0])/(e[1]-e[0]);return o[0]+n*(r-e[0])}}function re(e,o){return e>0&&e<o}var Se=(e,o=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function t(){const l={left:e.scrollLeft,top:e.scrollTop},c=r.left!==l.left,a=r.top!==l.top;(c||a)&&o(),r=l,n=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(n)};function O(e,o){const r=b.useCallbackRef(e),n=s.useRef(0);return s.useEffect(()=>()=>window.clearTimeout(n.current),[]),s.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,o)},[r,o])}function R(e,o){const r=b.useCallbackRef(o);b.useLayoutEffect2(()=>{let n=0;if(e){const t=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return t.observe(e),()=>{window.cancelAnimationFrame(n),t.unobserve(e)}}},[e,r])}var me=U,pe=F,we=q,ge=K,Pe=Q;function Ce({className:e,children:o,...r}){return h.jsxs(me,{"data-slot":"scroll-area",className:Y.cn("relative",e),...r,children:[h.jsx(pe,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:o}),h.jsx(oe,{}),h.jsx(Pe,{})]})}function oe({className:e,orientation:o="vertical",...r}){return h.jsx(we,{"data-slot":"scroll-area-scrollbar",orientation:o,className:Y.cn("flex touch-none p-px transition-colors select-none",o==="vertical"&&"h-full w-2.5 border-l border-l-transparent",o==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...r,children:h.jsx(ge,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}exports.ScrollArea=Ce;exports.ScrollBar=oe;
@@ -1 +0,0 @@
1
- "use strict";const x=require("./EzErrorBoundary-CEdz_hDo.cjs"),o=require("react/jsx-runtime"),g=require("react"),c=require("./popover-BJq1CKmi.cjs"),a=require("./useInitCoreServices-CwXv2p4S.cjs");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=m(g);const b=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],S=x.createLucideIcon("search",b),u=s.createContext(null),j=({value:e,onValueChange:t,children:n,open:r,onOpenChange:d})=>{const[i,p]=s.useState(!1),f=r!==void 0?r:i,l=d||p;return o.jsx(u.Provider,{value:{value:e,onValueChange:t,setOpen:l},children:o.jsx(c.DropdownMenu,{open:f,onOpenChange:l,children:n})})},h=({className:e,children:t})=>o.jsx(c.DropdownMenuTrigger,{asChild:!0,children:o.jsx("button",{className:a.cn("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),children:t})}),y=({placeholder:e,children:t})=>{const n=s.useContext(u);return o.jsx("span",{children:t||n?.value||e})},C=({children:e,className:t})=>o.jsx(c.DropdownMenuContent,{className:a.cn("max-h-[200px] overflow-y-auto",t),children:e}),w=({value:e,children:t})=>{const n=s.useContext(u);return o.jsx(c.DropdownMenuItem,{className:a.cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n?.value===e&&"font-bold"),onSelect:()=>{n?.onValueChange?.(e),n?.setOpen(!1)},children:t})};exports.Search=S;exports.Select=j;exports.SelectContent=C;exports.SelectItem=w;exports.SelectTrigger=h;exports.SelectValue=y;
@@ -1,35 +0,0 @@
1
- import { c as m } from "./EzErrorBoundary-D4NBadES.js";
2
- import { jsx as o } from "react/jsx-runtime";
3
- import * as s from "react";
4
- import { D as f, c as x, d as g, e as h } from "./popover-Cmlb7w3R.js";
5
- import { c as r } from "./useInitCoreServices-D1WaWlaI.js";
6
- const b = [
7
- ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
8
- ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
9
- ], v = m("search", b), c = s.createContext(null), j = ({ value: e, onValueChange: t, children: n, open: a, onOpenChange: d }) => {
10
- const [u, i] = s.useState(!1), p = a !== void 0 ? a : u, l = d || i;
11
- return /* @__PURE__ */ o(c.Provider, { value: { value: e, onValueChange: t, setOpen: l }, children: /* @__PURE__ */ o(f, { open: p, onOpenChange: l, children: n }) });
12
- }, D = ({ className: e, children: t }) => /* @__PURE__ */ o(x, { asChild: !0, children: /* @__PURE__ */ o("button", { className: r("flex h-9 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50", e), children: t }) }), O = ({ placeholder: e, children: t }) => {
13
- const n = s.useContext(c);
14
- return /* @__PURE__ */ o("span", { children: t || n?.value || e });
15
- }, M = ({ children: e, className: t }) => /* @__PURE__ */ o(g, { className: r("max-h-[200px] overflow-y-auto", t), children: e }), N = ({ value: e, children: t }) => {
16
- const n = s.useContext(c);
17
- return /* @__PURE__ */ o(
18
- h,
19
- {
20
- className: r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", n?.value === e && "font-bold"),
21
- onSelect: () => {
22
- n?.onValueChange?.(e), n?.setOpen(!1);
23
- },
24
- children: t
25
- }
26
- );
27
- };
28
- export {
29
- j as S,
30
- D as a,
31
- O as b,
32
- M as c,
33
- N as d,
34
- v as e
35
- };
@@ -1,31 +0,0 @@
1
- import { c } from "./EzErrorBoundary-D4NBadES.js";
2
- const e = [
3
- ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
4
- ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
5
- ], n = c("circle-check-big", e);
6
- const o = [
7
- ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
8
- ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
9
- ["path", { d: "M2 12h20", key: "9i4pu4" }]
10
- ], s = c("globe", o);
11
- const t = [
12
- ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
13
- ["path", { d: "M12 16v-4", key: "1dtifu" }],
14
- ["path", { d: "M12 8h.01", key: "e9boi3" }]
15
- ], y = c("info", t);
16
- const i = [
17
- [
18
- "path",
19
- {
20
- d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
21
- key: "1i5ecw"
22
- }
23
- ],
24
- ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
25
- ], d = c("settings", i);
26
- export {
27
- n as C,
28
- s as G,
29
- y as I,
30
- d as S
31
- };
@@ -1 +0,0 @@
1
- "use strict";const c=require("./EzErrorBoundary-CEdz_hDo.cjs");const e=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],o=c.createLucideIcon("circle-check-big",e);const t=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],i=c.createLucideIcon("globe",t);const n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],r=c.createLucideIcon("info",n);const d=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],a=c.createLucideIcon("settings",d);exports.CircleCheckBig=o;exports.Globe=i;exports.Info=r;exports.Settings=a;