deephaven-plugin-ui 0.44.0__tar.gz → 0.44.2__tar.gz

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 (170) hide show
  1. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/PKG-INFO +1 -1
  2. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/setup.cfg +1 -1
  3. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/_internal/EventContext.py +5 -2
  4. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/_js/dist/index.js +14 -6
  5. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/_js/package.json +1 -1
  6. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/table.py +111 -2
  7. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/object_types/ElementMessageStream.py +70 -27
  8. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/types/types.py +16 -2
  9. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven_plugin_ui.egg-info/PKG-INFO +1 -1
  10. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/LICENSE +0 -0
  11. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/README.md +0 -0
  12. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/pyproject.toml +0 -0
  13. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/setup.py +0 -0
  14. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/__init__.py +0 -0
  15. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/_internal/NoContextException.py +0 -0
  16. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/_internal/RenderContext.py +0 -0
  17. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/_internal/RootRenderContextProtocol.py +0 -0
  18. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/_internal/__init__.py +0 -0
  19. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/_internal/utils.py +0 -0
  20. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/_js/LICENSE +0 -0
  21. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/_register.py +0 -0
  22. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/__init__.py +0 -0
  23. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/accordion.py +0 -0
  24. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/action_button.py +0 -0
  25. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/action_group.py +0 -0
  26. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/action_menu.py +0 -0
  27. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/avatar.py +0 -0
  28. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/badge.py +0 -0
  29. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/basic.py +0 -0
  30. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/breadcrumbs.py +0 -0
  31. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/button.py +0 -0
  32. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/button_group.py +0 -0
  33. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/calendar.py +0 -0
  34. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/checkbox.py +0 -0
  35. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/checkbox_group.py +0 -0
  36. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/color_editor.py +0 -0
  37. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/color_picker.py +0 -0
  38. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/column.py +0 -0
  39. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/combo_box.py +0 -0
  40. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/component.py +0 -0
  41. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/content.py +0 -0
  42. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/contextual_help.py +0 -0
  43. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/contextual_help_trigger.py +0 -0
  44. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/dashboard.py +0 -0
  45. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/date_field.py +0 -0
  46. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/date_picker.py +0 -0
  47. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/date_range_picker.py +0 -0
  48. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/dialog.py +0 -0
  49. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/dialog_trigger.py +0 -0
  50. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/disclosure.py +0 -0
  51. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/disclosure_panel.py +0 -0
  52. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/disclosure_title.py +0 -0
  53. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/divider.py +0 -0
  54. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/flex.py +0 -0
  55. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/footer.py +0 -0
  56. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/form.py +0 -0
  57. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/fragment.py +0 -0
  58. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/grid.py +0 -0
  59. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/heading.py +0 -0
  60. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/html.py +0 -0
  61. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/icon.py +0 -0
  62. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/illustrated_message.py +0 -0
  63. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/image.py +0 -0
  64. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/inline_alert.py +0 -0
  65. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/item.py +0 -0
  66. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/item_table_source.py +0 -0
  67. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/labeled_value.py +0 -0
  68. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/link.py +0 -0
  69. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/list_action_group.py +0 -0
  70. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/list_action_menu.py +0 -0
  71. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/list_view.py +0 -0
  72. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/logic_button.py +0 -0
  73. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/markdown.py +0 -0
  74. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/menu.py +0 -0
  75. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/menu_trigger.py +0 -0
  76. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/meter.py +0 -0
  77. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/multi_select.py +0 -0
  78. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/number_field.py +0 -0
  79. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/panel.py +0 -0
  80. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/picker.py +0 -0
  81. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/progress_bar.py +0 -0
  82. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/progress_circle.py +0 -0
  83. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/radio.py +0 -0
  84. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/radio_group.py +0 -0
  85. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/range_calendar.py +0 -0
  86. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/range_slider.py +0 -0
  87. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/route.py +0 -0
  88. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/router.py +0 -0
  89. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/row.py +0 -0
  90. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/search_field.py +0 -0
  91. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/section.py +0 -0
  92. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/slider.py +0 -0
  93. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/stack.py +0 -0
  94. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/submenu_trigger.py +0 -0
  95. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/switch.py +0 -0
  96. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/tab.py +0 -0
  97. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/tab_list.py +0 -0
  98. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/tab_panels.py +0 -0
  99. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/tabs.py +0 -0
  100. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/tag_group.py +0 -0
  101. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/text.py +0 -0
  102. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/text_area.py +0 -0
  103. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/text_field.py +0 -0
  104. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/time_field.py +0 -0
  105. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/toast.py +0 -0
  106. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/toggle_button.py +0 -0
  107. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/types/Intl/list_format.py +0 -0
  108. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/types/Intl/number_format.py +0 -0
  109. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/types/__init__.py +0 -0
  110. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/types/accessibility.py +0 -0
  111. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/types/combo_box.py +0 -0
  112. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/types/date_picker.py +0 -0
  113. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/types/events.py +0 -0
  114. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/types/icon_types.py +0 -0
  115. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/types/layout.py +0 -0
  116. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/types/progress.py +0 -0
  117. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/types/validate.py +0 -0
  118. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/components/view.py +0 -0
  119. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/elements/BaseElement.py +0 -0
  120. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/elements/ContextProviderElement.py +0 -0
  121. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/elements/DashboardElement.py +0 -0
  122. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/elements/Element.py +0 -0
  123. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/elements/FunctionElement.py +0 -0
  124. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/elements/MemoizedElement.py +0 -0
  125. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/elements/UriElement.py +0 -0
  126. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/elements/__init__.py +0 -0
  127. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/__init__.py +0 -0
  128. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/_navigate.py +0 -0
  129. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/_transform.py +0 -0
  130. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/_url_parse.py +0 -0
  131. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_boolean.py +0 -0
  132. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_callback.py +0 -0
  133. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_cell_data.py +0 -0
  134. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_column_data.py +0 -0
  135. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_context.py +0 -0
  136. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_effect.py +0 -0
  137. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_execution_context.py +0 -0
  138. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_liveness_scope.py +0 -0
  139. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_memo.py +0 -0
  140. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_navigate.py +0 -0
  141. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_params.py +0 -0
  142. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_path.py +0 -0
  143. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_query_param.py +0 -0
  144. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_query_params.py +0 -0
  145. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_ref.py +0 -0
  146. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_render_queue.py +0 -0
  147. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_row_data.py +0 -0
  148. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_row_list.py +0 -0
  149. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_send_event.py +0 -0
  150. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_set_query_param.py +0 -0
  151. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_shared_state.py +0 -0
  152. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_state.py +0 -0
  153. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_table_data.py +0 -0
  154. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_table_listener.py +0 -0
  155. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/hooks/use_url_components.py +0 -0
  156. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/object_types/DashboardType.py +0 -0
  157. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/object_types/ElementType.py +0 -0
  158. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/object_types/ErrorCode.py +0 -0
  159. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/object_types/EventEncoder.py +0 -0
  160. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/object_types/__init__.py +0 -0
  161. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/renderer/NodeEncoder.py +0 -0
  162. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/renderer/RenderedNode.py +0 -0
  163. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/renderer/Renderer.py +0 -0
  164. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/renderer/__init__.py +0 -0
  165. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven/ui/types/__init__.py +0 -0
  166. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven_plugin_ui.egg-info/SOURCES.txt +0 -0
  167. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven_plugin_ui.egg-info/dependency_links.txt +0 -0
  168. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven_plugin_ui.egg-info/entry_points.txt +0 -0
  169. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven_plugin_ui.egg-info/requires.txt +0 -0
  170. {deephaven_plugin_ui-0.44.0 → deephaven_plugin_ui-0.44.2}/src/deephaven_plugin_ui.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deephaven-plugin-ui
