@plumile/ui 0.1.134 → 0.1.142

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 (570) hide show
  1. package/README.md +129 -15
  2. package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js +4 -4
  3. package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +0 -2
  4. package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +1 -0
  5. package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js +2 -2
  6. package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js.map +1 -1
  7. package/lib/esm/atomic/atoms/badge/Badge.js.map +1 -1
  8. package/lib/esm/atomic/atoms/error_message/ErrorMessage.js +9 -8
  9. package/lib/esm/atomic/atoms/error_message/ErrorMessage.js.map +1 -1
  10. package/lib/esm/atomic/atoms/error_message/errorMessage.css.js +1 -0
  11. package/lib/esm/atomic/molecules/card/Card.js +17 -19
  12. package/lib/esm/atomic/molecules/card/Card.js.map +1 -1
  13. package/lib/esm/atomic/molecules/empty-state/EmptyState.css.js +80 -2
  14. package/lib/esm/atomic/molecules/empty-state/EmptyState.css.js.map +1 -1
  15. package/lib/esm/atomic/molecules/empty-state/EmptyState.js +50 -28
  16. package/lib/esm/atomic/molecules/empty-state/EmptyState.js.map +1 -1
  17. package/lib/esm/atomic/molecules/form_error/FormError.js +29 -19
  18. package/lib/esm/atomic/molecules/form_error/FormError.js.map +1 -1
  19. package/lib/esm/atomic/molecules/form_error/formError.css.js +1 -1
  20. package/lib/esm/atomic/molecules/form_error/formError.css.js.map +1 -1
  21. package/lib/esm/atomic/molecules/markdown/components/MarkdownDelete.css.js +0 -1
  22. package/lib/esm/atomic/molecules/markdown/components/MarkdownHeading.css.js +1 -0
  23. package/lib/esm/atomic/molecules/tabs/Tabs.js +82 -28
  24. package/lib/esm/atomic/molecules/tabs/Tabs.js.map +1 -1
  25. package/lib/esm/atomic/molecules/tabs/tabs.css.js +50 -8
  26. package/lib/esm/atomic/molecules/tabs/tabs.css.js.map +1 -1
  27. package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js +48 -48
  28. package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js.map +1 -1
  29. package/lib/esm/backoffice/atoms/status_badge/StatusBadge.js.map +1 -1
  30. package/lib/esm/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.js +38 -0
  31. package/lib/esm/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.js.map +1 -0
  32. package/lib/esm/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.js +35 -0
  33. package/lib/esm/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.js.map +1 -0
  34. package/lib/esm/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.js +16 -0
  35. package/lib/esm/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.js.map +1 -0
  36. package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.js +25 -0
  37. package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.js.map +1 -0
  38. package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.js +8 -0
  39. package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.js.map +1 -0
  40. package/lib/esm/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js +37 -0
  41. package/lib/esm/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js.map +1 -0
  42. package/lib/esm/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.js +8 -0
  43. package/lib/esm/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.js.map +1 -0
  44. package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.js +19 -0
  45. package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.js.map +1 -0
  46. package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.js +8 -0
  47. package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.js.map +1 -0
  48. package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js +15 -32
  49. package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js.map +1 -1
  50. package/lib/esm/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.js +11 -0
  51. package/lib/esm/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.js.map +1 -0
  52. package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js +17 -18
  53. package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js.map +1 -1
  54. package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.js +12 -0
  55. package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.js.map +1 -0
  56. package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +15 -20
  57. package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js.map +1 -1
  58. package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js +23 -16
  59. package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js.map +1 -1
  60. package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js +2 -2
  61. package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js.map +1 -1
  62. package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.js +11 -0
  63. package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.js.map +1 -0
  64. package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.js +55 -0
  65. package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.js.map +1 -0
  66. package/lib/esm/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.js +8 -0
  67. package/lib/esm/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.js.map +1 -0
  68. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.js +15 -0
  69. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.js.map +1 -0
  70. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js +63 -0
  71. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js.map +1 -0
  72. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.js +8 -0
  73. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.js.map +1 -0
  74. package/lib/esm/backoffice/molecules/backoffice_picker/BackofficePicker.js +76 -0
  75. package/lib/esm/backoffice/molecules/backoffice_picker/BackofficePicker.js.map +1 -0
  76. package/lib/esm/backoffice/molecules/backoffice_picker/backofficePicker.css.js +8 -0
  77. package/lib/esm/backoffice/molecules/backoffice_picker/backofficePicker.css.js.map +1 -0
  78. package/lib/esm/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.js +23 -0
  79. package/lib/esm/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.js.map +1 -0
  80. package/lib/esm/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.js +8 -0
  81. package/lib/esm/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.js.map +1 -0
  82. package/lib/esm/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js +18 -0
  83. package/lib/esm/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js.map +1 -0
  84. package/lib/esm/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.js +8 -0
  85. package/lib/esm/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.js.map +1 -0
  86. package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.js +28 -0
  87. package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.js.map +1 -0
  88. package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.js +8 -0
  89. package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.js.map +1 -0
  90. package/lib/esm/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.js +60 -0
  91. package/lib/esm/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.js.map +1 -0
  92. package/lib/esm/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.js +14 -0
  93. package/lib/esm/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.js.map +1 -0
  94. package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js +1 -1
  95. package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js.map +1 -1
  96. package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js +3 -3
  97. package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js.map +1 -1
  98. package/lib/esm/backoffice/molecules/global_search_input/GlobalSearchInput.js +4 -4
  99. package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js +1 -1
  100. package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js.map +1 -1
  101. package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js +60 -60
  102. package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js.map +1 -1
  103. package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js +2 -2
  104. package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js.map +1 -1
  105. package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +96 -96
  106. package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js.map +1 -1
  107. package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js +2 -2
  108. package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js.map +1 -1
  109. package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js +52 -52
  110. package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js.map +1 -1
  111. package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js +6 -6
  112. package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js.map +1 -1
  113. package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js +69 -34
  114. package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js.map +1 -1
  115. package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js +22 -2
  116. package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js.map +1 -1
  117. package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js +4 -4
  118. package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js.map +1 -1
  119. package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js +70 -40
  120. package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js.map +1 -1
  121. package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js +66 -3
  122. package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js.map +1 -1
  123. package/lib/esm/components/dashboard/activity_card/ActivityCard.js +4 -4
  124. package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.js +9 -0
  125. package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.js.map +1 -0
  126. package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.js +30 -0
  127. package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.js.map +1 -0
  128. package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.css.js +8 -0
  129. package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.css.js.map +1 -0
  130. package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.js +16 -0
  131. package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.js.map +1 -0
  132. package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.js +8 -0
  133. package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.js.map +1 -0
  134. package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.js +27 -0
  135. package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.js.map +1 -0
  136. package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.css.js +8 -0
  137. package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.css.js.map +1 -0
  138. package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.js +28 -0
  139. package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.js.map +1 -0
  140. package/lib/esm/components/dashboard/metric_card/MetricCard.css.js +30 -2
  141. package/lib/esm/components/dashboard/metric_card/MetricCard.css.js.map +1 -1
  142. package/lib/esm/components/dashboard/metric_card/MetricCard.js +40 -26
  143. package/lib/esm/components/dashboard/metric_card/MetricCard.js.map +1 -1
  144. package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.css.js +23 -2
  145. package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.css.js.map +1 -1
  146. package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.js +16 -4
  147. package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.js.map +1 -1
  148. package/lib/esm/components/dashboard/status_summary_panel/StatusSummaryPanel.js +4 -4
  149. package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.css.js +14 -2
  150. package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.css.js.map +1 -1
  151. package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.js +46 -25
  152. package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.js.map +1 -1
  153. package/lib/esm/components/data-table/DataTable.css.js +19 -19
  154. package/lib/esm/components/data-table/DataTable.css.js.map +1 -1
  155. package/lib/esm/components/data-table/DataTable.js +142 -76
  156. package/lib/esm/components/data-table/DataTable.js.map +1 -1
  157. package/lib/esm/components/data-table/ResponsiveRecordList.js.map +1 -1
  158. package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js +2 -2
  159. package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js.map +1 -1
  160. package/lib/esm/components/data-table/VirtualizedConnectionTable.js +177 -170
  161. package/lib/esm/components/data-table/VirtualizedConnectionTable.js.map +1 -1
  162. package/lib/esm/components/feedback/InlineBanner.js +49 -0
  163. package/lib/esm/components/feedback/InlineBanner.js.map +1 -0
  164. package/lib/esm/components/feedback/OperationFeedback.css.js +2 -2
  165. package/lib/esm/components/feedback/OperationFeedback.css.js.map +1 -1
  166. package/lib/esm/components/feedback/OperationFeedback.js +20 -24
  167. package/lib/esm/components/feedback/OperationFeedback.js.map +1 -1
  168. package/lib/esm/components/feedback/inlineBanner.css.js +19 -0
  169. package/lib/esm/components/feedback/inlineBanner.css.js.map +1 -0
  170. package/lib/esm/components/infinite/InfiniteScrollTrigger.js +31 -23
  171. package/lib/esm/components/infinite/InfiniteScrollTrigger.js.map +1 -1
  172. package/lib/esm/components/layout/ActionPanel.css.js +2 -2
  173. package/lib/esm/components/layout/ActionPanel.css.js.map +1 -1
  174. package/lib/esm/components/layout/ActionPanel.js +29 -35
  175. package/lib/esm/components/layout/ActionPanel.js.map +1 -1
  176. package/lib/esm/components/layout/PageShell.css.js +2 -20
  177. package/lib/esm/components/layout/PageShell.css.js.map +1 -1
  178. package/lib/esm/components/layout/PageShell.js +155 -279
  179. package/lib/esm/components/layout/PageShell.js.map +1 -1
  180. package/lib/esm/components/layout/ResizableSplitView.css.js +8 -0
  181. package/lib/esm/components/layout/ResizableSplitView.css.js.map +1 -0
  182. package/lib/esm/components/layout/ResizableSplitView.js +176 -0
  183. package/lib/esm/components/layout/ResizableSplitView.js.map +1 -0
  184. package/lib/esm/components/layout/Surface.css.js +41 -0
  185. package/lib/esm/components/layout/Surface.css.js.map +1 -0
  186. package/lib/esm/components/layout/Surface.js +61 -0
  187. package/lib/esm/components/layout/Surface.js.map +1 -0
  188. package/lib/esm/components/layout/toolbar/Toolbar.css.js +64 -0
  189. package/lib/esm/components/layout/toolbar/Toolbar.css.js.map +1 -0
  190. package/lib/esm/components/layout/toolbar/Toolbar.js +36 -0
  191. package/lib/esm/components/layout/toolbar/Toolbar.js.map +1 -0
  192. package/lib/esm/components/navigation/sidebar/SidebarNavigation.js +89 -0
  193. package/lib/esm/components/navigation/sidebar/SidebarNavigation.js.map +1 -0
  194. package/lib/esm/components/navigation/sidebar/SidebarNavigationItem.js +2 -0
  195. package/lib/esm/components/navigation/sidebar/SidebarNavigationSection.js +2 -0
  196. package/lib/esm/components/navigation/sidebar/SidebarProfileMenu.js +2 -0
  197. package/lib/esm/components/navigation/sidebar/sidebarNavigation.css.js +48 -0
  198. package/lib/esm/components/navigation/sidebar/sidebarNavigation.css.js.map +1 -0
  199. package/lib/esm/components/subscriptions/RefetchNeededBanner.js +16 -23
  200. package/lib/esm/components/subscriptions/RefetchNeededBanner.js.map +1 -1
  201. package/lib/esm/i18n/locales/en/ui.js +16 -5
  202. package/lib/esm/i18n/locales/en/ui.js.map +1 -1
  203. package/lib/esm/i18n/locales/fr/ui.js +16 -5
  204. package/lib/esm/i18n/locales/fr/ui.js.map +1 -1
  205. package/lib/esm/index.js +237 -233
  206. package/lib/esm/internal/data-table/virtualization.js +1 -1
  207. package/lib/esm/internal/data-table/virtualization.js.map +1 -1
  208. package/lib/esm/internal/infinite/infiniteLoad.js +23 -0
  209. package/lib/esm/internal/infinite/infiniteLoad.js.map +1 -0
  210. package/lib/esm/node_modules/dompurify/dist/purify.es.js +290 -246
  211. package/lib/esm/node_modules/dompurify/dist/purify.es.js.map +1 -1
  212. package/lib/esm/node_modules/katex/dist/katex.js +1561 -1599
  213. package/lib/esm/node_modules/katex/dist/katex.js.map +1 -1
  214. package/lib/esm/style.css +1 -1
  215. package/lib/esm/theme/backofficeTheme.css.js +100 -0
  216. package/lib/esm/theme/backofficeTheme.css.js.map +1 -1
  217. package/lib/esm/theme/publicTheme.css.js +100 -0
  218. package/lib/esm/theme/publicTheme.css.js.map +1 -1
  219. package/lib/esm/theme/theme.css.js +200 -0
  220. package/lib/esm/theme/themeContract.css.js +359 -309
  221. package/lib/esm/theme/themeContract.css.js.map +1 -1
  222. package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts +4 -4
  223. package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts.map +1 -1
  224. package/lib/types/atomic/atoms/badge/Badge.d.ts +3 -3
  225. package/lib/types/atomic/atoms/badge/Badge.d.ts.map +1 -1
  226. package/lib/types/atomic/atoms/error_message/ErrorMessage.d.ts +1 -1
  227. package/lib/types/atomic/atoms/error_message/ErrorMessage.d.ts.map +1 -1
  228. package/lib/types/atomic/molecules/card/Card.d.ts.map +1 -1
  229. package/lib/types/atomic/molecules/empty-state/EmptyState.css.d.ts +56 -5
  230. package/lib/types/atomic/molecules/empty-state/EmptyState.css.d.ts.map +1 -1
  231. package/lib/types/atomic/molecules/empty-state/EmptyState.d.ts +14 -4
  232. package/lib/types/atomic/molecules/empty-state/EmptyState.d.ts.map +1 -1
  233. package/lib/types/atomic/molecules/form_error/FormError.d.ts +5 -2
  234. package/lib/types/atomic/molecules/form_error/FormError.d.ts.map +1 -1
  235. package/lib/types/atomic/molecules/form_error/formError.css.d.ts.map +1 -1
  236. package/lib/types/atomic/molecules/tabs/Tabs.d.ts +16 -7
  237. package/lib/types/atomic/molecules/tabs/Tabs.d.ts.map +1 -1
  238. package/lib/types/atomic/molecules/tabs/tabs.css.d.ts +21 -2
  239. package/lib/types/atomic/molecules/tabs/tabs.css.d.ts.map +1 -1
  240. package/lib/types/backoffice/atoms/status_badge/StatusBadge.d.ts.map +1 -1
  241. package/lib/types/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.d.ts +21 -0
  242. package/lib/types/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.d.ts.map +1 -0
  243. package/lib/types/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.d.ts +17 -0
  244. package/lib/types/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.d.ts.map +1 -0
  245. package/lib/types/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.d.ts +14 -0
  246. package/lib/types/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.d.ts.map +1 -0
  247. package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.d.ts +11 -0
  248. package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.d.ts.map +1 -0
  249. package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.d.ts +4 -0
  250. package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.d.ts.map +1 -0
  251. package/lib/types/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.d.ts +12 -0
  252. package/lib/types/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.d.ts.map +1 -0
  253. package/lib/types/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.d.ts +6 -0
  254. package/lib/types/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.d.ts.map +1 -0
  255. package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.d.ts +13 -0
  256. package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.d.ts.map +1 -0
  257. package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.d.ts +3 -0
  258. package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.d.ts.map +1 -0
  259. package/lib/types/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.d.ts.map +1 -1
  260. package/lib/types/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.d.ts +9 -0
  261. package/lib/types/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.d.ts.map +1 -0
  262. package/lib/types/backoffice/molecules/backoffice_form_section/BackofficeFormSection.d.ts.map +1 -1
  263. package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts +0 -3
  264. package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts.map +1 -1
  265. package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.d.ts +5 -0
  266. package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.d.ts.map +1 -0
  267. package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts +8 -2
  268. package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts.map +1 -1
  269. package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts +3 -0
  270. package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts.map +1 -1
  271. package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.d.ts +23 -0
  272. package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.d.ts.map +1 -0
  273. package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.d.ts +25 -0
  274. package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.d.ts.map +1 -0
  275. package/lib/types/backoffice/molecules/{backoffice_infinite_list_status/backofficeInfiniteListStatus.css.d.ts → backoffice_list_footer/backofficeListFooter.css.d.ts} +3 -2
  276. package/lib/types/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.d.ts.map +1 -0
  277. package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.d.ts +26 -0
  278. package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.d.ts.map +1 -0
  279. package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.d.ts +7 -0
  280. package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.d.ts.map +1 -0
  281. package/lib/types/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.d.ts +6 -0
  282. package/lib/types/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.d.ts.map +1 -0
  283. package/lib/types/backoffice/molecules/backoffice_picker/BackofficePicker.d.ts +35 -0
  284. package/lib/types/backoffice/molecules/backoffice_picker/BackofficePicker.d.ts.map +1 -0
  285. package/lib/types/backoffice/molecules/backoffice_picker/backofficePicker.css.d.ts +9 -0
  286. package/lib/types/backoffice/molecules/backoffice_picker/backofficePicker.css.d.ts.map +1 -0
  287. package/lib/types/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.d.ts +10 -0
  288. package/lib/types/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.d.ts.map +1 -0
  289. package/lib/types/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.d.ts +3 -0
  290. package/lib/types/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.d.ts.map +1 -0
  291. package/lib/types/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.d.ts +15 -0
  292. package/lib/types/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.d.ts.map +1 -0
  293. package/lib/types/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.d.ts +8 -0
  294. package/lib/types/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.d.ts.map +1 -0
  295. package/lib/types/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.d.ts +14 -0
  296. package/lib/types/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.d.ts.map +1 -0
  297. package/lib/types/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.d.ts +2 -0
  298. package/lib/types/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.d.ts.map +1 -0
  299. package/lib/types/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.d.ts +22 -0
  300. package/lib/types/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.d.ts.map +1 -0
  301. package/lib/types/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.d.ts +18 -0
  302. package/lib/types/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.d.ts.map +1 -0
  303. package/lib/types/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.d.ts.map +1 -1
  304. package/lib/types/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.d.ts.map +1 -1
  305. package/lib/types/backoffice/molecules/sidebar_nav_item/SidebarNavItem.d.ts.map +1 -1
  306. package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts +1 -0
  307. package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts.map +1 -1
  308. package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts.map +1 -1
  309. package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts +2 -0
  310. package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts.map +1 -1
  311. package/lib/types/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.d.ts.map +1 -1
  312. package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts +8 -0
  313. package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts.map +1 -1
  314. package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts +20 -2
  315. package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts.map +1 -1
  316. package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts +32 -2
  317. package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts.map +1 -1
  318. package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts +2 -2
  319. package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts.map +1 -1
  320. package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts +12 -1
  321. package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts.map +1 -1
  322. package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts +25 -4
  323. package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts.map +1 -1
  324. package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.d.ts +4 -0
  325. package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.d.ts.map +1 -0
  326. package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.d.ts +19 -0
  327. package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.d.ts.map +1 -0
  328. package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.css.d.ts +2 -0
  329. package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.css.d.ts.map +1 -0
  330. package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.d.ts +11 -0
  331. package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.d.ts.map +1 -0
  332. package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.d.ts +5 -0
  333. package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.d.ts.map +1 -0
  334. package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.d.ts +14 -0
  335. package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.d.ts.map +1 -0
  336. package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.css.d.ts +6 -0
  337. package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.css.d.ts.map +1 -0
  338. package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.d.ts +14 -0
  339. package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.d.ts.map +1 -0
  340. package/lib/types/components/dashboard/metric_card/MetricCard.css.d.ts +38 -1
  341. package/lib/types/components/dashboard/metric_card/MetricCard.css.d.ts.map +1 -1
  342. package/lib/types/components/dashboard/metric_card/MetricCard.d.ts +7 -1
  343. package/lib/types/components/dashboard/metric_card/MetricCard.d.ts.map +1 -1
  344. package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.css.d.ts +17 -1
  345. package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.css.d.ts.map +1 -1
  346. package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.d.ts +4 -1
  347. package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.d.ts.map +1 -1
  348. package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.css.d.ts +31 -2
  349. package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.css.d.ts.map +1 -1
  350. package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.d.ts +8 -3
  351. package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.d.ts.map +1 -1
  352. package/lib/types/components/data-table/DataTable.css.d.ts +1 -0
  353. package/lib/types/components/data-table/DataTable.css.d.ts.map +1 -1
  354. package/lib/types/components/data-table/DataTable.d.ts +54 -3
  355. package/lib/types/components/data-table/DataTable.d.ts.map +1 -1
  356. package/lib/types/components/data-table/ResponsiveRecordList.d.ts +1 -4
  357. package/lib/types/components/data-table/ResponsiveRecordList.d.ts.map +1 -1
  358. package/lib/types/components/data-table/VirtualizedConnectionTable.css.d.ts +0 -1
  359. package/lib/types/components/data-table/VirtualizedConnectionTable.css.d.ts.map +1 -1
  360. package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts +11 -5
  361. package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts.map +1 -1
  362. package/lib/types/{backoffice/molecules/inline_banner → components/feedback}/InlineBanner.d.ts +4 -2
  363. package/lib/types/components/feedback/InlineBanner.d.ts.map +1 -0
  364. package/lib/types/components/feedback/OperationFeedback.css.d.ts +0 -1
  365. package/lib/types/components/feedback/OperationFeedback.css.d.ts.map +1 -1
  366. package/lib/types/components/feedback/OperationFeedback.d.ts.map +1 -1
  367. package/lib/types/components/feedback/inlineBanner.css.d.ts.map +1 -0
  368. package/lib/types/components/infinite/InfiniteScrollTrigger.d.ts.map +1 -1
  369. package/lib/types/components/layout/ActionPanel.css.d.ts +1 -0
  370. package/lib/types/components/layout/ActionPanel.css.d.ts.map +1 -1
  371. package/lib/types/components/layout/ActionPanel.d.ts.map +1 -1
  372. package/lib/types/components/layout/PageShell.css.d.ts +1 -14
  373. package/lib/types/components/layout/PageShell.css.d.ts.map +1 -1
  374. package/lib/types/components/layout/PageShell.d.ts +1 -3
  375. package/lib/types/components/layout/PageShell.d.ts.map +1 -1
  376. package/lib/types/components/layout/ResizableSplitView.css.d.ts +8 -0
  377. package/lib/types/components/layout/ResizableSplitView.css.d.ts.map +1 -0
  378. package/lib/types/components/layout/ResizableSplitView.d.ts +27 -0
  379. package/lib/types/components/layout/ResizableSplitView.d.ts.map +1 -0
  380. package/lib/types/components/layout/Surface.css.d.ts +31 -0
  381. package/lib/types/components/layout/Surface.css.d.ts.map +1 -0
  382. package/lib/types/components/layout/Surface.d.ts +30 -0
  383. package/lib/types/components/layout/Surface.d.ts.map +1 -0
  384. package/lib/types/components/layout/toolbar/Toolbar.css.d.ts +40 -0
  385. package/lib/types/components/layout/toolbar/Toolbar.css.d.ts.map +1 -0
  386. package/lib/types/components/layout/toolbar/Toolbar.d.ts +35 -0
  387. package/lib/types/components/layout/toolbar/Toolbar.d.ts.map +1 -0
  388. package/lib/types/components/navigation/sidebar/SidebarNavigation.d.ts +57 -0
  389. package/lib/types/components/navigation/sidebar/SidebarNavigation.d.ts.map +1 -0
  390. package/lib/types/components/navigation/sidebar/SidebarNavigationItem.d.ts +2 -0
  391. package/lib/types/components/navigation/sidebar/SidebarNavigationItem.d.ts.map +1 -0
  392. package/lib/types/components/navigation/sidebar/SidebarNavigationSection.d.ts +2 -0
  393. package/lib/types/components/navigation/sidebar/SidebarNavigationSection.d.ts.map +1 -0
  394. package/lib/types/components/navigation/sidebar/SidebarProfileMenu.d.ts +2 -0
  395. package/lib/types/components/navigation/sidebar/SidebarProfileMenu.d.ts.map +1 -0
  396. package/lib/types/components/navigation/sidebar/sidebarNavigation.css.d.ts +19 -0
  397. package/lib/types/components/navigation/sidebar/sidebarNavigation.css.d.ts.map +1 -0
  398. package/lib/types/components/subscriptions/RefetchNeededBanner.d.ts.map +1 -1
  399. package/lib/types/i18n/resources.d.ts +32 -14
  400. package/lib/types/i18n/resources.d.ts.map +1 -1
  401. package/lib/types/index.d.ts +33 -33
  402. package/lib/types/index.d.ts.map +1 -1
  403. package/lib/types/internal/data-table/virtualization.d.ts +2 -2
  404. package/lib/types/internal/data-table/virtualization.d.ts.map +1 -1
  405. package/lib/types/internal/infinite/infiniteLoad.d.ts +27 -0
  406. package/lib/types/internal/infinite/infiniteLoad.d.ts.map +1 -0
  407. package/lib/types/theme/backofficeTheme.css.d.ts +100 -0
  408. package/lib/types/theme/backofficeTheme.css.d.ts.map +1 -1
  409. package/lib/types/theme/publicTheme.css.d.ts +100 -0
  410. package/lib/types/theme/publicTheme.css.d.ts.map +1 -1
  411. package/lib/types/theme/sprinkles.css.d.ts +2 -2
  412. package/lib/types/theme/themeContract.css.d.ts +50 -0
  413. package/lib/types/theme/themeContract.css.d.ts.map +1 -1
  414. package/package.json +3 -3
  415. package/src/i18n/locales/en/ui.json +16 -7
  416. package/src/i18n/locales/fr/ui.json +16 -7
  417. package/lib/esm/atomic/molecules/card/Card.css.js +0 -8
  418. package/lib/esm/atomic/molecules/card/Card.css.js.map +0 -1
  419. package/lib/esm/atomic/molecules/form/FormErrorBanner.css.js +0 -8
  420. package/lib/esm/atomic/molecules/form/FormErrorBanner.css.js.map +0 -1
  421. package/lib/esm/atomic/molecules/form/FormErrorBanner.js +0 -17
  422. package/lib/esm/atomic/molecules/form/FormErrorBanner.js.map +0 -1
  423. package/lib/esm/atomic/templates/detail-page/DetailPage.js +0 -49
  424. package/lib/esm/atomic/templates/detail-page/DetailPage.js.map +0 -1
  425. package/lib/esm/atomic/templates/detail-page/detailPage.css.js +0 -8
  426. package/lib/esm/atomic/templates/detail-page/detailPage.css.js.map +0 -1
  427. package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js +0 -33
  428. package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js.map +0 -1
  429. package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js +0 -8
  430. package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js.map +0 -1
  431. package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js +0 -8
  432. package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js.map +0 -1
  433. package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js +0 -36
  434. package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js.map +0 -1
  435. package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js +0 -8
  436. package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js.map +0 -1
  437. package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js +0 -8
  438. package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js.map +0 -1
  439. package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.js +0 -37
  440. package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.js.map +0 -1
  441. package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.js +0 -8
  442. package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.js.map +0 -1
  443. package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js +0 -35
  444. package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js.map +0 -1
  445. package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js +0 -8
  446. package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js.map +0 -1
  447. package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js +0 -41
  448. package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js.map +0 -1
  449. package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js +0 -8
  450. package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js.map +0 -1
  451. package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js +0 -46
  452. package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js.map +0 -1
  453. package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js +0 -17
  454. package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js.map +0 -1
  455. package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js +0 -46
  456. package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js.map +0 -1
  457. package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js +0 -19
  458. package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js.map +0 -1
  459. package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js +0 -41
  460. package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js.map +0 -1
  461. package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js +0 -8
  462. package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js.map +0 -1
  463. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js +0 -26
  464. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js.map +0 -1
  465. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js +0 -8
  466. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js.map +0 -1
  467. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/helpers.js +0 -18
  468. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/helpers.js.map +0 -1
  469. package/lib/esm/components/dashboard/section_nav/SectionNav.css.js +0 -8
  470. package/lib/esm/components/dashboard/section_nav/SectionNav.css.js.map +0 -1
  471. package/lib/esm/components/dashboard/section_nav/SectionNav.js +0 -25
  472. package/lib/esm/components/dashboard/section_nav/SectionNav.js.map +0 -1
  473. package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.css.js +0 -8
  474. package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.css.js.map +0 -1
  475. package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.js +0 -24
  476. package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.js.map +0 -1
  477. package/lib/esm/components/layout/AppShell.js +0 -19
  478. package/lib/esm/components/layout/AppShell.js.map +0 -1
  479. package/lib/esm/components/layout/SidebarPageLayout.js +0 -16
  480. package/lib/esm/components/layout/SidebarPageLayout.js.map +0 -1
  481. package/lib/esm/components/layout/SplitViewLayout.css.js +0 -8
  482. package/lib/esm/components/layout/SplitViewLayout.css.js.map +0 -1
  483. package/lib/esm/components/layout/SplitViewLayout.js +0 -18
  484. package/lib/esm/components/layout/SplitViewLayout.js.map +0 -1
  485. package/lib/esm/components/layout/TabsContentLayout.css.js +0 -8
  486. package/lib/esm/components/layout/TabsContentLayout.css.js.map +0 -1
  487. package/lib/esm/components/layout/TabsContentLayout.js +0 -31
  488. package/lib/esm/components/layout/TabsContentLayout.js.map +0 -1
  489. package/lib/esm/components/layout/ToolbarRow.css.js +0 -8
  490. package/lib/esm/components/layout/ToolbarRow.css.js.map +0 -1
  491. package/lib/esm/components/layout/ToolbarRow.js +0 -12
  492. package/lib/esm/components/layout/ToolbarRow.js.map +0 -1
  493. package/lib/esm/components/subscriptions/RefetchNeededBanner.css.js +0 -8
  494. package/lib/esm/components/subscriptions/RefetchNeededBanner.css.js.map +0 -1
  495. package/lib/types/atomic/molecules/card/Card.css.d.ts +0 -5
  496. package/lib/types/atomic/molecules/card/Card.css.d.ts.map +0 -1
  497. package/lib/types/atomic/molecules/form/FormErrorBanner.css.d.ts +0 -2
  498. package/lib/types/atomic/molecules/form/FormErrorBanner.css.d.ts.map +0 -1
  499. package/lib/types/atomic/molecules/form/FormErrorBanner.d.ts +0 -7
  500. package/lib/types/atomic/molecules/form/FormErrorBanner.d.ts.map +0 -1
  501. package/lib/types/atomic/templates/detail-page/DetailPage.d.ts +0 -19
  502. package/lib/types/atomic/templates/detail-page/DetailPage.d.ts.map +0 -1
  503. package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts +0 -9
  504. package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts.map +0 -1
  505. package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts +0 -10
  506. package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts.map +0 -1
  507. package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts +0 -7
  508. package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts.map +0 -1
  509. package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts +0 -6
  510. package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts.map +0 -1
  511. package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts +0 -13
  512. package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts.map +0 -1
  513. package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts +0 -6
  514. package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts.map +0 -1
  515. package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts +0 -5
  516. package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts.map +0 -1
  517. package/lib/types/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.d.ts +0 -16
  518. package/lib/types/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.d.ts.map +0 -1
  519. package/lib/types/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.d.ts.map +0 -1
  520. package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts +0 -13
  521. package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts.map +0 -1
  522. package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts +0 -5
  523. package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts.map +0 -1
  524. package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts +0 -16
  525. package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts.map +0 -1
  526. package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts +0 -10
  527. package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts.map +0 -1
  528. package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts +0 -19
  529. package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts.map +0 -1
  530. package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts +0 -15
  531. package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts.map +0 -1
  532. package/lib/types/backoffice/molecules/inline_banner/InlineBanner.d.ts.map +0 -1
  533. package/lib/types/backoffice/molecules/inline_banner/inlineBanner.css.d.ts.map +0 -1
  534. package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts +0 -13
  535. package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts.map +0 -1
  536. package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts +0 -6
  537. package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts.map +0 -1
  538. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts +0 -31
  539. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts.map +0 -1
  540. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts +0 -5
  541. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts.map +0 -1
  542. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/helpers.d.ts +0 -5
  543. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/helpers.d.ts.map +0 -1
  544. package/lib/types/components/dashboard/section_nav/SectionNav.css.d.ts +0 -4
  545. package/lib/types/components/dashboard/section_nav/SectionNav.css.d.ts.map +0 -1
  546. package/lib/types/components/dashboard/section_nav/SectionNav.d.ts +0 -15
  547. package/lib/types/components/dashboard/section_nav/SectionNav.d.ts.map +0 -1
  548. package/lib/types/components/dashboard/segmented_nav/SegmentedNav.css.d.ts +0 -4
  549. package/lib/types/components/dashboard/segmented_nav/SegmentedNav.css.d.ts.map +0 -1
  550. package/lib/types/components/dashboard/segmented_nav/SegmentedNav.d.ts +0 -15
  551. package/lib/types/components/dashboard/segmented_nav/SegmentedNav.d.ts.map +0 -1
  552. package/lib/types/components/layout/AppShell.d.ts +0 -17
  553. package/lib/types/components/layout/AppShell.d.ts.map +0 -1
  554. package/lib/types/components/layout/SidebarPageLayout.d.ts +0 -15
  555. package/lib/types/components/layout/SidebarPageLayout.d.ts.map +0 -1
  556. package/lib/types/components/layout/SplitViewLayout.css.d.ts +0 -3
  557. package/lib/types/components/layout/SplitViewLayout.css.d.ts.map +0 -1
  558. package/lib/types/components/layout/SplitViewLayout.d.ts +0 -11
  559. package/lib/types/components/layout/SplitViewLayout.d.ts.map +0 -1
  560. package/lib/types/components/layout/TabsContentLayout.css.d.ts +0 -6
  561. package/lib/types/components/layout/TabsContentLayout.css.d.ts.map +0 -1
  562. package/lib/types/components/layout/TabsContentLayout.d.ts +0 -9
  563. package/lib/types/components/layout/TabsContentLayout.d.ts.map +0 -1
  564. package/lib/types/components/layout/ToolbarRow.css.d.ts +0 -2
  565. package/lib/types/components/layout/ToolbarRow.css.d.ts.map +0 -1
  566. package/lib/types/components/layout/ToolbarRow.d.ts +0 -8
  567. package/lib/types/components/layout/ToolbarRow.d.ts.map +0 -1
  568. package/lib/types/components/subscriptions/RefetchNeededBanner.css.d.ts +0 -5
  569. package/lib/types/components/subscriptions/RefetchNeededBanner.css.d.ts.map +0 -1
  570. /package/lib/types/{backoffice/molecules/inline_banner → components/feedback}/inlineBanner.css.d.ts +0 -0
