@plumile/ui 0.1.61 → 0.1.63
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/lib/esm/atomic/molecules/markdown/components/MarkdownEmphasis.css.js +0 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnoteReference.css.js +1 -0
- package/lib/esm/atomic/organisms/sidebar/Sidebar.js +2 -0
- package/lib/esm/atomic/organisms/sidebar/SidebarContainer.js +29 -0
- package/lib/esm/atomic/organisms/sidebar/SidebarContainer.js.map +1 -0
- package/lib/esm/atomic/organisms/sidebar/icons.js +67 -0
- package/lib/esm/atomic/organisms/sidebar/icons.js.map +1 -0
- package/lib/esm/atomic/organisms/sidebar/sidebar.css.js +17 -0
- package/lib/esm/atomic/organisms/sidebar/sidebar.css.js.map +1 -0
- package/lib/esm/atomic/organisms/sidebar/useSidebarShell.js +0 -0
- package/lib/esm/backoffice/atoms/backoffice_id_badge/BackofficeIdBadge.js +18 -0
- package/lib/esm/backoffice/atoms/backoffice_id_badge/BackofficeIdBadge.js.map +1 -0
- package/lib/esm/backoffice/atoms/backoffice_id_badge/backofficeIdBadge.css.js +8 -0
- package/lib/esm/backoffice/atoms/backoffice_id_badge/backofficeIdBadge.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/copyable_text/CopyableText.js +71 -0
- package/lib/esm/backoffice/atoms/copyable_text/CopyableText.js.map +1 -0
- package/lib/esm/backoffice/atoms/copyable_text/copyableText.css.js +8 -0
- package/lib/esm/backoffice/atoms/copyable_text/copyableText.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/environment_badge/EnvironmentBadge.js +28 -0
- package/lib/esm/backoffice/atoms/environment_badge/EnvironmentBadge.js.map +1 -0
- package/lib/esm/backoffice/atoms/environment_badge/environmentBadge.css.js +8 -0
- package/lib/esm/backoffice/atoms/environment_badge/environmentBadge.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/shortcut_hint/ShortcutHint.js +20 -0
- package/lib/esm/backoffice/atoms/shortcut_hint/ShortcutHint.js.map +1 -0
- package/lib/esm/backoffice/atoms/shortcut_hint/shortcutHint.css.js +8 -0
- package/lib/esm/backoffice/atoms/shortcut_hint/shortcutHint.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/skeleton/Skeleton.js +39 -0
- package/lib/esm/backoffice/atoms/skeleton/Skeleton.js.map +1 -0
- package/lib/esm/backoffice/atoms/skeleton/skeleton.css.js +12 -0
- package/lib/esm/backoffice/atoms/skeleton/skeleton.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/spinner/Spinner.js +20 -0
- package/lib/esm/backoffice/atoms/spinner/Spinner.js.map +1 -0
- package/lib/esm/backoffice/atoms/spinner/spinner.css.js +8 -0
- package/lib/esm/backoffice/atoms/spinner/spinner.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/status_badge/StatusBadge.js +31 -0
- package/lib/esm/backoffice/atoms/status_badge/StatusBadge.js.map +1 -0
- package/lib/esm/backoffice/atoms/status_badge/statusBadge.css.js +8 -0
- package/lib/esm/backoffice/atoms/status_badge/statusBadge.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/tag/Tag.js +32 -0
- package/lib/esm/backoffice/atoms/tag/Tag.js.map +1 -0
- package/lib/esm/backoffice/atoms/tag/tag.css.js +20 -0
- package/lib/esm/backoffice/atoms/tag/tag.css.js.map +1 -0
- package/lib/esm/backoffice/layout/backofficeLayoutTokens.js +15 -0
- package/lib/esm/backoffice/layout/backofficeLayoutTokens.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js +34 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js +37 -0
- package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js +116 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_field/BackofficeFilterField.js +28 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_field/BackofficeFilterField.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js +37 -0
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js +25 -0
- package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.js +80 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +28 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js +22 -0
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js +27 -0
- package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js +31 -0
- package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js +68 -0
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.js +37 -0
- package/lib/esm/backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js +32 -0
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js +31 -0
- package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/bulk_actions_bar/BulkActionsBar.js +31 -0
- package/lib/esm/backoffice/molecules/bulk_actions_bar/BulkActionsBar.js.map +1 -0
- package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js +8 -0
- package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js +62 -0
- package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js.map +1 -0
- package/lib/esm/backoffice/molecules/confirm_dialog/confirmDialog.css.js +8 -0
- package/lib/esm/backoffice/molecules/confirm_dialog/confirmDialog.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/filter_chip_row/FilterChipRow.js +30 -0
- package/lib/esm/backoffice/molecules/filter_chip_row/FilterChipRow.js.map +1 -0
- package/lib/esm/backoffice/molecules/filter_chip_row/filterChipRow.css.js +8 -0
- package/lib/esm/backoffice/molecules/filter_chip_row/filterChipRow.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/global_search_input/GlobalSearchInput.js +55 -0
- package/lib/esm/backoffice/molecules/global_search_input/GlobalSearchInput.js.map +1 -0
- package/lib/esm/backoffice/molecules/global_search_input/globalSearchInput.css.js +8 -0
- package/lib/esm/backoffice/molecules/global_search_input/globalSearchInput.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js +44 -0
- package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js.map +1 -0
- package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js +19 -0
- package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js +38 -0
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js +8 -0
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js +123 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js +8 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +64 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js +8 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js +69 -0
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js +17 -0
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js +42 -0
- package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js.map +1 -0
- package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js +8 -0
- package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js +52 -0
- package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js.map +1 -0
- package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js +8 -0
- package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.js +14 -0
- package/lib/esm/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js +114 -0
- package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.js +8 -0
- package/lib/esm/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.js +62 -0
- package/lib/esm/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.js +17 -0
- package/lib/esm/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_topbar/BackofficeTopbar.js +22 -0
- package/lib/esm/backoffice/organisms/backoffice_topbar/BackofficeTopbar.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.js +8 -0
- package/lib/esm/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js +34 -0
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js +8 -0
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/entity_header/EntityHeader.js +59 -0
- package/lib/esm/backoffice/organisms/entity_header/EntityHeader.js.map +1 -0
- package/lib/esm/backoffice/organisms/entity_header/entityHeader.css.js +8 -0
- package/lib/esm/backoffice/organisms/entity_header/entityHeader.css.js.map +1 -0
- package/lib/esm/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.js +19 -0
- package/lib/esm/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.js.map +1 -0
- package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js +55 -0
- package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js.map +1 -0
- package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js +8 -0
- package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js.map +1 -0
- package/lib/esm/backoffice/templates/list_page_template/ListPageTemplate.js +43 -0
- package/lib/esm/backoffice/templates/list_page_template/ListPageTemplate.js.map +1 -0
- package/lib/esm/backoffice/templates/list_page_template/listPageTemplate.css.js +8 -0
- package/lib/esm/backoffice/templates/list_page_template/listPageTemplate.css.js.map +1 -0
- package/lib/esm/backoffice/templates/settings_template/SettingsTemplate.js +18 -0
- package/lib/esm/backoffice/templates/settings_template/SettingsTemplate.js.map +1 -0
- package/lib/esm/backoffice/templates/settings_template/settingsTemplate.css.js +8 -0
- package/lib/esm/backoffice/templates/settings_template/settingsTemplate.css.js.map +1 -0
- package/lib/esm/backoffice/templates/split_view_template/SplitViewTemplate.js +18 -0
- package/lib/esm/backoffice/templates/split_view_template/SplitViewTemplate.js.map +1 -0
- package/lib/esm/backoffice/templates/split_view_template/splitViewTemplate.css.js +8 -0
- package/lib/esm/backoffice/templates/split_view_template/splitViewTemplate.css.js.map +1 -0
- package/lib/esm/backoffice/theme/BackofficeThemeProvider.js +11 -0
- package/lib/esm/backoffice/theme/BackofficeThemeProvider.js.map +1 -0
- package/lib/esm/backoffice/theme/backofficeTheme.css.js +7 -0
- package/lib/esm/backoffice/theme/backofficeTheme.css.js.map +1 -0
- package/lib/esm/index.js +101 -49
- package/lib/esm/shared/agentJobRequestFormatting.js +31 -0
- package/lib/esm/shared/agentJobRequestFormatting.js.map +1 -0
- package/lib/esm/shared/agentText.js +13 -0
- package/lib/esm/shared/agentText.js.map +1 -0
- package/lib/esm/shared/backofficeTableDensity.css.js +9 -0
- package/lib/esm/shared/backofficeTableDensity.css.js.map +1 -0
- package/lib/esm/style.css +1 -1
- package/lib/types/atomic/organisms/sidebar/Sidebar.d.ts +3 -0
- package/lib/types/atomic/organisms/sidebar/Sidebar.d.ts.map +1 -0
- package/lib/types/atomic/organisms/sidebar/SidebarContainer.d.ts +11 -0
- package/lib/types/atomic/organisms/sidebar/SidebarContainer.d.ts.map +1 -0
- package/lib/types/atomic/organisms/sidebar/icons.d.ts +19 -0
- package/lib/types/atomic/organisms/sidebar/icons.d.ts.map +1 -0
- package/lib/types/atomic/organisms/sidebar/sidebar.css.d.ts +26 -0
- package/lib/types/atomic/organisms/sidebar/sidebar.css.d.ts.map +1 -0
- package/lib/types/atomic/organisms/sidebar/useSidebarShell.d.ts +2 -0
- package/lib/types/atomic/organisms/sidebar/useSidebarShell.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/backoffice_id_badge/BackofficeIdBadge.d.ts +11 -0
- package/lib/types/backoffice/atoms/backoffice_id_badge/BackofficeIdBadge.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/backoffice_id_badge/backofficeIdBadge.css.d.ts +2 -0
- package/lib/types/backoffice/atoms/backoffice_id_badge/backofficeIdBadge.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/copyable_text/CopyableText.d.ts +12 -0
- package/lib/types/backoffice/atoms/copyable_text/CopyableText.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/copyable_text/copyableText.css.d.ts +5 -0
- package/lib/types/backoffice/atoms/copyable_text/copyableText.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/environment_badge/EnvironmentBadge.d.ts +10 -0
- package/lib/types/backoffice/atoms/environment_badge/EnvironmentBadge.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/environment_badge/environmentBadge.css.d.ts +2 -0
- package/lib/types/backoffice/atoms/environment_badge/environmentBadge.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/shortcut_hint/ShortcutHint.d.ts +8 -0
- package/lib/types/backoffice/atoms/shortcut_hint/ShortcutHint.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/shortcut_hint/shortcutHint.css.d.ts +3 -0
- package/lib/types/backoffice/atoms/shortcut_hint/shortcutHint.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/skeleton/Skeleton.d.ts +13 -0
- package/lib/types/backoffice/atoms/skeleton/Skeleton.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/skeleton/skeleton.css.d.ts +8 -0
- package/lib/types/backoffice/atoms/skeleton/skeleton.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/spinner/Spinner.d.ts +9 -0
- package/lib/types/backoffice/atoms/spinner/Spinner.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/spinner/spinner.css.d.ts +3 -0
- package/lib/types/backoffice/atoms/spinner/spinner.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/status_badge/StatusBadge.d.ts +12 -0
- package/lib/types/backoffice/atoms/status_badge/StatusBadge.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/status_badge/statusBadge.css.d.ts +3 -0
- package/lib/types/backoffice/atoms/status_badge/statusBadge.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/tag/Tag.d.ts +14 -0
- package/lib/types/backoffice/atoms/tag/Tag.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/tag/tag.css.d.ts +13 -0
- package/lib/types/backoffice/atoms/tag/tag.css.d.ts.map +1 -0
- package/lib/types/backoffice/layout/backofficeLayoutTokens.d.ts +12 -0
- package/lib/types/backoffice/layout/backofficeLayoutTokens.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts +10 -0
- package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts +7 -0
- package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.d.ts +11 -0
- package/lib/types/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.d.ts +23 -0
- package/lib/types/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.d.ts +17 -0
- package/lib/types/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filter_field/BackofficeFilterField.d.ts +10 -0
- package/lib/types/backoffice/molecules/backoffice_filter_field/BackofficeFilterField.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts +13 -0
- package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_form_section/BackofficeFormSection.d.ts +10 -0
- package/lib/types/backoffice/molecules/backoffice_form_section/BackofficeFormSection.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts +5 -0
- package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.d.ts +15 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.d.ts +2 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts +5 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.d.ts +7 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts +12 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts +7 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts +12 -0
- package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts +11 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts +8 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.d.ts +15 -0
- package/lib/types/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.d.ts +8 -0
- package/lib/types/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.d.ts +8 -0
- package/lib/types/backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.d.ts +7 -0
- package/lib/types/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts +13 -0
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts +16 -0
- package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/bulk_actions_bar/BulkActionsBar.d.ts +12 -0
- package/lib/types/backoffice/molecules/bulk_actions_bar/BulkActionsBar.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/confirm_dialog/ConfirmDialog.d.ts +15 -0
- package/lib/types/backoffice/molecules/confirm_dialog/ConfirmDialog.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/confirm_dialog/confirmDialog.css.d.ts +3 -0
- package/lib/types/backoffice/molecules/confirm_dialog/confirmDialog.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/filter_chip_row/FilterChipRow.d.ts +15 -0
- package/lib/types/backoffice/molecules/filter_chip_row/FilterChipRow.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/filter_chip_row/filterChipRow.css.d.ts +2 -0
- package/lib/types/backoffice/molecules/filter_chip_row/filterChipRow.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/global_search_input/GlobalSearchInput.d.ts +14 -0
- package/lib/types/backoffice/molecules/global_search_input/GlobalSearchInput.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/global_search_input/globalSearchInput.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/global_search_input/globalSearchInput.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/inline_banner/InlineBanner.d.ts +16 -0
- package/lib/types/backoffice/molecules/inline_banner/InlineBanner.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/inline_banner/inlineBanner.css.d.ts +17 -0
- package/lib/types/backoffice/molecules/inline_banner/inlineBanner.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.d.ts +11 -0
- package/lib/types/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_nav_item/SidebarNavItem.d.ts +24 -0
- package/lib/types/backoffice/molecules/sidebar_nav_item/SidebarNavItem.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts +15 -0
- package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts +24 -0
- package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.d.ts +23 -0
- package/lib/types/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts +20 -0
- package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts +13 -0
- package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts +17 -0
- package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts +12 -0
- package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.d.ts +12 -0
- package/lib/types/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts +21 -0
- package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.d.ts +3 -0
- package/lib/types/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.d.ts +26 -0
- package/lib/types/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.d.ts +19 -0
- package/lib/types/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_topbar/BackofficeTopbar.d.ts +10 -0
- package/lib/types/backoffice/organisms/backoffice_topbar/BackofficeTopbar.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.d.ts +6 -0
- package/lib/types/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts +28 -0
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts +5 -0
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/entity_header/EntityHeader.d.ts +19 -0
- package/lib/types/backoffice/organisms/entity_header/EntityHeader.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/entity_header/entityHeader.css.d.ts +13 -0
- package/lib/types/backoffice/organisms/entity_header/entityHeader.css.d.ts.map +1 -0
- package/lib/types/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.d.ts +14 -0
- package/lib/types/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.d.ts.map +1 -0
- package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts +25 -0
- package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts.map +1 -0
- package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts +12 -0
- package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts.map +1 -0
- package/lib/types/backoffice/templates/list_page_template/ListPageTemplate.d.ts +35 -0
- package/lib/types/backoffice/templates/list_page_template/ListPageTemplate.d.ts.map +1 -0
- package/lib/types/backoffice/templates/list_page_template/listPageTemplate.css.d.ts +9 -0
- package/lib/types/backoffice/templates/list_page_template/listPageTemplate.css.d.ts.map +1 -0
- package/lib/types/backoffice/templates/settings_template/SettingsTemplate.d.ts +11 -0
- package/lib/types/backoffice/templates/settings_template/SettingsTemplate.d.ts.map +1 -0
- package/lib/types/backoffice/templates/settings_template/settingsTemplate.css.d.ts +4 -0
- package/lib/types/backoffice/templates/settings_template/settingsTemplate.css.d.ts.map +1 -0
- package/lib/types/backoffice/templates/split_view_template/SplitViewTemplate.d.ts +11 -0
- package/lib/types/backoffice/templates/split_view_template/SplitViewTemplate.d.ts.map +1 -0
- package/lib/types/backoffice/templates/split_view_template/splitViewTemplate.css.d.ts +3 -0
- package/lib/types/backoffice/templates/split_view_template/splitViewTemplate.css.d.ts.map +1 -0
- package/lib/types/backoffice/theme/BackofficeThemeProvider.d.ts +7 -0
- package/lib/types/backoffice/theme/BackofficeThemeProvider.d.ts.map +1 -0
- package/lib/types/backoffice/theme/backofficeTheme.css.d.ts +2 -0
- package/lib/types/backoffice/theme/backofficeTheme.css.d.ts.map +1 -0
- package/lib/types/index.d.ts +52 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/agentJobRequestFormatting.d.ts +6 -0
- package/lib/types/shared/agentJobRequestFormatting.d.ts.map +1 -0
- package/lib/types/shared/agentText.d.ts +3 -0
- package/lib/types/shared/agentText.d.ts.map +1 -0
- package/lib/types/shared/backofficeTableDensity.css.d.ts +2 -0
- package/lib/types/shared/backofficeTableDensity.css.d.ts.map +1 -0
- package/package.json +22 -2
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { bottomRow as t, container as n, left as r, right as i, topRow as a } from "./tableToolbar.css.js";
|
|
3
|
+
import "../../../index.js";
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
//#region src/backoffice/molecules/table_toolbar/TableToolbar.tsx
|
|
6
|
+
var c = ({ search: c, filters: l, leftActions: u, rightActions: d, bottomLeft: f, bottomRight: p, className: m }) => {
|
|
7
|
+
let h = c != null || l != null || u != null || d != null, g = f != null || p != null;
|
|
8
|
+
if (!h && !g) return null;
|
|
9
|
+
let _ = null;
|
|
10
|
+
h && (_ = /* @__PURE__ */ s("div", {
|
|
11
|
+
className: a,
|
|
12
|
+
children: [/* @__PURE__ */ s("div", {
|
|
13
|
+
className: r,
|
|
14
|
+
children: [
|
|
15
|
+
c,
|
|
16
|
+
l,
|
|
17
|
+
u
|
|
18
|
+
]
|
|
19
|
+
}), /* @__PURE__ */ o("div", {
|
|
20
|
+
className: i,
|
|
21
|
+
children: d
|
|
22
|
+
})]
|
|
23
|
+
}));
|
|
24
|
+
let v = null;
|
|
25
|
+
return g && (v = /* @__PURE__ */ s("div", {
|
|
26
|
+
className: t,
|
|
27
|
+
children: [/* @__PURE__ */ o("div", {
|
|
28
|
+
className: r,
|
|
29
|
+
children: f
|
|
30
|
+
}), /* @__PURE__ */ o("div", {
|
|
31
|
+
className: i,
|
|
32
|
+
children: p
|
|
33
|
+
})]
|
|
34
|
+
})), /* @__PURE__ */ s("div", {
|
|
35
|
+
className: e(n, m),
|
|
36
|
+
children: [_, v]
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { c as TableToolbar, c as default };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=TableToolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableToolbar.js","names":[],"sources":["../../../../../src/backoffice/molecules/table_toolbar/TableToolbar.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport * as styles from './tableToolbar.css.js';\nimport { cx } from '@plumile/ui';\n\nexport type TableToolbarProps = {\n search?: ReactNode;\n filters?: ReactNode;\n leftActions?: ReactNode;\n rightActions?: ReactNode;\n bottomLeft?: ReactNode;\n bottomRight?: ReactNode;\n className?: string;\n};\n\nexport const TableToolbar = ({\n search,\n filters,\n leftActions,\n rightActions,\n bottomLeft,\n bottomRight,\n className,\n}: TableToolbarProps): JSX.Element | null => {\n const showTop =\n search != null ||\n filters != null ||\n leftActions != null ||\n rightActions != null;\n const showBottom = bottomLeft != null || bottomRight != null;\n\n if (!showTop && !showBottom) {\n return null;\n }\n\n let topNode: JSX.Element | null = null;\n if (showTop) {\n topNode = (\n <div className={styles.topRow}>\n <div className={styles.left}>\n {search}\n {filters}\n {leftActions}\n </div>\n <div className={styles.right}>{rightActions}</div>\n </div>\n );\n }\n\n let bottomNode: JSX.Element | null = null;\n if (showBottom) {\n bottomNode = (\n <div className={styles.bottomRow}>\n <div className={styles.left}>{bottomLeft}</div>\n <div className={styles.right}>{bottomRight}</div>\n </div>\n );\n }\n\n return (\n <div className={cx(styles.container, className)}>\n {topNode}\n {bottomNode}\n </div>\n );\n};\n\nexport default TableToolbar;\n"],"mappings":";;;;;AAeA,IAAa,KAAgB,EAC3B,WACA,YACA,gBACA,iBACA,eACA,gBACA,mBAC2C;CAC3C,IAAM,IACJ,KAAU,QACV,KAAW,QACX,KAAe,QACf,KAAgB,MACZ,IAAa,KAAc,QAAQ,KAAe;AAExD,KAAI,CAAC,KAAW,CAAC,EACf,QAAO;CAGT,IAAI,IAA8B;AAClC,CAAI,MACF,IACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACE,kBAAC,OAAD;GAAK,WAAW;aAAhB;IACG;IACA;IACA;IACG;MACN,kBAAC,OAAD;GAAK,WAAW;aAAe;GAAmB,CAAA,CAC9C;;CAIV,IAAI,IAAiC;AAUrC,QATI,MACF,IACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACE,kBAAC,OAAD;GAAK,WAAW;aAAc;GAAiB,CAAA,EAC/C,kBAAC,OAAD;GAAK,WAAW;aAAe;GAAkB,CAAA,CAC7C;MAKR,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAkB,EAAU;YAA/C,CACG,GACA,EACG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/molecules/table_toolbar/tableToolbar.css.ts
|
|
4
|
+
var e = "_42m78o0 txvbqb9io txvbqbai6 txvbqbao6 txvbqb12f txvbqb1qf txvbqb62o txvbqb3no txvbqblxf txvbqbfzo", t = "_42m78o1 txvbqb9io txvbqbco txvbqbdoo txvbqbaof txvbqbajx", n = "_42m78o2 txvbqb9io txvbqbco txvbqbao6 txvbqb9mx txvbqbk4x", r = "_42m78o3 txvbqb9io txvbqbco txvbqbao6 txvbqbdo6 txvbqbaj6", i = "_42m78o4 txvbqb9io txvbqbco txvbqbdoo txvbqbaof txvbqbajx";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { i as bottomRow, e as container, n as left, r as right, t as topRow };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=tableToolbar.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableToolbar.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/table_toolbar/tableToolbar.css.ts"],"sourcesContent":["import { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n borderWidth: 0,\n borderStyle: 'solid',\n borderBottomWidth: 'default',\n borderBottomColor: 'border',\n paddingBottom: 3,\n marginBottom: 3,\n});\n\nexport const topRow = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 3,\n flexWrap: 'wrap',\n});\n\nexport const left = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n flex: 1,\n minWidth: 0,\n});\n\nexport const right = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n justifyContent: 'flex-end',\n flexShrink: 0,\n});\n\nexport const bottomRow = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 3,\n flexWrap: 'wrap',\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { body as t, description as n, dot as r, gutter as i, header as a, item as o, line as s, list as c, meta as l, time as u, title as d } from "./auditTimeline.css.js";
|
|
3
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
4
|
+
//#region src/backoffice/organisms/audit_timeline/AuditTimeline.tsx
|
|
5
|
+
var m = ({ events: m, className: h, renderEvent: g }) => m.length === 0 ? null : /* @__PURE__ */ f("ol", {
|
|
6
|
+
className: e(c, h),
|
|
7
|
+
children: m.map((e, c) => {
|
|
8
|
+
let h = c === m.length - 1, _ = g?.(e);
|
|
9
|
+
if (_ != null) return /* @__PURE__ */ f("li", { children: _ }, e.id);
|
|
10
|
+
let v = null;
|
|
11
|
+
h || (v = /* @__PURE__ */ f("div", { className: s }));
|
|
12
|
+
let y = null;
|
|
13
|
+
e.time != null && (y = /* @__PURE__ */ f("div", {
|
|
14
|
+
className: u,
|
|
15
|
+
children: e.time
|
|
16
|
+
}));
|
|
17
|
+
let b = null;
|
|
18
|
+
e.description != null && (b = /* @__PURE__ */ f("div", {
|
|
19
|
+
className: n,
|
|
20
|
+
children: e.description
|
|
21
|
+
}));
|
|
22
|
+
let x = null;
|
|
23
|
+
return e.meta != null && (x = /* @__PURE__ */ f("div", {
|
|
24
|
+
className: l,
|
|
25
|
+
children: e.meta
|
|
26
|
+
})), /* @__PURE__ */ p("li", {
|
|
27
|
+
className: o,
|
|
28
|
+
children: [/* @__PURE__ */ p("div", {
|
|
29
|
+
className: i,
|
|
30
|
+
"aria-hidden": "true",
|
|
31
|
+
children: [/* @__PURE__ */ f("div", { className: r }), v]
|
|
32
|
+
}), /* @__PURE__ */ p("div", {
|
|
33
|
+
className: t,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ p("div", {
|
|
36
|
+
className: a,
|
|
37
|
+
children: [/* @__PURE__ */ f("div", {
|
|
38
|
+
className: d,
|
|
39
|
+
children: e.title
|
|
40
|
+
}), y]
|
|
41
|
+
}),
|
|
42
|
+
b,
|
|
43
|
+
x
|
|
44
|
+
]
|
|
45
|
+
})]
|
|
46
|
+
}, e.id);
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
export { m as AuditTimeline, m as default };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=AuditTimeline.js.map
|
|
@@ -0,0 +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>) => ReactNode;\n};\n\nexport const AuditTimeline = <T,>({\n events,\n className,\n renderEvent,\n}: AuditTimelineProps<T>): JSX.Element | null => {\n if (events.length === 0) {\n return null;\n }\n\n return (\n <ol className={cx(styles.list, className)}>\n {events.map((event, index) => {\n const isLast = index === events.length - 1;\n const custom = renderEvent?.(event);\n if (custom != null) {\n return <li key={event.id}>{custom}</li>;\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 let metaNode: JSX.Element | null = null;\n if (event.meta != null) {\n metaNode = <div className={styles.meta}>{event.meta}</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} />\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 </div>\n </li>\n );\n })}\n </ol>\n );\n};\n\nexport default AuditTimeline;\n"],"mappings":";;;;AAoBA,IAAa,KAAqB,EAChC,WACA,cACA,qBAEI,EAAO,WAAW,IACb,OAIP,kBAAC,MAAD;CAAI,WAAW,EAAG,GAAa,EAAU;WACtC,EAAO,KAAK,GAAO,MAAU;EAC5B,IAAM,IAAS,MAAU,EAAO,SAAS,GACnC,IAAS,IAAc,EAAM;AACnC,MAAI,KAAU,KACZ,QAAO,kBAAC,MAAD,EAAA,UAAoB,GAAY,EAAvB,EAAM,GAAiB;EAGzC,IAAI,IAA+B;AACnC,EAAK,MACH,IAAW,kBAAC,OAAD,EAAK,WAAW,GAAe,CAAA;EAG5C,IAAI,IAA+B;AACnC,EAAI,EAAM,QAAQ,SAChB,IAAW,kBAAC,OAAD;GAAK,WAAW;aAAc,EAAM;GAAW,CAAA;EAG5D,IAAI,IAAsC;AAC1C,EAAI,EAAM,eAAe,SACvB,IACE,kBAAC,OAAD;GAAK,WAAW;aAAqB,EAAM;GAAkB,CAAA;EAIjE,IAAI,IAA+B;AAKnC,SAJI,EAAM,QAAQ,SAChB,IAAW,kBAAC,OAAD;GAAK,WAAW;aAAc,EAAM;GAAW,CAAA,GAI1D,kBAAC,MAAD;GAAmB,WAAW;aAA9B,CACE,kBAAC,OAAD;IAAK,WAAW;IAAe,eAAY;cAA3C,CACE,kBAAC,OAAD,EAAK,WAAW,GAAc,CAAA,EAC7B,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;KACG;MACH;KAbI,EAAM,GAaV;GAEP;CACC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/organisms/audit_timeline/auditTimeline.css.ts
|
|
4
|
+
var e = "_4pt2rx0 txvbqb9io txvbqbai6 txvbqbaof", t = "_4pt2rx1 txvbqb9io txvbqbaof", n = "_4pt2rx2 txvbqb9io txvbqbai6 txvbqbco txvbqbanx txvbqbaj6", r = "_4pt2rx3 txvbqbtvo txvbqbc56 txvbqb1t6 txvbqbhwx", i = "_4pt2rx4 txvbqbtvo txvbqb9mx", a = "_4pt2rx5 txvbqb9io txvbqbai6 txvbqbanx txvbqblx6", o = "_4pt2rx6 txvbqb9io txvbqbdoo txvbqbd6 txvbqbao6 txvbqbajx", s = "_4pt2rx7 txvbqb8x txvbqbamo", c = "_4pt2rx8 txvbqb8o", l = "_4pt2rx9 txvbqb8x", u = "_4pt2rxa txvbqb8o";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { a as body, l as description, r as dot, n as gutter, o as header, t as item, i as line, e as list, u as meta, c as time, s as title };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=auditTimeline.css.js.map
|
|
@@ -0,0 +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\nexport const list = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 3,\n});\n\nexport const item = sprinkles({\n display: 'flex',\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 = sprinkles({\n width: 2,\n height: 2,\n borderRadius: 'full',\n marginTop: 1,\n});\n\nexport const line = sprinkles({\n width: 2,\n flex: 1,\n});\n\nexport const body = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 1,\n paddingBottom: 2,\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});\n\nexport const time = sprinkles({\n fontSize: 'xs',\n});\n\nexport const description = sprinkles({\n fontSize: 'sm',\n});\n\nexport const meta = sprinkles({\n fontSize: 'xs',\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PageShell as e } from "../../../components/layout/PageShell.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.tsx
|
|
4
|
+
var n = ({ sidebar: n, children: r, breadcrumbSlot: i, actions: a, tabs: o }) => /* @__PURE__ */ t(e, {
|
|
5
|
+
sidebar: n,
|
|
6
|
+
breadcrumbSlot: i,
|
|
7
|
+
actions: a,
|
|
8
|
+
tabs: o,
|
|
9
|
+
children: r
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as BackofficeAppShell, n as default };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=BackofficeAppShell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeAppShell.js","names":[],"sources":["../../../../../src/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport {\n PageShell,\n type PageShellActions,\n type PageShellTab,\n} from '@plumile/ui/components/layout/PageShell.js';\n\nexport type BackofficeAppShellProps = {\n sidebar: ReactNode;\n children: ReactNode;\n breadcrumbSlot?: ReactNode;\n actions?: PageShellActions;\n tabs?: PageShellTab[];\n};\n\nexport const BackofficeAppShell = ({\n sidebar,\n children,\n breadcrumbSlot,\n actions,\n tabs,\n}: BackofficeAppShellProps): JSX.Element => {\n return (\n <PageShell\n sidebar={sidebar}\n breadcrumbSlot={breadcrumbSlot}\n actions={actions}\n tabs={tabs}\n >\n {children}\n </PageShell>\n );\n};\n\nexport default BackofficeAppShell;\n"],"mappings":";;;AAgBA,IAAa,KAAsB,EACjC,YACA,aACA,mBACA,YACA,cAGE,kBAAC,GAAD;CACW;CACO;CACP;CACH;CAEL;CACS,CAAA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { Checkbox as t } from "../../../atomic/atoms/checkbox/Checkbox.js";
|
|
3
|
+
import { DataTable as n } from "../../../components/data-table/DataTable.js";
|
|
4
|
+
import { BulkActionsBar as r } from "../../molecules/bulk_actions_bar/BulkActionsBar.js";
|
|
5
|
+
import { TableToolbar as i } from "../../molecules/table_toolbar/TableToolbar.js";
|
|
6
|
+
import { selectionCell as a, wrapper as o } from "./backofficeDataTable.css.js";
|
|
7
|
+
import "../../../index.js";
|
|
8
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
+
import { useCallback as l, useMemo as u } from "react";
|
|
10
|
+
//#region src/backoffice/organisms/backoffice_data_table/BackofficeDataTable.tsx
|
|
11
|
+
var d = (e) => {
|
|
12
|
+
let { rows: n, selection: r } = e, i = [];
|
|
13
|
+
for (let e of n) e.selectable && i.push(e.id);
|
|
14
|
+
let o = i.filter((e) => r.selectedRowIds.has(e)).length, c = i.length > 0 && o === i.length, l = () => {
|
|
15
|
+
if (i.length !== 0) {
|
|
16
|
+
if (c) {
|
|
17
|
+
r.onSelectionChange(/* @__PURE__ */ new Set());
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
r.onSelectionChange(new Set(i));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
id: "__select",
|
|
25
|
+
header: /* @__PURE__ */ s("div", {
|
|
26
|
+
className: a,
|
|
27
|
+
children: /* @__PURE__ */ s(t, {
|
|
28
|
+
checked: c,
|
|
29
|
+
onChange: () => {
|
|
30
|
+
l();
|
|
31
|
+
},
|
|
32
|
+
"aria-label": "Select all"
|
|
33
|
+
})
|
|
34
|
+
}),
|
|
35
|
+
cell: (e) => {
|
|
36
|
+
let { id: n, selectable: i } = e;
|
|
37
|
+
return /* @__PURE__ */ s("div", {
|
|
38
|
+
className: a,
|
|
39
|
+
children: /* @__PURE__ */ s(t, {
|
|
40
|
+
checked: r.selectedRowIds.has(n),
|
|
41
|
+
disabled: !i,
|
|
42
|
+
onChange: () => {
|
|
43
|
+
let e = new Set(r.selectedRowIds);
|
|
44
|
+
e.has(n) ? e.delete(n) : i && e.add(n), r.onSelectionChange(e);
|
|
45
|
+
},
|
|
46
|
+
"aria-label": "Select row"
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
className: a
|
|
51
|
+
};
|
|
52
|
+
}, f = ({ columns: t, rows: a, getRowId: f, toolbar: p, selection: m, bulkActions: h, emptyState: g, className: _ }) => {
|
|
53
|
+
let v = u(() => a.map((e, t) => ({
|
|
54
|
+
row: e,
|
|
55
|
+
index: t,
|
|
56
|
+
id: f(e, t),
|
|
57
|
+
selectable: m?.isRowSelectable?.(e, t) ?? !0
|
|
58
|
+
})), [
|
|
59
|
+
f,
|
|
60
|
+
a,
|
|
61
|
+
m
|
|
62
|
+
]), y = u(() => m == null ? null : d({
|
|
63
|
+
rows: v,
|
|
64
|
+
selection: m
|
|
65
|
+
}), [m, v]), b = u(() => {
|
|
66
|
+
let e = t.map((e) => ({
|
|
67
|
+
...e,
|
|
68
|
+
cell: (t) => e.cell(t.row)
|
|
69
|
+
}));
|
|
70
|
+
return y == null ? e : [y, ...e];
|
|
71
|
+
}, [t, y]), x = u(() => {
|
|
72
|
+
if (b.some((e) => e.isPrimary === !0) || b.length === 0) return b;
|
|
73
|
+
let e = 0;
|
|
74
|
+
return y != null && b.length > 1 && (e = 1), b.map((t, n) => n === e ? {
|
|
75
|
+
...t,
|
|
76
|
+
isPrimary: !0
|
|
77
|
+
} : t);
|
|
78
|
+
}, [b, y]), S = u(() => {
|
|
79
|
+
if (y != null) return `2.75rem repeat(${Math.max(0, b.length - 1)}, minmax(0, 1fr))`;
|
|
80
|
+
}, [b.length, y]), C = 0;
|
|
81
|
+
m != null && (C = m.selectedRowIds.size);
|
|
82
|
+
let w = l(() => {
|
|
83
|
+
m?.onSelectionChange(/* @__PURE__ */ new Set());
|
|
84
|
+
}, [m]), T = null;
|
|
85
|
+
p != null && (T = /* @__PURE__ */ s(i, { ...p }));
|
|
86
|
+
let E = null;
|
|
87
|
+
return m != null && (E = /* @__PURE__ */ s(r, {
|
|
88
|
+
selectedCount: C,
|
|
89
|
+
actions: h,
|
|
90
|
+
onClearSelection: w
|
|
91
|
+
})), /* @__PURE__ */ c("div", {
|
|
92
|
+
className: e(o, _),
|
|
93
|
+
children: [
|
|
94
|
+
T,
|
|
95
|
+
E,
|
|
96
|
+
/* @__PURE__ */ s(n, {
|
|
97
|
+
columns: x,
|
|
98
|
+
rows: v,
|
|
99
|
+
getRowId: (e) => e.id,
|
|
100
|
+
emptyState: g,
|
|
101
|
+
className: void 0,
|
|
102
|
+
headerClassName: void 0,
|
|
103
|
+
bodyClassName: void 0,
|
|
104
|
+
rowClassName: void 0,
|
|
105
|
+
gridTemplateClassName: void 0,
|
|
106
|
+
gridTemplateColumns: S
|
|
107
|
+
})
|
|
108
|
+
]
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
//#endregion
|
|
112
|
+
export { f as BackofficeDataTable, f as default };
|
|
113
|
+
|
|
114
|
+
//# sourceMappingURL=BackofficeDataTable.js.map
|
|
@@ -0,0 +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';\n\nimport { Checkbox, cx } from '@plumile/ui';\nimport {\n DataTable,\n type DataTableColumn,\n type GetRowId,\n} from '@plumile/ui/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};\n\ntype WrappedRow<Row> = {\n row: Row;\n index: number;\n id: string;\n selectable: boolean;\n};\n\nconst buildSelectionColumn = <Row,>(options: {\n rows: readonly WrappedRow<Row>[];\n selection: BackofficeDataTableSelection<Row>;\n}): DataTableColumn<WrappedRow<Row>> => {\n const { rows, selection } = 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\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 onChange={() => {\n toggleAll();\n }}\n aria-label=\"Select all\"\n />\n </div>\n ),\n cell: (wrapped) => {\n const { id: rowId, selectable } = wrapped;\n const checked = selection.selectedRowIds.has(rowId);\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=\"Select row\"\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}: BackofficeDataTableProps<Row>): JSX.Element => {\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({ rows: wrappedRows, selection });\n }, [selection, 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 if (selectionColumn == null) {\n return undefined;\n }\n const restCount = Math.max(0, resolvedColumns.length - 1);\n return `2.75rem repeat(${restCount}, minmax(0, 1fr))`;\n }, [resolvedColumns.length, 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 return (\n <div className={cx(styles.wrapper, className)}>\n {toolbarNode}\n {bulkActionsNode}\n\n <DataTable\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 />\n </div>\n );\n};\n\nexport default BackofficeDataTable;\n"],"mappings":";;;;;;;;;;AAyCA,IAAM,KAA8B,MAGI;CACtC,IAAM,EAAE,SAAM,iBAAc,GAEtB,IAA6B,EAAE;AACrC,MAAK,IAAM,KAAW,EACpB,CAAI,EAAQ,cACV,EAAiB,KAAK,EAAQ,GAAG;CAIrC,IAAM,IAAgB,EAAiB,QAAQ,MACtC,EAAU,eAAe,IAAI,EAAG,CACvC,CAAC,QAEG,IACJ,EAAiB,SAAS,KAAK,MAAkB,EAAiB,QAE9D,UAAwB;AACxB,QAAiB,WAAW,GAGhC;OAAI,GAAe;AACjB,MAAU,kCAAkB,IAAI,KAAK,CAAC;AACtC;;AAEF,KAAU,kBAAkB,IAAI,IAAI,EAAiB,CAAC;;;AAGxD,QAAO;EACL,IAAI;EACJ,QACE,kBAAC,OAAD;GAAK,WAAW;aACd,kBAAC,GAAD;IACE,SAAS;IACT,gBAAgB;AACd,QAAW;;IAEb,cAAW;IACX,CAAA;GACE,CAAA;EAER,OAAO,MAAY;GACjB,IAAM,EAAE,IAAI,GAAO,kBAAe;AAGlC,UACE,kBAAC,OAAD;IAAK,WAAW;cACd,kBAAC,GAAD;KACW,SALC,EAAU,eAAe,IAAI,EAAM;KAM7C,UAAU,CAAC;KACX,gBAAgB;MACd,IAAM,IAAO,IAAI,IAAI,EAAU,eAAe;AAM9C,MALI,EAAK,IAAI,EAAM,GACjB,EAAK,OAAO,EAAM,GACT,KACT,EAAK,IAAI,EAAM,EAEjB,EAAU,kBAAkB,EAAK;;KAEnC,cAAW;KACX,CAAA;IACE,CAAA;;EAGV,WAAW;EACZ;GAGU,KAA6B,EACxC,YACA,SACA,aACA,YACA,cACA,gBACA,eACA,mBACgD;CAChD,IAAM,IAAc,QACX,EAAK,KAAK,GAAK,OAGb;EAAE;EAAK;EAAO,IAFV,EAAS,GAAK,EAAM;EAEN,YADN,GAAW,kBAAkB,GAAK,EAAM,IAAI;EAC1B,EACrC,EACD;EAAC;EAAU;EAAM;EAAU,CAAC,EAEzB,IAAkB,QAClB,KAAa,OACR,OAEF,EAAqB;EAAE,MAAM;EAAa;EAAW,CAAC,EAC5D,CAAC,GAAW,EAAY,CAAC,EAEtB,IAAkB,QAAc;EACpC,IAAM,IAAS,EAAQ,KAAuC,OACrD;GACL,GAAG;GACH,OAAO,MACE,EAAO,KAAK,EAAQ,IAAI;GAElC,EACD;AAIF,SAHI,KAAmB,OACd,IAEF,CAAC,GAAiB,GAAG,EAAO;IAClC,CAAC,GAAS,EAAgB,CAAC,EAExB,IAAqB,QAAc;AAOvC,MANmB,EAAgB,MAAM,MAChC,EAAO,cAAc,GAC5B,IAIE,EAAgB,WAAW,EAC7B,QAAO;EAET,IAAI,IAAe;AAInB,SAHI,KAAmB,QAAQ,EAAgB,SAAS,MACtD,IAAe,IAEV,EAAgB,KAAK,GAAQ,MAC9B,MAAU,IACL;GAAE,GAAG;GAAQ,WAAW;GAAM,GAEhC,EACP;IACD,CAAC,GAAiB,EAAgB,CAAC,EAEhC,IAAsB,QAAc;AACpC,WAAmB,KAIvB,QAAO,kBADW,KAAK,IAAI,GAAG,EAAgB,SAAS,EAAE,CACtB;IAClC,CAAC,EAAgB,QAAQ,EAAgB,CAAC,EAEzC,IAAgB;AACpB,CAAI,KAAa,SACf,IAAgB,EAAU,eAAe;CAG3C,IAAM,IAAuB,QAAkB;AAC7C,EAAI,GACQ,kCAAkB,IAAI,KAAK,CAAC;IAEvC,CAAC,EAAU,CAAC,EAEX,IAAkC;AACtC,CAAI,KAAW,SACb,IAAc,kBAAC,GAAD,EAAc,GAAI,GAAW,CAAA;CAG7C,IAAI,IAAsC;AAW1C,QAVI,KAAa,SACf,IACE,kBAAC,GAAD;EACiB;EACf,SAAS;EACT,kBAAkB;EAClB,CAAA,GAKJ,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAgB,EAAU;YAA7C;GACG;GACA;GAED,kBAAC,GAAD;IACE,SAAS;IACT,MAAM;IACN,WAAW,MACF,EAAQ;IAEL;IACZ,WAAW,KAAA;IACX,iBAAiB,KAAA;IACjB,eAAe,KAAA;IACf,cAAc,KAAA;IACd,uBAAuB,KAAA;IACF;IACrB,CAAA;GACE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.ts
|
|
4
|
+
var e = "x4h99m0 txvbqb9io txvbqbai6 txvbqbaof", t = "x4h99m1 txvbqbdnx";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { t as selectionCell, e as wrapper };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=backofficeDataTable.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeDataTable.css.js","names":[],"sources":["../../../../../src/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.ts"],"sourcesContent":["import { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const wrapper = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 3,\n});\n\nexport const selectionCell = sprinkles({\n justifyContent: 'center',\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { SidebarNavSection as t } from "../../molecules/sidebar_nav_section/SidebarNavSection.js";
|
|
3
|
+
import { SidebarCollapseToggle as n } from "../../molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js";
|
|
4
|
+
import { container as r, footer as i, header as a, inner as o, sections as s, widthRecipe as c } from "./backofficeSidebar.css.js";
|
|
5
|
+
import "../../../index.js";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
+
import { useCallback as d, useState as f } from "react";
|
|
8
|
+
//#region src/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.tsx
|
|
9
|
+
var p = ({ header: p, search: m, footer: h, sections: g, isCollapsed: _, defaultCollapsed: v = !1, onCollapsedChange: y, collapseToggleLabel: b, collapseShortcut: x, className: S }) => {
|
|
10
|
+
let [C, w] = f(v), T = _ ?? C, E = d(() => {
|
|
11
|
+
let e = !T;
|
|
12
|
+
_ ?? w(e), y?.(e);
|
|
13
|
+
}, [
|
|
14
|
+
T,
|
|
15
|
+
_,
|
|
16
|
+
y
|
|
17
|
+
]), D = "expanded";
|
|
18
|
+
T && (D = "collapsed");
|
|
19
|
+
let O = null;
|
|
20
|
+
return h != null && (O = /* @__PURE__ */ l("div", {
|
|
21
|
+
className: i,
|
|
22
|
+
children: h
|
|
23
|
+
})), /* @__PURE__ */ l("aside", {
|
|
24
|
+
className: e(r, c({ state: D }), S),
|
|
25
|
+
children: /* @__PURE__ */ u("div", {
|
|
26
|
+
className: o,
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ u("div", {
|
|
29
|
+
className: a,
|
|
30
|
+
children: [p, /* @__PURE__ */ l(n, {
|
|
31
|
+
isCollapsed: T,
|
|
32
|
+
onToggle: E,
|
|
33
|
+
label: b,
|
|
34
|
+
shortcut: x
|
|
35
|
+
})]
|
|
36
|
+
}),
|
|
37
|
+
m != null && /* @__PURE__ */ l("div", {
|
|
38
|
+
className: "_15szdsj7 txvbqbnuo txvbqbohx txvbqb9io txvbqbai6 txvbqbao6",
|
|
39
|
+
children: m
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ l("nav", {
|
|
42
|
+
className: s,
|
|
43
|
+
"aria-label": "Backoffice navigation",
|
|
44
|
+
children: g.map((e) => /* @__PURE__ */ l(t, {
|
|
45
|
+
title: e.title,
|
|
46
|
+
items: e.items,
|
|
47
|
+
collapsible: e.collapsible,
|
|
48
|
+
defaultCollapsed: e.defaultCollapsed,
|
|
49
|
+
isCollapsed: e.isCollapsed,
|
|
50
|
+
onCollapsedChange: e.onCollapsedChange,
|
|
51
|
+
collapsed: T
|
|
52
|
+
}, e.id))
|
|
53
|
+
}),
|
|
54
|
+
O
|
|
55
|
+
]
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
//#endregion
|
|
60
|
+
export { p as BackofficeSidebar, p as default };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=BackofficeSidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeSidebar.js","names":[],"sources":["../../../../../src/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.tsx"],"sourcesContent":["import { useCallback, useState, type JSX, type ReactNode } from 'react';\nimport type { RecipeVariants } from '@vanilla-extract/recipes';\n\nimport { SidebarCollapseToggle } from '../../molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js';\nimport {\n SidebarNavSection,\n type SidebarNavSectionItem,\n} from '../../molecules/sidebar_nav_section/SidebarNavSection.js';\n\nimport * as styles from './backofficeSidebar.css.js';\nimport { cx } from '@plumile/ui';\n\nexport type BackofficeSidebarSection = {\n id: string;\n title?: ReactNode;\n items: readonly SidebarNavSectionItem[];\n collapsible?: boolean;\n defaultCollapsed?: boolean;\n isCollapsed?: boolean;\n onCollapsedChange?: (collapsed: boolean) => void;\n};\n\nexport type BackofficeSidebarProps = {\n header?: ReactNode;\n search?: ReactNode;\n footer?: ReactNode;\n sections: readonly BackofficeSidebarSection[];\n isCollapsed?: boolean;\n defaultCollapsed?: boolean;\n onCollapsedChange?: (collapsed: boolean) => void;\n collapseToggleLabel?: ReactNode;\n collapseShortcut?: readonly string[] | string;\n className?: string;\n};\n\nexport const BackofficeSidebar = ({\n header,\n search,\n footer,\n sections,\n isCollapsed,\n defaultCollapsed = false,\n onCollapsedChange,\n collapseToggleLabel,\n collapseShortcut,\n className,\n}: BackofficeSidebarProps): JSX.Element => {\n const [uncontrolledCollapsed, setUncontrolledCollapsed] =\n useState(defaultCollapsed);\n\n const collapsed = isCollapsed ?? uncontrolledCollapsed;\n\n const handleToggleCollapsed = useCallback(() => {\n const next = !collapsed;\n if (isCollapsed == null) {\n setUncontrolledCollapsed(next);\n }\n onCollapsedChange?.(next);\n }, [collapsed, isCollapsed, onCollapsedChange]);\n\n let widthKey: NonNullable<\n NonNullable<RecipeVariants<typeof styles.widthRecipe>>['state']\n > = 'expanded';\n if (collapsed) {\n widthKey = 'collapsed';\n }\n\n let footerNode: JSX.Element | null = null;\n if (footer != null) {\n footerNode = <div className={styles.footer}>{footer}</div>;\n }\n\n return (\n <aside\n className={cx(\n styles.container,\n styles.widthRecipe({ state: widthKey }),\n className,\n )}\n >\n <div className={styles.inner}>\n <div className={styles.header}>\n {header}\n <SidebarCollapseToggle\n isCollapsed={collapsed}\n onToggle={handleToggleCollapsed}\n label={collapseToggleLabel}\n shortcut={collapseShortcut}\n />\n </div>\n\n {search != null && <div className={styles.search}>{search}</div>}\n <nav className={styles.sections} aria-label=\"Backoffice navigation\">\n {sections.map((section) => {\n return (\n <SidebarNavSection\n key={section.id}\n title={section.title}\n items={section.items}\n collapsible={section.collapsible}\n defaultCollapsed={section.defaultCollapsed}\n isCollapsed={section.isCollapsed}\n onCollapsedChange={section.onCollapsedChange}\n collapsed={collapsed}\n />\n );\n })}\n </nav>\n\n {footerNode}\n </div>\n </aside>\n );\n};\n\nexport default BackofficeSidebar;\n"],"mappings":";;;;;;;;AAmCA,IAAa,KAAqB,EAChC,QAAA,GACA,QAAA,GACA,QAAA,GACA,UAAA,GACA,gBACA,sBAAmB,IACnB,sBACA,wBACA,qBACA,mBACyC;CACzC,IAAM,CAAC,GAAuB,KAC5B,EAAS,EAAiB,EAEtB,IAAY,KAAe,GAE3B,IAAwB,QAAkB;EAC9C,IAAM,IAAO,CAAC;AAId,EAHI,KACF,EAAyB,EAAK,EAEhC,IAAoB,EAAK;IACxB;EAAC;EAAW;EAAa;EAAkB,CAAC,EAE3C,IAEA;AACJ,CAAI,MACF,IAAW;CAGb,IAAI,IAAiC;AAKrC,QAJI,KAAU,SACZ,IAAa,kBAAC,OAAD;EAAK,WAAW;YAAgB;EAAa,CAAA,GAI1D,kBAAC,SAAD;EACE,WAAW,EACT,GACA,EAAmB,EAAE,OAAO,GAAU,CAAC,EACvC,EACD;YAED,kBAAC,OAAD;GAAK,WAAW;aAAhB;IACE,kBAAC,OAAD;KAAK,WAAW;eAAhB,CACG,GACD,kBAAC,GAAD;MACE,aAAa;MACb,UAAU;MACV,OAAO;MACP,UAAU;MACV,CAAA,CACE;;IAEL,KAAU,QAAQ,kBAAC,OAAD;KAAK,WAAW;eAAgB;KAAa,CAAA;IAChE,kBAAC,OAAD;KAAK,WAAW;KAAiB,cAAW;eACzC,EAAS,KAAK,MAEX,kBAAC,GAAD;MAEE,OAAO,EAAQ;MACf,OAAO,EAAQ;MACf,aAAa,EAAQ;MACrB,kBAAkB,EAAQ;MAC1B,aAAa,EAAQ;MACrB,mBAAmB,EAAQ;MAChB;MACX,EARK,EAAQ,GAQb,CAEJ;KACE,CAAA;IAEL;IACG;;EACA,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
|
+
//#region src/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.ts
|
|
5
|
+
var t = "_15szdsj0 txvbqb9io txvbqbai6 txvbqbcff txvbqbv2r txvbqb12f txvbqb1qf txvbqb5fx txvbqb306", n = e({
|
|
6
|
+
defaultClassName: "_15szdsj1",
|
|
7
|
+
variantClassNames: { state: {
|
|
8
|
+
expanded: "_15szdsj2",
|
|
9
|
+
collapsed: "_15szdsj3"
|
|
10
|
+
} },
|
|
11
|
+
defaultVariants: { state: "expanded" },
|
|
12
|
+
compoundVariants: []
|
|
13
|
+
}), r = "_15szdsj4 txvbqb9io txvbqbai6 txvbqbaoo txvbqblaf txvbqbcff txvbqbjg6", i = "_15szdsj5 txvbqbnuo txvbqbohx txvbqb9io txvbqbco txvbqbdoo txvbqbao6", a = "_15szdsj6 txvbqb9io txvbqbai6 txvbqbaoo txvbqb9mx txvbqbjg6 txvbqbl7o", o = "_15szdsj7 txvbqbnuo txvbqbohx txvbqb9io txvbqbai6 txvbqbao6", s = "_15szdsj8 txvbqbnuo txvbqbohx txvbqb9io txvbqbai6 txvbqbao6";
|
|
14
|
+
//#endregion
|
|
15
|
+
export { t as container, s as footer, i as header, r as inner, o as search, a as sections, n as widthRecipe };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=backofficeSidebar.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeSidebar.css.js","names":[],"sources":["../../../../../src/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.ts"],"sourcesContent":["import { recipe, type RecipeVariants } from '@vanilla-extract/recipes';\n\nimport { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n height: 'full',\n backgroundColor: 'surface',\n borderWidth: 0,\n borderStyle: 'solid',\n borderRightWidth: 'px',\n borderRightColor: 'borderSubtle',\n});\n\nexport const widthRecipe = recipe({\n variants: {\n state: {\n expanded: { width: vars.width[64] },\n collapsed: { width: vars.width[17.5] },\n },\n },\n defaultVariants: {\n state: 'expanded',\n },\n});\n\nexport type WidthRecipeVariants = RecipeVariants<typeof widthRecipe>;\n\nexport const inner = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n padding: 4,\n height: 'full',\n minHeight: 0,\n});\n\nexport const header = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 2,\n paddingX: 1,\n});\n\nexport const sections = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n flex: 1,\n minHeight: 0,\n overflowY: 'auto',\n});\n\nexport const search = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n paddingX: 1,\n});\n\nexport const footer = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n paddingX: 1,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { container as t, left as n, right as r, row as i } from "./backofficeTopbar.css.js";
|
|
3
|
+
import "../../../index.js";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
//#region src/backoffice/organisms/backoffice_topbar/BackofficeTopbar.tsx
|
|
6
|
+
var s = ({ breadcrumb: s, leftSlot: c, rightSlot: l, className: u }) => /* @__PURE__ */ a("div", {
|
|
7
|
+
className: e(t, u),
|
|
8
|
+
children: /* @__PURE__ */ o("div", {
|
|
9
|
+
className: i,
|
|
10
|
+
children: [/* @__PURE__ */ o("div", {
|
|
11
|
+
className: n,
|
|
12
|
+
children: [s, c]
|
|
13
|
+
}), /* @__PURE__ */ a("div", {
|
|
14
|
+
className: r,
|
|
15
|
+
children: l
|
|
16
|
+
})]
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { s as BackofficeTopbar, s as default };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=BackofficeTopbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeTopbar.js","names":[],"sources":["../../../../../src/backoffice/organisms/backoffice_topbar/BackofficeTopbar.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport * as styles from './backofficeTopbar.css.js';\nimport { cx } from '@plumile/ui';\n\nexport type BackofficeTopbarProps = {\n breadcrumb?: ReactNode;\n leftSlot?: ReactNode;\n rightSlot?: ReactNode;\n className?: string;\n};\n\nexport const BackofficeTopbar = ({\n breadcrumb,\n leftSlot,\n rightSlot,\n className,\n}: BackofficeTopbarProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <div className={styles.row}>\n <div className={styles.left}>\n {breadcrumb}\n {leftSlot}\n </div>\n <div className={styles.right}>{rightSlot}</div>\n </div>\n </div>\n );\n};\n\nexport default BackofficeTopbar;\n"],"mappings":";;;;;AAYA,IAAa,KAAoB,EAC/B,eACA,aACA,cACA,mBAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,GAAkB,EAAU;WAC7C,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACE,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACG,GACA,EACG;MACN,kBAAC,OAAD;GAAK,WAAW;aAAe;GAAgB,CAAA,CAC3C;;CACF,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.ts
|
|
4
|
+
var e = "_1q9x83s0 txvbqb9io txvbqbai6 txvbqbaof txvbqbk4x txvbqbu6f", t = "_1q9x83s1 txvbqb9io txvbqbco txvbqbaoo txvbqbajx txvbqbk4x", n = "_1q9x83s2 txvbqb9io txvbqbco txvbqbaof txvbqb9mx txvbqbk4x", r = "_1q9x83s3 txvbqb9jf txvbqbco txvbqbao6 txvbqbdo6 txvbqbaj6", i = "_1q9x83s4 txvbqb9jf txvbqbco txvbqbc66 txvbqbuho txvbqbv3d";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as container, i as divider, n as left, r as right, t as row };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=backofficeTopbar.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeTopbar.css.js","names":[],"sources":["../../../../../src/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.ts"],"sourcesContent":["import { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 3,\n minWidth: 0,\n width: 'full',\n});\n\nexport const row = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 4,\n flexWrap: 'wrap',\n minWidth: 0,\n});\n\nexport const left = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 3,\n flex: 1,\n minWidth: 0,\n});\n\nexport const right = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n gap: 2,\n justifyContent: 'flex-end',\n flexShrink: 0,\n});\n\nexport const divider = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n height: 6,\n width: 0.5,\n backgroundColor: 'border',\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { VirtualizedConnectionTable as e } from "../../../components/data-table/VirtualizedConnectionTable.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.tsx
|
|
4
|
+
var n = (e) => {
|
|
5
|
+
if (e != null) return {
|
|
6
|
+
enabled: e.enabled,
|
|
7
|
+
rowHeightPx: e.rowHeightPx,
|
|
8
|
+
overscan: e.overscan
|
|
9
|
+
};
|
|
10
|
+
}, r = (e) => {
|
|
11
|
+
if (e != null) return {
|
|
12
|
+
enabled: e.enabled,
|
|
13
|
+
thresholdPx: e.thresholdPx,
|
|
14
|
+
autoLoad: e.autoLoad
|
|
15
|
+
};
|
|
16
|
+
}, i = ({ columns: i, rows: a, getRowId: o, emptyState: s, className: c, gridTemplateColumns: l, virtualization: u, infiniteScroll: d, hasNextPage: f, isLoadingMore: p, onLoadMore: m }) => /* @__PURE__ */ t(e, {
|
|
17
|
+
columns: i,
|
|
18
|
+
rows: a,
|
|
19
|
+
getRowId: o,
|
|
20
|
+
emptyState: s,
|
|
21
|
+
className: c,
|
|
22
|
+
gridTemplateColumns: l,
|
|
23
|
+
kind: void 0,
|
|
24
|
+
classes: void 0,
|
|
25
|
+
virtualization: n(u),
|
|
26
|
+
infiniteScroll: r(d),
|
|
27
|
+
hasNextPage: f,
|
|
28
|
+
isLoadingMore: p,
|
|
29
|
+
onLoadMore: m
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { i as BackofficeVirtualizedConnectionTable, i as default };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=BackofficeVirtualizedConnectionTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeVirtualizedConnectionTable.js","names":[],"sources":["../../../../../src/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.tsx"],"sourcesContent":["import { type JSX } from 'react';\nimport {\n VirtualizedConnectionTable,\n type InfiniteScrollConfig,\n type VirtualizationConfig,\n} from '@plumile/ui/components/data-table/VirtualizedConnectionTable.js';\nimport type {\n DataTableColumn,\n GetRowId,\n} from '@plumile/ui/components/data-table/DataTable.js';\n\nexport type BackofficeVirtualizationConfig = {\n enabled: boolean;\n rowHeightPx: number;\n overscan: number;\n};\n\nexport type BackofficeInfiniteScrollConfig = {\n enabled: boolean;\n thresholdPx?: number;\n autoLoad?: boolean;\n};\n\nexport type BackofficeVirtualizedConnectionTableProps<Row> = {\n columns: readonly DataTableColumn<Row>[];\n rows: readonly Row[];\n getRowId: GetRowId<Row>;\n emptyState?: JSX.Element;\n className?: string;\n gridTemplateColumns?: string;\n\n virtualization?: BackofficeVirtualizationConfig;\n\n infiniteScroll?: BackofficeInfiniteScrollConfig;\n hasNextPage?: boolean;\n isLoadingMore?: boolean;\n onLoadMore?: () => void;\n};\n\nconst mapVirtualization = (\n config?: BackofficeVirtualizationConfig,\n): VirtualizationConfig | undefined => {\n if (config == null) {\n return undefined;\n }\n return {\n enabled: config.enabled,\n rowHeightPx: config.rowHeightPx,\n overscan: config.overscan,\n };\n};\n\nconst mapInfiniteScroll = (\n config?: BackofficeInfiniteScrollConfig,\n): InfiniteScrollConfig | undefined => {\n if (config == null) {\n return undefined;\n }\n return {\n enabled: config.enabled,\n thresholdPx: config.thresholdPx,\n autoLoad: config.autoLoad,\n };\n};\n\nexport const BackofficeVirtualizedConnectionTable = <Row,>({\n columns,\n rows,\n getRowId,\n emptyState,\n className,\n gridTemplateColumns,\n virtualization,\n infiniteScroll,\n hasNextPage,\n isLoadingMore,\n onLoadMore,\n}: BackofficeVirtualizedConnectionTableProps<Row>): JSX.Element => {\n return (\n <VirtualizedConnectionTable\n columns={columns}\n rows={rows}\n getRowId={getRowId}\n emptyState={emptyState}\n className={className}\n gridTemplateColumns={gridTemplateColumns}\n kind={undefined}\n classes={undefined}\n virtualization={mapVirtualization(virtualization)}\n infiniteScroll={mapInfiniteScroll(infiniteScroll)}\n hasNextPage={hasNextPage}\n isLoadingMore={isLoadingMore}\n onLoadMore={onLoadMore}\n />\n );\n};\n\nexport default BackofficeVirtualizedConnectionTable;\n"],"mappings":";;;AAuCA,IAAM,KACJ,MACqC;AACjC,UAAU,KAGd,QAAO;EACL,SAAS,EAAO;EAChB,aAAa,EAAO;EACpB,UAAU,EAAO;EAClB;GAGG,KACJ,MACqC;AACjC,UAAU,KAGd,QAAO;EACL,SAAS,EAAO;EAChB,aAAa,EAAO;EACpB,UAAU,EAAO;EAClB;GAGU,KAA8C,EACzD,YACA,SACA,aACA,eACA,cACA,wBACA,mBACA,mBACA,gBACA,kBACA,oBAGE,kBAAC,GAAD;CACW;CACH;CACI;CACE;CACD;CACU;CACrB,MAAM,KAAA;CACN,SAAS,KAAA;CACT,gBAAgB,EAAkB,EAAe;CACjD,gBAAgB,EAAkB,EAAe;CACpC;CACE;CACH;CACZ,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.ts
|
|
4
|
+
var e = "_13x579i0 txvbqbuw6 txvbqbl6f txvbqbt6f txvbqbk4x", t = "_13x579i1 txvbqbpsf", n = "_13x579i2 txvbqbu6f", r = "_13x579i3 txvbqbu6f txvbqbc4x";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { t as bodyViewport, r as sentinel, e as singleLineCell, n as spacer };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=backofficeVirtualizedConnectionTable.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeVirtualizedConnectionTable.css.js","names":[],"sources":["../../../../../src/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.ts"],"sourcesContent":["import { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const singleLineCell = sprinkles({\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n minWidth: 0,\n});\n\nexport const bodyViewport = sprinkles({\n position: 'relative',\n});\n\nexport const spacer = sprinkles({\n width: 'full',\n});\n\nexport const sentinel = sprinkles({\n width: 'full',\n height: 1,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { badgeRow as t, container as n, meta as r, metaItem as i, metaLabel as a, metaSlot as o, metaValue as s, subtitle as c, title as l, titleBlock as u, titleRow as d, topRow as f } from "./entityHeader.css.js";
|
|
3
|
+
import "../../../index.js";
|
|
4
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
5
|
+
//#region src/backoffice/organisms/entity_header/EntityHeader.tsx
|
|
6
|
+
var h = ({ title: h, subtitle: g, status: _, badges: v, actions: y, items: b = [], metaSlot: x, className: S }) => {
|
|
7
|
+
let C = null;
|
|
8
|
+
g != null && (C = /* @__PURE__ */ p("div", {
|
|
9
|
+
className: c,
|
|
10
|
+
children: g
|
|
11
|
+
}));
|
|
12
|
+
let w = null;
|
|
13
|
+
(_ != null || v != null) && (w = /* @__PURE__ */ m("div", {
|
|
14
|
+
className: t,
|
|
15
|
+
children: [_, v]
|
|
16
|
+
}));
|
|
17
|
+
let T = null;
|
|
18
|
+
b.length > 0 && (T = /* @__PURE__ */ p("div", {
|
|
19
|
+
className: r,
|
|
20
|
+
children: b.map((e) => /* @__PURE__ */ m("div", {
|
|
21
|
+
className: i,
|
|
22
|
+
children: [/* @__PURE__ */ p("div", {
|
|
23
|
+
className: a,
|
|
24
|
+
children: e.label
|
|
25
|
+
}), /* @__PURE__ */ p("div", {
|
|
26
|
+
className: s,
|
|
27
|
+
children: e.value
|
|
28
|
+
})]
|
|
29
|
+
}, e.id))
|
|
30
|
+
}));
|
|
31
|
+
let E = null;
|
|
32
|
+
return x != null && (E = /* @__PURE__ */ p("div", {
|
|
33
|
+
className: o,
|
|
34
|
+
children: x
|
|
35
|
+
})), /* @__PURE__ */ m("div", {
|
|
36
|
+
className: e(n, S),
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ m("div", {
|
|
39
|
+
className: f,
|
|
40
|
+
children: [/* @__PURE__ */ m("div", {
|
|
41
|
+
className: u,
|
|
42
|
+
children: [/* @__PURE__ */ m("div", {
|
|
43
|
+
className: d,
|
|
44
|
+
children: [/* @__PURE__ */ p("div", {
|
|
45
|
+
className: l,
|
|
46
|
+
children: h
|
|
47
|
+
}), w]
|
|
48
|
+
}), C]
|
|
49
|
+
}), y]
|
|
50
|
+
}),
|
|
51
|
+
E,
|
|
52
|
+
T
|
|
53
|
+
]
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
export { h as EntityHeader, h as default };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=EntityHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntityHeader.js","names":[],"sources":["../../../../../src/backoffice/organisms/entity_header/EntityHeader.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport * as styles from './entityHeader.css.js';\nimport { cx } from '@plumile/ui';\n\nexport type EntityHeaderItem = {\n id: string;\n label: ReactNode;\n value: ReactNode;\n};\n\nexport type EntityHeaderProps = {\n title: ReactNode;\n subtitle?: ReactNode;\n status?: ReactNode;\n badges?: ReactNode;\n actions?: ReactNode;\n items?: readonly EntityHeaderItem[];\n metaSlot?: ReactNode;\n className?: string;\n};\n\nexport const EntityHeader = ({\n title,\n subtitle,\n status,\n badges,\n actions,\n items = [],\n metaSlot,\n className,\n}: EntityHeaderProps): JSX.Element => {\n let subtitleNode: JSX.Element | null = null;\n if (subtitle != null) {\n subtitleNode = <div className={styles.subtitle}>{subtitle}</div>;\n }\n\n let badgesNode: JSX.Element | null = null;\n if (status != null || badges != null) {\n badgesNode = (\n <div className={styles.badgeRow}>\n {status}\n {badges}\n </div>\n );\n }\n\n let itemsNode: JSX.Element | null = null;\n if (items.length > 0) {\n itemsNode = (\n <div className={styles.meta}>\n {items.map((item) => {\n return (\n <div key={item.id} className={styles.metaItem}>\n <div className={styles.metaLabel}>{item.label}</div>\n <div className={styles.metaValue}>{item.value}</div>\n </div>\n );\n })}\n </div>\n );\n }\n\n let metaSlotNode: JSX.Element | null = null;\n if (metaSlot != null) {\n metaSlotNode = <div className={styles.metaSlot}>{metaSlot}</div>;\n }\n\n return (\n <div className={cx(styles.container, className)}>\n <div className={styles.topRow}>\n <div className={styles.titleBlock}>\n <div className={styles.titleRow}>\n <div className={styles.title}>{title}</div>\n {badgesNode}\n </div>\n {subtitleNode}\n </div>\n {actions}\n </div>\n\n {metaSlotNode}\n {itemsNode}\n </div>\n );\n};\n\nexport default EntityHeader;\n"],"mappings":";;;;;AAsBA,IAAa,KAAgB,EAC3B,OAAA,GACA,UAAA,GACA,WACA,WACA,YACA,WAAQ,EAAE,EACV,UAAA,GACA,mBACoC;CACpC,IAAI,IAAmC;AACvC,CAAI,KAAY,SACd,IAAe,kBAAC,OAAD;EAAK,WAAW;YAAkB;EAAe,CAAA;CAGlE,IAAI,IAAiC;AACrC,EAAI,KAAU,QAAQ,KAAU,UAC9B,IACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACG,GACA,EACG;;CAIV,IAAI,IAAgC;AACpC,CAAI,EAAM,SAAS,MACjB,IACE,kBAAC,OAAD;EAAK,WAAW;YACb,EAAM,KAAK,MAER,kBAAC,OAAD;GAAmB,WAAW;aAA9B,CACE,kBAAC,OAAD;IAAK,WAAW;cAAmB,EAAK;IAAY,CAAA,EACpD,kBAAC,OAAD;IAAK,WAAW;cAAmB,EAAK;IAAY,CAAA,CAChD;KAHI,EAAK,GAGT,CAER;EACE,CAAA;CAIV,IAAI,IAAmC;AAKvC,QAJI,KAAY,SACd,IAAe,kBAAC,OAAD;EAAK,WAAW;YAAkB;EAAe,CAAA,GAIhE,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAkB,EAAU;YAA/C;GACE,kBAAC,OAAD;IAAK,WAAW;cAAhB,CACE,kBAAC,OAAD;KAAK,WAAW;eAAhB,CACE,kBAAC,OAAD;MAAK,WAAW;gBAAhB,CACE,kBAAC,OAAD;OAAK,WAAW;iBAAe;OAAY,CAAA,EAC1C,EACG;SACL,EACG;QACL,EACG;;GAEL;GACA;GACG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/organisms/entity_header/entityHeader.css.ts
|
|
4
|
+
var e = "bvz2760 txvbqb9io txvbqbai6 txvbqbaof", t = "bvz2761 txvbqb9io txvbqbcf txvbqbdoo txvbqbaoo txvbqbajx", n = "bvz2762 txvbqb9io txvbqbai6 txvbqbao6 txvbqbk4x txvbqb9mx", r = "bvz2763 txvbqb9io txvbqbco txvbqbao6 txvbqbajx txvbqbk4x", i = "bvz2764 txvbqba6 txvbqbf7f txvbqbamo txvbqbv8p", a = "bvz2765 txvbqb9jf txvbqbajx txvbqbb9o txvbqbco", o = "bvz2766 txvbqb96 txvbqbv8r", s = "bvz2767 txvbqb9io txvbqbajx txvbqbao6", c = "bvz2768 txvbqb9ix txvbqbao6 txvbqbbz6 txvbqbp56", l = "bvz2769 txvbqb9io txvbqbai6 txvbqbanx txvbqbla6 txvbqb1ro txvbqbv2v txvbqb1co txvbqb1qf txvbqbwo", u = "bvz276a txvbqb8o txvbqbv8t txvbqb66 txvbqbeef txvbqbamo", d = "bvz276b txvbqb96 txvbqbv8p txvbqbamf";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { a as badgeRow, e as container, c as meta, l as metaItem, u as metaLabel, s as metaSlot, d as metaValue, o as subtitle, i as title, n as titleBlock, r as titleRow, t as topRow };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=entityHeader.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entityHeader.css.js","names":[],"sources":["../../../../../src/backoffice/organisms/entity_header/entityHeader.css.ts"],"sourcesContent":["import { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 3,\n});\n\nexport const topRow = sprinkles({\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n gap: 4,\n flexWrap: 'wrap',\n});\n\nexport const titleBlock = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n minWidth: 0,\n flex: 1,\n});\n\nexport const titleRow = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n flexWrap: 'wrap',\n minWidth: 0,\n});\n\nexport const title = sprinkles({\n fontSize: '3xl',\n lineHeight: '3xl',\n fontWeight: 'semibold',\n color: 'text',\n});\n\nexport const badgeRow = sprinkles({\n display: 'inline-flex',\n flexWrap: 'wrap',\n gap: 1.5,\n alignItems: 'center',\n});\n\nexport const subtitle = sprinkles({\n fontSize: 'base',\n color: 'textSecondary',\n});\n\nexport const metaSlot = sprinkles({\n display: 'flex',\n flexWrap: 'wrap',\n gap: 2,\n});\n\nexport const meta = sprinkles({\n display: 'grid',\n gap: 2,\n gridTemplateColumns: 'autoFitMinmax12_5rem',\n paddingTop: 1,\n});\n\nexport const metaItem = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 1,\n padding: 3,\n borderRadius: 'lg',\n backgroundColor: 'surfaceMuted',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'borderSubtle',\n});\n\nexport const metaLabel = sprinkles({\n fontSize: 'xs',\n color: 'textMuted',\n textTransform: 'uppercase',\n letterSpacing: 'caps',\n fontWeight: 'semibold',\n});\n\nexport const metaValue = sprinkles({\n fontSize: 'base',\n color: 'text',\n fontWeight: 'medium',\n});\n"],"mappings":""}
|