3
- Version: 0.44.0
3
+ Version: 0.44.2
4
4
  Summary: deephaven.ui plugin
5
5
  Home-page: https://github.com/deephaven/deephaven-plugins
6
6
  Author: Deephaven Data Labs
@@ -3,7 +3,7 @@ name = deephaven-plugin-ui
3
3
  description = deephaven.ui plugin
4
4
  long_description = file: README.md
5
5
  long_description_content_type = text/markdown
6
- version = 0.44.0
6
+ version = 0.44.2
7
7
  url = https://github.com/deephaven/deephaven-plugins
8
8
  project_urls =
9
9
  Source Code = https://github.com/deephaven/deephaven-plugins
@@ -75,8 +75,11 @@ class EventContext:
75
75
  except NoContextException:
76
76
  pass
77
77
  _set_event_context(self)
78
- yield self
79
- _set_event_context(old_context)
78
+ try:
79
+ yield self
80
+ finally:
81
+ # Restore even on error, or the thread keeps this context (and everything it references) alive
82
+ _set_event_context(old_context)
80
83
 
81
84
  def send_event(self, name: str, params: Dict[str, Any]) -> None:
82
85
  """
@@ -13789,10 +13789,16 @@ function getAggregationOperation(agg) {
13789
13789
  }
13790
13790
  return operation;
13791
13791
  }
13792
+ function isNumericWrapper(value2) {
13793
+ return value2 != null && typeof value2 === "object" && typeof value2.asNumber === "function";
13794
+ }
13795
+ function serializeCellValue(value2) {
13796
+ return isNumericWrapper(value2) ? value2.valueOf() : value2;
13797
+ }
13792
13798
  function getCellData(columnIndex, rowIndex, model) {
13793
13799
  const column = model.columns[columnIndex];
13794
13800
  const { type } = column;
13795
- const value2 = model.valueForCell(columnIndex, rowIndex);
13801
+ const value2 = serializeCellValue(model.valueForCell(columnIndex, rowIndex));
13796
13802
  const text2 = model.textForCell(columnIndex, rowIndex);
13797
13803
  return {
13798
13804
  value: value2,
@@ -71825,8 +71831,9 @@ function wrapUIContextItem(item, data, alwaysFetchColumns, selectedRanges, visib
71825
71831
  var _a2;
71826
71832
  try {
71827
71833
  await ((_a2 = item.action) == null ? void 0 : _a2.call(item, {
71828
- value: data.value,
71834
+ value: serializeCellValue(data.value),
71829
71835
  text: data.valueText,
71836
+ type: data.column.type,
71830
71837
  column_name: data.column.name,
71831
71838
  is_column_header: data.rowIndex == null,
71832
71839
  is_row_header: data.columnIndex == null,
@@ -71881,8 +71888,9 @@ function wrapContextActions(items, data, alwaysFetchColumns, selectedRanges, vis
71881
71888
  if (typeof item === "function") {
71882
71889
  return async () => wrapUIContextItems(
71883
71890
  await item({
71884
- value: data.value,
71891
+ value: serializeCellValue(data.value),
71885
71892
  text: data.valueText,
71893
+ type: data.column.type,
71886
71894
  column_name: data.column.name,
71887
71895
  is_column_header: data.rowIndex == null,
71888
71896
  is_row_header: data.columnIndex == null,
@@ -71942,9 +71950,9 @@ function getSelectedKeys(irisGrid$1, contextMenuData) {
71942
71950
  const { model } = contextMenuData;
71943
71951
  return {
71944
71952
  key_columns: irisGrid.isKeyedGridModel(model) ? model.selectionKeyColumnIndices.map((i) => model.columns[i].name) : [],
71945
- key_values: Array.from(selectedKeyValues.values()).map((values) => [
71946
- ...values
71947
- ]),
71953
+ key_values: Array.from(selectedKeyValues.values()).map(
71954
+ (values) => values.map(serializeCellValue)
71955
+ ),
71948
71956
  inverted: selection.invertedSelection
71949
71957
  };
71950
71958
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven/js-plugin-ui",
3
- "version": "0.44.0",
3
+ "version": "0.44.2",
4
4
  "description": "Deephaven UI plugin",
5
5
  "keywords": [
6
6
  "Deephaven",
@@ -1,6 +1,7 @@
1
1
  from __future__ import annotations
2
2
  from collections import UserDict
3
3
  from dataclasses import dataclass, field
4
+ from functools import cached_property
4
5
  from typing import Literal, Any, Callable, Mapping, NoReturn, Union
5
6
  import logging
6
7
  from deephaven.table import Table, RollupTable, TreeTable
@@ -19,7 +20,7 @@ from ..types import (
19
20
  SelectionChangeCallback,
20
21
  TableLike,
21
22
  )
22
- from .._internal import dict_to_react_props, validate_key
23
+ from .._internal import dict_to_react_props, validate_key, wrap_callable
23
24
 
24
25
  logger = logging.getLogger(__name__)
25
26
 
@@ -310,6 +311,93 @@ def _resolve_selection(
310
311
  return _snapshot_selection(combined)
311
312
 
312
313
 
314
+ _INT_STRING_TYPES = frozenset({"long", "java.lang.Long", "java.time.Instant"})
315
+ """Column types whose values the client sends as exact decimal strings."""
316
+
317
+
318
+ def _convert_client_value(value: Any, type_name: str | None) -> Any:
319
+ """Convert a column value received from the client to its Python value.
320
+
321
+ The client sends ``long`` and ``Instant`` values as exact decimal strings, as a
322
+ JS number cannot hold every 64-bit value. Instants are epoch nanoseconds.
323
+
324
+ Args:
325
+ value: The value received from the client.
326
+ type_name: The Java type name of the value's column, as sent by the client
327
+ in a cell's ``type`` or given by a dtype's ``j_name``.
328
+
329
+ Returns:
330
+ The value converted to an ``int`` for ``long`` and ``Instant`` columns,
331
+ otherwise the value unchanged.
332
+ """
333
+ if isinstance(value, str) and type_name in _INT_STRING_TYPES:
334
+ return int(value)
335
+ return value
336
+
337
+
338
+ def _convert_cell_data(cell: Any) -> Any:
339
+ """Convert the ``value`` of a ``CellData`` dict using its ``type``."""
340
+ if not isinstance(cell, Mapping) or "value" not in cell:
341
+ return cell
342
+ return {**cell, "value": _convert_client_value(cell["value"], cell.get("type"))}
343
+
344
+
345
+ def _convert_row_data(row: Any) -> Any:
346
+ """Convert every cell of a ``RowDataMap``."""
347
+ if not isinstance(row, Mapping):
348
+ return row
349
+ return {name: _convert_cell_data(cell) for name, cell in row.items()}
350
+
351
+
352
+ def _convert_selection(rows: Any) -> Any:
353
+ """Convert every row of a selection."""
354
+ if not isinstance(rows, list):
355
+ return rows
356
+ return [_convert_row_data(row) for row in rows]
357
+
358
+
359
+ class _ConvertingCallback:
360
+ """Wraps a ``ui.table`` callback so it receives converted cell values.
361
+
362
+ Equal to, and hashed like, any other wrapper of the same callback and converter,
363
+ so a callback that stays the same across renders keeps the same callable id.
364
+ The encoder may keep calling an earlier equal wrapper, so every attribute that
365
+ affects behavior must take part in equality.
366
+ """
367
+
368
+ def __init__(
369
+ self, callback: Callable[..., Any], convert: Callable[[Any], Any]
370
+ ) -> None:
371
+ self.callback = callback
372
+ self.convert = convert
373
+
374
+ @cached_property
375
+ def _call(self) -> Callable[..., Any]:
376
+ # The renderer drops unused args by inspecting this wrapper's signature, so
377
+ # do the same for the wrapped callback (e.g. `lambda: refresh()`). Computed
378
+ # lazily since a new wrapper is created on every render.
379
+ return wrap_callable(self.callback)
380
+
381
+ def __call__(self, data: Any) -> Any:
382
+ return self._call(self.convert(data))
383
+
384
+ def __eq__(self, other: object) -> bool:
385
+ return (
386
+ isinstance(other, _ConvertingCallback)
387
+ and self.callback == other.callback
388
+ and self.convert is other.convert
389
+ )
390
+
391
+ def __hash__(self) -> int:
392
+ return hash((self.callback, self.convert))
393
+
394
+
395
+ def _wrap_callback(
396
+ callback: Callable[..., Any] | None, convert: Callable[[Any], Any]
397
+ ) -> _ConvertingCallback | None:
398
+ return None if callback is None else _ConvertingCallback(callback, convert)
399
+
400
+
313
401
  def _resolve_keyed_selection(
314
402
  selected_keys: dict,
315
403
  tbl: Table,
@@ -350,7 +438,10 @@ def _resolve_keyed_selection(
350
438
  InputColumn(
351
439
  name=name,
352
440
  data_type=source_types[name],
353
- input_data=[row[i] for row in key_values],
441
+ input_data=[
442
+ _convert_client_value(row[i], source_types[name].j_name)
443
+ for row in key_values
444
+ ],
354
445
  )
355
446
  for i, name in enumerate(key_columns)
356
447
  if name in source_types
@@ -412,6 +503,9 @@ def _add_selected_rows(data: dict, tbl: TableLike | UriElement) -> _ContextMenuD
412
503
  Keyed tables (created with ``with_keys``) send ``selected_keys`` and are matched
413
504
  by value; all other tables send ``selected_ranges`` and are matched by position.
414
505
 
506
+ Also converts ``value`` and ``always_fetch_columns`` cell values that the client
507
+ sends as strings (``long`` and ``Instant`` columns) to ``int``.
508
+
415
509
  Args:
416
510
  data: Raw callback params dict received from the JS callable invocation.
417
511
  tbl: The Python-side source passed to ``ui.table``, used as a fallback when
@@ -422,6 +516,10 @@ def _add_selected_rows(data: dict, tbl: TableLike | UriElement) -> _ContextMenuD
422
516
  A copy of *data* with ``selected_rows`` available and internal keys removed.
423
517
  """
