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,419 +0,0 @@
1
- import { jsx as nt, jsxs as St } from "react/jsx-runtime";
2
- import dt, { useState as et, useRef as yt, useCallback as Pt, useMemo as it } from "react";
3
- import { u as Et, a as wt, b as xt, c as kt } from "./useInitCoreServices-D1WaWlaI.js";
4
- import { u as Ct } from "./useServiceState-VE-viK8b.js";
5
- import { u as Mt } from "./useImperativeAPI-DXmCQvPL.js";
6
- function Rt(t) {
7
- return [-t[0], -t[1]];
8
- }
9
- function U(t, e) {
10
- return [t[0] + e[0], t[1] + e[1]];
11
- }
12
- function R(t, e) {
13
- return [t[0] - e[0], t[1] - e[1]];
14
- }
15
- function D(t, e) {
16
- return [t[0] * e, t[1] * e];
17
- }
18
- function It(t, e) {
19
- return [t[0] / e, t[1] / e];
20
- }
21
- function B(t) {
22
- return [t[1], -t[0]];
23
- }
24
- function at(t, e) {
25
- return t[0] * e[0] + t[1] * e[1];
26
- }
27
- function ut(t, e) {
28
- return t[0] === e[0] && t[1] === e[1];
29
- }
30
- function bt(t) {
31
- return Math.hypot(t[0], t[1]);
32
- }
33
- function Lt(t) {
34
- return t[0] * t[0] + t[1] * t[1];
35
- }
36
- function lt(t, e) {
37
- return Lt(R(t, e));
38
- }
39
- function ct(t) {
40
- return It(t, bt(t));
41
- }
42
- function ft(t, e) {
43
- return Math.hypot(t[1] - e[1], t[0] - e[0]);
44
- }
45
- function A(t, e, o) {
46
- const m = Math.sin(o), v = Math.cos(o), g = t[0] - e[0], s = t[1] - e[1], h = g * v - s * m, S = g * m + s * v;
47
- return [h + e[0], S + e[1]];
48
- }
49
- function rt(t, e, o) {
50
- return U(t, D(R(e, t), o));
51
- }
52
- function ht(t, e, o) {
53
- return U(t, D(e, o));
54
- }
55
- function pt(t, e, o, m = (v) => v) {
56
- return t * m(0.5 - e * (0.5 - o));
57
- }
58
- function Nt(t, e = {}) {
59
- const { streamline: o = 0.5, size: m = 16, last: v = !1 } = e;
60
- if (t.length === 0) return [];
61
- const g = 0.15 + (1 - o) * 0.85;
62
- let s = Array.isArray(t[0]) ? t : t.map(({ x: u, y: E, pressure: I = 0.5 }) => [u, E, I]);
63
- if (s.length === 2) {
64
- const u = s[1];
65
- s = s.slice(0, -1);
66
- for (let E = 1; E < 5; E++)
67
- s.push(rt(s[0], u, E / 4));
68
- }
69
- s.length === 1 && (s = [...s, [...U(s[0], [1, 1]), ...s[0].slice(2)]]);
70
- const h = [
71
- {
72
- point: [s[0][0], s[0][1]],
73
- pressure: s[0][2] >= 0 ? s[0][2] : 0.25,
74
- vector: [1, 1],
75
- distance: 0,
76
- runningLength: 0
77
- }
78
- ];
79
- let S = !1, F = 0, w = h[0];
80
- const j = s.length - 1;
81
- for (let u = 1; u < s.length; u++) {
82
- const E = v && u === j ? (
83
- // If we're at the last point, and `options.last` is true,
84
- // then add the actual input point.
85
- s[u].slice(0, 2)
86
- ) : (
87
- // Otherwise, using the t calculated from the streamline
88
- // option, interpolate a new point between the previous
89
- // point the current point.
90
- rt(w.point, s[u], g)
91
- );
92
- if (ut(w.point, E)) continue;
93
- const I = ft(E, w.point);
94
- if (F += I, u < j && !S) {
95
- if (F < m) continue;
96
- S = !0;
97
- let p = h[h.length - 1], x = p.runningLength;
98
- for (let O = 1; O <= u; O++) {
99
- const k = s[O], C = rt(p.point, k, g);
100
- if (ut(p.point, C)) continue;
101
- const J = ft(C, p.point);
102
- x += J, p = {
103
- point: C,
104
- pressure: k[2] >= 0 ? k[2] : 0.5,
105
- vector: ct(R(p.point, C)),
106
- distance: J,
107
- runningLength: x
108
- }, h.push(p);
109
- }
110
- w = p, F = x;
111
- continue;
112
- }
113
- w = {
114
- // The adjusted point
115
- point: E,
116
- // The input pressure (or .5 if not specified)
117
- pressure: s[u][2] >= 0 ? s[u][2] : 0.5,
118
- // The vector from the current point to the previous point
119
- vector: ct(R(w.point, E)),
120
- // The distance between the current point and the previous point
121
- distance: I,
122
- // The total distance so far
123
- runningLength: F
124
- }, h.push(w);
125
- }
126
- return h[0].vector = h[1]?.vector || [0, 0], h;
127
- }
128
- const { min: G, PI: zt } = Math, gt = 0.275, tt = zt + 1e-4;
129
- function Dt(t, e = {}) {
130
- const {
131
- size: o = 16,
132
- smoothing: m = 0.5,
133
- thinning: v = 0.5,
134
- simulatePressure: g = !0,
135
- easing: s = (n) => n,
136
- start: h = {},
137
- end: S = {},
138
- last: F = !1
139
- } = e, { cap: w = !0, easing: j = (n) => n * (2 - n) } = h, { cap: u = !0, easing: E = (n) => --n * n * n + 1 } = S;
140
- if (t.length === 0 || o <= 0)
141
- return [];
142
- const I = t[t.length - 1].runningLength, p = h.taper === !1 ? 0 : h.taper === !0 ? Math.max(o, I) : h.taper, x = S.taper === !1 ? 0 : S.taper === !0 ? Math.max(o, I) : S.taper, O = Math.pow(o * m, 2), k = [], C = [];
143
- let J = t.slice(0, 10).reduce((n, f) => {
144
- let i = f.pressure;
145
- if (g) {
146
- const c = G(1, f.distance / o), $ = G(1, 1 - c);
147
- i = G(1, n + ($ - n) * (c * gt));
148
- }
149
- return (n + i) / 2;
150
- }, t[0].pressure), d = pt(
151
- o,
152
- v,
153
- t[t.length - 1].pressure,
154
- s
155
- ), Q, b = t[0].vector, _ = t[0].point, L = _, y = _, P = L, Z = !1;
156
- for (let n = 0; n < t.length; n++) {
157
- let { pressure: f } = t[n];
158
- const { point: i, vector: c, distance: $, runningLength: V } = t[n];
159
- if (n < t.length - 1 && I - V < 3)
160
- continue;
161
- if (v) {
162
- if (g) {
163
- const H = G(1, $ / o), q = G(1, 1 - H);
164
- f = G(
165
- 1,
166
- J + (q - J) * (H * gt)
167
- );
168
- }
169
- d = pt(o, v, f, s);
170
- } else
171
- d = o / 2;
172
- Q === void 0 && (Q = d);
173
- const st = V < p ? j(V / p) : 1, ot = I - V < x ? E((I - V) / x) : 1;
174
- d = Math.max(0.01, d * Math.min(st, ot));
175
- const r = (n < t.length - 1 ? t[n + 1] : t[n]).vector, a = n < t.length - 1 ? at(c, r) : 1, Y = at(c, b) < 0 && !Z, W = a !== null && a < 0;
176
- if (Y || W) {
177
- const H = D(B(b), d);
178
- for (let q = 1 / 13, z = 0; z <= 1; z += q)
179
- y = A(R(i, H), i, tt * z), k.push(y), P = A(U(i, H), i, tt * -z), C.push(P);
180
- _ = y, L = P, W && (Z = !0);
181
- continue;
182
- }
183
- if (Z = !1, n === t.length - 1) {
184
- const H = D(B(c), d);
185
- k.push(R(i, H)), C.push(U(i, H));
186
- continue;
187
- }
188
- const K = D(B(rt(r, c, a)), d);
189
- y = R(i, K), (n <= 1 || lt(_, y) > O) && (k.push(y), _ = y), P = U(i, K), (n <= 1 || lt(L, P) > O) && (C.push(P), L = P), J = f, b = c;
190
- }
191
- const l = t[0].point.slice(0, 2), M = t.length > 1 ? t[t.length - 1].point.slice(0, 2) : U(t[0].point, [1, 1]), T = [], X = [];
192
- if (t.length === 1) {
193
- if (!(p || x) || F) {
194
- const n = ht(
195
- l,
196
- ct(B(R(l, M))),
197
- -(Q || d)
198
- ), f = [];
199
- for (let i = 1 / 13, c = i; c <= 1; c += i)
200
- f.push(A(n, l, tt * 2 * c));
201
- return f;
202
- }
203
- } else {
204
- if (!(p || x && t.length === 1)) if (w)
205
- for (let f = 1 / 13, i = f; i <= 1; i += f) {
206
- const c = A(C[0], l, tt * i);
207
- T.push(c);
208
- }
209
- else {
210
- const f = R(k[0], C[0]), i = D(f, 0.5), c = D(f, 0.51);
211
- T.push(
212
- R(l, i),
213
- R(l, c),
214
- U(l, c),
215
- U(l, i)
216
- );
217
- }
218
- const n = B(Rt(t[t.length - 1].vector));
219
- if (x || p && t.length === 1)
220
- X.push(M);
221
- else if (u) {
222
- const f = ht(M, n, d);
223
- for (let i = 1 / 29, c = i; c < 1; c += i)
224
- X.push(A(f, M, tt * 3 * c));
225
- } else
226
- X.push(
227
- U(M, D(n, d)),
228
- U(M, D(n, d * 0.99)),
229
- R(M, D(n, d * 0.99)),
230
- R(M, D(n, d))
231
- );
232
- }
233
- return k.concat(X, C.reverse(), T);
234
- }
235
- function mt(t, e = {}) {
236
- return Dt(Nt(t, e), e);
237
- }
238
- function vt(t) {
239
- if (!t.length) return "";
240
- const e = t.reduce(
241
- (o, [m, v], g, s) => {
242
- const [h, S] = s[(g + 1) % s.length];
243
- return o.push(m, v, (m + h) / 2, (v + S) / 2), o;
244
- },
245
- ["M", ...t[0], "Q"]
246
- );
247
- return e.push("Z"), e.join(" ");
248
- }
249
- const Ut = dt.memo(({ stroke: t, options: e, color: o }) => {
250
- const m = mt(t, e);
251
- return /* @__PURE__ */ nt("path", { d: vt(m), fill: o });
252
- }), Ft = dt.forwardRef((t, e) => {
253
- const o = Et(), {
254
- width: m = "100%",
255
- height: v = 300,
256
- backgroundColor: g = "transparent",
257
- strokeColor: s,
258
- minStrokeWidth: h = 2.5,
259
- maxStrokeWidth: S = 5,
260
- smoothing: F = 0.5,
261
- thinning: w = 0,
262
- // No thinning by default (consistent width)
263
- readOnly: j = !1,
264
- disabled: u = !1,
265
- className: E,
266
- style: I,
267
- onEnd: p,
268
- onChange: x,
269
- onSave: O,
270
- dir: k,
271
- ...C
272
- } = t, d = Ct("I18nService")?.dir || "ltr", Q = k === "auto" || !k ? d : k;
273
- wt(t), xt();
274
- const [b, _] = et([]), [L, y] = et([]), [P, Z] = et([]), [l, M] = et(-1), T = yt(null), X = s || "#0321ab", n = Pt((r) => {
275
- const a = P.slice(0, l + 1);
276
- a.push(r), Z(a), M(a.length - 1), x && x(r.map((N) => JSON.stringify(N)));
277
- }, [P, l, x]), f = (r) => {
278
- if (j || u) return;
279
- r.currentTarget.setPointerCapture(r.pointerId);
280
- const a = [r.nativeEvent.offsetX, r.nativeEvent.offsetY, r.pressure];
281
- _([a]);
282
- }, i = (r) => {
283
- if (j || u || r.buttons !== 1) return;
284
- const a = [r.nativeEvent.offsetX, r.nativeEvent.offsetY, r.pressure];
285
- _((N) => [...N, a]);
286
- }, c = (r) => {
287
- if (!(j || u) && b.length > 0) {
288
- const a = [...L, b];
289
- y(a), n(a), _([]), p && p(r);
290
- }
291
- }, $ = it(() => ({
292
- clear: () => {
293
- y([]), _([]), n([]), o.get("NotificationService")?.show({
294
- type: "info",
295
- message: "Signature Cleared",
296
- duration: 2e3
297
- });
298
- },
299
- undo: () => {
300
- if (l > 0) {
301
- const r = l - 1;
302
- M(r), y(P[r]);
303
- } else l === 0 && (M(-1), y([]));
304
- },
305
- redo: () => {
306
- if (l < P.length - 1) {
307
- const r = l + 1;
308
- M(r), y(P[r]);
309
- }
310
- },
311
- canUndo: () => l >= 0,
312
- canRedo: () => l < P.length - 1,
313
- isEmpty: () => L.length === 0 && b.length === 0,
314
- getSignature: () => L,
315
- load: (r) => {
316
- if (typeof r == "string") {
317
- try {
318
- const a = JSON.parse(r);
319
- Array.isArray(a) && (y(a), n(a));
320
- } catch (a) {
321
- console.error("Failed to parse signature data", a);
322
- }
323
- return;
324
- }
325
- Array.isArray(r) && (y(r), n(r));
326
- },
327
- save: async (r = "png") => {
328
- if (!T.current) return "";
329
- const a = new XMLSerializer().serializeToString(T.current), N = document.createElement("canvas"), Y = N.getContext("2d"), W = new Image(), K = T.current.getBoundingClientRect();
330
- return N.width = K.width, N.height = K.height, new Promise((H, q) => {
331
- W.onload = () => {
332
- if (Y) {
333
- g && g !== "transparent" && (Y.fillStyle = g, Y.fillRect(0, 0, N.width, N.height)), Y.drawImage(W, 0, 0);
334
- const z = N.toDataURL(`image/${r}`);
335
- O && O(z, r), o.get("NotificationService")?.show({
336
- type: "success",
337
- message: "Signature Saved Successfully",
338
- duration: 3e3
339
- }), H(z);
340
- } else {
341
- const z = new Error("Canvas context not defined");
342
- o.get("NotificationService")?.show({
343
- type: "error",
344
- message: "Failed to Save Signature",
345
- duration: 3e3
346
- }), q(z);
347
- }
348
- }, W.onerror = (z) => {
349
- o.get("NotificationService")?.show({
350
- type: "error",
351
- message: "Failed to Process Signature Image",
352
- duration: 3e3
353
- }), q(z);
354
- }, W.src = "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(a)));
355
- });
356
- }
357
- }), [P, l, L, b, g, O, n]);
358
- Mt(e, $);
359
- const V = it(() => ({
360
- size: S,
361
- thinning: w,
362
- smoothing: F,
363
- start: { cap: !0, taper: !1 },
364
- end: { cap: !0, taper: 10 }
365
- // Subtle tapering for natural end without being "too thin"
366
- }), [S, w, F]), st = it(() => L.map((r, a) => /* @__PURE__ */ nt(
367
- Ut,
368
- {
369
- stroke: r,
370
- options: V,
371
- color: X
372
- },
373
- a
374
- )), [L, V, X]), ot = b.length > 0 && /* @__PURE__ */ nt(
375
- "path",
376
- {
377
- d: vt(mt(b, {
378
- size: S,
379
- thinning: w,
380
- smoothing: F,
381
- start: { cap: !0, taper: !1 },
382
- end: { cap: !0, taper: 10 },
383
- simulatePressure: b.length > 2
384
- // only simulate if we have some movement
385
- })),
386
- fill: X,
387
- opacity: 0.8
388
- }
389
- );
390
- return /* @__PURE__ */ nt(
391
- "div",
392
- {
393
- className: kt("ez-signature-container relative overflow-hidden select-none touch-none", E),
394
- style: { width: m, height: v, ...I },
395
- dir: Q,
396
- ...C,
397
- children: /* @__PURE__ */ St(
398
- "svg",
399
- {
400
- ref: T,
401
- className: "w-full h-full",
402
- style: { backgroundColor: g, touchAction: "none" },
403
- onPointerDown: f,
404
- onPointerMove: i,
405
- onPointerUp: c,
406
- onPointerLeave: c,
407
- children: [
408
- st,
409
- ot
410
- ]
411
- }
412
- )
413
- }
414
- );
415
- });
416
- Ft.displayName = "EzSignature";
417
- export {
418
- Ft as E
419
- };
@@ -1,63 +0,0 @@
1
- import { jsx as a, jsxs as s } from "react/jsx-runtime";
2
- import { useState as v, useEffect as y } from "react";
3
- import { B as h } from "./tooltip-BCtrEe0z.js";
4
- import { I as N } from "./input-jYQ5VKNR.js";
5
- import { L as k } from "./label-ClOW9UCt.js";
6
- const S = ({
7
- open: l,
8
- onClose: o,
9
- onSave: g,
10
- columns: d,
11
- initialData: i,
12
- isNew: r,
13
- onFormRender: c
14
- }) => {
15
- const [m, f] = v({});
16
- if (y(() => {
17
- l && (f(i || {}), c?.({
18
- form: { data: i || {}, columns: d },
19
- mode: r ? "Add" : "Edit"
20
- }));
21
- }, [l, i, d, r, c]), !l) return null;
22
- const u = () => {
23
- g(m), o();
24
- }, p = (e, t) => {
25
- f((n) => ({ ...n, [e]: t }));
26
- }, x = d.filter((e) => e.accessorKey && e.meta?.isEditable !== !1 && e.id !== "actions" && e.id !== "select");
27
- return /* @__PURE__ */ a("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm animate-in fade-in-0", children: /* @__PURE__ */ s(
28
- "div",
29
- {
30
- className: "bg-background w-full max-w-lg rounded-lg border shadow-lg p-6 space-y-6 animate-in zoom-in-95 slide-in-from-bottom-2",
31
- role: "dialog",
32
- "aria-modal": "true",
33
- children: [
34
- /* @__PURE__ */ s("div", { className: "flex flex-col space-y-1.5 text-center sm:text-left", children: [
35
- /* @__PURE__ */ a("h2", { className: "text-lg font-semibold leading-none tracking-tight", children: r ? "Add New Record" : "Edit Record" }),
36
- /* @__PURE__ */ a("p", { className: "text-sm text-muted-foreground", children: r ? "Enter details for the new record." : "Make changes to the record below." })
37
- ] }),
38
- /* @__PURE__ */ a("div", { className: "grid gap-4 py-4 max-h-[60vh] overflow-y-auto pr-2", children: x.map((e) => {
39
- const t = e.accessorKey, n = m[t] ?? "";
40
- return /* @__PURE__ */ s("div", { className: "grid grid-cols-4 items-center gap-4", children: [
41
- /* @__PURE__ */ a(k, { htmlFor: t, className: "text-right", children: typeof e.header == "string" ? e.header : t }),
42
- /* @__PURE__ */ a(
43
- N,
44
- {
45
- id: t,
46
- value: n,
47
- onChange: (b) => p(t, b.target.value),
48
- className: "col-span-3"
49
- }
50
- )
51
- ] }, t);
52
- }) }),
53
- /* @__PURE__ */ s("div", { className: "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", children: [
54
- /* @__PURE__ */ a(h, { variant: "outline", onClick: o, children: "Cancel" }),
55
- /* @__PURE__ */ a(h, { onClick: u, children: "Save Changes" })
56
- ] })
57
- ]
58
- }
59
- ) });
60
- };
61
- export {
62
- S as EzTableEditDialog
63
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),x=require("./tooltip-B41iztKT.cjs"),p=require("./input-BgM_la4k.cjs"),v=require("./label-Dx6oDB-X.cjs"),y=({open:r,onClose:d,onSave:f,columns:l,initialData:i,isNew:a,onFormRender:c})=>{const[o,m]=u.useState({});if(u.useEffect(()=>{r&&(m(i||{}),c?.({form:{data:i||{},columns:l},mode:a?"Add":"Edit"}))},[r,i,l,a,c]),!r)return null;const g=()=>{f(o),d()},h=(t,s)=>{m(n=>({...n,[t]:s}))},b=l.filter(t=>t.accessorKey&&t.meta?.isEditable!==!1&&t.id!=="actions"&&t.id!=="select");return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm animate-in fade-in-0",children:e.jsxs("div",{className:"bg-background w-full max-w-lg rounded-lg border shadow-lg p-6 space-y-6 animate-in zoom-in-95 slide-in-from-bottom-2",role:"dialog","aria-modal":"true",children:[e.jsxs("div",{className:"flex flex-col space-y-1.5 text-center sm:text-left",children:[e.jsx("h2",{className:"text-lg font-semibold leading-none tracking-tight",children:a?"Add New Record":"Edit Record"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:a?"Enter details for the new record.":"Make changes to the record below."})]}),e.jsx("div",{className:"grid gap-4 py-4 max-h-[60vh] overflow-y-auto pr-2",children:b.map(t=>{const s=t.accessorKey,n=o[s]??"";return e.jsxs("div",{className:"grid grid-cols-4 items-center gap-4",children:[e.jsx(v.Label,{htmlFor:s,className:"text-right",children:typeof t.header=="string"?t.header:s}),e.jsx(p.Input,{id:s,value:n,onChange:j=>h(s,j.target.value),className:"col-span-3"})]},s)})}),e.jsxs("div",{className:"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",children:[e.jsx(x.Button,{variant:"outline",onClick:d,children:"Cancel"}),e.jsx(x.Button,{onClick:g,children:"Save Changes"})]})]})})};exports.EzTableEditDialog=y;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),g=require("@tanstack/react-table"),m=require("./useInitCoreServices-CwXv2p4S.cjs"),u=({table:o,columnVirtualizer:t,density:l})=>{const c=o.getFooterGroups();if(c.length===0)return null;const f=t?.getVirtualItems()||o.getVisibleLeafColumns().map((n,s)=>({index:s})),i=t?.getVirtualItems()[0]?.start||0,d=t?t.getTotalSize()-(t.getVirtualItems()[t.getVirtualItems().length-1]?.end||0):0;return r.jsx(r.Fragment,{children:c.map(n=>r.jsxs("div",{className:m.cn("flex w-full border-t border-border bg-background/95 backdrop-blur-sm font-bold z-20","sticky bottom-0 shadow-[0_-2px_10px_rgba(0,0,0,0.05)]"),role:"rowgroup",children:[i>0&&r.jsx("div",{style:{flex:`0 0 ${i}px`}}),f.map(s=>{const e=n.headers[s.index];if(!e)return null;const a=o.options.meta;return r.jsx("div",{className:m.cn("px-4 flex items-center",a?.dir==="rtl"?"border-l border-border/50":"border-r border-border/50",l==="compact"&&"py-2 text-xs",l==="standard"&&"py-4 text-sm",l==="comfortable"&&"py-6 text-base",(e.column.columnDef.meta?.align==="right"||a?.dir==="rtl"&&!e.column.columnDef.meta?.align)&&"justify-end text-right",e.column.columnDef.meta?.align==="center"&&"justify-center text-center",(e.column.columnDef.meta?.align==="left"||!e.column.columnDef.meta?.align&&a?.dir!=="rtl")&&"justify-start text-left"),style:{width:e.getSize(),flex:`0 0 ${e.getSize()}px`},role:"cell",children:e.isPlaceholder?null:g.flexRender(e.column.columnDef.footer,e.getContext())},e.id)}),d>0&&r.jsx("div",{style:{flex:`0 0 ${d}px`}})]},n.id))})};u.displayName="EzTableFooter";exports.EzTableFooter=u;
@@ -1,54 +0,0 @@
1
- import { jsx as r, Fragment as g, jsxs as x } from "react/jsx-runtime";
2
- import { flexRender as u } from "@tanstack/react-table";
3
- import { c } from "./useInitCoreServices-D1WaWlaI.js";
4
- const p = ({ table: o, columnVirtualizer: t, density: l }) => {
5
- const m = o.getFooterGroups();
6
- if (m.length === 0) return null;
7
- const f = t?.getVirtualItems() || o.getVisibleLeafColumns().map((n, s) => ({ index: s })), d = t?.getVirtualItems()[0]?.start || 0, i = t ? t.getTotalSize() - (t.getVirtualItems()[t.getVirtualItems().length - 1]?.end || 0) : 0;
8
- return /* @__PURE__ */ r(g, { children: m.map((n) => /* @__PURE__ */ x(
9
- "div",
10
- {
11
- className: c(
12
- "flex w-full border-t border-border bg-background/95 backdrop-blur-sm font-bold z-20",
13
- "sticky bottom-0 shadow-[0_-2px_10px_rgba(0,0,0,0.05)]"
14
- ),
15
- role: "rowgroup",
16
- children: [
17
- d > 0 && /* @__PURE__ */ r("div", { style: { flex: `0 0 ${d}px` } }),
18
- f.map((s) => {
19
- const e = n.headers[s.index];
20
- if (!e) return null;
21
- const a = o.options.meta;
22
- return /* @__PURE__ */ r(
23
- "div",
24
- {
25
- className: c(
26
- "px-4 flex items-center",
27
- a?.dir === "rtl" ? "border-l border-border/50" : "border-r border-border/50",
28
- l === "compact" && "py-2 text-xs",
29
- l === "standard" && "py-4 text-sm",
30
- l === "comfortable" && "py-6 text-base",
31
- (e.column.columnDef.meta?.align === "right" || a?.dir === "rtl" && !e.column.columnDef.meta?.align) && "justify-end text-right",
32
- e.column.columnDef.meta?.align === "center" && "justify-center text-center",
33
- (e.column.columnDef.meta?.align === "left" || !e.column.columnDef.meta?.align && a?.dir !== "rtl") && "justify-start text-left"
34
- ),
35
- style: {
36
- width: e.getSize(),
37
- flex: `0 0 ${e.getSize()}px`
38
- },
39
- role: "cell",
40
- children: e.isPlaceholder ? null : u(e.column.columnDef.footer, e.getContext())
41
- },
42
- e.id
43
- );
44
- }),
45
- i > 0 && /* @__PURE__ */ r("div", { style: { flex: `0 0 ${i}px` } })
46
- ]
47
- },
48
- n.id
49
- )) });
50
- };
51
- p.displayName = "EzTableFooter";
52
- export {
53
- p as EzTableFooter
54
- };