@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.
- package/README.md +129 -15
- package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js +4 -4
- package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +0 -2
- package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +1 -0
- package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js +2 -2
- package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js.map +1 -1
- package/lib/esm/atomic/atoms/badge/Badge.js.map +1 -1
- package/lib/esm/atomic/atoms/error_message/ErrorMessage.js +9 -8
- package/lib/esm/atomic/atoms/error_message/ErrorMessage.js.map +1 -1
- package/lib/esm/atomic/atoms/error_message/errorMessage.css.js +1 -0
- package/lib/esm/atomic/molecules/card/Card.js +17 -19
- package/lib/esm/atomic/molecules/card/Card.js.map +1 -1
- package/lib/esm/atomic/molecules/empty-state/EmptyState.css.js +80 -2
- package/lib/esm/atomic/molecules/empty-state/EmptyState.css.js.map +1 -1
- package/lib/esm/atomic/molecules/empty-state/EmptyState.js +50 -28
- package/lib/esm/atomic/molecules/empty-state/EmptyState.js.map +1 -1
- package/lib/esm/atomic/molecules/form_error/FormError.js +29 -19
- package/lib/esm/atomic/molecules/form_error/FormError.js.map +1 -1
- package/lib/esm/atomic/molecules/form_error/formError.css.js +1 -1
- package/lib/esm/atomic/molecules/form_error/formError.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownDelete.css.js +0 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownHeading.css.js +1 -0
- package/lib/esm/atomic/molecules/tabs/Tabs.js +82 -28
- package/lib/esm/atomic/molecules/tabs/Tabs.js.map +1 -1
- package/lib/esm/atomic/molecules/tabs/tabs.css.js +50 -8
- package/lib/esm/atomic/molecules/tabs/tabs.css.js.map +1 -1
- package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js +48 -48
- package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js.map +1 -1
- package/lib/esm/backoffice/atoms/status_badge/StatusBadge.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.js +38 -0
- package/lib/esm/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.js +35 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.js +16 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.js +25 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js +37 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.js +19 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js +15 -32
- package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.js +11 -0
- package/lib/esm/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js +17 -18
- package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.js +12 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +15 -20
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js +23 -16
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js +2 -2
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.js +11 -0
- package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.js +55 -0
- package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.js +15 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js +63 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_picker/BackofficePicker.js +76 -0
- package/lib/esm/backoffice/molecules/backoffice_picker/BackofficePicker.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_picker/backofficePicker.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_picker/backofficePicker.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.js +23 -0
- package/lib/esm/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js +18 -0
- package/lib/esm/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.js +28 -0
- package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.js +60 -0
- package/lib/esm/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.js +14 -0
- package/lib/esm/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js +1 -1
- package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js +3 -3
- package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js.map +1 -1
- package/lib/esm/backoffice/molecules/global_search_input/GlobalSearchInput.js +4 -4
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js +1 -1
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js +60 -60
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js +2 -2
- package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +96 -96
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js +2 -2
- package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js +52 -52
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js +6 -6
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js.map +1 -1
- package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js +69 -34
- package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js.map +1 -1
- package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js +22 -2
- package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js.map +1 -1
- package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js +4 -4
- package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js.map +1 -1
- package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js +70 -40
- package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js.map +1 -1
- package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js +66 -3
- package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js.map +1 -1
- package/lib/esm/components/dashboard/activity_card/ActivityCard.js +4 -4
- package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.js +9 -0
- package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.js +30 -0
- package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.css.js +8 -0
- package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.css.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.js +16 -0
- package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.js +8 -0
- package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.js +27 -0
- package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.css.js +8 -0
- package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.css.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.js +28 -0
- package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.js.map +1 -0
- package/lib/esm/components/dashboard/metric_card/MetricCard.css.js +30 -2
- package/lib/esm/components/dashboard/metric_card/MetricCard.css.js.map +1 -1
- package/lib/esm/components/dashboard/metric_card/MetricCard.js +40 -26
- package/lib/esm/components/dashboard/metric_card/MetricCard.js.map +1 -1
- package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.css.js +23 -2
- package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.css.js.map +1 -1
- package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.js +16 -4
- package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.js.map +1 -1
- package/lib/esm/components/dashboard/status_summary_panel/StatusSummaryPanel.js +4 -4
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.css.js +14 -2
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.css.js.map +1 -1
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.js +46 -25
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.js.map +1 -1
- package/lib/esm/components/data-table/DataTable.css.js +19 -19
- package/lib/esm/components/data-table/DataTable.css.js.map +1 -1
- package/lib/esm/components/data-table/DataTable.js +142 -76
- package/lib/esm/components/data-table/DataTable.js.map +1 -1
- package/lib/esm/components/data-table/ResponsiveRecordList.js.map +1 -1
- package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js +2 -2
- package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js.map +1 -1
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js +177 -170
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js.map +1 -1
- package/lib/esm/components/feedback/InlineBanner.js +49 -0
- package/lib/esm/components/feedback/InlineBanner.js.map +1 -0
- package/lib/esm/components/feedback/OperationFeedback.css.js +2 -2
- package/lib/esm/components/feedback/OperationFeedback.css.js.map +1 -1
- package/lib/esm/components/feedback/OperationFeedback.js +20 -24
- package/lib/esm/components/feedback/OperationFeedback.js.map +1 -1
- package/lib/esm/components/feedback/inlineBanner.css.js +19 -0
- package/lib/esm/components/feedback/inlineBanner.css.js.map +1 -0
- package/lib/esm/components/infinite/InfiniteScrollTrigger.js +31 -23
- package/lib/esm/components/infinite/InfiniteScrollTrigger.js.map +1 -1
- package/lib/esm/components/layout/ActionPanel.css.js +2 -2
- package/lib/esm/components/layout/ActionPanel.css.js.map +1 -1
- package/lib/esm/components/layout/ActionPanel.js +29 -35
- package/lib/esm/components/layout/ActionPanel.js.map +1 -1
- package/lib/esm/components/layout/PageShell.css.js +2 -20
- package/lib/esm/components/layout/PageShell.css.js.map +1 -1
- package/lib/esm/components/layout/PageShell.js +155 -279
- package/lib/esm/components/layout/PageShell.js.map +1 -1
- package/lib/esm/components/layout/ResizableSplitView.css.js +8 -0
- package/lib/esm/components/layout/ResizableSplitView.css.js.map +1 -0
- package/lib/esm/components/layout/ResizableSplitView.js +176 -0
- package/lib/esm/components/layout/ResizableSplitView.js.map +1 -0
- package/lib/esm/components/layout/Surface.css.js +41 -0
- package/lib/esm/components/layout/Surface.css.js.map +1 -0
- package/lib/esm/components/layout/Surface.js +61 -0
- package/lib/esm/components/layout/Surface.js.map +1 -0
- package/lib/esm/components/layout/toolbar/Toolbar.css.js +64 -0
- package/lib/esm/components/layout/toolbar/Toolbar.css.js.map +1 -0
- package/lib/esm/components/layout/toolbar/Toolbar.js +36 -0
- package/lib/esm/components/layout/toolbar/Toolbar.js.map +1 -0
- package/lib/esm/components/navigation/sidebar/SidebarNavigation.js +89 -0
- package/lib/esm/components/navigation/sidebar/SidebarNavigation.js.map +1 -0
- package/lib/esm/components/navigation/sidebar/SidebarNavigationItem.js +2 -0
- package/lib/esm/components/navigation/sidebar/SidebarNavigationSection.js +2 -0
- package/lib/esm/components/navigation/sidebar/SidebarProfileMenu.js +2 -0
- package/lib/esm/components/navigation/sidebar/sidebarNavigation.css.js +48 -0
- package/lib/esm/components/navigation/sidebar/sidebarNavigation.css.js.map +1 -0
- package/lib/esm/components/subscriptions/RefetchNeededBanner.js +16 -23
- package/lib/esm/components/subscriptions/RefetchNeededBanner.js.map +1 -1
- package/lib/esm/i18n/locales/en/ui.js +16 -5
- package/lib/esm/i18n/locales/en/ui.js.map +1 -1
- package/lib/esm/i18n/locales/fr/ui.js +16 -5
- package/lib/esm/i18n/locales/fr/ui.js.map +1 -1
- package/lib/esm/index.js +237 -233
- package/lib/esm/internal/data-table/virtualization.js +1 -1
- package/lib/esm/internal/data-table/virtualization.js.map +1 -1
- package/lib/esm/internal/infinite/infiniteLoad.js +23 -0
- package/lib/esm/internal/infinite/infiniteLoad.js.map +1 -0
- package/lib/esm/node_modules/dompurify/dist/purify.es.js +290 -246
- package/lib/esm/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/lib/esm/node_modules/katex/dist/katex.js +1561 -1599
- package/lib/esm/node_modules/katex/dist/katex.js.map +1 -1
- package/lib/esm/style.css +1 -1
- package/lib/esm/theme/backofficeTheme.css.js +100 -0
- package/lib/esm/theme/backofficeTheme.css.js.map +1 -1
- package/lib/esm/theme/publicTheme.css.js +100 -0
- package/lib/esm/theme/publicTheme.css.js.map +1 -1
- package/lib/esm/theme/theme.css.js +200 -0
- package/lib/esm/theme/themeContract.css.js +359 -309
- package/lib/esm/theme/themeContract.css.js.map +1 -1
- package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts +4 -4
- package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts.map +1 -1
- package/lib/types/atomic/atoms/badge/Badge.d.ts +3 -3
- package/lib/types/atomic/atoms/badge/Badge.d.ts.map +1 -1
- package/lib/types/atomic/atoms/error_message/ErrorMessage.d.ts +1 -1
- package/lib/types/atomic/atoms/error_message/ErrorMessage.d.ts.map +1 -1
- package/lib/types/atomic/molecules/card/Card.d.ts.map +1 -1
- package/lib/types/atomic/molecules/empty-state/EmptyState.css.d.ts +56 -5
- package/lib/types/atomic/molecules/empty-state/EmptyState.css.d.ts.map +1 -1
- package/lib/types/atomic/molecules/empty-state/EmptyState.d.ts +14 -4
- package/lib/types/atomic/molecules/empty-state/EmptyState.d.ts.map +1 -1
- package/lib/types/atomic/molecules/form_error/FormError.d.ts +5 -2
- package/lib/types/atomic/molecules/form_error/FormError.d.ts.map +1 -1
- package/lib/types/atomic/molecules/form_error/formError.css.d.ts.map +1 -1
- package/lib/types/atomic/molecules/tabs/Tabs.d.ts +16 -7
- package/lib/types/atomic/molecules/tabs/Tabs.d.ts.map +1 -1
- package/lib/types/atomic/molecules/tabs/tabs.css.d.ts +21 -2
- package/lib/types/atomic/molecules/tabs/tabs.css.d.ts.map +1 -1
- package/lib/types/backoffice/atoms/status_badge/StatusBadge.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.d.ts +21 -0
- package/lib/types/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.d.ts +17 -0
- package/lib/types/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.d.ts +14 -0
- package/lib/types/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.d.ts +11 -0
- package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.d.ts +12 -0
- package/lib/types/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.d.ts +13 -0
- package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.d.ts +3 -0
- package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.d.ts +9 -0
- package/lib/types/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_form_section/BackofficeFormSection.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts +0 -3
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.d.ts +5 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts +8 -2
- package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts +3 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.d.ts +23 -0
- package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.d.ts +25 -0
- package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/{backoffice_infinite_list_status/backofficeInfiniteListStatus.css.d.ts → backoffice_list_footer/backofficeListFooter.css.d.ts} +3 -2
- package/lib/types/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.d.ts +26 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.d.ts +7 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_picker/BackofficePicker.d.ts +35 -0
- package/lib/types/backoffice/molecules/backoffice_picker/BackofficePicker.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_picker/backofficePicker.css.d.ts +9 -0
- package/lib/types/backoffice/molecules/backoffice_picker/backofficePicker.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.d.ts +10 -0
- package/lib/types/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.d.ts +3 -0
- package/lib/types/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.d.ts +15 -0
- package/lib/types/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.d.ts +8 -0
- package/lib/types/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.d.ts +14 -0
- package/lib/types/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.d.ts +2 -0
- package/lib/types/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.d.ts +22 -0
- package/lib/types/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.d.ts +18 -0
- package/lib/types/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_item/SidebarNavItem.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts +1 -0
- package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts +2 -0
- package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts +8 -0
- package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts.map +1 -1
- package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts +20 -2
- package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts.map +1 -1
- package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts +32 -2
- package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts.map +1 -1
- package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts +2 -2
- package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts.map +1 -1
- package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts +12 -1
- package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts.map +1 -1
- package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts +25 -4
- package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts.map +1 -1
- package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.d.ts +4 -0
- package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.d.ts +19 -0
- package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.css.d.ts +2 -0
- package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.css.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.d.ts +11 -0
- package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.d.ts +5 -0
- package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.d.ts +14 -0
- package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.css.d.ts +6 -0
- package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.css.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.d.ts +14 -0
- package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.d.ts.map +1 -0
- package/lib/types/components/dashboard/metric_card/MetricCard.css.d.ts +38 -1
- package/lib/types/components/dashboard/metric_card/MetricCard.css.d.ts.map +1 -1
- package/lib/types/components/dashboard/metric_card/MetricCard.d.ts +7 -1
- package/lib/types/components/dashboard/metric_card/MetricCard.d.ts.map +1 -1
- package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.css.d.ts +17 -1
- package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.css.d.ts.map +1 -1
- package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.d.ts +4 -1
- package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.d.ts.map +1 -1
- package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.css.d.ts +31 -2
- package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.css.d.ts.map +1 -1
- package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.d.ts +8 -3
- package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.d.ts.map +1 -1
- package/lib/types/components/data-table/DataTable.css.d.ts +1 -0
- package/lib/types/components/data-table/DataTable.css.d.ts.map +1 -1
- package/lib/types/components/data-table/DataTable.d.ts +54 -3
- package/lib/types/components/data-table/DataTable.d.ts.map +1 -1
- package/lib/types/components/data-table/ResponsiveRecordList.d.ts +1 -4
- package/lib/types/components/data-table/ResponsiveRecordList.d.ts.map +1 -1
- package/lib/types/components/data-table/VirtualizedConnectionTable.css.d.ts +0 -1
- package/lib/types/components/data-table/VirtualizedConnectionTable.css.d.ts.map +1 -1
- package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts +11 -5
- package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts.map +1 -1
- package/lib/types/{backoffice/molecules/inline_banner → components/feedback}/InlineBanner.d.ts +4 -2
- package/lib/types/components/feedback/InlineBanner.d.ts.map +1 -0
- package/lib/types/components/feedback/OperationFeedback.css.d.ts +0 -1
- package/lib/types/components/feedback/OperationFeedback.css.d.ts.map +1 -1
- package/lib/types/components/feedback/OperationFeedback.d.ts.map +1 -1
- package/lib/types/components/feedback/inlineBanner.css.d.ts.map +1 -0
- package/lib/types/components/infinite/InfiniteScrollTrigger.d.ts.map +1 -1
- package/lib/types/components/layout/ActionPanel.css.d.ts +1 -0
- package/lib/types/components/layout/ActionPanel.css.d.ts.map +1 -1
- package/lib/types/components/layout/ActionPanel.d.ts.map +1 -1
- package/lib/types/components/layout/PageShell.css.d.ts +1 -14
- package/lib/types/components/layout/PageShell.css.d.ts.map +1 -1
- package/lib/types/components/layout/PageShell.d.ts +1 -3
- package/lib/types/components/layout/PageShell.d.ts.map +1 -1
- package/lib/types/components/layout/ResizableSplitView.css.d.ts +8 -0
- package/lib/types/components/layout/ResizableSplitView.css.d.ts.map +1 -0
- package/lib/types/components/layout/ResizableSplitView.d.ts +27 -0
- package/lib/types/components/layout/ResizableSplitView.d.ts.map +1 -0
- package/lib/types/components/layout/Surface.css.d.ts +31 -0
- package/lib/types/components/layout/Surface.css.d.ts.map +1 -0
- package/lib/types/components/layout/Surface.d.ts +30 -0
- package/lib/types/components/layout/Surface.d.ts.map +1 -0
- package/lib/types/components/layout/toolbar/Toolbar.css.d.ts +40 -0
- package/lib/types/components/layout/toolbar/Toolbar.css.d.ts.map +1 -0
- package/lib/types/components/layout/toolbar/Toolbar.d.ts +35 -0
- package/lib/types/components/layout/toolbar/Toolbar.d.ts.map +1 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigation.d.ts +57 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigation.d.ts.map +1 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigationItem.d.ts +2 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigationItem.d.ts.map +1 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigationSection.d.ts +2 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigationSection.d.ts.map +1 -0
- package/lib/types/components/navigation/sidebar/SidebarProfileMenu.d.ts +2 -0
- package/lib/types/components/navigation/sidebar/SidebarProfileMenu.d.ts.map +1 -0
- package/lib/types/components/navigation/sidebar/sidebarNavigation.css.d.ts +19 -0
- package/lib/types/components/navigation/sidebar/sidebarNavigation.css.d.ts.map +1 -0
- package/lib/types/components/subscriptions/RefetchNeededBanner.d.ts.map +1 -1
- package/lib/types/i18n/resources.d.ts +32 -14
- package/lib/types/i18n/resources.d.ts.map +1 -1
- package/lib/types/index.d.ts +33 -33
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/internal/data-table/virtualization.d.ts +2 -2
- package/lib/types/internal/data-table/virtualization.d.ts.map +1 -1
- package/lib/types/internal/infinite/infiniteLoad.d.ts +27 -0
- package/lib/types/internal/infinite/infiniteLoad.d.ts.map +1 -0
- package/lib/types/theme/backofficeTheme.css.d.ts +100 -0
- package/lib/types/theme/backofficeTheme.css.d.ts.map +1 -1
- package/lib/types/theme/publicTheme.css.d.ts +100 -0
- package/lib/types/theme/publicTheme.css.d.ts.map +1 -1
- package/lib/types/theme/sprinkles.css.d.ts +2 -2
- package/lib/types/theme/themeContract.css.d.ts +50 -0
- package/lib/types/theme/themeContract.css.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/i18n/locales/en/ui.json +16 -7
- package/src/i18n/locales/fr/ui.json +16 -7
- package/lib/esm/atomic/molecules/card/Card.css.js +0 -8
- package/lib/esm/atomic/molecules/card/Card.css.js.map +0 -1
- package/lib/esm/atomic/molecules/form/FormErrorBanner.css.js +0 -8
- package/lib/esm/atomic/molecules/form/FormErrorBanner.css.js.map +0 -1
- package/lib/esm/atomic/molecules/form/FormErrorBanner.js +0 -17
- package/lib/esm/atomic/molecules/form/FormErrorBanner.js.map +0 -1
- package/lib/esm/atomic/templates/detail-page/DetailPage.js +0 -49
- package/lib/esm/atomic/templates/detail-page/DetailPage.js.map +0 -1
- package/lib/esm/atomic/templates/detail-page/detailPage.css.js +0 -8
- package/lib/esm/atomic/templates/detail-page/detailPage.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js +0 -33
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js +0 -36
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.js +0 -37
- package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js +0 -35
- package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js +0 -41
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js +0 -46
- package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js +0 -17
- package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js +0 -46
- package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js.map +0 -1
- package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js +0 -19
- package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js +0 -41
- package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js.map +0 -1
- package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js +0 -8
- package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js +0 -26
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js +0 -8
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/helpers.js +0 -18
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/helpers.js.map +0 -1
- package/lib/esm/components/dashboard/section_nav/SectionNav.css.js +0 -8
- package/lib/esm/components/dashboard/section_nav/SectionNav.css.js.map +0 -1
- package/lib/esm/components/dashboard/section_nav/SectionNav.js +0 -25
- package/lib/esm/components/dashboard/section_nav/SectionNav.js.map +0 -1
- package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.css.js +0 -8
- package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.css.js.map +0 -1
- package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.js +0 -24
- package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.js.map +0 -1
- package/lib/esm/components/layout/AppShell.js +0 -19
- package/lib/esm/components/layout/AppShell.js.map +0 -1
- package/lib/esm/components/layout/SidebarPageLayout.js +0 -16
- package/lib/esm/components/layout/SidebarPageLayout.js.map +0 -1
- package/lib/esm/components/layout/SplitViewLayout.css.js +0 -8
- package/lib/esm/components/layout/SplitViewLayout.css.js.map +0 -1
- package/lib/esm/components/layout/SplitViewLayout.js +0 -18
- package/lib/esm/components/layout/SplitViewLayout.js.map +0 -1
- package/lib/esm/components/layout/TabsContentLayout.css.js +0 -8
- package/lib/esm/components/layout/TabsContentLayout.css.js.map +0 -1
- package/lib/esm/components/layout/TabsContentLayout.js +0 -31
- package/lib/esm/components/layout/TabsContentLayout.js.map +0 -1
- package/lib/esm/components/layout/ToolbarRow.css.js +0 -8
- package/lib/esm/components/layout/ToolbarRow.css.js.map +0 -1
- package/lib/esm/components/layout/ToolbarRow.js +0 -12
- package/lib/esm/components/layout/ToolbarRow.js.map +0 -1
- package/lib/esm/components/subscriptions/RefetchNeededBanner.css.js +0 -8
- package/lib/esm/components/subscriptions/RefetchNeededBanner.css.js.map +0 -1
- package/lib/types/atomic/molecules/card/Card.css.d.ts +0 -5
- package/lib/types/atomic/molecules/card/Card.css.d.ts.map +0 -1
- package/lib/types/atomic/molecules/form/FormErrorBanner.css.d.ts +0 -2
- package/lib/types/atomic/molecules/form/FormErrorBanner.css.d.ts.map +0 -1
- package/lib/types/atomic/molecules/form/FormErrorBanner.d.ts +0 -7
- package/lib/types/atomic/molecules/form/FormErrorBanner.d.ts.map +0 -1
- package/lib/types/atomic/templates/detail-page/DetailPage.d.ts +0 -19
- package/lib/types/atomic/templates/detail-page/DetailPage.d.ts.map +0 -1
- package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts +0 -9
- package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts +0 -10
- package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts +0 -7
- package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts +0 -6
- package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts +0 -13
- package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts +0 -6
- package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts +0 -5
- package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.d.ts +0 -16
- package/lib/types/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts +0 -13
- package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts +0 -5
- package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts +0 -16
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts +0 -10
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts +0 -19
- package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts +0 -15
- package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/inline_banner/InlineBanner.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/inline_banner/inlineBanner.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts +0 -13
- package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts +0 -6
- package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts +0 -31
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts +0 -5
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/helpers.d.ts +0 -5
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/helpers.d.ts.map +0 -1
- package/lib/types/components/dashboard/section_nav/SectionNav.css.d.ts +0 -4
- package/lib/types/components/dashboard/section_nav/SectionNav.css.d.ts.map +0 -1
- package/lib/types/components/dashboard/section_nav/SectionNav.d.ts +0 -15
- package/lib/types/components/dashboard/section_nav/SectionNav.d.ts.map +0 -1
- package/lib/types/components/dashboard/segmented_nav/SegmentedNav.css.d.ts +0 -4
- package/lib/types/components/dashboard/segmented_nav/SegmentedNav.css.d.ts.map +0 -1
- package/lib/types/components/dashboard/segmented_nav/SegmentedNav.d.ts +0 -15
- package/lib/types/components/dashboard/segmented_nav/SegmentedNav.d.ts.map +0 -1
- package/lib/types/components/layout/AppShell.d.ts +0 -17
- package/lib/types/components/layout/AppShell.d.ts.map +0 -1
- package/lib/types/components/layout/SidebarPageLayout.d.ts +0 -15
- package/lib/types/components/layout/SidebarPageLayout.d.ts.map +0 -1
- package/lib/types/components/layout/SplitViewLayout.css.d.ts +0 -3
- package/lib/types/components/layout/SplitViewLayout.css.d.ts.map +0 -1
- package/lib/types/components/layout/SplitViewLayout.d.ts +0 -11
- package/lib/types/components/layout/SplitViewLayout.d.ts.map +0 -1
- package/lib/types/components/layout/TabsContentLayout.css.d.ts +0 -6
- package/lib/types/components/layout/TabsContentLayout.css.d.ts.map +0 -1
- package/lib/types/components/layout/TabsContentLayout.d.ts +0 -9
- package/lib/types/components/layout/TabsContentLayout.d.ts.map +0 -1
- package/lib/types/components/layout/ToolbarRow.css.d.ts +0 -2
- package/lib/types/components/layout/ToolbarRow.css.d.ts.map +0 -1
- package/lib/types/components/layout/ToolbarRow.d.ts +0 -8
- package/lib/types/components/layout/ToolbarRow.d.ts.map +0 -1
- package/lib/types/components/subscriptions/RefetchNeededBanner.css.d.ts +0 -5
- package/lib/types/components/subscriptions/RefetchNeededBanner.css.d.ts.map +0 -1
- /package/lib/types/{backoffice/molecules/inline_banner → components/feedback}/inlineBanner.css.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebarProfileMenu.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { sprinkles } from '../../../theme/sprinkles.css.js';\nimport { vars } from '../../../theme/themeContract.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n width: 'full',\n});\n\nexport const title = sprinkles({\n fontSize: 'xs',\n fontWeight: 'semibold',\n
|
|
1
|
+
{"version":3,"file":"sidebarProfileMenu.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { sprinkles } from '../../../theme/sprinkles.css.js';\nimport { vars } from '../../../theme/themeContract.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n width: 'full',\n});\n\nexport const title = sprinkles({\n fontSize: 'xs',\n fontWeight: 'semibold',\n paddingX: 1,\n});\n\nexport const titleTheme = style({\n color: vars.sidebar.profileTitleColor,\n});\n\nexport const hidden = sprinkles({\n display: 'none',\n});\n\nexport const trigger = recipe({\n base: [\n sprinkles({\n display: 'flex',\n alignItems: 'center',\n width: 'full',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderRadius: 'lg',\n transitionProperty: 'colors',\n transitionDuration: 120,\n transitionTimingFunction: 'ease',\n cursor: 'pointer',\n }),\n {\n backgroundColor: vars.sidebar.profileTriggerBackground,\n borderColor: vars.sidebar.profileTriggerBorderColor,\n selectors: {\n '&:hover': {\n backgroundColor: vars.sidebar.profileTriggerHoverBackground,\n borderColor: vars.sidebar.profileTriggerHoverBorderColor,\n },\n '&:focus-visible': {\n boxShadow: vars.sidebar.profileTriggerFocusRing,\n outline: 'none',\n },\n },\n },\n ],\n variants: {\n collapsed: {\n true: sprinkles({\n justifyContent: 'center',\n padding: 2,\n }),\n false: sprinkles({\n justifyContent: 'space-between',\n gap: 2,\n paddingY: 2,\n paddingX: 3,\n }),\n },\n },\n defaultVariants: {\n collapsed: false,\n },\n});\n\nexport const triggerMain = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n minWidth: 0,\n flex: 1,\n});\n\nexport const avatar = sprinkles({\n width: 8,\n height: 8,\n minWidth: 8,\n minHeight: 8,\n borderRadius: 'full',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n fontSize: 'xs',\n fontWeight: 'semibold',\n textTransform: 'uppercase',\n});\n\nexport const avatarTheme = style({\n backgroundImage: vars.sidebar.profileAvatarBackgroundImage,\n color: vars.sidebar.profileAvatarColor,\n});\n\nexport const identity = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n minWidth: 0,\n});\n\nexport const displayName = sprinkles({\n fontSize: 'sm',\n fontWeight: 'semibold',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n});\n\nexport const displayNameTheme = style({\n color: vars.sidebar.profileTextColor,\n});\n\nexport const email = sprinkles({\n fontSize: 'xs',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n});\n\nexport const emailTheme = style({\n color: vars.sidebar.profileSubtextColor,\n});\n\nexport const chevron = sprinkles({\n transitionProperty: 'transform',\n transitionDuration: 120,\n transitionTimingFunction: 'ease',\n});\n\nexport const chevronTheme = style({\n color: vars.sidebar.profileSubtextColor,\n});\n\nexport const chevronOpen = sprinkles({\n rotate: 180,\n});\n\nexport const menu = sprinkles({\n minWidth: 56,\n padding: 2,\n display: 'flex',\n flexDirection: 'column',\n gap: 1,\n});\n\nexport const menuIdentity = style([\n sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 0.5,\n paddingX: 3,\n paddingY: 2,\n borderBottomWidth: 'px',\n marginBottom: 1,\n }),\n {\n borderBottomColor: vars.sidebar.profileMenuBorderColor,\n borderBottomStyle: 'solid',\n },\n]);\n\nexport const menuDisplayName = sprinkles({\n fontSize: 'sm',\n fontWeight: 'semibold',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n});\n\nexport const menuDisplayNameTheme = style({\n color: vars.sidebar.profileTextColor,\n});\n\nexport const menuEmail = sprinkles({\n fontSize: 'xs',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n});\n\nexport const menuEmailTheme = style({\n color: vars.sidebar.profileSubtextColor,\n});\n\nexport const menuItem = style([\n sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n width: 'full',\n borderWidth: 0,\n borderStyle: 'none',\n borderRadius: 'md',\n backgroundColor: 'transparent',\n fontSize: 'sm',\n fontWeight: 'medium',\n textAlign: 'left',\n cursor: 'pointer',\n paddingY: 2,\n paddingX: 3,\n transitionProperty: 'colors',\n transitionDuration: 120,\n transitionTimingFunction: 'ease',\n }),\n {\n color: vars.sidebar.profileTextColor,\n selectors: {\n '&:hover:not(:disabled)': {\n backgroundColor: vars.sidebar.profileMenuHoverBackground,\n },\n '&:focus-visible': {\n boxShadow: vars.sidebar.profileTriggerFocusRing,\n outline: 'none',\n },\n '&:disabled': {\n opacity: 0.6,\n cursor: 'not-allowed',\n },\n },\n },\n]);\n\nexport const menuIcon = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n});\n\nexport const menuIconTheme = style({\n color: vars.sidebar.profileSubtextColor,\n});\n"],"mappings":""}
|
|
@@ -1,52 +1,87 @@
|
|
|
1
1
|
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as
|
|
2
|
+
import { actor as t, body as n, description as r, details as i, dot as a, gutter as o, header as s, item as c, line as l, list as u, meta as d, metric as f, metricLabel as p, metricValue as m, metrics as h, source as g, time as _, title as v } from "./auditTimeline.css.js";
|
|
3
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
4
4
|
//#region src/backoffice/organisms/audit_timeline/AuditTimeline.tsx
|
|
5
|
-
var
|
|
6
|
-
className: e(
|
|
7
|
-
children:
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
var S = ({ events: S, emptyState: C = null, density: w = "comfortable", className: T, renderEvent: E }) => S.length === 0 ? /* @__PURE__ */ b(y, { children: C }) : /* @__PURE__ */ b("ol", {
|
|
6
|
+
className: e(u({ density: w }), T),
|
|
7
|
+
children: S.map((e, u) => {
|
|
8
|
+
let y = u === S.length - 1, C = E?.(e, {
|
|
9
|
+
index: u,
|
|
10
|
+
isLast: y
|
|
11
|
+
});
|
|
12
|
+
if (C != null) return /* @__PURE__ */ b("li", {
|
|
13
|
+
className: c,
|
|
14
|
+
children: C
|
|
15
|
+
}, e.id);
|
|
16
|
+
let w = null;
|
|
17
|
+
y || (w = /* @__PURE__ */ b("div", { className: l }));
|
|
18
|
+
let T = null;
|
|
19
|
+
e.time != null && (T = /* @__PURE__ */ b("div", {
|
|
20
|
+
className: _,
|
|
15
21
|
children: e.time
|
|
16
22
|
}));
|
|
17
|
-
let
|
|
18
|
-
e.description != null && (
|
|
19
|
-
className:
|
|
23
|
+
let D = null;
|
|
24
|
+
e.description != null && (D = /* @__PURE__ */ b("div", {
|
|
25
|
+
className: r,
|
|
20
26
|
children: e.description
|
|
21
27
|
}));
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
className:
|
|
25
|
-
children: e.
|
|
26
|
-
})), /* @__PURE__ */
|
|
27
|
-
className:
|
|
28
|
-
children:
|
|
29
|
-
|
|
28
|
+
let O = [];
|
|
29
|
+
e.actor != null && O.push(/* @__PURE__ */ b("span", {
|
|
30
|
+
className: t,
|
|
31
|
+
children: e.actor
|
|
32
|
+
}, "actor")), e.source != null && O.push(/* @__PURE__ */ b("span", {
|
|
33
|
+
className: g,
|
|
34
|
+
children: e.source
|
|
35
|
+
}, "source")), e.meta != null && O.push(/* @__PURE__ */ b("span", { children: e.meta }, "meta"));
|
|
36
|
+
let k = null;
|
|
37
|
+
O.length > 0 && (k = /* @__PURE__ */ b("div", {
|
|
38
|
+
className: d,
|
|
39
|
+
children: O
|
|
40
|
+
}));
|
|
41
|
+
let A = null;
|
|
42
|
+
e.metrics != null && e.metrics.length > 0 && (A = /* @__PURE__ */ b("div", {
|
|
43
|
+
className: h,
|
|
44
|
+
children: e.metrics.map((e) => /* @__PURE__ */ x("span", {
|
|
45
|
+
className: f,
|
|
46
|
+
children: [/* @__PURE__ */ b("span", {
|
|
47
|
+
className: p,
|
|
48
|
+
children: e.label
|
|
49
|
+
}), /* @__PURE__ */ b("span", {
|
|
50
|
+
className: m,
|
|
51
|
+
children: e.value
|
|
52
|
+
})]
|
|
53
|
+
}, e.id))
|
|
54
|
+
}));
|
|
55
|
+
let j = null;
|
|
56
|
+
return e.details != null && (j = /* @__PURE__ */ b("div", {
|
|
57
|
+
className: i,
|
|
58
|
+
children: e.details
|
|
59
|
+
})), /* @__PURE__ */ x("li", {
|
|
60
|
+
className: c,
|
|
61
|
+
children: [/* @__PURE__ */ x("div", {
|
|
62
|
+
className: o,
|
|
30
63
|
"aria-hidden": "true",
|
|
31
|
-
children: [/* @__PURE__ */
|
|
32
|
-
}), /* @__PURE__ */
|
|
33
|
-
className:
|
|
64
|
+
children: [/* @__PURE__ */ b("div", { className: a({ tone: e.tone ?? "neutral" }) }), w]
|
|
65
|
+
}), /* @__PURE__ */ x("div", {
|
|
66
|
+
className: n,
|
|
34
67
|
children: [
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
className:
|
|
37
|
-
children: [/* @__PURE__ */
|
|
38
|
-
className:
|
|
68
|
+
/* @__PURE__ */ x("div", {
|
|
69
|
+
className: s,
|
|
70
|
+
children: [/* @__PURE__ */ b("div", {
|
|
71
|
+
className: v,
|
|
39
72
|
children: e.title
|
|
40
|
-
}),
|
|
73
|
+
}), T]
|
|
41
74
|
}),
|
|
42
|
-
|
|
43
|
-
|
|
75
|
+
D,
|
|
76
|
+
k,
|
|
77
|
+
A,
|
|
78
|
+
j
|
|
44
79
|
]
|
|
45
80
|
})]
|
|
46
81
|
}, e.id);
|
|
47
82
|
})
|
|
48
83
|
});
|
|
49
84
|
//#endregion
|
|
50
|
-
export {
|
|
85
|
+
export { S as AuditTimeline, S as default };
|
|
51
86
|
|
|
52
87
|
//# sourceMappingURL=AuditTimeline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuditTimeline.js","names":[],"sources":["../../../../../src/backoffice/organisms/audit_timeline/AuditTimeline.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '../../../theme/tools.js';\nimport * as styles from './auditTimeline.css.js';\n\nexport type AuditTimelineEvent<T = unknown> = {\n id: string;\n title: ReactNode;\n time?: ReactNode;\n description?: ReactNode;\n meta?: ReactNode;\n raw?: T;\n};\n\nexport type AuditTimelineProps<T = unknown> = {\n events: readonly AuditTimelineEvent<T>[];\n className?: string;\n renderEvent?: (event: AuditTimelineEvent<T
|
|
1
|
+
{"version":3,"file":"AuditTimeline.js","names":[],"sources":["../../../../../src/backoffice/organisms/audit_timeline/AuditTimeline.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '../../../theme/tools.js';\nimport * as styles from './auditTimeline.css.js';\n\nexport type AuditTimelineTone =\n | 'neutral'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger';\n\nexport type AuditTimelineDensity = 'compact' | 'comfortable';\n\nexport type AuditTimelineMetric = {\n id: string;\n label: ReactNode;\n value: ReactNode;\n};\n\nexport type AuditTimelineEvent<T = unknown> = {\n id: string;\n title: ReactNode;\n time?: ReactNode;\n description?: ReactNode;\n actor?: ReactNode;\n source?: ReactNode;\n meta?: ReactNode;\n metrics?: readonly AuditTimelineMetric[];\n details?: ReactNode;\n tone?: AuditTimelineTone;\n raw?: T;\n};\n\nexport type AuditTimelineRenderContext = {\n index: number;\n isLast: boolean;\n};\n\nexport type AuditTimelineProps<T = unknown> = {\n events: readonly AuditTimelineEvent<T>[];\n emptyState?: ReactNode;\n density?: AuditTimelineDensity;\n className?: string;\n renderEvent?: (\n event: AuditTimelineEvent<T>,\n context: AuditTimelineRenderContext,\n ) => ReactNode;\n};\n\nexport const AuditTimeline = <T,>({\n events,\n emptyState = null,\n density = 'comfortable',\n className,\n renderEvent,\n}: AuditTimelineProps<T>): JSX.Element | null => {\n if (events.length === 0) {\n return <>{emptyState}</>;\n }\n\n return (\n <ol className={cx(styles.list({ density }), className)}>\n {events.map((event, index) => {\n const isLast = index === events.length - 1;\n const custom = renderEvent?.(event, { index, isLast });\n if (custom != null) {\n return (\n <li key={event.id} className={styles.item}>\n {custom}\n </li>\n );\n }\n\n let lineNode: JSX.Element | null = null;\n if (!isLast) {\n lineNode = <div className={styles.line} />;\n }\n\n let timeNode: JSX.Element | null = null;\n if (event.time != null) {\n timeNode = <div className={styles.time}>{event.time}</div>;\n }\n\n let descriptionNode: JSX.Element | null = null;\n if (event.description != null) {\n descriptionNode = (\n <div className={styles.description}>{event.description}</div>\n );\n }\n\n const metaItems: ReactNode[] = [];\n if (event.actor != null) {\n metaItems.push(\n <span key=\"actor\" className={styles.actor}>\n {event.actor}\n </span>,\n );\n }\n if (event.source != null) {\n metaItems.push(\n <span key=\"source\" className={styles.source}>\n {event.source}\n </span>,\n );\n }\n if (event.meta != null) {\n metaItems.push(<span key=\"meta\">{event.meta}</span>);\n }\n\n let metaNode: JSX.Element | null = null;\n if (metaItems.length > 0) {\n metaNode = <div className={styles.meta}>{metaItems}</div>;\n }\n\n let metricsNode: JSX.Element | null = null;\n if (event.metrics != null && event.metrics.length > 0) {\n metricsNode = (\n <div className={styles.metrics}>\n {event.metrics.map((metric) => {\n return (\n <span key={metric.id} className={styles.metric}>\n <span className={styles.metricLabel}>{metric.label}</span>\n <span className={styles.metricValue}>{metric.value}</span>\n </span>\n );\n })}\n </div>\n );\n }\n\n let detailsNode: JSX.Element | null = null;\n if (event.details != null) {\n detailsNode = <div className={styles.details}>{event.details}</div>;\n }\n\n return (\n <li key={event.id} className={styles.item}>\n <div className={styles.gutter} aria-hidden=\"true\">\n <div className={styles.dot({ tone: event.tone ?? 'neutral' })} />\n {lineNode}\n </div>\n <div className={styles.body}>\n <div className={styles.header}>\n <div className={styles.title}>{event.title}</div>\n {timeNode}\n </div>\n {descriptionNode}\n {metaNode}\n {metricsNode}\n {detailsNode}\n </div>\n </li>\n );\n })}\n </ol>\n );\n};\n\nexport default AuditTimeline;\n"],"mappings":";;;;AAkDA,IAAa,KAAqB,EAChC,WACA,gBAAa,MACb,aAAU,eACV,cACA,qBAEI,EAAO,WAAW,IACb,kBAAA,GAAA,EAAA,UAAG,GAAc,CAAA,GAIxB,kBAAC,MAAD;CAAI,WAAW,EAAG,EAAY,EAAE,YAAS,CAAC,EAAE,EAAU;WACnD,EAAO,KAAK,GAAO,MAAU;EAC5B,IAAM,IAAS,MAAU,EAAO,SAAS,GACnC,IAAS,IAAc,GAAO;GAAE;GAAO;GAAQ,CAAC;EACtD,IAAI,KAAU,MACZ,OACE,kBAAC,MAAD;GAAmB,WAAW;aAC3B;GACE,EAFI,EAAM,GAEV;EAIT,IAAI,IAA+B;EACnC,AAAK,MACH,IAAW,kBAAC,OAAD,EAAK,WAAW,GAAe,CAAA;EAG5C,IAAI,IAA+B;EACnC,AAAI,EAAM,QAAQ,SAChB,IAAW,kBAAC,OAAD;GAAK,WAAW;aAAc,EAAM;GAAW,CAAA;EAG5D,IAAI,IAAsC;EAC1C,AAAI,EAAM,eAAe,SACvB,IACE,kBAAC,OAAD;GAAK,WAAW;aAAqB,EAAM;GAAkB,CAAA;EAIjE,IAAM,IAAyB,EAAE;EAejC,AAdI,EAAM,SAAS,QACjB,EAAU,KACR,kBAAC,QAAD;GAAkB,WAAW;aAC1B,EAAM;GACF,EAFG,QAEH,CACR,EAEC,EAAM,UAAU,QAClB,EAAU,KACR,kBAAC,QAAD;GAAmB,WAAW;aAC3B,EAAM;GACF,EAFG,SAEH,CACR,EAEC,EAAM,QAAQ,QAChB,EAAU,KAAK,kBAAC,QAAD,EAAA,UAAkB,EAAM,MAAY,EAA1B,OAA0B,CAAC;EAGtD,IAAI,IAA+B;EACnC,AAAI,EAAU,SAAS,MACrB,IAAW,kBAAC,OAAD;GAAK,WAAW;aAAc;GAAgB,CAAA;EAG3D,IAAI,IAAkC;EACtC,AAAI,EAAM,WAAW,QAAQ,EAAM,QAAQ,SAAS,MAClD,IACE,kBAAC,OAAD;GAAK,WAAW;aACb,EAAM,QAAQ,KAAK,MAEhB,kBAAC,QAAD;IAAsB,WAAW;cAAjC,CACE,kBAAC,QAAD;KAAM,WAAW;eAAqB,EAAO;KAAa,CAAA,EAC1D,kBAAC,QAAD;KAAM,WAAW;eAAqB,EAAO;KAAa,CAAA,CACrD;MAHI,EAAO,GAGX,CAET;GACE,CAAA;EAIV,IAAI,IAAkC;EAKtC,OAJI,EAAM,WAAW,SACnB,IAAc,kBAAC,OAAD;GAAK,WAAW;aAAiB,EAAM;GAAc,CAAA,GAInE,kBAAC,MAAD;GAAmB,WAAW;aAA9B,CACE,kBAAC,OAAD;IAAK,WAAW;IAAe,eAAY;cAA3C,CACE,kBAAC,OAAD,EAAK,WAAW,EAAW,EAAE,MAAM,EAAM,QAAQ,WAAW,CAAC,EAAI,CAAA,EAChE,EACG;OACN,kBAAC,OAAD;IAAK,WAAW;cAAhB;KACE,kBAAC,OAAD;MAAK,WAAW;gBAAhB,CACE,kBAAC,OAAD;OAAK,WAAW;iBAAe,EAAM;OAAY,CAAA,EAChD,EACG;;KACL;KACA;KACA;KACA;KACG;MACH;KAfI,EAAM,GAeV;GAEP;CACC,CAAA"}
|
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
|
+
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
4
|
//#region src/backoffice/organisms/audit_timeline/auditTimeline.css.ts
|
|
4
|
-
var
|
|
5
|
+
var t = e({
|
|
6
|
+
defaultClassName: "_4pt2rx3 _4pt2rx0 txvbqbdr8 txvbqbf6i txvbqbm8d txvbqbm9g txvbqbux3",
|
|
7
|
+
variantClassNames: { density: {
|
|
8
|
+
comfortable: "_4pt2rx4 _4pt2rx1 txvbqbffj",
|
|
9
|
+
compact: "_4pt2rx5 _4pt2rx2 txvbqbff6"
|
|
10
|
+
} },
|
|
11
|
+
defaultVariants: { density: "comfortable" },
|
|
12
|
+
compoundVariants: []
|
|
13
|
+
}), n = "_4pt2rx6 txvbqbdr8 txvbqbt9i txvbqbffj", r = "_4pt2rx7 txvbqbdr8 txvbqbf6i txvbqbey txvbqbfet txvbqbf7y", i = e({
|
|
14
|
+
defaultClassName: "_4pt2rx9 _4pt2rx8 txvbqb17gh txvbqbhlw txvbqb2is txvbqbq05 txvbqbf7y",
|
|
15
|
+
variantClassNames: { tone: {
|
|
16
|
+
neutral: "_4pt2rxa",
|
|
17
|
+
info: "_4pt2rxb",
|
|
18
|
+
success: "_4pt2rxc",
|
|
19
|
+
warning: "_4pt2rxd",
|
|
20
|
+
danger: "_4pt2rxe"
|
|
21
|
+
} },
|
|
22
|
+
defaultVariants: { tone: "neutral" },
|
|
23
|
+
compoundVariants: []
|
|
24
|
+
}), a = "_4pt2rxg _4pt2rxf txvbqb17fr txvbqbdxd txvbqb9mg txvbqb65i", o = "_4pt2rxh txvbqbdr8 txvbqbf6i txvbqbfet txvbqbvve txvbqbt9i txvbqbdxd", s = "_4pt2rxi txvbqbdr8 txvbqbjus txvbqbfo txvbqbff6 txvbqbf91", c = "_4pt2rxj txvbqb9j txvbqbfd0 txvbqb19c9", l = "_4pt2rxk txvbqb96 txvbqb19cb txvbqbf9r", u = "_4pt2rxl txvbqb9j txvbqb19cb", d = "_4pt2rxm txvbqbdr8 txvbqbf91 txvbqbff6 txvbqb96 txvbqb19cb", f = "_4pt2rxn txvbqb19c9 txvbqbfcn", p = "_4pt2rxo txvbqb19cb", m = "_4pt2rxp txvbqbdr8 txvbqbf91 txvbqbff6", h = "_4pt2rxq txvbqbyo5 txvbqbzlq txvbqb10iy txvbqbvv1 txvbqbdsb txvbqbfet txvbqbfo txvbqb1uy txvbqb2et txvbqb17u txvbqb2g9 txvbqb96 txvbqb196l", g = "_4pt2rxr txvbqb19cb", _ = "_4pt2rxs txvbqb19c9 txvbqbfd0", v = "_4pt2rxu _4pt2rxt txvbqb1uy txvbqb2et txvbqb17u txvbqb2g9 txvbqbuxt txvbqb196l txvbqb96 txvbqb19cb txvbqbuvn";
|
|
5
25
|
//#endregion
|
|
6
|
-
export {
|
|
26
|
+
export { f as actor, o as body, u as description, v as details, i as dot, r as gutter, s as header, n as item, a as line, t as list, d as meta, h as metric, g as metricLabel, _ as metricValue, m as metrics, p as source, l as time, c as title };
|
|
7
27
|
|
|
8
28
|
//# sourceMappingURL=auditTimeline.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auditTimeline.css.js","names":[],"sources":["../../../../../src/backoffice/organisms/audit_timeline/auditTimeline.css.ts"],"sourcesContent":["import { sprinkles } from '../../../theme/sprinkles.css.js';\n\
|
|
1
|
+
{"version":3,"file":"auditTimeline.css.js","names":[],"sources":["../../../../../src/backoffice/organisms/audit_timeline/auditTimeline.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\n\nimport { sprinkles } from '../../../theme/sprinkles.css.js';\nimport { vars } from '../../../theme/themeContract.css.js';\n\nconst listBase = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n listStyleType: 'none',\n margin: 0,\n padding: 0,\n});\n\nexport const list = recipe({\n base: listBase,\n variants: {\n density: {\n comfortable: sprinkles({ gap: 3 }),\n compact: sprinkles({ gap: 2 }),\n },\n },\n defaultVariants: {\n density: 'comfortable',\n },\n});\n\nexport const item = sprinkles({\n display: 'flex',\n minWidth: 0,\n gap: 3,\n});\n\nexport const gutter = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n gap: 1,\n flexShrink: 0,\n});\n\nexport const dot = recipe({\n base: sprinkles({\n width: 2,\n height: 2,\n borderRadius: 'full',\n marginTop: 1,\n flexShrink: 0,\n }),\n variants: {\n tone: {\n neutral: { backgroundColor: vars.colors.border },\n info: { backgroundColor: vars.colors.info },\n success: { backgroundColor: vars.colors.success },\n warning: { backgroundColor: vars.colors.warning },\n danger: { backgroundColor: vars.colors.error },\n },\n },\n defaultVariants: {\n tone: 'neutral',\n },\n});\n\nexport const line = style([\n sprinkles({\n width: 0,\n flex: 1,\n borderLeftWidth: 'default',\n borderLeftColor: 'borderSubtle',\n }),\n {\n borderLeftStyle: 'solid',\n },\n]);\n\nexport const body = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 1,\n paddingBottom: 2,\n minWidth: 0,\n flex: 1,\n});\n\nexport const header = sprinkles({\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'baseline',\n gap: 2,\n flexWrap: 'wrap',\n});\n\nexport const title = sprinkles({\n fontSize: 'sm',\n fontWeight: 'semibold',\n color: 'text',\n});\n\nexport const time = sprinkles({\n fontSize: 'xs',\n color: 'textSecondary',\n fontVariantNumeric: 'tabular-nums',\n});\n\nexport const description = sprinkles({\n fontSize: 'sm',\n color: 'textSecondary',\n});\n\nexport const meta = sprinkles({\n display: 'flex',\n flexWrap: 'wrap',\n gap: 2,\n fontSize: 'xs',\n color: 'textSecondary',\n});\n\nexport const actor = sprinkles({\n color: 'text',\n fontWeight: 'medium',\n});\n\nexport const source = sprinkles({\n color: 'textSecondary',\n});\n\nexport const metrics = sprinkles({\n display: 'flex',\n flexWrap: 'wrap',\n gap: 2,\n});\n\nexport const metric = sprinkles({\n display: 'inline-flex',\n gap: 1,\n alignItems: 'baseline',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'borderSubtle',\n borderRadius: 'md',\n paddingY: 1,\n paddingX: 2,\n fontSize: 'xs',\n backgroundColor: 'backgroundSecondary',\n});\n\nexport const metricLabel = sprinkles({\n color: 'textSecondary',\n});\n\nexport const metricValue = sprinkles({\n color: 'text',\n fontWeight: 'semibold',\n});\n\nexport const details = style([\n sprinkles({\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'borderSubtle',\n borderRadius: 'md',\n padding: 2,\n backgroundColor: 'backgroundSecondary',\n fontSize: 'xs',\n color: 'textSecondary',\n overflowX: 'auto',\n }),\n {\n overflowWrap: 'anywhere',\n },\n]);\n"],"mappings":""}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cx as e } from "../../../theme/tools.js";
|
|
2
2
|
import { Checkbox as t } from "../../../atomic/atoms/checkbox/Checkbox.js";
|
|
3
3
|
import { DataTable as n } from "../../../components/data-table/DataTable.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { BackofficeToolbar as r } from "../../molecules/backoffice_toolbar/BackofficeToolbar.js";
|
|
5
|
+
import { BulkActionsBar as i } from "../../molecules/bulk_actions_bar/BulkActionsBar.js";
|
|
6
6
|
import { selectionCell as a, wrapper as o, wrapperContained as s } from "./backofficeDataTable.css.js";
|
|
7
7
|
import { useCallback as c, useMemo as l } from "react";
|
|
8
8
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
@@ -97,9 +97,9 @@ var p = (e, t) => e.mobileRole === "action" ? "3.75rem" : e.isPrimary === !0 ||
|
|
|
97
97
|
let M = c(() => {
|
|
98
98
|
_?.onSelectionChange(/* @__PURE__ */ new Set());
|
|
99
99
|
}, [_]), N = null;
|
|
100
|
-
g != null && (N = /* @__PURE__ */ u(
|
|
100
|
+
g != null && (N = /* @__PURE__ */ u(r, { ...g }));
|
|
101
101
|
let P = null;
|
|
102
|
-
_ != null && (P = /* @__PURE__ */ u(
|
|
102
|
+
_ != null && (P = /* @__PURE__ */ u(i, {
|
|
103
103
|
selectedCount: j,
|
|
104
104
|
actions: v,
|
|
105
105
|
onClearSelection: M
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackofficeDataTable.js","names":[],"sources":["../../../../../src/backoffice/organisms/backoffice_data_table/BackofficeDataTable.tsx"],"sourcesContent":["import { useCallback, useMemo, type JSX, type ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { Checkbox } from '../../../atomic/atoms/checkbox/Checkbox.js';\nimport { cx } from '../../../theme/tools.js';\nimport {\n DataTable,\n type DataTableBodyScrollMode,\n type DataTableColumn,\n type GetRowId,\n} from '../../../components/data-table/DataTable.js';\n\nimport { BulkActionsBar } from '../../molecules/bulk_actions_bar/BulkActionsBar.js';\nimport {\n TableToolbar,\n type TableToolbarProps,\n} from '../../molecules/table_toolbar/TableToolbar.js';\n\nimport * as styles from './backofficeDataTable.css.js';\n\nexport type BackofficeDataTableSelection<Row> = {\n selectedRowIds: ReadonlySet<string>;\n onSelectionChange: (next: ReadonlySet<string>) => void;\n isRowSelectable?: (row: Row, index: number) => boolean;\n};\n\nexport type BackofficeDataTableProps<Row> = {\n columns: readonly DataTableColumn<Row>[];\n rows: readonly Row[];\n getRowId: GetRowId<Row>;\n toolbar?: TableToolbarProps;\n selection?: BackofficeDataTableSelection<Row>;\n bulkActions?: ReactNode;\n emptyState?: JSX.Element;\n className?: string;\n selectAllLabel?: string;\n selectRowLabel?: (row: Row, index: number) => string;\n ariaLabel?: string;\n bodyScrollMode?: DataTableBodyScrollMode;\n};\n\ntype WrappedRow<Row> = {\n row: Row;\n index: number;\n id: string;\n selectable: boolean;\n};\n\nconst resolveColumnTemplate = <Row,>(\n column: DataTableColumn<Row>,\n index: number,\n): string => {\n if (column.mobileRole === 'action') {\n return '3.75rem';\n }\n if (column.isPrimary === true || index === 0) {\n return 'minmax(16rem, 1fr)';\n }\n if (column.align === 'right' || column.align === 'center') {\n return 'minmax(5.5rem, 7rem)';\n }\n return 'minmax(10rem, 0.75fr)';\n};\n\nconst buildGridTemplateColumns = <Row,>(\n columns: readonly DataTableColumn<Row>[],\n hasSelection: boolean,\n): string | undefined => {\n if (columns.length === 0) {\n return undefined;\n }\n const template = columns\n .map((column, index) => {\n return resolveColumnTemplate(column, index);\n })\n .join(' ');\n if (!hasSelection) {\n return template;\n }\n return `2.75rem ${template}`;\n};\n\nconst buildSelectionColumn = <Row,>(options: {\n rows: readonly WrappedRow<Row>[];\n selection: BackofficeDataTableSelection<Row>;\n selectAllLabel: string;\n selectRowLabel: (row: Row, index: number) => string;\n}): DataTableColumn<WrappedRow<Row>> => {\n const { rows, selection, selectAllLabel, selectRowLabel } = options;\n\n const selectableRowIds: string[] = [];\n for (const wrapped of rows) {\n if (wrapped.selectable) {\n selectableRowIds.push(wrapped.id);\n }\n }\n\n const selectedCount = selectableRowIds.filter((id) => {\n return selection.selectedRowIds.has(id);\n }).length;\n\n const isAllSelected =\n selectableRowIds.length > 0 && selectedCount === selectableRowIds.length;\n const isPartiallySelected = selectedCount > 0 && !isAllSelected;\n let selectAllAriaChecked: boolean | 'mixed' = isAllSelected;\n if (isPartiallySelected) {\n selectAllAriaChecked = 'mixed';\n }\n\n const toggleAll = (): void => {\n if (selectableRowIds.length === 0) {\n return;\n }\n if (isAllSelected) {\n selection.onSelectionChange(new Set());\n return;\n }\n selection.onSelectionChange(new Set(selectableRowIds));\n };\n\n return {\n id: '__select',\n header: (\n <div className={styles.selectionCell}>\n <Checkbox\n checked={isAllSelected}\n disabled={selectableRowIds.length === 0}\n indeterminate={isPartiallySelected}\n onChange={() => {\n toggleAll();\n }}\n aria-checked={selectAllAriaChecked}\n aria-label={selectAllLabel}\n />\n </div>\n ),\n cell: (wrapped) => {\n const { id: rowId, selectable } = wrapped;\n const checked = selection.selectedRowIds.has(rowId);\n const rowLabel = selectRowLabel(wrapped.row, wrapped.index);\n\n return (\n <div className={styles.selectionCell}>\n <Checkbox\n checked={checked}\n disabled={!selectable}\n onChange={() => {\n const next = new Set(selection.selectedRowIds);\n if (next.has(rowId)) {\n next.delete(rowId);\n } else if (selectable) {\n next.add(rowId);\n }\n selection.onSelectionChange(next);\n }}\n aria-label={rowLabel}\n />\n </div>\n );\n },\n className: styles.selectionCell,\n };\n};\n\nexport const BackofficeDataTable = <Row,>({\n columns,\n rows,\n getRowId,\n toolbar,\n selection,\n bulkActions,\n emptyState,\n className,\n selectAllLabel,\n selectRowLabel,\n ariaLabel,\n bodyScrollMode = 'page',\n}: BackofficeDataTableProps<Row>): JSX.Element => {\n const { t } = useTranslation('ui');\n const wrappedRows = useMemo<readonly WrappedRow<Row>[]>(() => {\n return rows.map((row, index) => {\n const id = getRowId(row, index);\n const selectable = selection?.isRowSelectable?.(row, index) ?? true;\n return { row, index, id, selectable };\n });\n }, [getRowId, rows, selection]);\n\n const selectionColumn = useMemo(() => {\n if (selection == null) {\n return null;\n }\n return buildSelectionColumn({\n rows: wrappedRows,\n selection,\n selectAllLabel: selectAllLabel ?? t('backoffice.dataTable.selectAll'),\n selectRowLabel:\n selectRowLabel ??\n ((_row, index) => {\n return t('backoffice.dataTable.selectRow', {\n index: index + 1,\n });\n }),\n });\n }, [selectAllLabel, selectRowLabel, selection, t, wrappedRows]);\n\n const resolvedColumns = useMemo(() => {\n const mapped = columns.map<DataTableColumn<WrappedRow<Row>>>((column) => {\n return {\n ...column,\n cell: (wrapped: WrappedRow<Row>) => {\n return column.cell(wrapped.row);\n },\n };\n });\n if (selectionColumn == null) {\n return mapped;\n }\n return [selectionColumn, ...mapped];\n }, [columns, selectionColumn]);\n\n const columnsWithPrimary = useMemo(() => {\n const hasPrimary = resolvedColumns.some((column) => {\n return column.isPrimary === true;\n });\n if (hasPrimary) {\n return resolvedColumns;\n }\n if (resolvedColumns.length === 0) {\n return resolvedColumns;\n }\n let primaryIndex = 0;\n if (selectionColumn != null && resolvedColumns.length > 1) {\n primaryIndex = 1;\n }\n return resolvedColumns.map((column, index) => {\n if (index === primaryIndex) {\n return { ...column, isPrimary: true };\n }\n return column;\n });\n }, [resolvedColumns, selectionColumn]);\n\n const gridTemplateColumns = useMemo(() => {\n return buildGridTemplateColumns(\n columnsWithPrimary,\n selectionColumn != null,\n );\n }, [columnsWithPrimary, selectionColumn]);\n\n let selectedCount = 0;\n if (selection != null) {\n selectedCount = selection.selectedRowIds.size;\n }\n\n const handleClearSelection = useCallback(() => {\n if (selection != null) {\n selection.onSelectionChange(new Set());\n }\n }, [selection]);\n\n let toolbarNode: JSX.Element | null = null;\n if (toolbar != null) {\n toolbarNode = <TableToolbar {...toolbar} />;\n }\n\n let bulkActionsNode: JSX.Element | null = null;\n if (selection != null) {\n bulkActionsNode = (\n <BulkActionsBar\n selectedCount={selectedCount}\n actions={bulkActions}\n onClearSelection={handleClearSelection}\n />\n );\n }\n\n let containedWrapperClassName: string | null = null;\n if (bodyScrollMode === 'contained') {\n containedWrapperClassName = styles.wrapperContained;\n }\n\n return (\n <div className={cx(styles.wrapper, containedWrapperClassName, className)}>\n {toolbarNode}\n {bulkActionsNode}\n\n <DataTable\n ariaLabel={ariaLabel ?? t('backoffice.dataTable.label')}\n columns={columnsWithPrimary}\n rows={wrappedRows}\n getRowId={(wrapped: WrappedRow<Row>) => {\n return wrapped.id;\n }}\n emptyState={emptyState}\n className={undefined}\n headerClassName={undefined}\n bodyClassName={undefined}\n rowClassName={undefined}\n gridTemplateClassName={undefined}\n gridTemplateColumns={gridTemplateColumns}\n bodyScrollMode={bodyScrollMode}\n />\n </div>\n );\n};\n\nexport default BackofficeDataTable;\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"BackofficeDataTable.js","names":[],"sources":["../../../../../src/backoffice/organisms/backoffice_data_table/BackofficeDataTable.tsx"],"sourcesContent":["import { useCallback, useMemo, type JSX, type ReactNode } from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { Checkbox } from '../../../atomic/atoms/checkbox/Checkbox.js';\nimport { cx } from '../../../theme/tools.js';\nimport {\n DataTable,\n type DataTableBodyScrollMode,\n type DataTableColumn,\n type GetRowId,\n} from '../../../components/data-table/DataTable.js';\n\nimport { BulkActionsBar } from '../../molecules/bulk_actions_bar/BulkActionsBar.js';\nimport {\n BackofficeToolbar,\n type BackofficeToolbarProps,\n} from '../../molecules/backoffice_toolbar/BackofficeToolbar.js';\n\nimport * as styles from './backofficeDataTable.css.js';\n\nexport type BackofficeDataTableSelection<Row> = {\n selectedRowIds: ReadonlySet<string>;\n onSelectionChange: (next: ReadonlySet<string>) => void;\n isRowSelectable?: (row: Row, index: number) => boolean;\n};\n\nexport type BackofficeDataTableProps<Row> = {\n columns: readonly DataTableColumn<Row>[];\n rows: readonly Row[];\n getRowId: GetRowId<Row>;\n toolbar?: BackofficeToolbarProps;\n selection?: BackofficeDataTableSelection<Row>;\n bulkActions?: ReactNode;\n emptyState?: JSX.Element;\n className?: string;\n selectAllLabel?: string;\n selectRowLabel?: (row: Row, index: number) => string;\n ariaLabel?: string;\n bodyScrollMode?: DataTableBodyScrollMode;\n};\n\ntype WrappedRow<Row> = {\n row: Row;\n index: number;\n id: string;\n selectable: boolean;\n};\n\nconst resolveColumnTemplate = <Row,>(\n column: DataTableColumn<Row>,\n index: number,\n): string => {\n if (column.mobileRole === 'action') {\n return '3.75rem';\n }\n if (column.isPrimary === true || index === 0) {\n return 'minmax(16rem, 1fr)';\n }\n if (column.align === 'right' || column.align === 'center') {\n return 'minmax(5.5rem, 7rem)';\n }\n return 'minmax(10rem, 0.75fr)';\n};\n\nconst buildGridTemplateColumns = <Row,>(\n columns: readonly DataTableColumn<Row>[],\n hasSelection: boolean,\n): string | undefined => {\n if (columns.length === 0) {\n return undefined;\n }\n const template = columns\n .map((column, index) => {\n return resolveColumnTemplate(column, index);\n })\n .join(' ');\n if (!hasSelection) {\n return template;\n }\n return `2.75rem ${template}`;\n};\n\nconst buildSelectionColumn = <Row,>(options: {\n rows: readonly WrappedRow<Row>[];\n selection: BackofficeDataTableSelection<Row>;\n selectAllLabel: string;\n selectRowLabel: (row: Row, index: number) => string;\n}): DataTableColumn<WrappedRow<Row>> => {\n const { rows, selection, selectAllLabel, selectRowLabel } = options;\n\n const selectableRowIds: string[] = [];\n for (const wrapped of rows) {\n if (wrapped.selectable) {\n selectableRowIds.push(wrapped.id);\n }\n }\n\n const selectedCount = selectableRowIds.filter((id) => {\n return selection.selectedRowIds.has(id);\n }).length;\n\n const isAllSelected =\n selectableRowIds.length > 0 && selectedCount === selectableRowIds.length;\n const isPartiallySelected = selectedCount > 0 && !isAllSelected;\n let selectAllAriaChecked: boolean | 'mixed' = isAllSelected;\n if (isPartiallySelected) {\n selectAllAriaChecked = 'mixed';\n }\n\n const toggleAll = (): void => {\n if (selectableRowIds.length === 0) {\n return;\n }\n if (isAllSelected) {\n selection.onSelectionChange(new Set());\n return;\n }\n selection.onSelectionChange(new Set(selectableRowIds));\n };\n\n return {\n id: '__select',\n header: (\n <div className={styles.selectionCell}>\n <Checkbox\n checked={isAllSelected}\n disabled={selectableRowIds.length === 0}\n indeterminate={isPartiallySelected}\n onChange={() => {\n toggleAll();\n }}\n aria-checked={selectAllAriaChecked}\n aria-label={selectAllLabel}\n />\n </div>\n ),\n cell: (wrapped) => {\n const { id: rowId, selectable } = wrapped;\n const checked = selection.selectedRowIds.has(rowId);\n const rowLabel = selectRowLabel(wrapped.row, wrapped.index);\n\n return (\n <div className={styles.selectionCell}>\n <Checkbox\n checked={checked}\n disabled={!selectable}\n onChange={() => {\n const next = new Set(selection.selectedRowIds);\n if (next.has(rowId)) {\n next.delete(rowId);\n } else if (selectable) {\n next.add(rowId);\n }\n selection.onSelectionChange(next);\n }}\n aria-label={rowLabel}\n />\n </div>\n );\n },\n className: styles.selectionCell,\n };\n};\n\nexport const BackofficeDataTable = <Row,>({\n columns,\n rows,\n getRowId,\n toolbar,\n selection,\n bulkActions,\n emptyState,\n className,\n selectAllLabel,\n selectRowLabel,\n ariaLabel,\n bodyScrollMode = 'page',\n}: BackofficeDataTableProps<Row>): JSX.Element => {\n const { t } = useTranslation('ui');\n const wrappedRows = useMemo<readonly WrappedRow<Row>[]>(() => {\n return rows.map((row, index) => {\n const id = getRowId(row, index);\n const selectable = selection?.isRowSelectable?.(row, index) ?? true;\n return { row, index, id, selectable };\n });\n }, [getRowId, rows, selection]);\n\n const selectionColumn = useMemo(() => {\n if (selection == null) {\n return null;\n }\n return buildSelectionColumn({\n rows: wrappedRows,\n selection,\n selectAllLabel: selectAllLabel ?? t('backoffice.dataTable.selectAll'),\n selectRowLabel:\n selectRowLabel ??\n ((_row, index) => {\n return t('backoffice.dataTable.selectRow', {\n index: index + 1,\n });\n }),\n });\n }, [selectAllLabel, selectRowLabel, selection, t, wrappedRows]);\n\n const resolvedColumns = useMemo(() => {\n const mapped = columns.map<DataTableColumn<WrappedRow<Row>>>((column) => {\n return {\n ...column,\n cell: (wrapped: WrappedRow<Row>) => {\n return column.cell(wrapped.row);\n },\n };\n });\n if (selectionColumn == null) {\n return mapped;\n }\n return [selectionColumn, ...mapped];\n }, [columns, selectionColumn]);\n\n const columnsWithPrimary = useMemo(() => {\n const hasPrimary = resolvedColumns.some((column) => {\n return column.isPrimary === true;\n });\n if (hasPrimary) {\n return resolvedColumns;\n }\n if (resolvedColumns.length === 0) {\n return resolvedColumns;\n }\n let primaryIndex = 0;\n if (selectionColumn != null && resolvedColumns.length > 1) {\n primaryIndex = 1;\n }\n return resolvedColumns.map((column, index) => {\n if (index === primaryIndex) {\n return { ...column, isPrimary: true };\n }\n return column;\n });\n }, [resolvedColumns, selectionColumn]);\n\n const gridTemplateColumns = useMemo(() => {\n return buildGridTemplateColumns(\n columnsWithPrimary,\n selectionColumn != null,\n );\n }, [columnsWithPrimary, selectionColumn]);\n\n let selectedCount = 0;\n if (selection != null) {\n selectedCount = selection.selectedRowIds.size;\n }\n\n const handleClearSelection = useCallback(() => {\n if (selection != null) {\n selection.onSelectionChange(new Set());\n }\n }, [selection]);\n\n let toolbarNode: JSX.Element | null = null;\n if (toolbar != null) {\n toolbarNode = <BackofficeToolbar {...toolbar} />;\n }\n\n let bulkActionsNode: JSX.Element | null = null;\n if (selection != null) {\n bulkActionsNode = (\n <BulkActionsBar\n selectedCount={selectedCount}\n actions={bulkActions}\n onClearSelection={handleClearSelection}\n />\n );\n }\n\n let containedWrapperClassName: string | null = null;\n if (bodyScrollMode === 'contained') {\n containedWrapperClassName = styles.wrapperContained;\n }\n\n return (\n <div className={cx(styles.wrapper, containedWrapperClassName, className)}>\n {toolbarNode}\n {bulkActionsNode}\n\n <DataTable\n ariaLabel={ariaLabel ?? t('backoffice.dataTable.label')}\n columns={columnsWithPrimary}\n rows={wrappedRows}\n getRowId={(wrapped: WrappedRow<Row>) => {\n return wrapped.id;\n }}\n emptyState={emptyState}\n className={undefined}\n headerClassName={undefined}\n bodyClassName={undefined}\n rowClassName={undefined}\n gridTemplateClassName={undefined}\n gridTemplateColumns={gridTemplateColumns}\n bodyScrollMode={bodyScrollMode}\n />\n </div>\n );\n};\n\nexport default BackofficeDataTable;\n"],"mappings":"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"}
|
|
@@ -1,57 +1,87 @@
|
|
|
1
1
|
import { cx as e } from "../../../theme/tools.js";
|
|
2
2
|
import { EntityHeader as t } from "../../organisms/entity_header/EntityHeader.js";
|
|
3
|
-
import { body as n, bodyRow as r,
|
|
4
|
-
import { jsx as
|
|
3
|
+
import { body as n, bodyRow as r, bodyViewportBase as i, bodyViewportContained as a, bodyViewportPage as o, container as s, containerContained as c, containerRows as l, contentSection as u, headerCard as d, headerCardFlatDensity as f, headerCardFramedDensity as p, rowSingle as m, rowSplit as h, rowSplitBase as g, sidePanelBase as _, sidePanelCard as v, sidePanelPlain as y, sidePanelTopVar as b, staticRow as x } from "./detailPageTemplate.css.js";
|
|
4
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
5
5
|
//#region src/backoffice/templates/detail_page_template/DetailPageTemplate.tsx
|
|
6
|
-
var
|
|
7
|
-
let { children:
|
|
8
|
-
|
|
9
|
-
let
|
|
10
|
-
|
|
11
|
-
let
|
|
12
|
-
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
let
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
var w = (u) => {
|
|
7
|
+
let { children: w, aboveContent: T, className: E, tabsNode: D, sidePanel: O, sidePanelVariant: k = "card", sidePanelStickyTop: A, layoutVariant: j, headerDensity: M = "default", presentation: N = "framed", bodyScrollMode: P = "contained", contentClassName: F, headerSupplementNode: I } = u, L = P === "contained", R = O != null, z = "single";
|
|
8
|
+
R && (z = "split");
|
|
9
|
+
let B = j ?? z;
|
|
10
|
+
R || (B = "single");
|
|
11
|
+
let V = B === "split", H = m;
|
|
12
|
+
V && (H = e(h, g));
|
|
13
|
+
let U;
|
|
14
|
+
U = "headerNode" in u ? u.headerNode : /* @__PURE__ */ S(t, { ...u.header });
|
|
15
|
+
let W = A?.trim(), G;
|
|
16
|
+
W != null && W !== "" && (G = { [b]: W });
|
|
17
|
+
let K = v;
|
|
18
|
+
k === "plain" && (K = y);
|
|
19
|
+
let q = e(_, K), J = D != null, Y = I != null, X = l({
|
|
20
|
+
scrollMode: P,
|
|
21
|
+
tabs: J,
|
|
22
|
+
supplement: Y
|
|
23
|
+
}), Z = null, Q = o;
|
|
24
|
+
L && (Z = c, Q = a);
|
|
25
|
+
let $ = f[M];
|
|
26
|
+
return N === "framed" && ($ = p[M]), /* @__PURE__ */ C("div", {
|
|
27
|
+
className: e(s, X, Z, E),
|
|
28
|
+
"data-scroll-mode": P,
|
|
29
|
+
"data-presentation": N,
|
|
30
|
+
"data-layout-variant": B,
|
|
31
|
+
style: G,
|
|
23
32
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
className: e(
|
|
26
|
-
children: /* @__PURE__ */
|
|
27
|
-
className: e(
|
|
28
|
-
|
|
33
|
+
/* @__PURE__ */ S("div", {
|
|
34
|
+
className: e(H, x),
|
|
35
|
+
children: /* @__PURE__ */ S("div", {
|
|
36
|
+
className: e(d, $),
|
|
37
|
+
"data-detail-template-slot": "header",
|
|
38
|
+
children: U
|
|
29
39
|
})
|
|
30
40
|
}),
|
|
31
|
-
|
|
32
|
-
className: e(
|
|
33
|
-
children: /* @__PURE__ */
|
|
34
|
-
className: "
|
|
35
|
-
|
|
41
|
+
Y && /* @__PURE__ */ S("div", {
|
|
42
|
+
className: e(H, "eno74pj txvbqbs9r"),
|
|
43
|
+
children: /* @__PURE__ */ S("div", {
|
|
44
|
+
className: "eno74pr txvbqbdr8 txvbqbf6i txvbqbffw txvbqbt9i",
|
|
45
|
+
"data-detail-template-slot": "header-supplement",
|
|
46
|
+
children: I
|
|
36
47
|
})
|
|
37
48
|
}),
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
className:
|
|
40
|
-
children: /* @__PURE__ */
|
|
41
|
-
className:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
J && /* @__PURE__ */ S("div", {
|
|
50
|
+
className: e(H, "eno74pj txvbqbs9r"),
|
|
51
|
+
children: /* @__PURE__ */ S("div", {
|
|
52
|
+
className: "eno74p12 eno74p11 txvbqb11ki txvbqb196j txvbqbvve txvbqb18ub",
|
|
53
|
+
"data-detail-template-slot": "tabs",
|
|
54
|
+
children: D
|
|
55
|
+
})
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ S("div", {
|
|
58
|
+
className: e(i, Q),
|
|
59
|
+
"data-detail-template-slot": "body-viewport",
|
|
60
|
+
children: /* @__PURE__ */ C("div", {
|
|
61
|
+
className: e(H, r),
|
|
62
|
+
children: [/* @__PURE__ */ C("div", {
|
|
63
|
+
className: e(n, F),
|
|
64
|
+
"data-detail-template-slot": "content",
|
|
65
|
+
children: [T, w]
|
|
66
|
+
}), R && /* @__PURE__ */ S("aside", {
|
|
67
|
+
className: q,
|
|
68
|
+
"data-detail-template-slot": "side-panel",
|
|
69
|
+
"data-side-panel-variant": k,
|
|
70
|
+
children: O
|
|
48
71
|
})]
|
|
49
72
|
})
|
|
50
73
|
})
|
|
51
74
|
]
|
|
52
75
|
});
|
|
76
|
+
}, T = ({ children: t, className: n, withBaseStyles: r = !0, ...i }) => {
|
|
77
|
+
let a;
|
|
78
|
+
return r ? a = e(u, n) : n != null && (a = n), /* @__PURE__ */ S("div", {
|
|
79
|
+
...i,
|
|
80
|
+
className: a,
|
|
81
|
+
children: t
|
|
82
|
+
});
|
|
53
83
|
};
|
|
54
84
|
//#endregion
|
|
55
|
-
export {
|
|
85
|
+
export { w as DetailPageTemplate, w as default, T as DetailPageTemplateContent };
|
|
56
86
|
|
|
57
87
|
//# sourceMappingURL=DetailPageTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailPageTemplate.js","names":[],"sources":["../../../../../src/backoffice/templates/detail_page_template/DetailPageTemplate.tsx"],"sourcesContent":["import { type CSSProperties
|
|
1
|
+
{"version":3,"file":"DetailPageTemplate.js","names":[],"sources":["../../../../../src/backoffice/templates/detail_page_template/DetailPageTemplate.tsx"],"sourcesContent":["import {\n type ComponentPropsWithoutRef,\n type CSSProperties,\n type JSX,\n type ReactNode,\n} from 'react';\n\nimport {\n EntityHeader,\n type EntityHeaderProps,\n} from '../../organisms/entity_header/EntityHeader.js';\nimport * as styles from './detailPageTemplate.css.js';\nimport { cx } from '../../../theme/tools.js';\n\ntype WithHeaderProps = {\n header: EntityHeaderProps;\n headerNode?: never;\n};\n\ntype WithHeaderNode = {\n header?: never;\n headerNode: ReactNode;\n};\n\nexport type DetailSidePanelVariant = 'card' | 'plain';\nexport type DetailLayoutVariant = 'single' | 'split';\nexport type DetailHeaderDensity = 'default' | 'compact';\nexport type DetailPresentation = 'framed' | 'flat';\nexport type DetailBodyScrollMode = 'contained' | 'page';\n\nexport type DetailPageTemplateProps = (WithHeaderProps | WithHeaderNode) & {\n children: ReactNode;\n aboveContent?: ReactNode;\n headerSupplementNode?: ReactNode;\n tabsNode?: ReactNode;\n sidePanel?: ReactNode;\n sidePanelVariant?: DetailSidePanelVariant;\n sidePanelStickyTop?: string;\n layoutVariant?: DetailLayoutVariant;\n headerDensity?: DetailHeaderDensity;\n presentation?: DetailPresentation;\n bodyScrollMode?: DetailBodyScrollMode;\n className?: string;\n contentClassName?: string;\n};\n\nexport const DetailPageTemplate = (\n props: DetailPageTemplateProps,\n): JSX.Element => {\n const {\n children,\n aboveContent,\n className,\n tabsNode,\n sidePanel,\n sidePanelVariant = 'card',\n sidePanelStickyTop,\n layoutVariant,\n headerDensity = 'default',\n presentation = 'framed',\n bodyScrollMode = 'contained',\n contentClassName,\n headerSupplementNode,\n } = props;\n\n const hasContainedBodyScroll = bodyScrollMode === 'contained';\n const hasSidePanel = sidePanel != null;\n let autoLayoutVariant: DetailLayoutVariant = 'single';\n if (hasSidePanel) {\n autoLayoutVariant = 'split';\n }\n let resolvedLayoutVariant = layoutVariant ?? autoLayoutVariant;\n if (!hasSidePanel) {\n resolvedLayoutVariant = 'single';\n }\n const isSplitLayout = resolvedLayoutVariant === 'split';\n let rowClassName = styles.rowSingle;\n if (isSplitLayout) {\n rowClassName = cx(styles.rowSplit, styles.rowSplitBase);\n }\n\n let resolvedHeader: ReactNode;\n if ('headerNode' in props) {\n resolvedHeader = props.headerNode;\n } else {\n resolvedHeader = <EntityHeader {...props.header} />;\n }\n\n const resolvedStickyTop = sidePanelStickyTop?.trim();\n let containerStyle: CSSProperties | undefined;\n if (resolvedStickyTop != null && resolvedStickyTop !== '') {\n containerStyle = {\n [styles.sidePanelTopVar]: resolvedStickyTop,\n };\n }\n\n let sidePanelClassName = styles.sidePanelCard;\n if (sidePanelVariant === 'plain') {\n sidePanelClassName = styles.sidePanelPlain;\n }\n const resolvedSidePanelClassName = cx(\n styles.sidePanelBase,\n sidePanelClassName,\n );\n\n const hasTabs = tabsNode != null;\n const hasHeaderSupplement = headerSupplementNode != null;\n const containerVariant = styles.containerRows({\n scrollMode: bodyScrollMode,\n tabs: hasTabs,\n supplement: hasHeaderSupplement,\n });\n let containedContainerClassName: string | null = null;\n let bodyViewportClassName = styles.bodyViewportPage;\n if (hasContainedBodyScroll) {\n containedContainerClassName = styles.containerContained;\n bodyViewportClassName = styles.bodyViewportContained;\n }\n\n let headerPresentationClassName = styles.headerCardFlatDensity[headerDensity];\n if (presentation === 'framed') {\n headerPresentationClassName = styles.headerCardFramedDensity[headerDensity];\n }\n\n return (\n <div\n className={cx(\n styles.container,\n containerVariant,\n containedContainerClassName,\n className,\n )}\n data-scroll-mode={bodyScrollMode}\n data-presentation={presentation}\n data-layout-variant={resolvedLayoutVariant}\n style={containerStyle}\n >\n <div className={cx(rowClassName, styles.staticRow)}>\n <div\n className={cx(styles.headerCard, headerPresentationClassName)}\n data-detail-template-slot=\"header\"\n >\n {resolvedHeader}\n </div>\n </div>\n {hasHeaderSupplement && (\n <div className={cx(rowClassName, styles.staticRow)}>\n <div\n className={styles.headerSupplement}\n data-detail-template-slot=\"header-supplement\"\n >\n {headerSupplementNode}\n </div>\n </div>\n )}\n {hasTabs && (\n <div className={cx(rowClassName, styles.staticRow)}>\n <div className={styles.tabsRow} data-detail-template-slot=\"tabs\">\n {tabsNode}\n </div>\n </div>\n )}\n <div\n className={cx(styles.bodyViewportBase, bodyViewportClassName)}\n data-detail-template-slot=\"body-viewport\"\n >\n <div className={cx(rowClassName, styles.bodyRow)}>\n <div\n className={cx(styles.body, contentClassName)}\n data-detail-template-slot=\"content\"\n >\n {aboveContent}\n {children}\n </div>\n {hasSidePanel && (\n <aside\n className={resolvedSidePanelClassName}\n data-detail-template-slot=\"side-panel\"\n data-side-panel-variant={sidePanelVariant}\n >\n {sidePanel}\n </aside>\n )}\n </div>\n </div>\n </div>\n );\n};\n\nexport type DetailPageTemplateContentProps = ComponentPropsWithoutRef<'div'> & {\n children: ReactNode;\n withBaseStyles?: boolean;\n};\n\nexport const DetailPageTemplateContent = ({\n children,\n className,\n withBaseStyles = true,\n ...rest\n}: DetailPageTemplateContentProps): JSX.Element => {\n let contentClassName: string | undefined;\n if (withBaseStyles) {\n contentClassName = cx(styles.contentSection, className);\n } else if (className != null) {\n contentClassName = className;\n }\n\n return (\n <div {...rest} className={contentClassName}>\n {children}\n </div>\n );\n};\n\nexport default DetailPageTemplate;\n"],"mappings":";;;;;AA8CA,IAAa,KACX,MACgB;CAChB,IAAM,EACJ,aACA,iBACA,cACA,aACA,cACA,sBAAmB,QACnB,uBACA,kBACA,mBAAgB,WAChB,kBAAe,UACf,oBAAiB,aACjB,qBACA,4BACE,GAEE,IAAyB,MAAmB,aAC5C,IAAe,KAAa,MAC9B,IAAyC;CAC7C,AAAI,MACF,IAAoB;CAEtB,IAAI,IAAwB,KAAiB;CAC7C,AAAK,MACH,IAAwB;CAE1B,IAAM,IAAgB,MAA0B,SAC5C,IAAe;CACnB,AAAI,MACF,IAAe,EAAG,GAAiB,EAAoB;CAGzD,IAAI;CACJ,AAGE,IAHE,gBAAgB,IACD,EAAM,aAEN,kBAAC,GAAD,EAAc,GAAI,EAAM,QAAU,CAAA;CAGrD,IAAM,IAAoB,GAAoB,MAAM,EAChD;CACJ,AAAI,KAAqB,QAAQ,MAAsB,OACrD,IAAiB,GACd,IAAyB,GAC3B;CAGH,IAAI,IAAqB;CACzB,AAAI,MAAqB,YACvB,IAAqB;CAEvB,IAAM,IAA6B,EACjC,GACA,EACD,EAEK,IAAU,KAAY,MACtB,IAAsB,KAAwB,MAC9C,IAAmB,EAAqB;EAC5C,YAAY;EACZ,MAAM;EACN,YAAY;EACb,CAAC,EACE,IAA6C,MAC7C,IAAwB;CAC5B,AAAI,MACF,IAA8B,GAC9B,IAAwB;CAG1B,IAAI,IAA8B,EAA6B;CAK/D,OAJI,MAAiB,aACnB,IAA8B,EAA+B,KAI7D,kBAAC,OAAD;EACE,WAAW,EACT,GACA,GACA,GACA,EACD;EACD,oBAAkB;EAClB,qBAAmB;EACnB,uBAAqB;EACrB,OAAO;YAVT;GAYE,kBAAC,OAAD;IAAK,WAAW,EAAG,GAAc,EAAiB;cAChD,kBAAC,OAAD;KACE,WAAW,EAAG,GAAmB,EAA4B;KAC7D,6BAA0B;eAEzB;KACG,CAAA;IACF,CAAA;GACL,KACC,kBAAC,OAAD;IAAK,WAAW,EAAG,GAAc,oBAAiB;cAChD,kBAAC,OAAD;KACE,WAAW;KACX,6BAA0B;eAEzB;KACG,CAAA;IACF,CAAA;GAEP,KACC,kBAAC,OAAD;IAAK,WAAW,EAAG,GAAc,oBAAiB;cAChD,kBAAC,OAAD;KAAK,WAAW;KAAgB,6BAA0B;eACvD;KACG,CAAA;IACF,CAAA;GAER,kBAAC,OAAD;IACE,WAAW,EAAG,GAAyB,EAAsB;IAC7D,6BAA0B;cAE1B,kBAAC,OAAD;KAAK,WAAW,EAAG,GAAc,EAAe;eAAhD,CACE,kBAAC,OAAD;MACE,WAAW,EAAG,GAAa,EAAiB;MAC5C,6BAA0B;gBAF5B,CAIG,GACA,EACG;SACL,KACC,kBAAC,SAAD;MACE,WAAW;MACX,6BAA0B;MAC1B,2BAAyB;gBAExB;MACK,CAAA,CAEN;;IACF,CAAA;GACF;;GASG,KAA6B,EACxC,aACA,cACA,oBAAiB,IACjB,GAAG,QAC8C;CACjD,IAAI;CAOJ,OANI,IACF,IAAmB,EAAG,GAAuB,EAAU,GAC9C,KAAa,SACtB,IAAmB,IAInB,kBAAC,OAAD;EAAK,GAAI;EAAM,WAAW;EACvB;EACG,CAAA"}
|
|
@@ -7,12 +7,75 @@
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
+
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
10
11
|
//#region src/backoffice/templates/detail_page_template/detailPageTemplate.css.ts
|
|
11
|
-
var
|
|
12
|
+
var t = "var(--eno74p0)", n = "eno74p2 eno74p1 txvbqbdrl txvbqbffw", r = "eno74p3 txvbqbi1f txvbqbs9r", i = e({
|
|
13
|
+
defaultClassName: "eno74p4",
|
|
14
|
+
variantClassNames: {
|
|
15
|
+
scrollMode: {
|
|
16
|
+
page: "eno74p5",
|
|
17
|
+
contained: "eno74p6"
|
|
18
|
+
},
|
|
19
|
+
tabs: {
|
|
20
|
+
true: "eno74p7",
|
|
21
|
+
false: "eno74p8"
|
|
22
|
+
},
|
|
23
|
+
supplement: {
|
|
24
|
+
true: "eno74p9",
|
|
25
|
+
false: "eno74pa"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
defaultVariants: {},
|
|
29
|
+
compoundVariants: [
|
|
30
|
+
[{
|
|
31
|
+
scrollMode: "page",
|
|
32
|
+
tabs: !0,
|
|
33
|
+
supplement: !0
|
|
34
|
+
}, "eno74pb"],
|
|
35
|
+
[{
|
|
36
|
+
scrollMode: "page",
|
|
37
|
+
tabs: !0,
|
|
38
|
+
supplement: !1
|
|
39
|
+
}, "eno74pc"],
|
|
40
|
+
[{
|
|
41
|
+
scrollMode: "page",
|
|
42
|
+
tabs: !1,
|
|
43
|
+
supplement: !0
|
|
44
|
+
}, "eno74pd"],
|
|
45
|
+
[{
|
|
46
|
+
scrollMode: "page",
|
|
47
|
+
tabs: !1,
|
|
48
|
+
supplement: !1
|
|
49
|
+
}, "eno74pe"],
|
|
50
|
+
[{
|
|
51
|
+
scrollMode: "contained",
|
|
52
|
+
tabs: !0,
|
|
53
|
+
supplement: !0
|
|
54
|
+
}, "eno74pf"],
|
|
55
|
+
[{
|
|
56
|
+
scrollMode: "contained",
|
|
57
|
+
tabs: !0,
|
|
58
|
+
supplement: !1
|
|
59
|
+
}, "eno74pg"],
|
|
60
|
+
[{
|
|
61
|
+
scrollMode: "contained",
|
|
62
|
+
tabs: !1,
|
|
63
|
+
supplement: !0
|
|
64
|
+
}, "eno74ph"],
|
|
65
|
+
[{
|
|
66
|
+
scrollMode: "contained",
|
|
67
|
+
tabs: !1,
|
|
68
|
+
supplement: !1
|
|
69
|
+
}, "eno74pi"]
|
|
70
|
+
]
|
|
71
|
+
}), a = "eno74pj txvbqbs9r", o = "eno74pk txvbqb17w0 txvbqbt9i txvbqbdr8 txvbqbf6i txvbqbffw", s = "eno74pl txvbqbdrl txvbqbh7g txvbqbh8i txvbqbe8 txvbqbex", c = "eno74pm txvbqbs9r", l = "eno74pn txvbqb17w0 txvbqbt9i txvbqbffw", u = "eno74po txvbqbt9i", d = {
|
|
12
72
|
default: "_1995g4r1 _1995g4r0 _1995g4r2 _1995g4rb _1995g4rd _1995g4rg _1995g4rm",
|
|
13
73
|
compact: "_1995g4r1 _1995g4r0 _1995g4r2 _1995g4ra _1995g4rd _1995g4rg _1995g4rl"
|
|
14
|
-
},
|
|
74
|
+
}, f = {
|
|
75
|
+
default: "eno74pp txvbqbyns txvbqbzld txvbqb10iy txvbqbvv1",
|
|
76
|
+
compact: "eno74pq txvbqbyns txvbqbzld txvbqb10iy txvbqbvv1"
|
|
77
|
+
}, p = "eno74pr txvbqbdr8 txvbqbf6i txvbqbffw txvbqbt9i", m = "eno74ps txvbqbdr8 txvbqbf6i txvbqbffw txvbqbt9i txvbqbs9r", h = "eno74pt txvbqbdr8 txvbqbf6i txvbqbffw", g = "eno74pu txvbqbs9r", _ = "eno74pw eno74pv txvbqbs9r", v = "eno74px", y = "eno74pz eno74py txvbqb11kv txvbqb11ku txvbqbdr8 txvbqbf6i txvbqbffj txvbqbt9i txvbqbs9r txvbqbge", b = "_1995g4r1 _1995g4r0 _1995g4r3 _1995g4ra _1995g4rd _1995g4rg _1995g4rl", x = "eno74p10 txvbqb1g5 txvbqb2e3 txvbqb1933 txvbqbux3 txvbqbcs7", S = "eno74p12 eno74p11 txvbqb11ki txvbqb196j txvbqbvve txvbqb18ub";
|
|
15
78
|
//#endregion
|
|
16
|
-
export {
|
|
79
|
+
export { m as body, c as bodyRow, g as bodyViewportBase, _ as bodyViewportContained, v as bodyViewportPage, n as container, r as containerContained, i as containerRows, h as contentSection, u as headerCard, f as headerCardFlatDensity, d as headerCardFramedDensity, p as headerSupplement, o as rowSingle, s as rowSplit, l as rowSplitBase, y as sidePanelBase, b as sidePanelCard, x as sidePanelPlain, t as sidePanelTopVar, a as staticRow, S as tabsRow };
|
|
17
80
|
|
|
18
81
|
//# sourceMappingURL=detailPageTemplate.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detailPageTemplate.css.js","names":[],"sources":["../../../../../src/backoffice/templates/detail_page_template/detailPageTemplate.css.ts"],"sourcesContent":["import { style, createVar } from '@vanilla-extract/css';\nimport { adminSurfaceRecipe } from '../../../admin/theme/adminSurface.css.js';\nimport { sprinkles } from '../../../theme/sprinkles.css.js';\n\nimport { backofficeLayoutTokens } from '../../layout/backofficeLayoutTokens.js';\n\nconst detailTokens = backofficeLayoutTokens.detail;\n\nexport const sidePanelTopVar = createVar();\n\nexport const container = style([\n sprinkles({\n display: 'grid',\n gap: 4,\n height: 'full',\n
|
|
1
|
+
{"version":3,"file":"detailPageTemplate.css.js","names":[],"sources":["../../../../../src/backoffice/templates/detail_page_template/detailPageTemplate.css.ts"],"sourcesContent":["import { style, createVar } from '@vanilla-extract/css';\nimport { recipe } from '@vanilla-extract/recipes';\nimport { adminSurfaceRecipe } from '../../../admin/theme/adminSurface.css.js';\nimport { sprinkles } from '../../../theme/sprinkles.css.js';\n\nimport { backofficeLayoutTokens } from '../../layout/backofficeLayoutTokens.js';\n\nconst detailTokens = backofficeLayoutTokens.detail;\n\nexport const sidePanelTopVar = createVar();\n\nexport const container = style([\n sprinkles({\n display: 'grid',\n gap: 4,\n }),\n {\n vars: {\n [sidePanelTopVar]: detailTokens.stickyTop,\n },\n },\n]);\n\nexport const containerContained = sprinkles({\n height: 'full',\n minHeight: 0,\n});\n\nexport const containerRows = recipe({\n variants: {\n scrollMode: {\n page: {},\n contained: {},\n },\n tabs: {\n true: {},\n false: {},\n },\n supplement: {\n true: {},\n false: {},\n },\n },\n compoundVariants: [\n {\n variants: { scrollMode: 'page', tabs: true, supplement: true },\n style: { gridTemplateRows: 'auto auto auto minmax(0, auto)' },\n },\n {\n variants: { scrollMode: 'page', tabs: true, supplement: false },\n style: { gridTemplateRows: 'auto auto minmax(0, auto)' },\n },\n {\n variants: { scrollMode: 'page', tabs: false, supplement: true },\n style: { gridTemplateRows: 'auto auto minmax(0, auto)' },\n },\n {\n variants: { scrollMode: 'page', tabs: false, supplement: false },\n style: { gridTemplateRows: 'auto minmax(0, auto)' },\n },\n {\n variants: { scrollMode: 'contained', tabs: true, supplement: true },\n style: { gridTemplateRows: 'auto auto auto minmax(0, 1fr)' },\n },\n {\n variants: { scrollMode: 'contained', tabs: true, supplement: false },\n style: { gridTemplateRows: 'auto auto minmax(0, 1fr)' },\n },\n {\n variants: { scrollMode: 'contained', tabs: false, supplement: true },\n style: { gridTemplateRows: 'auto auto minmax(0, 1fr)' },\n },\n {\n variants: { scrollMode: 'contained', tabs: false, supplement: false },\n style: { gridTemplateRows: 'auto minmax(0, 1fr)' },\n },\n ],\n});\n\nexport const staticRow = sprinkles({\n minHeight: 0,\n});\n\nexport const rowSingle = sprinkles({\n width: 'full',\n minWidth: 0,\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n});\n\nexport const rowSplit = sprinkles({\n display: 'grid',\n gridTemplateColumns: {\n base: 'detailSingle',\n min1200: 'detailAside320',\n },\n alignItems: {\n base: 'stretch',\n min1200: 'flex-start',\n },\n});\n\nexport const bodyRow = sprinkles({\n minHeight: 0,\n});\n\nexport const rowSplitBase = sprinkles({\n width: 'full',\n minWidth: 0,\n gap: 4,\n});\n\nexport const headerCard = sprinkles({\n minWidth: 0,\n});\n\nexport const headerCardFramedDensity = {\n default: adminSurfaceRecipe({\n level: 'panel',\n radius: 'lg',\n border: 'subtle',\n elevation: 'none',\n padding: 'lg',\n }),\n compact: adminSurfaceRecipe({\n level: 'panel',\n radius: 'md',\n border: 'subtle',\n elevation: 'none',\n padding: 'md',\n }),\n};\n\nexport const headerCardFlatDensity = {\n default: sprinkles({\n paddingX: 1,\n paddingY: 1,\n }),\n compact: sprinkles({\n paddingX: 1,\n paddingY: 1,\n }),\n};\n\nexport const headerSupplement = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n minWidth: 0,\n});\n\nexport const body = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n minWidth: 0,\n minHeight: 0,\n});\n\nexport const contentSection = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n});\n\nexport const bodyViewportBase = sprinkles({\n minHeight: 0,\n});\n\nexport const bodyViewportContained = style([\n sprinkles({\n minHeight: 0,\n }),\n {\n overflowY: 'auto',\n scrollbarWidth: 'thin',\n },\n]);\n\nexport const bodyViewportPage = style({\n overflowY: 'visible',\n});\n\nexport const sidePanelBase = style([\n sprinkles({\n position: {\n base: 'static',\n min1200: 'sticky',\n },\n display: 'flex',\n flexDirection: 'column',\n gap: 3,\n minWidth: 0,\n minHeight: 0,\n alignSelf: 'flex-start',\n }),\n {\n top: sidePanelTopVar,\n },\n]);\n\nexport const sidePanelCard = adminSurfaceRecipe({\n level: 'panelMuted',\n radius: 'md',\n border: 'subtle',\n elevation: 'none',\n padding: 'md',\n});\n\nexport const sidePanelPlain = sprinkles({\n borderWidth: 0,\n borderStyle: 'none',\n backgroundColor: 'transparent',\n padding: 0,\n boxShadow: 'none',\n});\n\nexport const tabsRow = style([\n sprinkles({\n position: 'sticky',\n backgroundColor: 'background',\n paddingBottom: 2,\n zIndex: 2,\n }),\n {\n top: sidePanelTopVar,\n },\n]);\n"],"mappings":""}
|