424
518
  data = dict(data)
519
+ if "value" in data:
520
+ data["value"] = _convert_client_value(data["value"], data.get("type"))
521
+ if "always_fetch_columns" in data:
522
+ data["always_fetch_columns"] = _convert_row_data(data["always_fetch_columns"])
425
523
  # Use the model table injected by JS (sorted/filtered) when available.
426
524
  model_tbl = data.pop("_table", tbl)
427
525
  visible_columns = data.pop("_visible_columns", None)
@@ -795,6 +893,17 @@ class table(Element):
795
893
  props["sorts"] = _normalize_table_sorts(sorts)
796
894
 
797
895
  props["table"] = resolve(table) if isinstance(table, str) else table
896
+ props["on_cell_press"] = _wrap_callback(on_cell_press, _convert_cell_data)
897
+ props["on_cell_double_press"] = _wrap_callback(
898
+ on_cell_double_press, _convert_cell_data
899
+ )
900
+ props["on_row_press"] = _wrap_callback(on_row_press, _convert_row_data)
901
+ props["on_row_double_press"] = _wrap_callback(
902
+ on_row_double_press, _convert_row_data
903
+ )
904
+ props["on_selection_change"] = _wrap_callback(
905
+ on_selection_change, _convert_selection
906
+ )
798
907
  props["context_menu"] = _wrap_context_menu(context_menu, props["table"])