@@ -1,16 +1,14 @@
1
- import { cx as e } from "../../theme/tools.js";
2
- import { useUiTranslation as t } from "../../i18n/useUiTranslation.js";
3
- import { alignRecipe as n, body as r, bodyContained as i, cell as a, container as o, containerWithContainedBody as s, emptyRow as c, header as l, headerCell as u, headerRow as ee, hideBelowRecipe as d, primaryCell as te, primaryHeaderCell as ne, row as re, rowEven as ie, rowOdd as ae } from "./DataTable.css.js";
4
- import { buildDataTableInlineTemplate as oe } from "../../internal/data-table/layout.js";
5
- import { bodyViewport as se, sentinel as ce, singleLineCell as le, spacer as f } from "./VirtualizedConnectionTable.css.js";
6
- import { clamp as ue, computeVirtualWindowBounds as de, isVerticallyScrollable as p, shouldTriggerInfiniteLoad as fe } from "../../internal/data-table/virtualization.js";
7
- import { useCallback as m, useEffect as h, useLayoutEffect as g, useMemo as _, useRef as v, useState as pe } from "react";
8
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
1
+ import { DataTableBody as e, DataTableEmptyRow as t, DataTableHeader as n, DataTableRoot as r, DataTableRow as i } from "./DataTable.js";
2
+ import { resolveInfiniteRootMargin as a, shouldTriggerInfiniteLoad as o } from "../../internal/infinite/infiniteLoad.js";
3
+ import { bodyViewport as s, sentinel as c, spacer as l } from "./VirtualizedConnectionTable.css.js";
4
+ import { clamp as ee, computeVirtualWindowBounds as te, isVerticallyScrollable as u, shouldTriggerVirtualizedInfiniteLoad as ne } from "../../internal/data-table/virtualization.js";
5
+ import { useCallback as d, useEffect as f, useLayoutEffect as p, useMemo as m, useRef as h, useState as re } from "react";
6
+ import { Fragment as ie, jsx as g, jsxs as _ } from "react/jsx-runtime";
9
7
  //#region src/components/data-table/VirtualizedConnectionTable.tsx