799
908
  props["context_header_menu"] = _wrap_context_menu(
800
909
  context_header_menu, props["table"]
@@ -2,7 +2,6 @@ from __future__ import annotations
2
2
 
3
3
  import io
4
4
  import json
5
- import sys
6
5
 
7
6
  from jsonrpc import JSONRPCResponseManager, Dispatcher
8
7
  import logging
@@ -278,13 +277,13 @@ class ElementMessageStream(MessageStream, RootRenderContextProtocol):
278
277
  """
279
278
  Process any queued callables, then re-renders the element if it is dirty.
280
279
  """
280
+ with self._render_lock:
281
+ self._render_thread = threading.current_thread()
282
+ self._render_state = _RenderState.RENDERING
283
+
281
284
  try:
282
285
  with self._exec_context, self._event_context.open():
283
- with self._render_lock:
284
- self._render_thread = threading.current_thread()
285
- self._render_state = _RenderState.RENDERING
286
-
287
- while not self._callable_queue.empty():
286
+ while not self._is_closed and not self._callable_queue.empty():
288
287
  item = self._callable_queue.get()
289
288
  with liveness_scope():
290
289
  try:
@@ -292,23 +291,42 @@ class ElementMessageStream(MessageStream, RootRenderContextProtocol):
292
291
  except Exception as e:
293
292
  logger.exception(e)
294
293
 
295
- if self._is_dirty:
294
+ if self._is_dirty and not self._is_closed:
296
295
  self._render()
297
-
298
- with self._render_lock:
299
- self._render_thread = None
300
- if not self._callable_queue.empty() or self._is_dirty:
301
- # There are still callables to process, so queue up another render
302
- self._render_state = _RenderState.QUEUED
303
- submit_task("concurrent", self._process_callable_queue)
304
- else:
305
- self._render_state = _RenderState.IDLE
306
296
  except Exception as e:
307
- # Something catastrophic happened, log it and close the connection
297
+ # Something catastrophic happened, such as the connection failing. Log it and close the connection
308
298
  # We're just being safe to make sure there is an error logged if something unexpected does occur,
309
299
  # as `submit_task` does not log any uncaught exceptions currently: https://github.com/deephaven/deephaven-core/issues/5192
310
300
  logger.exception(e)
311
- self._connection.on_close()
301
+ with self._render_lock:
302
+ self._is_closed = True
303
+ try:
304
+ self._connection.on_close()
305
+ except Exception:
306
+ logger.exception("Error closing connection")
307
+ finally:
308
+ # Always leave the render loop, otherwise it never runs again and the queues grow without bound
309
+ self._finish_render_loop()
310
+
311
+ def _finish_render_loop(self) -> None:
312
+ """
313
+ Queue up another render if there's more to process, otherwise mark the render loop as idle.
314
+ Unmounts the element if the stream was closed while the render loop was running.
315
+ """
316
+ with self._render_lock:
317
+ self._render_thread = None
318
+ if not self._is_closed and (
319
+ not self._callable_queue.empty() or self._is_dirty
320
+ ):
321
+ # There are still callables to process, so queue up another render
322
+ self._render_state = _RenderState.QUEUED
323
+ submit_task("concurrent", self._process_callable_queue)
324
+ return
325
+ self._render_state = _RenderState.IDLE
326
+ is_closed = self._is_closed
327
+
328
+ if is_closed:
329
+ self._unmount()
312
330
 
313
331
  def _mark_dirty(self) -> None:
314
332
  """
@@ -321,7 +339,7 @@ class ElementMessageStream(MessageStream, RootRenderContextProtocol):
321
339
 
322
340
  def _queue_render(self) -> None:
323
341
  with self._render_lock:
324
- if self._render_state is _RenderState.IDLE:
342
+ if self._render_state is _RenderState.IDLE and not self._is_closed:
325
343
  self._render_state = _RenderState.QUEUED
326
344
  submit_task("concurrent", self._process_callable_queue)
327
345
 
@@ -347,7 +365,12 @@ class ElementMessageStream(MessageStream, RootRenderContextProtocol):
347
365
  Args:
348
366
  callable: The callable to queue
349
367
  """
350
- self._callable_queue.put(callable)
368
+ # Check and queue under the lock, so this can't race with on_close and leave work in a queue nothing drains
369
+ with self._render_lock:
370
+ if self._is_closed:
371
+ # Nothing will process it, and it may hold onto large objects such as table data
372
+ return
373
+ self._callable_queue.put(callable)
351
374
  self._queue_render()
352
375
 
353
376
  def get_url(self) -> str:
@@ -372,15 +395,35 @@ class ElementMessageStream(MessageStream, RootRenderContextProtocol):
372
395
  self._connection.on_data(b"", [])
373
396
 
374
397
  def on_close(self) -> None:
375
- assert not self._is_closed
376
-
377
398
  logger.debug("Closing ElementMessageStream")
378
399
 
400
+ with self._render_lock:
401
+ if self._is_closed:
402
+ return
403
+ self._is_closed = True
404
+ # This may be called from another thread while rendering, or from within the render loop when sending
405
+ # fails. Unmounting now would race with the render, so the render loop unmounts once it's done instead.
406
+ is_render_loop_active = self._render_state is not _RenderState.IDLE
407
+
408
+ if not is_render_loop_active:
409
+ self._unmount()
410
+
411
+ def _unmount(self) -> None:
412
+ """
413
+ Unmount the element, releasing its listeners and any work still queued.
414
+ Must only be called once the stream is closed and the render loop is idle.
415
+ """
379
416
  # The connection is closed, so this component will not update anymore
380
417
  # delete the context so the objects in the collected scope are released
381
- self._context.unmount()
382
- del self._context
383
- self._is_closed = True
418
+ try:
419
+ with self._exec_context:
420
+ self._context.unmount()
421
+ except Exception:
422
+ logger.exception("Error unmounting element")
423
+ finally:
424
+ del self._context
425
+ self._callable_queue = Queue()
426
+ self._update_queue = Queue()
384
427
 
385
428
  def on_data(self, payload: bytes, references: list[Any]) -> None:
386
429
  """
@@ -605,8 +648,8 @@ class ElementMessageStream(MessageStream, RootRenderContextProtocol):
605
648
  state: The state of the node to preserve
606
649
  """
607
650
  if self._is_closed:
608
- logger.error("Stream is closed, cannot render document")
609
- sys.exit()
651
+ logger.debug("Stream is closed, not sending document")
652
+ return
610
653
 
611
654
  encoder_result = self._encoder.encode_node(root)
612
655
  document = encoder_result["encoded_node"]
@@ -270,7 +270,9 @@ class CellData(TypedDict):
270
270
 
271
271
  value: Any
272
272
  """
273
- Raw value of the cell data
273
+ Raw value of the cell data.
274
+ Values from ``long`` columns are ``int``. Values from ``Instant`` columns are
275
+ ``int`` nanoseconds since the epoch.
274
276
  """
275
277
 
276
278
 
@@ -323,13 +325,20 @@ class ContextMenuActionParams(TypedDict):
323
325
  value: Any
324
326
  """
325
327
  Value of the cell.
328
+ Values from ``long`` columns are ``int``. Values from ``Instant`` columns are
329
+ ``int`` nanoseconds since the epoch.
326
330
  """
327
331
 
328
- text_value: str
332
+ text: str
329
333
  """
330
334
  Rendered text for the cell.
331
335
  """
332
336
 
337
+ type: str
338
+ """
339
+ Type of the column.
340
+ """
341
+
333
342
  column_name: str
334
343
  """
335
344
  Name of the column.
@@ -345,6 +354,11 @@ class ContextMenuActionParams(TypedDict):
345
354
  Whether the context menu was opened on a row header.
346
355
  """
347
356
 
357
+ always_fetch_columns: Dict[str, RowDataValue]
358
+ """
359
+ Values of the row's ``always_fetch_columns`` columns, keyed by column name.
360
+ """
361
+
348
362
  selected_rows: Table
349
363
  """
350
364
  A static snapshot of the currently selected rows as a Deephaven Table.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deephaven-plugin-ui
3
- Version: 0.44.0
3
+ Version: 0.44.2
4
4
  Summary: deephaven.ui plugin
5
5
  Home-page: https://github.com/deephaven/deephaven-plugins
6
6
  Author: Deephaven Data Labs