10
- var x = (e) => e == null ? null : d({ minVisibleAt: e }), S = (e) => {
8
+ var v = (e) => {
11
9
  let t = e;
12
10
  for (; t != null;) {
13
- if (p({
11
+ if (u({
14
12
  overflowY: window.getComputedStyle(t).overflowY,
15
13
  scrollHeight: t.scrollHeight,
16
14
  clientHeight: t.clientHeight
@@ -18,212 +16,221 @@ var x = (e) => e == null ? null : d({ minVisibleAt: e }), S = (e) => {
18
16
  t = t.parentElement;
19
17
  }
20
18
  return null;
21
- }, C = ({ columns: d, rows: p, getRowId: C, emptyState: me, className: he, gridTemplateColumns: ge, kind: _e, classes: w, bodyScrollMode: T = "page", virtualization: E, infiniteScroll: D, hasNextPage: ve = !1, isLoadingMore: ye = !1, onLoadMore: O, ariaLabel: be, ariaLabelledBy: k }) => {
22
- let { t: A } = t(), j = _e ?? "default", M = be ?? A("common.table.label");
23
- k != null && (M = void 0);
24
- let N = v(null), P = v(null), F = v(null), I = v(null), L = v(null), R = v(null), z = v(!1), B = E?.enabled === !0, V = _(() => {
25
- if (!B) return null;
26
- let e = E.rowHeightPx;
19
+ }, y = ({ columns: u, rows: y, getRowId: b, emptyState: ae, className: oe, headerClassName: se, bodyClassName: ce, rowClassName: x, gridTemplateClassName: S, gridTemplateColumns: C, kind: w, density: T, headerBehavior: le, rowState: E, classes: D, bodyScrollMode: O = "page", bodyFooterNode: ue, virtualization: k, infiniteScroll: A, hasNextPage: j = !1, isLoadingMore: M = !1, onLoadMore: N, ariaLabel: de, ariaLabelledBy: fe }) => {
20
+ let P = h(null), F = h(null), I = h(null), L = h(null), R = h(null), z = h(null), B = h(!1), V = k?.enabled === !0, H = m(() => {
21
+ if (!V) return null;
22
+ let e = k.rowHeightPx;
27
23
  return typeof e == "number" && Number.isFinite(e) && e > 0 ? e : 56;
28
- }, [B, E]), H = _(() => {
29
- if (!B) return 0;
30
- let e = 10, t = E.overscan;
24
+ }, [V, k]), U = m(() => {
25
+ if (!V) return 0;
26
+ let e = 10, t = k.overscan;
31
27
  return typeof t == "number" && Number.isFinite(t) && (e = t), Math.max(0, e);
32
- }, [B, E]), U = D?.thresholdPx ?? 800, W = D?.autoLoad ?? !0, G = D?.enabled === !0, K = T === "contained", q = G && ve && !ye && O != null, J = m(() => {
33
- O?.();
34
- }, [O]), [xe, Se] = pe(() => ({
28
+ }, [V, k]), W = A?.thresholdPx ?? 800, G = A?.autoLoad ?? !0, K = A?.enabled === !0, q = O === "contained", J = K && j && !M && N != null, Y = d(() => {
29
+ N?.();
30
+ }, [N]), [pe, me] = re(() => ({
35
31
  startIndex: 0,
36
- endIndex: Math.min(p.length, 50)
37
- })), Y = _(() => oe(d.length, ge), [d.length, ge]), Ce = m((t, r, i) => {
38
- let o = C(t, r), s = [re({ kind: j }), w?.row];
39
- r % 2 == 0 ? s.push(ie({ kind: j }), w?.rowEven) : s.push(ae({ kind: j }), w?.rowOdd);
40
- let c = { ...Y };
41
- return typeof i == "number" && (c.height = i), /* @__PURE__ */ y("div", {
42
- role: "row",
43
- className: e(...s),
44
- style: c,
45
- children: d.map((r) => {
46
- let i = [
47
- a({ kind: j }),
48
- le,
49
- w?.cell
50
- ], o = x(r.minVisibleAt);
51
- return o != null && i.push(o), r.className != null && i.push(r.className), r.isPrimary && i.push(te, w?.primaryCell), r.align != null && i.push(n({ align: r.align })), /* @__PURE__ */ y("div", {
52
- role: "cell",
53
- className: e(...i),
54
- children: r.cell(t)
55
- }, r.id);
56
- })
57
- }, o);
32
+ endIndex: Math.min(y.length, 50)
33
+ })), X = d((e, t, n) => {
34
+ let r = {};
35
+ return typeof n == "number" && (r.height = n), /* @__PURE__ */ g(i, {
36
+ row: e,
37
+ index: t,
38
+ columns: u,
39
+ getRowId: b,
40
+ kind: w,
41
+ density: T,
42
+ rowClassName: x,
43
+ rowState: E,
44
+ gridTemplateClassName: S,
45
+ gridTemplateColumns: C,
46
+ classes: D,
47
+ style: r,
48
+ cellMode: "singleLine"
49
+ }, b(e, t));
58
50
  }, [
59
- w,
60
- d,
51
+ D,
52
+ u,
53
+ T,
54
+ b,
55
+ S,
61
56
  C,
62
- Y,
63
- j
64
- ]), X = m(() => {
65
- if (!B) return;
66
- let e = V;
57
+ w,
58
+ x,
59
+ E
60
+ ]), Z = d(() => {
61
+ if (!V) return;
62
+ let e = H;
67
63
  if (e == null) return;
68
- let t = F.current;
64
+ let t = I.current;
69
65
  if (t == null) return;
70
- let n = P.current, r = L.current, i = r?.clientHeight ?? window.innerHeight, a = 0;
71
- if (K && n != null) i = n.clientHeight, a = n.scrollTop;
66
+ let n = F.current, r = R.current, i = r?.clientHeight ?? window.innerHeight, a = 0;
67
+ if (q && n != null) i = n.clientHeight, a = n.scrollTop;
72
68
  else {
73
69
  let e = r?.getBoundingClientRect().top ?? 0, n = t.getBoundingClientRect().top - e;
74
70
  a = Math.max(0, -n);
75
71
  }
76
- let o = a + i, s = p.length * e, c = ue(o, 0, s), { startIndex: l, endIndex: u } = de({
77
- rowCount: p.length,
72
+ let s = a + i, c = y.length * e, l = ee(s, 0, c), { startIndex: u, endIndex: d } = te({
73
+ rowCount: y.length,
78
74
  rowHeightPx: e,
79
- overscan: H,
75
+ overscan: U,
80
76
  visibleTop: a,
81
- visibleBottom: o
77
+ visibleBottom: s
82
78
  });
83
- Se((e) => e.startIndex === l && e.endIndex === u ? e : {
84
- startIndex: l,
85
- endIndex: u
86
- }), fe({
87
- autoLoad: W,
88
- canLoadMore: q,
89
- totalHeight: s,
90
- visibleBottom: c,
91
- thresholdPx: U,
92
- isCoolingDown: z.current
93
- }) && (z.current = !0, J(), window.setTimeout(() => {
94
- z.current = !1;
79
+ me((e) => e.startIndex === u && e.endIndex === d ? e : {
80
+ startIndex: u,
81
+ endIndex: d
82
+ }), o({
83
+ enabled: K,
84
+ hasNext: j,
85
+ isLoading: M,
86
+ autoLoad: G,
87
+ isCoolingDown: B.current
88
+ }) && J && ne({
89
+ autoLoad: G,
90
+ canLoadMore: J,
91
+ totalHeight: c,
92
+ visibleBottom: l,
93
+ thresholdPx: W,
94
+ isCoolingDown: B.current
95
+ }) && (B.current = !0, Y(), window.setTimeout(() => {
96
+ B.current = !1;
95
97
  }, 250));
96
98
  }, [
97
- W,
99
+ G,
100
+ J,
101
+ j,
98
102
  q,
99
- K,
100
- B,
101
- H,
102
103
  V,
103
- p.length,
104
+ K,
105
+ M,
104
106
  U,
105
- J
106
- ]), Z = m(() => {
107
- R.current ??= window.requestAnimationFrame(() => {
108
- R.current = null, X();
107
+ H,
108
+ y.length,
109
+ W,
110
+ Y
111
+ ]), Q = d(() => {
112
+ z.current ??= window.requestAnimationFrame(() => {
113
+ z.current = null, Z();
109
114
  });
110
- }, [X]);
111
- g(() => {
112
- if (!B) return;
113
- let e = N.current;
114
- e != null && (K ? L.current = P.current : L.current = S(e), Z());
115
+ }, [Z]);
116
+ p(() => {
117
+ if (!V) return;
118
+ let e = P.current;
119
+ e != null && (q ? R.current = F.current : R.current = v(e), Q());
115
120
  }, [
116
- K,
117
- B,
118
- Z
119
- ]), h(() => {
120
- if (!B) return;
121
- let e = L.current ?? window, t = () => {
122
- Z();
121
+ q,
122
+ V,
123
+ Q
124
+ ]), f(() => {
125
+ if (!V) return;
126
+ let e = R.current ?? window, t = () => {
127
+ Q();
123
128
  };
124
129
  return e.addEventListener("scroll", t, { passive: !0 }), window.addEventListener("resize", t), () => {
125
130
  e.removeEventListener("scroll", t), window.removeEventListener("resize", t);
126
131
  };
127
- }, [B, Z]), h(() => {
128
- if (B || !G || !W || !q) return;
129
- let e = I.current;
130
- if (e == null) return;
131
- let t = L.current, n = new IntersectionObserver((e) => {
132
+ }, [V, Q]), f(() => {
133
+ if (V || !o({
134
+ enabled: K,
135
+ hasNext: j,
136
+ isLoading: M,
137
+ autoLoad: G,
138
+ isCoolingDown: !1
139
+ }) || !J) return;
140
+ let e = L.current;
141
+ if (e == null || typeof window > "u" || typeof IntersectionObserver > "u") return;
142
+ let t = R.current, n = new IntersectionObserver((e) => {
132
143
  let [t] = e;
133
- t != null && t.isIntersecting && !z.current && (z.current = !0, J(), window.setTimeout(() => {
134
- z.current = !1;
144
+ t != null && t.isIntersecting && o({
145
+ enabled: K,
146
+ hasNext: j,
147
+ isLoading: M,
148
+ autoLoad: G,
149
+ isCoolingDown: B.current
150
+ }) && (B.current = !0, Y(), window.setTimeout(() => {
151
+ B.current = !1;
135
152
  }, 250));
136
153
  }, {
137
154
  root: t,
138
- rootMargin: `0px 0px ${U}px 0px`
155
+ rootMargin: a({ thresholdPx: W })
139
156
  });
140
157
  return n.observe(e), () => {
141
158
  n.disconnect();
142
159
  };
143
160
  }, [
144
- W,
145
- q,
146
161
  G,
147
- B,
148
- U,
149
- J
150
- ]), g(() => {
151
- if (B) return;
152
- let e = N.current;
153
- e != null && (K ? L.current = P.current : L.current = S(e));
154
- }, [K, B]);
155
- let we = /* @__PURE__ */ y("div", {
156
- className: e(l({ kind: j }), w?.header),
157
- role: "rowgroup",
158
- children: /* @__PURE__ */ y("div", {
159
- className: e(ee, w?.headerRow),
160
- role: "row",
161
- style: Y,
162
- children: d.map((t) => {
163
- let r = [u({ kind: j }), w?.headerCell], i = x(t.minVisibleAt);
164
- return i != null && r.push(i), t.className != null && r.push(t.className), t.isPrimary && r.push(ne, w?.primaryHeaderCell), t.align != null && r.push(n({ align: t.align })), /* @__PURE__ */ y("div", {
165
- role: "columnheader",
166
- className: e(...r),
167
- children: t.header
168
- }, t.id);
169
- })
170
- })
171
- }), Q;
172
- if (p.length === 0) Q = /* @__PURE__ */ y("div", {
173
- className: e(c, w?.emptyRow),
174
- role: "row",
175
- children: /* @__PURE__ */ y("div", {
176
- role: "cell",
177
- children: me ?? /* @__PURE__ */ y("div", {
178
- className: e("ysn84625 txvbqb9w txvbqb19cb txvbqb16fa", w?.emptyCell),
179
- children: A("common.table.empty")
180
- })
181
- })
162
+ J,
163
+ j,
164
+ K,
165
+ V,
166
+ M,
167
+ W,
168
+ Y
169
+ ]), p(() => {
170
+ if (V) return;
171
+ let e = P.current;
172
+ e != null && (q ? R.current = F.current : R.current = v(e));
173
+ }, [q, V]);
174
+ let $;
175
+ if (y.length === 0) $ = /* @__PURE__ */ g(t, {
176
+ emptyState: ae,
177
+ density: T,
178
+ classes: D
182
179
  });
183
- else if (B && V != null) {
184
- let { startIndex: e, endIndex: t } = xe, n = e * V, r = (p.length - t) * V, i = p.slice(e, t);
185
- Q = /* @__PURE__ */ b("div", {
186
- className: se,
187
- ref: F,
180
+ else if (V && H != null) {
181
+ let { startIndex: e, endIndex: t } = pe, n = e * H, r = (y.length - t) * H, i = y.slice(e, t);
182
+ $ = /* @__PURE__ */ _("div", {
183
+ className: s,
184
+ ref: I,
188
185
  children: [
189
- /* @__PURE__ */ y("div", {
190
- className: f,
186
+ /* @__PURE__ */ g("div", {
187
+ className: l,
191
188
  style: { height: n }
192
189
  }),
193
- i.map((t, n) => Ce(t, e + n, V)),
194
- /* @__PURE__ */ y("div", {
195
- className: f,
190
+ i.map((t, n) => X(t, e + n, H)),
191
+ /* @__PURE__ */ g("div", {
192
+ className: l,
196
193
  style: { height: r }
197
194
  })
198
195
  ]
199
196
  });
200
- } else Q = /* @__PURE__ */ y("div", {
201
- ref: F,
202
- children: p.map((e, t) => Ce(e, t, null))
203
- });
204
- let Te = null;
205
- !B && G && W && (Te = /* @__PURE__ */ y("div", {
206
- ref: I,
207
- className: ce
208
- }));
209
- let Ee = null, $ = null;
210
- return K && (Ee = s, $ = i), /* @__PURE__ */ b("div", {
211
- ref: N,
212
- className: e(o({ kind: j }), Ee, w?.container, he),
213
- role: "table",
214
- "aria-label": M,
215
- "aria-labelledby": k,
216
- "data-scroll-mode": T,
217
- children: [we, /* @__PURE__ */ b("div", {
218
- ref: P,
219
- className: e(r({ kind: j }), $, w?.body),
220
- role: "rowgroup",
221
- "data-scroll-mode": T,
222
- children: [Q, Te]
197
+ } else $ = /* @__PURE__ */ g(ie, { children: y.map((e, t) => X(e, t, null)) });
198
+ let he = null;
199
+ return !V && K && G && (he = /* @__PURE__ */ g("div", {
200
+ ref: L,
201
+ className: c
202
+ })), /* @__PURE__ */ _(r, {
203
+ ref: P,
204
+ className: oe,
205
+ kind: w,
206
+ bodyScrollMode: O,
207
+ classes: D,
208
+ ariaLabel: de,
209
+ ariaLabelledBy: fe,
210
+ children: [/* @__PURE__ */ g(n, {
211
+ columns: u,
212
+ kind: w,
213
+ density: T,
214
+ headerBehavior: le,
215
+ headerClassName: se,
216
+ gridTemplateClassName: S,
217
+ gridTemplateColumns: C,
218
+ classes: D
219
+ }), /* @__PURE__ */ _(e, {
220
+ ref: F,
221
+ className: ce,
222
+ kind: w,
223
+ bodyScrollMode: O,
224
+ classes: D,
225
+ children: [
226
+ $,
227
+ he,
228
+ ue
229
+ ]
223
230
  })]
224
231
  });
225
232
  };
226
233
  //#endregion
227
- export { C as VirtualizedConnectionTable };
234
+ export { y as VirtualizedConnectionTable };
228
235
 
229
236
  //# sourceMappingURL=VirtualizedConnectionTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualizedConnectionTable.js","names":[],"sources":["../../../../src/components/data-table/VirtualizedConnectionTable.tsx"],"sourcesContent":["import {\n useCallback,\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n type CSSProperties,\n type JSX,\n} from 'react';\n\nimport type { DataTableBreakpoint } from './tableBreakpoints.js';\nimport type {\n DataTableBodyScrollMode,\n DataTableColumn,\n DataTableKind,\n GetRowId,\n} from './DataTable.js';\nimport * as dataTableStyles from './DataTable.css.js';\nimport * as styles from './VirtualizedConnectionTable.css.js';\n\nimport { buildDataTableInlineTemplate } from '../../internal/data-table/layout.js';\nimport {\n clamp,\n computeVirtualWindowBounds,\n isVerticallyScrollable,\n shouldTriggerInfiniteLoad,\n type VirtualWindow,\n} from '../../internal/data-table/virtualization.js';\nimport { cx } from '../../theme/tools.js';\nimport { useUiTranslation } from '../../i18n/useUiTranslation.js';\nimport type { SlotClasses } from '../../styles/slots.js';\n\nexport type VirtualizationConfig = {\n enabled: boolean;\n rowHeightPx: number;\n overscan: number;\n};\n\nexport type InfiniteScrollConfig = {\n enabled: boolean;\n thresholdPx?: number;\n autoLoad?: boolean;\n};\n\ntype DataTableSlot =\n | 'container'\n | 'header'\n | 'headerRow'\n | 'headerCell'\n | 'primaryHeaderCell'\n | 'body'\n | 'row'\n | 'rowEven'\n | 'rowOdd'\n | 'cell'\n | 'primaryCell'\n | 'emptyRow'\n | 'emptyCell';\n\nexport type VirtualizedConnectionTableProps<Row> = {\n columns: readonly DataTableColumn<Row>[];\n rows: readonly Row[];\n getRowId: GetRowId<Row>;\n emptyState?: JSX.Element;\n className?: string;\n gridTemplateColumns?: string;\n kind?: DataTableKind;\n classes?: SlotClasses<DataTableSlot>;\n bodyScrollMode?: DataTableBodyScrollMode;\n\n virtualization?: VirtualizationConfig;\n\n infiniteScroll?: InfiniteScrollConfig;\n hasNextPage?: boolean;\n isLoadingMore?: boolean;\n onLoadMore?: () => void;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n};\n\nconst getVisibilityClass = (minVisibleAt?: DataTableBreakpoint) => {\n if (minVisibleAt == null) {\n return null;\n }\n return dataTableStyles.hideBelowRecipe({ minVisibleAt });\n};\n\nconst findScrollParent = (el: HTMLElement | null): HTMLElement | null => {\n let current: HTMLElement | null = el;\n while (current != null) {\n const style = window.getComputedStyle(current);\n if (\n isVerticallyScrollable({\n overflowY: style.overflowY,\n scrollHeight: current.scrollHeight,\n clientHeight: current.clientHeight,\n })\n ) {\n return current;\n }\n current = current.parentElement;\n }\n return null;\n};\n\nexport const VirtualizedConnectionTable = <Row,>({\n columns,\n rows,\n getRowId,\n emptyState,\n className,\n gridTemplateColumns,\n kind,\n classes,\n bodyScrollMode = 'page',\n virtualization,\n infiniteScroll,\n hasNextPage = false,\n isLoadingMore = false,\n onLoadMore,\n ariaLabel,\n ariaLabelledBy,\n}: VirtualizedConnectionTableProps<Row>): JSX.Element => {\n const { t } = useUiTranslation();\n const resolvedKind: DataTableKind = kind ?? 'default';\n const resolvedAriaLabel = ariaLabel ?? t('common.table.label');\n let tableAriaLabel: string | undefined = resolvedAriaLabel;\n if (ariaLabelledBy != null) {\n tableAriaLabel = undefined;\n }\n const containerRef = useRef<HTMLDivElement>(null);\n const bodyScrollerRef = useRef<HTMLDivElement>(null);\n const bodyRef = useRef<HTMLDivElement>(null);\n const sentinelRef = useRef<HTMLDivElement>(null);\n const scrollParentRef = useRef<HTMLElement | null>(null);\n const rafRef = useRef<number | null>(null);\n const loadMoreCooldownRef = useRef(false);\n\n const isVirtualized = virtualization?.enabled === true;\n const rowHeightPx = useMemo(() => {\n if (!isVirtualized) {\n return null;\n }\n\n const configuredRowHeight = virtualization.rowHeightPx;\n if (\n typeof configuredRowHeight === 'number' &&\n Number.isFinite(configuredRowHeight) &&\n configuredRowHeight > 0\n ) {\n return configuredRowHeight;\n }\n\n return 56;\n }, [isVirtualized, virtualization]);\n\n const overscan = useMemo(() => {\n if (!isVirtualized) {\n return 0;\n }\n\n let nextOverscan = 10;\n const configuredOverscan = virtualization.overscan;\n if (\n typeof configuredOverscan === 'number' &&\n Number.isFinite(configuredOverscan)\n ) {\n nextOverscan = configuredOverscan;\n }\n return Math.max(0, nextOverscan);\n }, [isVirtualized, virtualization]);\n\n const thresholdPx = infiniteScroll?.thresholdPx ?? 800;\n const autoLoad = infiniteScroll?.autoLoad ?? true;\n const infiniteEnabled = infiniteScroll?.enabled === true;\n const hasContainedBodyScroll = bodyScrollMode === 'contained';\n\n const canLoadMore =\n infiniteEnabled && hasNextPage && !isLoadingMore && onLoadMore != null;\n\n const triggerLoadMore = useCallback(() => {\n if (onLoadMore == null) {\n return;\n }\n onLoadMore();\n }, [onLoadMore]);\n\n const [windowState, setWindowState] = useState<VirtualWindow>(() => {\n return { startIndex: 0, endIndex: Math.min(rows.length, 50) };\n });\n\n const inlineTemplateStyle = useMemo(() => {\n return buildDataTableInlineTemplate(columns.length, gridTemplateColumns);\n }, [columns.length, gridTemplateColumns]);\n\n const renderRow = useCallback(\n (row: Row, index: number, heightPx?: number | null): JSX.Element => {\n const rowId = getRowId(row, index);\n const rowClasses = [\n dataTableStyles.row({ kind: resolvedKind }),\n classes?.row,\n ];\n if (index % 2 === 0) {\n rowClasses.push(\n dataTableStyles.rowEven({ kind: resolvedKind }),\n classes?.rowEven,\n );\n } else {\n rowClasses.push(\n dataTableStyles.rowOdd({ kind: resolvedKind }),\n classes?.rowOdd,\n );\n }\n const rowStyle: CSSProperties = { ...inlineTemplateStyle };\n if (typeof heightPx === 'number') {\n rowStyle.height = heightPx;\n }\n return (\n <div\n key={rowId}\n role=\"row\"\n className={cx(...rowClasses)}\n style={rowStyle}\n >\n {columns.map((column) => {\n const cellClasses = [\n dataTableStyles.cell({ kind: resolvedKind }),\n styles.singleLineCell,\n classes?.cell,\n ];\n const visibilityClass = getVisibilityClass(column.minVisibleAt);\n if (visibilityClass != null) {\n cellClasses.push(visibilityClass);\n }\n if (column.className != null) {\n cellClasses.push(column.className);\n }\n if (column.isPrimary) {\n cellClasses.push(\n dataTableStyles.primaryCell,\n classes?.primaryCell,\n );\n }\n if (column.align != null) {\n cellClasses.push(\n dataTableStyles.alignRecipe({ align: column.align }),\n );\n }\n return (\n <div key={column.id} role=\"cell\" className={cx(...cellClasses)}>\n {column.cell(row)}\n </div>\n );\n })}\n </div>\n );\n },\n [classes, columns, getRowId, inlineTemplateStyle, resolvedKind],\n );\n\n const computeVirtualWindow = useCallback(() => {\n if (!isVirtualized) {\n return;\n }\n const height = rowHeightPx;\n if (height == null) {\n return;\n }\n const bodyEl = bodyRef.current;\n if (bodyEl == null) {\n return;\n }\n\n const bodyScroller = bodyScrollerRef.current;\n const scrollParent = scrollParentRef.current;\n let viewportHeight = scrollParent?.clientHeight ?? window.innerHeight;\n let visibleTop = 0;\n if (hasContainedBodyScroll && bodyScroller != null) {\n viewportHeight = bodyScroller.clientHeight;\n visibleTop = bodyScroller.scrollTop;\n } else {\n const parentRectTop = scrollParent?.getBoundingClientRect().top ?? 0;\n const bodyRectTop = bodyEl.getBoundingClientRect().top;\n const relativeTop = bodyRectTop - parentRectTop;\n visibleTop = Math.max(0, -relativeTop);\n }\n const visibleBottom = visibleTop + viewportHeight;\n\n const totalHeight = rows.length * height;\n const clampedBottom = clamp(visibleBottom, 0, totalHeight);\n const { startIndex, endIndex } = computeVirtualWindowBounds({\n rowCount: rows.length,\n rowHeightPx: height,\n overscan,\n visibleTop,\n visibleBottom,\n });\n\n setWindowState((prev) => {\n if (prev.startIndex === startIndex && prev.endIndex === endIndex) {\n return prev;\n }\n return { startIndex, endIndex };\n });\n\n if (\n shouldTriggerInfiniteLoad({\n autoLoad,\n canLoadMore,\n totalHeight,\n visibleBottom: clampedBottom,\n thresholdPx,\n isCoolingDown: loadMoreCooldownRef.current,\n })\n ) {\n loadMoreCooldownRef.current = true;\n triggerLoadMore();\n window.setTimeout(() => {\n loadMoreCooldownRef.current = false;\n }, 250);\n }\n }, [\n autoLoad,\n canLoadMore,\n hasContainedBodyScroll,\n isVirtualized,\n overscan,\n rowHeightPx,\n rows.length,\n thresholdPx,\n triggerLoadMore,\n ]);\n\n const scheduleCompute = useCallback(() => {\n if (rafRef.current != null) {\n return;\n }\n rafRef.current = window.requestAnimationFrame(() => {\n rafRef.current = null;\n computeVirtualWindow();\n });\n }, [computeVirtualWindow]);\n\n useLayoutEffect(() => {\n if (!isVirtualized) {\n return;\n }\n const container = containerRef.current;\n if (container == null) {\n return;\n }\n if (hasContainedBodyScroll) {\n scrollParentRef.current = bodyScrollerRef.current;\n } else {\n scrollParentRef.current = findScrollParent(container);\n }\n scheduleCompute();\n }, [hasContainedBodyScroll, isVirtualized, scheduleCompute]);\n\n useEffect(() => {\n if (!isVirtualized) {\n return undefined;\n }\n const scrollParent = scrollParentRef.current;\n const target: HTMLElement | Window = scrollParent ?? window;\n\n const handler = () => {\n scheduleCompute();\n };\n\n target.addEventListener('scroll', handler, { passive: true });\n window.addEventListener('resize', handler);\n\n return () => {\n target.removeEventListener('scroll', handler);\n window.removeEventListener('resize', handler);\n };\n }, [isVirtualized, scheduleCompute]);\n\n useEffect(() => {\n if (isVirtualized) {\n return undefined;\n }\n if (!infiniteEnabled || !autoLoad || !canLoadMore) {\n return undefined;\n }\n const sentinel = sentinelRef.current;\n if (sentinel == null) {\n return undefined;\n }\n\n const scrollParent = scrollParentRef.current;\n\n const observer = new IntersectionObserver(\n (entries) => {\n const [entry] = entries;\n if (entry == null) {\n return;\n }\n\n if (entry.isIntersecting && !loadMoreCooldownRef.current) {\n loadMoreCooldownRef.current = true;\n triggerLoadMore();\n window.setTimeout(() => {\n loadMoreCooldownRef.current = false;\n }, 250);\n }\n },\n {\n root: scrollParent,\n rootMargin: `0px 0px ${thresholdPx}px 0px`,\n },\n );\n\n observer.observe(sentinel);\n return () => {\n observer.disconnect();\n };\n }, [\n autoLoad,\n canLoadMore,\n infiniteEnabled,\n isVirtualized,\n thresholdPx,\n triggerLoadMore,\n ]);\n\n useLayoutEffect(() => {\n if (isVirtualized) {\n return;\n }\n const container = containerRef.current;\n if (container == null) {\n return;\n }\n if (hasContainedBodyScroll) {\n scrollParentRef.current = bodyScrollerRef.current;\n } else {\n scrollParentRef.current = findScrollParent(container);\n }\n }, [hasContainedBodyScroll, isVirtualized]);\n\n const headerRow = (\n <div\n className={cx(\n dataTableStyles.header({ kind: resolvedKind }),\n classes?.header,\n )}\n role=\"rowgroup\"\n >\n <div\n className={cx(dataTableStyles.headerRow, classes?.headerRow)}\n role=\"row\"\n style={inlineTemplateStyle}\n >\n {columns.map((column) => {\n const headerClasses = [\n dataTableStyles.headerCell({ kind: resolvedKind }),\n classes?.headerCell,\n ];\n const visibilityClass = getVisibilityClass(column.minVisibleAt);\n if (visibilityClass != null) {\n headerClasses.push(visibilityClass);\n }\n if (column.className != null) {\n headerClasses.push(column.className);\n }\n if (column.isPrimary) {\n headerClasses.push(\n dataTableStyles.primaryHeaderCell,\n classes?.primaryHeaderCell,\n );\n }\n if (column.align != null) {\n headerClasses.push(\n dataTableStyles.alignRecipe({ align: column.align }),\n );\n }\n return (\n <div\n key={column.id}\n role=\"columnheader\"\n className={cx(...headerClasses)}\n >\n {column.header}\n </div>\n );\n })}\n </div>\n </div>\n );\n\n let bodyRows: JSX.Element;\n if (rows.length === 0) {\n bodyRows = (\n <div\n className={cx(dataTableStyles.emptyRow, classes?.emptyRow)}\n role=\"row\"\n >\n <div role=\"cell\">\n {emptyState ?? (\n <div className={cx(dataTableStyles.emptyCell, classes?.emptyCell)}>\n {t('common.table.empty')}\n </div>\n )}\n </div>\n </div>\n );\n } else if (isVirtualized && rowHeightPx != null) {\n const { startIndex, endIndex } = windowState;\n const topSpacerHeight = startIndex * rowHeightPx;\n const bottomSpacerHeight = (rows.length - endIndex) * rowHeightPx;\n const slice = rows.slice(startIndex, endIndex);\n bodyRows = (\n <div className={styles.bodyViewport} ref={bodyRef}>\n <div className={styles.spacer} style={{ height: topSpacerHeight }} />\n {slice.map((row, sliceIndex) => {\n const absoluteIndex = startIndex + sliceIndex;\n return renderRow(row, absoluteIndex, rowHeightPx);\n })}\n <div className={styles.spacer} style={{ height: bottomSpacerHeight }} />\n </div>\n );\n } else {\n bodyRows = (\n <div ref={bodyRef}>\n {rows.map((row, index) => {\n return renderRow(row, index, null);\n })}\n </div>\n );\n }\n\n let sentinelNode: JSX.Element | null = null;\n if (!isVirtualized && infiniteEnabled && autoLoad) {\n sentinelNode = <div ref={sentinelRef} className={styles.sentinel} />;\n }\n\n let containedContainerClassName: string | null = null;\n let containedBodyClassName: string | null = null;\n if (hasContainedBodyScroll) {\n containedContainerClassName = dataTableStyles.containerWithContainedBody;\n containedBodyClassName = dataTableStyles.bodyContained;\n }\n\n return (\n <div\n ref={containerRef}\n className={cx(\n dataTableStyles.container({ kind: resolvedKind }),\n containedContainerClassName,\n classes?.container,\n className,\n )}\n role=\"table\"\n aria-label={tableAriaLabel}\n aria-labelledby={ariaLabelledBy}\n data-scroll-mode={bodyScrollMode}\n >\n {headerRow}\n <div\n ref={bodyScrollerRef}\n className={cx(\n dataTableStyles.body({ kind: resolvedKind }),\n containedBodyClassName,\n classes?.body,\n )}\n role=\"rowgroup\"\n data-scroll-mode={bodyScrollMode}\n >\n {bodyRows}\n {sentinelNode}\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;AAiFA,IAAM,KAAsB,MACtB,KAAgB,OACX,OAEF,EAAgC,EAAE,iBAAc,CAAC,EAGpD,KAAoB,MAA+C;CACvE,IAAI,IAA8B;CAClC,OAAO,KAAW,OAAM;EAEtB,IACE,EAAuB;GACrB,WAHU,OAAO,iBAAiB,EAGvB,CAAM;GACjB,cAAc,EAAQ;GACtB,cAAc,EAAQ;GACvB,CAAC,EAEF,OAAO;EAET,IAAU,EAAQ;;CAEpB,OAAO;GAGI,KAAoC,EAC/C,YACA,SACA,aACA,gBACA,eACA,yBACA,UACA,YACA,oBAAiB,QACjB,mBACA,mBACA,kBAAc,IACd,oBAAgB,IAChB,eACA,eACA,wBACuD;CACvD,IAAM,EAAE,SAAM,GAAkB,EAC1B,IAA8B,MAAQ,WAExC,IADsB,MAAa,EAAE,qBAAqB;CAE9D,AAAI,KAAkB,SACpB,IAAiB,KAAA;CAEnB,IAAM,IAAe,EAAuB,KAAK,EAC3C,IAAkB,EAAuB,KAAK,EA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AK,MAAK;aACP,MACC,kBAAC,OAAD;IAAK,WAAW,EAAG,2CAA2B,GAAS,UAAU;cAC9D,EAAE,qBAAqB;IACpB,CAAA;GAEJ,CAAA;EACF,CAAA;MAEH,IAAI,KAAiB,KAAe,MAAM;EAC/C,IAAM,EAAE,eAAY,gBAAa,IAC3B,IAAkB,IAAa,GAC/B,KAAsB,EAAK,SAAS,KAAY,GAChD,IAAQ,EAAK,MAAM,GAAY,EAAS;EAC9C,IACE,kBAAC,OAAD;GAAK,WAAW;GAAqB,KAAK;aAA1C;IACE,kBAAC,OAAD;KAAK,WAAW;KAAe,OAAO,EAAE,QAAQ,GAAiB;KAAI,CAAA;IACpE,EAAM,KAAK,GAAK,MAER,GAAU,GADK,IAAa,GACE,EAAY,CACjD;IACF,kBAAC,OAAD;KAAK,WAAW;KAAe,OAAO,EAAE,QAAQ,GAAoB;KAAI,CAAA;IACpE;;QAGR,IACE,kBAAC,OAAD;EAAK,KAAK;YACP,EAAK,KAAK,GAAK,MACP,GAAU,GAAK,GAAO,KAAK,CAClC;EACE,CAAA;CAIV,IAAI,KAAmC;CACvC,AAAI,CAAC,KAAiB,KAAmB,MACvC,KAAe,kBAAC,OAAD;EAAK,KAAK;EAAa,WAAW;EAAmB,CAAA;CAGtE,IAAI,KAA6C,MAC7C,IAAwC;CAM5C,OALI,MACF,KAA8B,GAC9B,IAAyB,IAIzB,kBAAC,OAAD;EACE,KAAK;EACL,WAAW,EACT,EAA0B,EAAE,MAAM,GAAc,CAAC,EACjD,IACA,GAAS,WACT,GACD;EACD,MAAK;EACL,cAAY;EACZ,mBAAiB;EACjB,oBAAkB;YAXpB,CAaG,IACD,kBAAC,OAAD;GACE,KAAK;GACL,WAAW,EACT,EAAqB,EAAE,MAAM,GAAc,CAAC,EAC5C,GACA,GAAS,KACV;GACD,MAAK;GACL,oBAAkB;aARpB,CAUG,GACA,GACG;KACF"}
1
+ {"version":3,"file":"VirtualizedConnectionTable.js","names":[],"sources":["../../../../src/components/data-table/VirtualizedConnectionTable.tsx"],"sourcesContent":["import {\n useCallback,\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n type CSSProperties,\n type JSX,\n type ReactNode,\n} from 'react';\n\nimport {\n DataTableBody,\n DataTableEmptyRow,\n DataTableHeader,\n DataTableRoot,\n DataTableRow,\n type DataTableBodyScrollMode,\n type DataTableColumn,\n type DataTableDensity,\n type DataTableHeaderBehavior,\n type DataTableKind,\n type DataTableRowState,\n type DataTableSlot,\n type GetRowId,\n} from './DataTable.js';\nimport * as styles from './VirtualizedConnectionTable.css.js';\n\nimport {\n clamp,\n computeVirtualWindowBounds,\n isVerticallyScrollable,\n shouldTriggerVirtualizedInfiniteLoad,\n type VirtualWindow,\n} from '../../internal/data-table/virtualization.js';\nimport {\n resolveInfiniteRootMargin,\n shouldTriggerInfiniteLoad,\n} from '../../internal/infinite/infiniteLoad.js';\nimport type { SlotClasses } from '../../styles/slots.js';\n\nexport type VirtualizationConfig = {\n enabled: boolean;\n rowHeightPx: number;\n overscan: number;\n};\n\nexport type InfiniteScrollConfig = {\n enabled: boolean;\n thresholdPx?: number;\n autoLoad?: boolean;\n};\n\nexport type VirtualizedConnectionTableProps<Row> = {\n columns: readonly DataTableColumn<Row>[];\n rows: readonly Row[];\n getRowId: GetRowId<Row>;\n emptyState?: JSX.Element;\n className?: string;\n headerClassName?: string;\n bodyClassName?: string;\n rowClassName?: (row: Row, index: number) => string | null | undefined;\n gridTemplateClassName?: string;\n gridTemplateColumns?: string;\n kind?: DataTableKind;\n density?: DataTableDensity;\n headerBehavior?: DataTableHeaderBehavior;\n rowState?: (row: Row, index: number) => DataTableRowState;\n classes?: SlotClasses<DataTableSlot>;\n bodyScrollMode?: DataTableBodyScrollMode;\n bodyFooterNode?: ReactNode;\n\n virtualization?: VirtualizationConfig;\n\n infiniteScroll?: InfiniteScrollConfig;\n hasNextPage?: boolean;\n isLoadingMore?: boolean;\n onLoadMore?: () => void;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n};\n\nconst findScrollParent = (el: HTMLElement | null): HTMLElement | null => {\n let current: HTMLElement | null = el;\n while (current != null) {\n const style = window.getComputedStyle(current);\n if (\n isVerticallyScrollable({\n overflowY: style.overflowY,\n scrollHeight: current.scrollHeight,\n clientHeight: current.clientHeight,\n })\n ) {\n return current;\n }\n current = current.parentElement;\n }\n return null;\n};\n\nexport const VirtualizedConnectionTable = <Row,>({\n columns,\n rows,\n getRowId,\n emptyState,\n className,\n headerClassName,\n bodyClassName,\n rowClassName,\n gridTemplateClassName,\n gridTemplateColumns,\n kind,\n density,\n headerBehavior,\n rowState,\n classes,\n bodyScrollMode = 'page',\n bodyFooterNode,\n virtualization,\n infiniteScroll,\n hasNextPage = false,\n isLoadingMore = false,\n onLoadMore,\n ariaLabel,\n ariaLabelledBy,\n}: VirtualizedConnectionTableProps<Row>): JSX.Element => {\n const containerRef = useRef<HTMLDivElement>(null);\n const bodyScrollerRef = useRef<HTMLDivElement>(null);\n const bodyRef = useRef<HTMLDivElement>(null);\n const sentinelRef = useRef<HTMLDivElement>(null);\n const scrollParentRef = useRef<HTMLElement | null>(null);\n const rafRef = useRef<number | null>(null);\n const loadMoreCooldownRef = useRef(false);\n\n const isVirtualized = virtualization?.enabled === true;\n const rowHeightPx = useMemo(() => {\n if (!isVirtualized) {\n return null;\n }\n\n const configuredRowHeight = virtualization.rowHeightPx;\n if (\n typeof configuredRowHeight === 'number' &&\n Number.isFinite(configuredRowHeight) &&\n configuredRowHeight > 0\n ) {\n return configuredRowHeight;\n }\n\n return 56;\n }, [isVirtualized, virtualization]);\n\n const overscan = useMemo(() => {\n if (!isVirtualized) {\n return 0;\n }\n\n let nextOverscan = 10;\n const configuredOverscan = virtualization.overscan;\n if (\n typeof configuredOverscan === 'number' &&\n Number.isFinite(configuredOverscan)\n ) {\n nextOverscan = configuredOverscan;\n }\n return Math.max(0, nextOverscan);\n }, [isVirtualized, virtualization]);\n\n const thresholdPx = infiniteScroll?.thresholdPx ?? 800;\n const autoLoad = infiniteScroll?.autoLoad ?? true;\n const infiniteEnabled = infiniteScroll?.enabled === true;\n const hasContainedBodyScroll = bodyScrollMode === 'contained';\n\n const canLoadMore =\n infiniteEnabled && hasNextPage && !isLoadingMore && onLoadMore != null;\n\n const triggerLoadMore = useCallback(() => {\n if (onLoadMore == null) {\n return;\n }\n onLoadMore();\n }, [onLoadMore]);\n\n const [windowState, setWindowState] = useState<VirtualWindow>(() => {\n return { startIndex: 0, endIndex: Math.min(rows.length, 50) };\n });\n\n const renderRow = useCallback(\n (row: Row, index: number, heightPx?: number | null): JSX.Element => {\n const rowStyle: CSSProperties = {};\n if (typeof heightPx === 'number') {\n rowStyle.height = heightPx;\n }\n return (\n <DataTableRow\n key={getRowId(row, index)}\n row={row}\n index={index}\n columns={columns}\n getRowId={getRowId}\n kind={kind}\n density={density}\n rowClassName={rowClassName}\n rowState={rowState}\n gridTemplateClassName={gridTemplateClassName}\n gridTemplateColumns={gridTemplateColumns}\n classes={classes}\n style={rowStyle}\n cellMode=\"singleLine\"\n />\n );\n },\n [\n classes,\n columns,\n density,\n getRowId,\n gridTemplateClassName,\n gridTemplateColumns,\n kind,\n rowClassName,\n rowState,\n ],\n );\n\n const computeVirtualWindow = useCallback(() => {\n if (!isVirtualized) {\n return;\n }\n const height = rowHeightPx;\n if (height == null) {\n return;\n }\n const bodyEl = bodyRef.current;\n if (bodyEl == null) {\n return;\n }\n\n const bodyScroller = bodyScrollerRef.current;\n const scrollParent = scrollParentRef.current;\n let viewportHeight = scrollParent?.clientHeight ?? window.innerHeight;\n let visibleTop = 0;\n if (hasContainedBodyScroll && bodyScroller != null) {\n viewportHeight = bodyScroller.clientHeight;\n visibleTop = bodyScroller.scrollTop;\n } else {\n const parentRectTop = scrollParent?.getBoundingClientRect().top ?? 0;\n const bodyRectTop = bodyEl.getBoundingClientRect().top;\n const relativeTop = bodyRectTop - parentRectTop;\n visibleTop = Math.max(0, -relativeTop);\n }\n const visibleBottom = visibleTop + viewportHeight;\n\n const totalHeight = rows.length * height;\n const clampedBottom = clamp(visibleBottom, 0, totalHeight);\n const { startIndex, endIndex } = computeVirtualWindowBounds({\n rowCount: rows.length,\n rowHeightPx: height,\n overscan,\n visibleTop,\n visibleBottom,\n });\n\n setWindowState((prev) => {\n if (prev.startIndex === startIndex && prev.endIndex === endIndex) {\n return prev;\n }\n return { startIndex, endIndex };\n });\n\n if (\n shouldTriggerInfiniteLoad({\n enabled: infiniteEnabled,\n hasNext: hasNextPage,\n isLoading: isLoadingMore,\n autoLoad,\n isCoolingDown: loadMoreCooldownRef.current,\n }) &&\n canLoadMore &&\n shouldTriggerVirtualizedInfiniteLoad({\n autoLoad,\n canLoadMore,\n totalHeight,\n visibleBottom: clampedBottom,\n thresholdPx,\n isCoolingDown: loadMoreCooldownRef.current,\n })\n ) {\n loadMoreCooldownRef.current = true;\n triggerLoadMore();\n window.setTimeout(() => {\n loadMoreCooldownRef.current = false;\n }, 250);\n }\n }, [\n autoLoad,\n canLoadMore,\n hasNextPage,\n hasContainedBodyScroll,\n isVirtualized,\n infiniteEnabled,\n isLoadingMore,\n overscan,\n rowHeightPx,\n rows.length,\n thresholdPx,\n triggerLoadMore,\n ]);\n\n const scheduleCompute = useCallback(() => {\n if (rafRef.current != null) {\n return;\n }\n rafRef.current = window.requestAnimationFrame(() => {\n rafRef.current = null;\n computeVirtualWindow();\n });\n }, [computeVirtualWindow]);\n\n useLayoutEffect(() => {\n if (!isVirtualized) {\n return;\n }\n const container = containerRef.current;\n if (container == null) {\n return;\n }\n if (hasContainedBodyScroll) {\n scrollParentRef.current = bodyScrollerRef.current;\n } else {\n scrollParentRef.current = findScrollParent(container);\n }\n scheduleCompute();\n }, [hasContainedBodyScroll, isVirtualized, scheduleCompute]);\n\n useEffect(() => {\n if (!isVirtualized) {\n return undefined;\n }\n const scrollParent = scrollParentRef.current;\n const target: HTMLElement | Window = scrollParent ?? window;\n\n const handler = () => {\n scheduleCompute();\n };\n\n target.addEventListener('scroll', handler, { passive: true });\n window.addEventListener('resize', handler);\n\n return () => {\n target.removeEventListener('scroll', handler);\n window.removeEventListener('resize', handler);\n };\n }, [isVirtualized, scheduleCompute]);\n\n useEffect(() => {\n if (isVirtualized) {\n return undefined;\n }\n if (\n !shouldTriggerInfiniteLoad({\n enabled: infiniteEnabled,\n hasNext: hasNextPage,\n isLoading: isLoadingMore,\n autoLoad,\n isCoolingDown: false,\n }) ||\n !canLoadMore\n ) {\n return undefined;\n }\n const sentinel = sentinelRef.current;\n if (sentinel == null) {\n return undefined;\n }\n if (\n typeof window === 'undefined' ||\n typeof IntersectionObserver === 'undefined'\n ) {\n return undefined;\n }\n\n const scrollParent = scrollParentRef.current;\n\n const observer = new IntersectionObserver(\n (entries) => {\n const [entry] = entries;\n if (entry == null) {\n return;\n }\n\n if (\n entry.isIntersecting &&\n shouldTriggerInfiniteLoad({\n enabled: infiniteEnabled,\n hasNext: hasNextPage,\n isLoading: isLoadingMore,\n autoLoad,\n isCoolingDown: loadMoreCooldownRef.current,\n })\n ) {\n loadMoreCooldownRef.current = true;\n triggerLoadMore();\n window.setTimeout(() => {\n loadMoreCooldownRef.current = false;\n }, 250);\n }\n },\n {\n root: scrollParent,\n rootMargin: resolveInfiniteRootMargin({ thresholdPx }),\n },\n );\n\n observer.observe(sentinel);\n return () => {\n observer.disconnect();\n };\n }, [\n autoLoad,\n canLoadMore,\n hasNextPage,\n infiniteEnabled,\n isVirtualized,\n isLoadingMore,\n thresholdPx,\n triggerLoadMore,\n ]);\n\n useLayoutEffect(() => {\n if (isVirtualized) {\n return;\n }\n const container = containerRef.current;\n if (container == null) {\n return;\n }\n if (hasContainedBodyScroll) {\n scrollParentRef.current = bodyScrollerRef.current;\n } else {\n scrollParentRef.current = findScrollParent(container);\n }\n }, [hasContainedBodyScroll, isVirtualized]);\n\n let bodyRows: JSX.Element;\n if (rows.length === 0) {\n bodyRows = (\n <DataTableEmptyRow\n emptyState={emptyState}\n density={density}\n classes={classes}\n />\n );\n } else if (isVirtualized && rowHeightPx != null) {\n const { startIndex, endIndex } = windowState;\n const topSpacerHeight = startIndex * rowHeightPx;\n const bottomSpacerHeight = (rows.length - endIndex) * rowHeightPx;\n const slice = rows.slice(startIndex, endIndex);\n bodyRows = (\n <div className={styles.bodyViewport} ref={bodyRef}>\n <div className={styles.spacer} style={{ height: topSpacerHeight }} />\n {slice.map((row, sliceIndex) => {\n const absoluteIndex = startIndex + sliceIndex;\n return renderRow(row, absoluteIndex, rowHeightPx);\n })}\n <div className={styles.spacer} style={{ height: bottomSpacerHeight }} />\n </div>\n );\n } else {\n bodyRows = (\n <>\n {rows.map((row, index) => {\n return renderRow(row, index, null);\n })}\n </>\n );\n }\n\n let sentinelNode: JSX.Element | null = null;\n if (!isVirtualized && infiniteEnabled && autoLoad) {\n sentinelNode = <div ref={sentinelRef} className={styles.sentinel} />;\n }\n\n return (\n <DataTableRoot\n ref={containerRef}\n className={className}\n kind={kind}\n bodyScrollMode={bodyScrollMode}\n classes={classes}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n >\n <DataTableHeader\n columns={columns}\n kind={kind}\n density={density}\n headerBehavior={headerBehavior}\n headerClassName={headerClassName}\n gridTemplateClassName={gridTemplateClassName}\n gridTemplateColumns={gridTemplateColumns}\n classes={classes}\n />\n <DataTableBody\n ref={bodyScrollerRef}\n className={bodyClassName}\n kind={kind}\n bodyScrollMode={bodyScrollMode}\n classes={classes}\n >\n {bodyRows}\n {sentinelNode}\n {bodyFooterNode}\n </DataTableBody>\n </DataTableRoot>\n );\n};\n"],"mappings":";;;;;;;AAmFA,IAAM,KAAoB,MAA+C;CACvE,IAAI,IAA8B;CAClC,OAAO,KAAW,OAAM;EAEtB,IACE,EAAuB;GACrB,WAHU,OAAO,iBAAiB,EAGvB,CAAM;GACjB,cAAc,EAAQ;GACtB,cAAc,EAAQ;GACvB,CAAC,EAEF,OAAO;EAET,IAAU,EAAQ;;CAEpB,OAAO;GAGI,KAAoC,EAC/C,YACA,SACA,aACA,gBACA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EAEF,IAAM,IAAY,EAAa;EAC3B,KAAa,SAGb,IACF,EAAgB,UAAU,EAAgB,UAE1C,EAAgB,UAAU,EAAiB,EAAU;IAEtD,CAAC,GAAwB,EAAc,CAAC;CAE3C,IAAI;CACJ,IAAI,EAAK,WAAW,GAClB,IACE,kBAAC,GAAD;EACc;EACH;EACA;EACT,CAAA;MAEC,IAAI,KAAiB,KAAe,MAAM;EAC/C,IAAM,EAAE,eAAY,gBAAa,IAC3B,IAAkB,IAAa,GAC/B,KAAsB,EAAK,SAAS,KAAY,GAChD,IAAQ,EAAK,MAAM,GAAY,EAAS;EAC9C,IACE,kBAAC,OAAD;GAAK,WAAW;GAAqB,KAAK;aAA1C;IACE,kBAAC,OAAD;KAAK,WAAW;KAAe,OAAO,EAAE,QAAQ,GAAiB;KAAI,CAAA;IACpE,EAAM,KAAK,GAAK,MAER,EAAU,GADK,IAAa,GACE,EAAY,CACjD;IACF,kBAAC,OAAD;KAAK,WAAW;KAAe,OAAO,EAAE,QAAQ,GAAoB;KAAI,CAAA;IACpE;;QAGR,IACE,kBAAA,IAAA,EAAA,UACG,EAAK,KAAK,GAAK,MACP,EAAU,GAAK,GAAO,KAAK,CAClC,EACD,CAAA;CAIP,IAAI,KAAmC;CAKvC,OAJI,CAAC,KAAiB,KAAmB,MACvC,KAAe,kBAAC,OAAD;EAAK,KAAK;EAAa,WAAW;EAAmB,CAAA,GAIpE,kBAAC,GAAD;EACE,KAAK;EACM;EACL;EACU;EACP;EACE;EACK;YAPlB,CASE,kBAAC,GAAD;GACW;GACH;GACG;GACO;GACC;GACM;GACF;GACZ;GACT,CAAA,EACF,kBAAC,GAAD;GACE,KAAK;GACL,WAAW;GACL;GACU;GACP;aALX;IAOG;IACA;IACA;IACa;KACF"}
@@ -0,0 +1,49 @@
1
+ import { cx as e } from "../../theme/tools.js";
2
+ import { ModalCloseSvg as t } from "../../icons/ModalCloseSvg.js";
3
+ import { actions as n, closeButton as r, container as i, content as a, description as o, title as s, toneRecipe as c } from "./inlineBanner.css.js";
4
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
5
+ import { useTranslation as d } from "react-i18next";
6
+ //#region src/components/feedback/InlineBanner.tsx
7
+ var f = ({ tone: f = "info", title: p, children: m, actions: h, onDismiss: g, dismissLabel: _, className: v, role: y, ariaLive: b }) => {
8
+ let { t: x } = d("ui", { useSuspense: !1 }), S = typeof g == "function", C = _ ?? x("backoffice.inlineBanner.dismiss"), w = y;
9
+ w ?? (w = "status", f === "danger" && (w = "alert"));
10
+ let T = b;
11
+ T ?? (T = "polite", f === "danger" && (T = "assertive"));
12
+ let E = null;
13
+ p != null && (E = /* @__PURE__ */ l("div", {
14
+ className: s,
15
+ children: p
16
+ }));
17
+ let D = null;
18
+ m != null && (D = /* @__PURE__ */ l("div", {
19
+ className: o,
20
+ children: m
21
+ }));
22
+ let O = null;
23
+ return S && (O = /* @__PURE__ */ l("button", {
24
+ type: "button",
25
+ onClick: g,
26
+ className: r,
27
+ "aria-label": C,
28
+ children: /* @__PURE__ */ l(t, {
29
+ width: 18,
30
+ height: 18,
31
+ "aria-hidden": "true"
32
+ })
33
+ })), /* @__PURE__ */ u("div", {
34
+ className: e(i, c({ tone: f }), v),
35
+ role: w,
36
+ "aria-live": T,
37
+ children: [/* @__PURE__ */ u("div", {
38
+ className: a,
39
+ children: [E, D]
40
+ }), /* @__PURE__ */ u("div", {
41
+ className: n,
42
+ children: [h, O]
43
+ })]
44
+ });
45
+ };
46
+ //#endregion
47
+ export { f as InlineBanner, f as default };
48
+
49
+ //# sourceMappingURL=InlineBanner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineBanner.js","names":[],"sources":["../../../../src/components/feedback/InlineBanner.tsx"],"sourcesContent":["import { type AriaRole, type JSX, type ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport type { RecipeVariants } from '@vanilla-extract/recipes';\n\nimport { ModalCloseSvg } from '../../icons/ModalCloseSvg.js';\nimport { cx } from '../../theme/tools.js';\n\nimport * as styles from './inlineBanner.css.js';\n\nexport type InlineBannerTone = NonNullable<\n NonNullable<RecipeVariants<typeof styles.toneRecipe>>['tone']\n>;\n\nexport type InlineBannerProps = {\n tone?: InlineBannerTone;\n title?: ReactNode;\n children?: ReactNode;\n actions?: ReactNode;\n onDismiss?: () => void;\n dismissLabel?: string;\n className?: string;\n role?: AriaRole;\n ariaLive?: 'off' | 'assertive' | 'polite';\n};\n\nexport const InlineBanner = ({\n tone = 'info',\n title,\n children,\n actions,\n onDismiss,\n dismissLabel,\n className,\n role,\n ariaLive,\n}: InlineBannerProps): JSX.Element => {\n const { t } = useTranslation('ui', { useSuspense: false });\n const showDismiss = typeof onDismiss === 'function';\n const resolvedDismissLabel =\n dismissLabel ?? t('backoffice.inlineBanner.dismiss');\n let resolvedRole = role;\n if (resolvedRole == null) {\n resolvedRole = 'status';\n if (tone === 'danger') {\n resolvedRole = 'alert';\n }\n }\n let resolvedAriaLive = ariaLive;\n if (resolvedAriaLive == null) {\n resolvedAriaLive = 'polite';\n if (tone === 'danger') {\n resolvedAriaLive = 'assertive';\n }\n }\n\n let titleNode: JSX.Element | null = null;\n if (title != null) {\n titleNode = <div className={styles.title}>{title}</div>;\n }\n\n let descriptionNode: JSX.Element | null = null;\n if (children != null) {\n descriptionNode = <div className={styles.description}>{children}</div>;\n }\n\n let dismissNode: JSX.Element | null = null;\n if (showDismiss) {\n dismissNode = (\n <button\n type=\"button\"\n onClick={onDismiss}\n className={styles.closeButton}\n aria-label={resolvedDismissLabel}\n >\n <ModalCloseSvg width={18} height={18} aria-hidden=\"true\" />\n </button>\n );\n }\n\n return (\n <div\n className={cx(styles.container, styles.toneRecipe({ tone }), className)}\n role={resolvedRole}\n aria-live={resolvedAriaLive}\n >\n <div className={styles.content}>\n {titleNode}\n {descriptionNode}\n </div>\n\n <div className={styles.actions}>\n {actions}\n {dismissNode}\n </div>\n </div>\n );\n};\n\nexport default InlineBanner;\n"],"mappings":";;;;;;AAyBA,IAAa,KAAgB,EAC3B,UAAO,QACP,OAAA,GACA,aACA,SAAA,GACA,cACA,iBACA,cACA,SACA,kBACoC;CACpC,IAAM,EAAE,SAAM,EAAe,MAAM,EAAE,aAAa,IAAO,CAAC,EACpD,IAAc,OAAO,KAAc,YACnC,IACJ,KAAgB,EAAE,kCAAkC,EAClD,IAAe;CACnB,AAAI,MACF,IAAe,UACX,MAAS,aACX,IAAe;CAGnB,IAAI,IAAmB;CACvB,AAAI,MACF,IAAmB,UACf,MAAS,aACX,IAAmB;CAIvB,IAAI,IAAgC;CACpC,AAAI,KAAS,SACX,IAAY,kBAAC,OAAD;EAAK,WAAW;YAAe;EAAY,CAAA;CAGzD,IAAI,IAAsC;CAC1C,AAAI,KAAY,SACd,IAAkB,kBAAC,OAAD;EAAK,WAAW;EAAqB;EAAe,CAAA;CAGxE,IAAI,IAAkC;CActC,OAbI,MACF,IACE,kBAAC,UAAD;EACE,MAAK;EACL,SAAS;EACT,WAAW;EACX,cAAY;YAEZ,kBAAC,GAAD;GAAe,OAAO;GAAI,QAAQ;GAAI,eAAY;GAAS,CAAA;EACpD,CAAA,GAKX,kBAAC,OAAD;EACE,WAAW,EAAG,GAAkB,EAAkB,EAAE,SAAM,CAAC,EAAE,EAAU;EACvE,MAAM;EACN,aAAW;YAHb,CAKE,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACG,GACA,EACG;MAEN,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACG,GACA,EACG;KACF"}
@@ -1,8 +1,8 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  //#region src/components/feedback/OperationFeedback.css.ts
4
- var e = "_19ozap70 txvbqbdr8 txvbqbf6i txvbqbffj txvbqb17w0", t = "_19ozap71 txvbqbdr8 txvbqbf91 txvbqbey txvbqbff6";
4
+ var e = "_19ozap70 txvbqbdr8 txvbqbf6i txvbqbffj txvbqb17w0";
5
5
  //#endregion
6
- export { t as row, e as stack };
6
+ export { e as stack };
7
7
 
8
8
  //# sourceMappingURL=OperationFeedback.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OperationFeedback.css.js","names":[],"sources":["../../../../src/components/feedback/OperationFeedback.css.ts"],"sourcesContent":["import { sprinkles } from '../../theme/sprinkles.css.js';\n\nexport const stack = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 3,\n width: 'full',\n});\n\nexport const row = sprinkles({\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n gap: 2,\n});\n"],"mappings":""}
1
+ {"version":3,"file":"OperationFeedback.css.js","names":[],"sources":["../../../../src/components/feedback/OperationFeedback.css.ts"],"sourcesContent":["import { sprinkles } from '../../theme/sprinkles.css.js';\n\nexport const stack = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 3,\n width: 'full',\n});\n"],"mappings":""}