@alepha/ui 0.26.0 → 0.27.0
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 +86 -12
- package/dist/components/account/account-connections.js +5 -5
- package/dist/components/account/account-connections.js.map +1 -1
- package/dist/components/account/account-delete-dialog.js +4 -4
- package/dist/components/account/account-header.d.ts.map +1 -1
- package/dist/components/account/account-header.js +3 -1
- package/dist/components/account/account-header.js.map +1 -1
- package/dist/components/account/account-keys.js +7 -7
- package/dist/components/account/account-keys.js.map +1 -1
- package/dist/components/account/account-layout.d.ts.map +1 -1
- package/dist/components/account/account-layout.js +7 -4
- package/dist/components/account/account-layout.js.map +1 -1
- package/dist/components/account/account-password-dialog.js +3 -3
- package/dist/components/account/account-profile.js +8 -8
- package/dist/components/account/account-profile.js.map +1 -1
- package/dist/components/account/account-router-options.d.ts.map +1 -1
- package/dist/components/account/account-router-options.js.map +1 -1
- package/dist/components/account/account-router-page.d.ts.map +1 -1
- package/dist/components/account/account-router-page.js.map +1 -1
- package/dist/components/account/account-router.d.ts +3 -2
- package/dist/components/account/account-router.d.ts.map +1 -1
- package/dist/components/account/account-router.js +4 -3
- package/dist/components/account/account-router.js.map +1 -1
- package/dist/components/account/account-security.d.ts.map +1 -1
- package/dist/components/account/account-security.js +6 -6
- package/dist/components/account/account-security.js.map +1 -1
- package/dist/components/account/account-sessions.d.ts.map +1 -1
- package/dist/components/account/account-sessions.js +19 -6
- package/dist/components/account/account-sessions.js.map +1 -1
- package/dist/components/admin/admin-analytics-query-panel.d.ts +1 -1
- package/dist/components/admin/admin-analytics-query-panel.d.ts.map +1 -1
- package/dist/components/admin/admin-analytics-query-panel.js +5 -5
- package/dist/components/admin/admin-analytics-query-panel.js.map +1 -1
- package/dist/components/admin/admin-analytics-results.d.ts +1 -1
- package/dist/components/admin/admin-analytics-results.d.ts.map +1 -1
- package/dist/components/admin/admin-analytics-results.js +2 -2
- package/dist/components/admin/admin-analytics-results.js.map +1 -1
- package/dist/components/admin/admin-analytics.d.ts +1 -1
- package/dist/components/admin/admin-analytics.d.ts.map +1 -1
- package/dist/components/admin/admin-analytics.js +3 -3
- package/dist/components/admin/admin-analytics.js.map +1 -1
- package/dist/components/admin/admin-audits.d.ts +1 -1
- package/dist/components/admin/admin-audits.d.ts.map +1 -1
- package/dist/components/admin/admin-audits.js +4 -4
- package/dist/components/admin/admin-audits.js.map +1 -1
- package/dist/components/admin/admin-dashboard-card.d.ts +42 -0
- package/dist/components/admin/admin-dashboard-card.d.ts.map +1 -0
- package/dist/components/admin/admin-dashboard-card.js +0 -0
- package/dist/components/admin/admin-dashboard-count-card.d.ts +34 -0
- package/dist/components/admin/admin-dashboard-count-card.d.ts.map +1 -0
- package/dist/components/admin/admin-dashboard-count-card.js +42 -0
- package/dist/components/admin/admin-dashboard-count-card.js.map +1 -0
- package/dist/components/admin/admin-dashboard.d.ts +20 -0
- package/dist/components/admin/admin-dashboard.d.ts.map +1 -0
- package/dist/components/admin/admin-dashboard.js +32 -0
- package/dist/components/admin/admin-dashboard.js.map +1 -0
- package/dist/components/admin/admin-files.d.ts +1 -1
- package/dist/components/admin/admin-files.d.ts.map +1 -1
- package/dist/components/admin/admin-files.js +3 -3
- package/dist/components/admin/admin-files.js.map +1 -1
- package/dist/components/admin/admin-jobs-executions-panel.d.ts +2 -2
- package/dist/components/admin/admin-jobs-executions-panel.d.ts.map +1 -1
- package/dist/components/admin/admin-jobs-executions-panel.js +16 -31
- package/dist/components/admin/admin-jobs-executions-panel.js.map +1 -1
- package/dist/components/admin/admin-jobs-status-badge.d.ts +2 -2
- package/dist/components/admin/admin-jobs-status-badge.d.ts.map +1 -1
- package/dist/components/admin/admin-jobs-status-badge.js +2 -2
- package/dist/components/admin/admin-jobs-status-badge.js.map +1 -1
- package/dist/components/admin/admin-jobs.d.ts +1 -1
- package/dist/components/admin/admin-jobs.d.ts.map +1 -1
- package/dist/components/admin/admin-jobs.js +5 -5
- package/dist/components/admin/admin-jobs.js.map +1 -1
- package/dist/components/admin/admin-keys-token-dialog.js +3 -3
- package/dist/components/admin/admin-keys-token-dialog.js.map +1 -1
- package/dist/components/admin/admin-keys.d.ts +1 -1
- package/dist/components/admin/admin-keys.d.ts.map +1 -1
- package/dist/components/admin/admin-keys.js +4 -4
- package/dist/components/admin/admin-keys.js.map +1 -1
- package/dist/components/admin/admin-layout.d.ts.map +1 -1
- package/dist/components/admin/admin-layout.js +1 -3
- package/dist/components/admin/admin-layout.js.map +1 -1
- package/dist/components/admin/admin-notifications.d.ts +1 -1
- package/dist/components/admin/admin-notifications.d.ts.map +1 -1
- package/dist/components/admin/admin-notifications.js +3 -3
- package/dist/components/admin/admin-notifications.js.map +1 -1
- package/dist/components/admin/admin-parameters.d.ts +1 -1
- package/dist/components/admin/admin-parameters.d.ts.map +1 -1
- package/dist/components/admin/admin-parameters.js +10 -10
- package/dist/components/admin/admin-parameters.js.map +1 -1
- package/dist/components/admin/admin-payments.d.ts +1 -1
- package/dist/components/admin/admin-payments.d.ts.map +1 -1
- package/dist/components/admin/admin-payments.js +3 -3
- package/dist/components/admin/admin-payments.js.map +1 -1
- package/dist/components/admin/admin-router-options.d.ts +13 -10
- package/dist/components/admin/admin-router-options.d.ts.map +1 -1
- package/dist/components/admin/admin-router-options.js.map +1 -1
- package/dist/components/admin/admin-router-page.d.ts +7 -5
- package/dist/components/admin/admin-router-page.d.ts.map +1 -1
- package/dist/components/admin/admin-router-page.js +7 -5
- package/dist/components/admin/admin-router-page.js.map +1 -1
- package/dist/components/admin/admin-router.d.ts +72 -27
- package/dist/components/admin/admin-router.d.ts.map +1 -1
- package/dist/components/admin/admin-router.js +103 -40
- package/dist/components/admin/admin-router.js.map +1 -1
- package/dist/components/admin/admin-sessions.d.ts +1 -1
- package/dist/components/admin/admin-sessions.d.ts.map +1 -1
- package/dist/components/admin/admin-sessions.js +12 -4
- package/dist/components/admin/admin-sessions.js.map +1 -1
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts +2 -2
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-audits-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts +4 -3
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-identity-aside.js +13 -69
- package/dist/components/admin/admin-user-detail-identity-aside.js.map +1 -1
- package/dist/components/admin/admin-user-detail-overview-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-overview-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail-password-dialog.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-password-dialog.js.map +1 -1
- package/dist/components/admin/admin-user-detail-profile-policy.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-profile-policy.js.map +1 -1
- package/dist/components/admin/admin-user-detail-security-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-security-tab.js +2 -2
- package/dist/components/admin/admin-user-detail-security-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts +2 -2
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail-sessions-tab.js.map +1 -1
- package/dist/components/admin/admin-user-detail.d.ts.map +1 -1
- package/dist/components/admin/admin-user-detail.js +68 -111
- package/dist/components/admin/admin-user-detail.js.map +1 -1
- package/dist/components/admin/admin-users-roles-picker.d.ts +6 -1
- package/dist/components/admin/admin-users-roles-picker.d.ts.map +1 -1
- package/dist/components/admin/admin-users-roles-picker.js +11 -8
- package/dist/components/admin/admin-users-roles-picker.js.map +1 -1
- package/dist/components/admin/admin-users.d.ts.map +1 -1
- package/dist/components/admin/admin-users.js +9 -12
- package/dist/components/admin/admin-users.js.map +1 -1
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts +2 -2
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows-execution-sheet.js +10 -10
- package/dist/components/admin/admin-workflows-execution-sheet.js.map +1 -1
- package/dist/components/admin/admin-workflows-executions-panel.d.ts +2 -2
- package/dist/components/admin/admin-workflows-executions-panel.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows-executions-panel.js +20 -44
- package/dist/components/admin/admin-workflows-executions-panel.js.map +1 -1
- package/dist/components/admin/admin-workflows-status-badge.d.ts +2 -2
- package/dist/components/admin/admin-workflows-status-badge.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows-status-badge.js +2 -2
- package/dist/components/admin/admin-workflows-status-badge.js.map +1 -1
- package/dist/components/admin/admin-workflows.d.ts +1 -1
- package/dist/components/admin/admin-workflows.d.ts.map +1 -1
- package/dist/components/admin/admin-workflows.js +5 -5
- package/dist/components/admin/admin-workflows.js.map +1 -1
- package/dist/components/admin/diff-lines.js +1 -1
- package/dist/components/admin/diff-lines.js.map +1 -1
- package/dist/components/admin/parameter-diff-dialog.d.ts.map +1 -1
- package/dist/components/admin/parameter-diff-dialog.js +1 -1
- package/dist/components/admin/parameter-diff-dialog.js.map +1 -1
- package/dist/components/admin/parameter-history-item.d.ts.map +1 -1
- package/dist/components/admin/parameter-history-item.js +4 -4
- package/dist/components/admin/parameter-history-item.js.map +1 -1
- package/dist/components/admin/parameter-json-dialog.js +1 -1
- package/dist/components/admin/parameter-save-dialog.js +2 -2
- package/dist/components/admin/use-confirmed-action.js +1 -1
- package/dist/components/alepha-table/alepha-table.d.ts +103 -8
- package/dist/components/alepha-table/alepha-table.d.ts.map +1 -1
- package/dist/components/alepha-table/alepha-table.js +128 -26
- package/dist/components/alepha-table/alepha-table.js.map +1 -1
- package/dist/components/alepha-table/paginate-local.d.ts +43 -0
- package/dist/components/alepha-table/paginate-local.d.ts.map +1 -0
- package/dist/components/alepha-table/paginate-local.js +84 -0
- package/dist/components/alepha-table/paginate-local.js.map +1 -0
- package/dist/components/app-actions/app-actions.js +1 -1
- package/dist/components/app-shell/app-shell.d.ts +10 -1
- package/dist/components/app-shell/app-shell.d.ts.map +1 -1
- package/dist/components/app-shell/app-shell.js +27 -20
- package/dist/components/app-shell/app-shell.js.map +1 -1
- package/dist/components/auth/auth-login.d.ts +1 -1
- package/dist/components/auth/auth-login.d.ts.map +1 -1
- package/dist/components/auth/auth-login.js +7 -18
- package/dist/components/auth/auth-login.js.map +1 -1
- package/dist/components/auth/auth-register.d.ts +1 -1
- package/dist/components/auth/auth-register.d.ts.map +1 -1
- package/dist/components/auth/auth-register.js +20 -21
- package/dist/components/auth/auth-register.js.map +1 -1
- package/dist/components/auth/auth-reset-password.d.ts +1 -1
- package/dist/components/auth/auth-reset-password.d.ts.map +1 -1
- package/dist/components/auth/auth-reset-password.js +16 -13
- package/dist/components/auth/auth-reset-password.js.map +1 -1
- package/dist/components/auth/auth-router.d.ts +3 -3
- package/dist/components/auth/auth-router.d.ts.map +1 -1
- package/dist/components/auth/auth-router.js +3 -3
- package/dist/components/auth/auth-router.js.map +1 -1
- package/dist/components/auth/auth-verify-email.d.ts +1 -1
- package/dist/components/auth/auth-verify-email.d.ts.map +1 -1
- package/dist/components/auth/auth-verify-email.js +8 -8
- package/dist/components/auth/auth-verify-email.js.map +1 -1
- package/dist/components/auth/safe-redirect.d.ts +9 -0
- package/dist/components/auth/safe-redirect.d.ts.map +1 -0
- package/dist/components/auth/safe-redirect.js +19 -0
- package/dist/components/auth/safe-redirect.js.map +1 -0
- package/dist/components/auto-form/auto-form.d.ts.map +1 -1
- package/dist/components/auto-form/auto-form.js +32 -32
- package/dist/components/auto-form/auto-form.js.map +1 -1
- package/dist/components/brand-icon/brand-icon.d.ts +1 -1
- package/dist/components/brand-icon/brand-icon.d.ts.map +1 -1
- package/dist/components/brand-icon/brand-icon.js +2 -2
- package/dist/components/brand-icon/brand-icon.js.map +1 -1
- package/dist/components/button-dark/button-dark.d.ts +1 -1
- package/dist/components/button-dark/button-dark.d.ts.map +1 -1
- package/dist/components/button-dark/button-dark.js +2 -2
- package/dist/components/button-dark/button-dark.js.map +1 -1
- package/dist/components/button-language/button-language.d.ts +1 -1
- package/dist/components/button-language/button-language.d.ts.map +1 -1
- package/dist/components/button-language/button-language.js +2 -2
- package/dist/components/button-language/button-language.js.map +1 -1
- package/dist/components/button-theme/button-theme.d.ts +1 -1
- package/dist/components/button-theme/button-theme.d.ts.map +1 -1
- package/dist/components/button-theme/button-theme.js +3 -3
- package/dist/components/button-theme/button-theme.js.map +1 -1
- package/dist/components/button-user/button-user.d.ts +2 -20
- package/dist/components/button-user/button-user.d.ts.map +1 -1
- package/dist/components/button-user/button-user.js +3 -3
- package/dist/components/button-user/button-user.js.map +1 -1
- package/dist/components/captcha/turnstile-widget.d.ts +2 -2
- package/dist/components/captcha/turnstile-widget.d.ts.map +1 -1
- package/dist/components/captcha/turnstile-widget.js +5 -4
- package/dist/components/captcha/turnstile-widget.js.map +1 -1
- package/dist/components/control/control.d.ts +1 -1
- package/dist/components/control/control.d.ts.map +1 -1
- package/dist/components/control/control.js +8 -11
- package/dist/components/control/control.js.map +1 -1
- package/dist/components/control-array/control-array.d.ts +1 -1
- package/dist/components/control-array/control-array.d.ts.map +1 -1
- package/dist/components/control-array/control-array.js +23 -16
- package/dist/components/control-array/control-array.js.map +1 -1
- package/dist/components/control-base/field-i18n.d.ts +5 -3
- package/dist/components/control-base/field-i18n.d.ts.map +1 -1
- package/dist/components/control-base/field-i18n.js +4 -2
- package/dist/components/control-base/field-i18n.js.map +1 -1
- package/dist/components/control-base/form-field.d.ts +7 -7
- package/dist/components/control-base/form-field.d.ts.map +1 -1
- package/dist/components/control-base/form-field.js +10 -10
- package/dist/components/control-base/form-field.js.map +1 -1
- package/dist/components/control-base/icon-hint.d.ts +1 -1
- package/dist/components/control-base/icon-hint.d.ts.map +1 -1
- package/dist/components/control-base/icon-hint.js.map +1 -1
- package/dist/components/control-date/control-date.d.ts +1 -1
- package/dist/components/control-date/control-date.d.ts.map +1 -1
- package/dist/components/control-date/control-date.js +23 -7
- package/dist/components/control-date/control-date.js.map +1 -1
- package/dist/components/control-number/control-number.d.ts +2 -2
- package/dist/components/control-number/control-number.d.ts.map +1 -1
- package/dist/components/control-number/control-number.js +3 -3
- package/dist/components/control-number/control-number.js.map +1 -1
- package/dist/components/control-object/control-object.d.ts +4 -2
- package/dist/components/control-object/control-object.d.ts.map +1 -1
- package/dist/components/control-object/control-object.js +8 -8
- package/dist/components/control-object/control-object.js.map +1 -1
- package/dist/components/control-password/control-password.js +2 -3
- package/dist/components/control-password/control-password.js.map +1 -1
- package/dist/components/control-select/control-select.d.ts +2 -2
- package/dist/components/control-select/control-select.d.ts.map +1 -1
- package/dist/components/control-select/control-select.js +17 -17
- package/dist/components/control-select/control-select.js.map +1 -1
- package/dist/components/control-upload/control-upload.d.ts +1 -1
- package/dist/components/control-upload/control-upload.d.ts.map +1 -1
- package/dist/components/control-upload/control-upload.js +11 -11
- package/dist/components/control-upload/control-upload.js.map +1 -1
- package/dist/components/detail/detail-aside.d.ts +58 -0
- package/dist/components/detail/detail-aside.d.ts.map +1 -0
- package/dist/components/detail/detail-aside.js +95 -0
- package/dist/components/detail/detail-aside.js.map +1 -0
- package/dist/components/detail/detail-layout.d.ts +90 -0
- package/dist/components/detail/detail-layout.d.ts.map +1 -0
- package/dist/components/detail/detail-layout.js +102 -0
- package/dist/components/detail/detail-layout.js.map +1 -0
- package/dist/components/detail/use-detail-tab.d.ts +15 -0
- package/dist/components/detail/use-detail-tab.d.ts.map +1 -0
- package/dist/components/detail/use-detail-tab.js +37 -0
- package/dist/components/detail/use-detail-tab.js.map +1 -0
- package/dist/components/file-image/file-image.d.ts.map +1 -1
- package/dist/components/file-image/file-image.js.map +1 -1
- package/dist/components/language-toggle/language-toggle.d.ts +1 -1
- package/dist/components/language-toggle/language-toggle.d.ts.map +1 -1
- package/dist/components/language-toggle/language-toggle.js +2 -2
- package/dist/components/language-toggle/language-toggle.js.map +1 -1
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.d.ts +28 -0
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.js +25 -0
- package/dist/components/markdown-view/diagram/DiagramErrorBoundary.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts +44 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.js +98 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagram.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.d.ts +14 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js +45 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.d.ts +19 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js +69 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts +23 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.js +34 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.js.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.d.ts +17 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js +63 -0
- package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js.map +1 -0
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts +30 -0
- package/dist/components/markdown-view/diagram/MermaidFence.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/MermaidFence.js +30 -0
- package/dist/components/markdown-view/diagram/MermaidFence.js.map +1 -0
- package/dist/components/markdown-view/diagram/flowchartParser.d.ts +18 -0
- package/dist/components/markdown-view/diagram/flowchartParser.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/flowchartParser.js +370 -0
- package/dist/components/markdown-view/diagram/flowchartParser.js.map +1 -0
- package/dist/components/markdown-view/diagram/graphModel.d.ts +67 -0
- package/dist/components/markdown-view/diagram/graphModel.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/graphModel.js +0 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.d.ts +109 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.js +185 -0
- package/dist/components/markdown-view/diagram/layoutFlowchart.js.map +1 -0
- package/dist/components/markdown-view/diagram/textMetrics.d.ts +63 -0
- package/dist/components/markdown-view/diagram/textMetrics.d.ts.map +1 -0
- package/dist/components/markdown-view/diagram/textMetrics.js +228 -0
- package/dist/components/markdown-view/diagram/textMetrics.js.map +1 -0
- package/dist/components/markdown-view/markdown-view.d.ts +32 -0
- package/dist/components/markdown-view/markdown-view.d.ts.map +1 -1
- package/dist/components/markdown-view/markdown-view.js +85 -9
- package/dist/components/markdown-view/markdown-view.js.map +1 -1
- package/dist/components/nav-shell/nav-shell.d.ts +1 -1
- package/dist/components/nav-shell/nav-shell.d.ts.map +1 -1
- package/dist/components/nav-shell/nav-shell.js +1 -1
- package/dist/components/nav-shell/nav-shell.js.map +1 -1
- package/dist/components/nav-shell/spotlight.d.ts.map +1 -1
- package/dist/components/nav-shell/spotlight.js.map +1 -1
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-breadcrumbs.js.map +1 -1
- package/dist/components/nav-shell/use-nav-entries.d.ts +15 -5
- package/dist/components/nav-shell/use-nav-entries.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-entries.js +1 -1
- package/dist/components/nav-shell/use-nav-entries.js.map +1 -1
- package/dist/components/nav-shell/use-nav-tree.d.ts.map +1 -1
- package/dist/components/nav-shell/use-nav-tree.js.map +1 -1
- package/dist/components/settings/settings-card-edge.d.ts +25 -0
- package/dist/components/settings/settings-card-edge.d.ts.map +1 -0
- package/dist/components/settings/settings-card-edge.js +29 -0
- package/dist/components/settings/settings-card-edge.js.map +1 -0
- package/dist/components/settings/settings-danger-section.d.ts.map +1 -1
- package/dist/components/settings/settings-danger-section.js +2 -1
- package/dist/components/settings/settings-danger-section.js.map +1 -1
- package/dist/components/settings/settings-layout.d.ts.map +1 -1
- package/dist/components/settings/settings-layout.js +1 -1
- package/dist/components/settings/settings-layout.js.map +1 -1
- package/dist/components/settings/settings-nav.d.ts.map +1 -1
- package/dist/components/settings/settings-nav.js +3 -3
- package/dist/components/settings/settings-nav.js.map +1 -1
- package/dist/components/settings/settings-row.js +2 -2
- package/dist/components/settings/settings-row.js.map +1 -1
- package/dist/components/settings/settings-section.d.ts.map +1 -1
- package/dist/components/settings/settings-section.js +3 -2
- package/dist/components/settings/settings-section.js.map +1 -1
- package/dist/components/ui/accordion.js +3 -3
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/alert-dialog.js +5 -5
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.js +2 -2
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/avatar.js +5 -5
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.d.ts +13 -2
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +51 -12
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.js +3 -3
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/button-group.js +2 -2
- package/dist/components/ui/button-group.js.map +1 -1
- package/dist/components/ui/button.js +2 -2
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.js +8 -8
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.js +3 -3
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +20 -10
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js +7 -6
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +8 -8
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +6 -6
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.js +8 -8
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.js +4 -4
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.js +4 -4
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.js +9 -9
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/empty.js +2 -2
- package/dist/components/ui/empty.js.map +1 -1
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group.js +3 -3
- package/dist/components/ui/input-group.js.map +1 -1
- package/dist/components/ui/input-otp.js +3 -3
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/item.js +3 -3
- package/dist/components/ui/item.js.map +1 -1
- package/dist/components/ui/kbd.js +1 -1
- package/dist/components/ui/kbd.js.map +1 -1
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.js +9 -9
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/navigation-menu.js +7 -7
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.js +3 -3
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/radio-group.js +2 -2
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/resizable.js +2 -2
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area.js +2 -2
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/segmented.d.ts.map +1 -1
- package/dist/components/ui/segmented.js +1 -1
- package/dist/components/ui/segmented.js.map +1 -1
- package/dist/components/ui/select.js +8 -8
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.js +3 -3
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/sidebar.js +17 -17
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/slider.js +2 -2
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/sonner.js +1 -1
- package/dist/components/ui/switch.js +2 -2
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +5 -5
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.js +2 -2
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +13 -7
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/tooltip.d.ts +10 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +13 -3
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/use-dialog/use-dialog.d.ts +2 -2
- package/dist/components/use-dialog/use-dialog.d.ts.map +1 -1
- package/dist/components/use-dialog/use-dialog.js +10 -6
- package/dist/components/use-dialog/use-dialog.js.map +1 -1
- package/dist/components/use-toast/use-toast.d.ts +9 -3
- package/dist/components/use-toast/use-toast.d.ts.map +1 -1
- package/dist/components/use-toast/use-toast.js +23 -22
- package/dist/components/use-toast/use-toast.js.map +1 -1
- package/dist/hooks/use-mobile.d.ts +10 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/hooks/use-mobile.js +19 -12
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/lib/i18n-fr.d.ts +3 -3
- package/dist/lib/i18n-fr.d.ts.map +1 -1
- package/dist/lib/i18n-fr.js +13 -8
- package/dist/lib/i18n-fr.js.map +1 -1
- package/dist/styles.css +5 -5
- package/package.json +46 -45
- package/src/components/account/__tests__/account-router.spec.ts +4 -2
- package/src/components/account/account-connections.tsx +1 -1
- package/src/components/account/account-header.tsx +6 -1
- package/src/components/account/account-keys.tsx +1 -1
- package/src/components/account/account-layout.tsx +8 -1
- package/src/components/account/account-profile.tsx +3 -3
- package/src/components/account/account-router-options.tsx +1 -0
- package/src/components/account/account-router-page.tsx +1 -0
- package/src/components/account/account-router.tsx +4 -2
- package/src/components/account/account-security.tsx +1 -0
- package/src/components/account/account-sessions.tsx +21 -4
- package/src/components/admin/__tests__/admin-keys-token-dialog.browser.spec.tsx +1 -0
- package/src/components/admin/__tests__/admin-layout.browser.spec.tsx +2 -1
- package/src/components/admin/__tests__/admin-router-page.spec.ts +2 -1
- package/src/components/admin/__tests__/admin-router.spec.ts +57 -1
- package/src/components/admin/__tests__/admin-user-cell.browser.spec.tsx +1 -0
- package/src/components/admin/__tests__/admin-user-detail.spec.ts +1 -0
- package/src/components/admin/admin-analytics-query-panel.tsx +4 -3
- package/src/components/admin/admin-analytics-results.tsx +2 -2
- package/src/components/admin/admin-analytics.tsx +3 -3
- package/src/components/admin/admin-audits.tsx +3 -3
- package/src/components/admin/admin-dashboard-card.tsx +45 -0
- package/src/components/admin/admin-dashboard-count-card.tsx +89 -0
- package/src/components/admin/admin-dashboard.tsx +60 -0
- package/src/components/admin/admin-files.tsx +2 -2
- package/src/components/admin/admin-jobs-executions-panel.tsx +19 -12
- package/src/components/admin/admin-jobs-status-badge.tsx +2 -2
- package/src/components/admin/admin-jobs.tsx +4 -4
- package/src/components/admin/admin-keys-token-dialog.tsx +2 -2
- package/src/components/admin/admin-keys.tsx +2 -2
- package/src/components/admin/admin-layout.tsx +1 -2
- package/src/components/admin/admin-notifications.tsx +2 -2
- package/src/components/admin/admin-parameters.tsx +16 -9
- package/src/components/admin/admin-payments.tsx +2 -2
- package/src/components/admin/admin-router-options.tsx +14 -10
- package/src/components/admin/admin-router-page.tsx +8 -5
- package/src/components/admin/admin-router.tsx +112 -40
- package/src/components/admin/admin-sessions.tsx +13 -2
- package/src/components/admin/admin-user-detail-audits-tab.tsx +5 -2
- package/src/components/admin/admin-user-detail-identity-aside.tsx +16 -93
- package/src/components/admin/admin-user-detail-overview-tab.tsx +1 -0
- package/src/components/admin/admin-user-detail-password-dialog.tsx +1 -0
- package/src/components/admin/admin-user-detail-profile-policy.spec.ts +1 -0
- package/src/components/admin/admin-user-detail-profile-policy.ts +1 -0
- package/src/components/admin/admin-user-detail-security-tab.tsx +1 -0
- package/src/components/admin/admin-user-detail-sessions-tab.tsx +5 -2
- package/src/components/admin/admin-user-detail.tsx +49 -87
- package/src/components/admin/admin-users-roles-picker.tsx +22 -15
- package/src/components/admin/admin-users.tsx +8 -14
- package/src/components/admin/admin-workflows-execution-sheet.tsx +18 -10
- package/src/components/admin/admin-workflows-executions-panel.tsx +24 -17
- package/src/components/admin/admin-workflows-status-badge.tsx +4 -2
- package/src/components/admin/admin-workflows.tsx +6 -4
- package/src/components/admin/diff-lines.spec.ts +1 -0
- package/src/components/admin/diff-lines.ts +1 -1
- package/src/components/admin/parameter-diff-dialog.tsx +3 -2
- package/src/components/admin/parameter-history-item.tsx +6 -5
- package/src/components/alepha-table/__tests__/alepha-table-static.browser.spec.tsx +190 -0
- package/src/components/alepha-table/__tests__/paginate-local.spec.ts +286 -0
- package/src/components/alepha-table/__tests__/use-table-selection.browser.spec.tsx +1 -0
- package/src/components/alepha-table/alepha-table.tsx +362 -79
- package/src/components/alepha-table/paginate-local.ts +174 -0
- package/src/components/app-actions/__tests__/app-actions.browser.spec.tsx +1 -0
- package/src/components/app-shell/app-shell.tsx +42 -19
- package/src/components/auth/__tests__/auth-router.spec.ts +2 -1
- package/src/components/auth/auth-login.tsx +5 -16
- package/src/components/auth/auth-register.tsx +26 -25
- package/src/components/auth/auth-reset-password.tsx +24 -17
- package/src/components/auth/auth-router.tsx +4 -3
- package/src/components/auth/auth-verify-email.tsx +7 -7
- package/src/components/auth/safe-redirect.ts +14 -0
- package/src/components/auto-form/__tests__/auto-form-settings-card.browser.spec.tsx +1 -0
- package/src/components/auto-form/auto-form.tsx +60 -39
- package/src/components/brand-icon/brand-icon.tsx +2 -2
- package/src/components/button-dark/button-dark.tsx +2 -2
- package/src/components/button-language/button-language.tsx +2 -2
- package/src/components/button-theme/button-theme.tsx +2 -2
- package/src/components/button-user/button-user.tsx +4 -4
- package/src/components/captcha/turnstile-widget.tsx +6 -5
- package/src/components/control/control.tsx +6 -6
- package/src/components/control-array/control-array.tsx +28 -15
- package/src/components/control-base/__tests__/form-field-a11y.browser.spec.tsx +1 -0
- package/src/components/control-base/field-i18n.ts +5 -3
- package/src/components/control-base/form-field.tsx +13 -13
- package/src/components/control-base/icon-hint.tsx +1 -1
- package/src/components/control-date/control-date.tsx +29 -6
- package/src/components/control-number/control-number.tsx +3 -3
- package/src/components/control-object/control-object.tsx +11 -8
- package/src/components/control-password/control-password.tsx +2 -2
- package/src/components/control-select/__tests__/control-select-clear-label.browser.spec.tsx +1 -0
- package/src/components/control-select/__tests__/control-select-deselect.browser.spec.tsx +1 -0
- package/src/components/control-select/__tests__/control-select-searchable.browser.spec.tsx +1 -0
- package/src/components/control-select/control-select.tsx +32 -18
- package/src/components/control-upload/control-upload.tsx +16 -10
- package/src/components/detail/__tests__/detail-aside.browser.spec.tsx +135 -0
- package/src/components/detail/__tests__/detail-layout.browser.spec.tsx +151 -0
- package/src/components/detail/detail-aside.tsx +198 -0
- package/src/components/detail/detail-layout.tsx +181 -0
- package/src/components/detail/use-detail-tab.tsx +41 -0
- package/src/components/file-image/file-image.tsx +4 -2
- package/src/components/language-toggle/language-toggle.tsx +2 -2
- package/src/components/markdown-view/__tests__/markdown-view-mermaid.browser.spec.tsx +148 -0
- package/src/components/markdown-view/__tests__/markdown-view-raw-html.browser.spec.tsx +1 -0
- package/src/components/markdown-view/diagram/DiagramErrorBoundary.tsx +42 -0
- package/src/components/markdown-view/diagram/FlowchartDiagram.tsx +136 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramCluster.tsx +59 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramEdge.tsx +95 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramLabel.tsx +58 -0
- package/src/components/markdown-view/diagram/FlowchartDiagramNode.tsx +78 -0
- package/src/components/markdown-view/diagram/MermaidFence.tsx +46 -0
- package/src/components/markdown-view/diagram/__tests__/flowchart-diagram.browser.spec.tsx +210 -0
- package/src/components/markdown-view/diagram/flowchartParser.spec.ts +379 -0
- package/src/components/markdown-view/diagram/flowchartParser.ts +475 -0
- package/src/components/markdown-view/diagram/graphModel.ts +72 -0
- package/src/components/markdown-view/diagram/layoutFlowchart.spec.ts +235 -0
- package/src/components/markdown-view/diagram/layoutFlowchart.ts +324 -0
- package/src/components/markdown-view/diagram/textMetrics.spec.ts +128 -0
- package/src/components/markdown-view/diagram/textMetrics.ts +296 -0
- package/src/components/markdown-view/markdown-view.tsx +128 -9
- package/src/components/nav-shell/__tests__/nav-tree-util.spec.ts +1 -0
- package/src/components/nav-shell/nav-shell.tsx +6 -3
- package/src/components/nav-shell/spotlight.tsx +2 -1
- package/src/components/nav-shell/use-nav-breadcrumbs.ts +1 -0
- package/src/components/nav-shell/use-nav-entries.ts +16 -5
- package/src/components/nav-shell/use-nav-tree.ts +1 -0
- package/src/components/settings/__tests__/settings-nav.browser.spec.tsx +1 -0
- package/src/components/settings/__tests__/settings-section.browser.spec.tsx +1 -0
- package/src/components/settings/settings-card-edge.ts +24 -0
- package/src/components/settings/settings-danger-section.tsx +7 -1
- package/src/components/settings/settings-layout.tsx +16 -1
- package/src/components/settings/settings-nav.tsx +12 -3
- package/src/components/settings/settings-row.tsx +2 -2
- package/src/components/settings/settings-section.tsx +2 -1
- package/src/components/ui/accordion.tsx +3 -3
- package/src/components/ui/alert-dialog.tsx +5 -5
- package/src/components/ui/alert.tsx +2 -2
- package/src/components/ui/avatar.tsx +5 -5
- package/src/components/ui/badge.tsx +48 -2
- package/src/components/ui/breadcrumb.tsx +3 -3
- package/src/components/ui/button-group.tsx +2 -2
- package/src/components/ui/button.tsx +2 -2
- package/src/components/ui/calendar.tsx +8 -8
- package/src/components/ui/card.tsx +3 -3
- package/src/components/ui/carousel.tsx +30 -13
- package/src/components/ui/chart.tsx +18 -6
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +8 -9
- package/src/components/ui/command.tsx +6 -7
- package/src/components/ui/context-menu.tsx +8 -8
- package/src/components/ui/dialog.tsx +4 -4
- package/src/components/ui/drawer.tsx +4 -4
- package/src/components/ui/dropdown-menu.tsx +9 -9
- package/src/components/ui/empty.tsx +2 -2
- package/src/components/ui/hover-card.tsx +1 -1
- package/src/components/ui/input-group.tsx +6 -3
- package/src/components/ui/input-otp.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/item.tsx +3 -3
- package/src/components/ui/kbd.tsx +1 -1
- package/src/components/ui/label.tsx +3 -0
- package/src/components/ui/menubar.tsx +9 -9
- package/src/components/ui/navigation-menu.tsx +7 -7
- package/src/components/ui/pagination.tsx +0 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +3 -3
- package/src/components/ui/radio-group.tsx +2 -2
- package/src/components/ui/resizable.tsx +2 -2
- package/src/components/ui/scroll-area.tsx +2 -2
- package/src/components/ui/segmented.tsx +8 -3
- package/src/components/ui/select.tsx +8 -8
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.tsx +3 -3
- package/src/components/ui/sidebar.tsx +20 -20
- package/src/components/ui/skeleton.tsx +1 -1
- package/src/components/ui/slider.tsx +2 -2
- package/src/components/ui/switch.tsx +2 -2
- package/src/components/ui/table.tsx +10 -5
- package/src/components/ui/tabs.tsx +3 -3
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toggle-group.tsx +9 -4
- package/src/components/ui/toggle.tsx +2 -2
- package/src/components/ui/tooltip.tsx +13 -3
- package/src/components/use-dialog/use-dialog.tsx +19 -6
- package/src/components/use-toast/__tests__/use-toast.browser.spec.tsx +19 -0
- package/src/components/use-toast/use-toast.tsx +38 -26
- package/src/hooks/use-mobile.ts +27 -14
- package/src/lib/__tests__/i18n-fr.spec.ts +5 -1
- package/src/lib/i18n-fr.ts +18 -10
- package/src/styles.css +5 -5
|
@@ -3,10 +3,10 @@ import { NavShell } from "@alepha/ui/components/nav-shell/nav-shell";
|
|
|
3
3
|
import { Spotlight } from "@alepha/ui/components/nav-shell/spotlight";
|
|
4
4
|
import { cn } from "@alepha/ui/lib/utils";
|
|
5
5
|
import { useStore } from "alepha/react";
|
|
6
|
-
import { useRouter } from "alepha/react/router";
|
|
7
6
|
import { ColorScheme } from "alepha/react/ui";
|
|
8
7
|
import { LayoutDashboard, Search } from "lucide-react";
|
|
9
8
|
import { useState } from "react";
|
|
9
|
+
|
|
10
10
|
import { adminRouterOptionsAtom } from "./admin-router-options.tsx";
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -40,7 +40,6 @@ import { adminRouterOptionsAtom } from "./admin-router-options.tsx";
|
|
|
40
40
|
* admin.
|
|
41
41
|
*/
|
|
42
42
|
export const AdminLayout = () => {
|
|
43
|
-
const router = useRouter<any>();
|
|
44
43
|
const [options] = useStore(adminRouterOptionsAtom);
|
|
45
44
|
const [spotlightOpen, setSpotlightOpen] = useState(false);
|
|
46
45
|
|
|
@@ -16,7 +16,7 @@ import { useI18n } from "alepha/react/i18n";
|
|
|
16
16
|
import { Trash2 } from "lucide-react";
|
|
17
17
|
import { useCallback } from "react";
|
|
18
18
|
|
|
19
|
-
export
|
|
19
|
+
export const AdminNotifications = () => {
|
|
20
20
|
const client = useClient<AdminNotificationController>();
|
|
21
21
|
const toast = useToast();
|
|
22
22
|
const { l, tr } = useI18n();
|
|
@@ -125,6 +125,6 @@ export function AdminNotifications() {
|
|
|
125
125
|
/>
|
|
126
126
|
</AdminPage>
|
|
127
127
|
);
|
|
128
|
-
}
|
|
128
|
+
};
|
|
129
129
|
|
|
130
130
|
export default AdminNotifications;
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
Upload,
|
|
33
33
|
} from "lucide-react";
|
|
34
34
|
import { useMemo, useRef, useState } from "react";
|
|
35
|
+
|
|
35
36
|
import { ParameterDiffDialog } from "./parameter-diff-dialog.tsx";
|
|
36
37
|
import { ParameterHistoryItem } from "./parameter-history-item.tsx";
|
|
37
38
|
import { ParameterSaveDialog } from "./parameter-save-dialog.tsx";
|
|
@@ -76,7 +77,7 @@ export interface AdminParametersProps {
|
|
|
76
77
|
fields?: Record<string, Record<string, Partial<Omit<ControlProps, "input">>>>;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
|
-
export
|
|
80
|
+
export const AdminParameters = (props: AdminParametersProps = {}) => {
|
|
80
81
|
const client = useClient<AdminParameterController>();
|
|
81
82
|
const { tr } = useI18n();
|
|
82
83
|
const toast = useToast();
|
|
@@ -266,7 +267,7 @@ export function AdminParameters(props: AdminParametersProps = {}) {
|
|
|
266
267
|
)}
|
|
267
268
|
</div>
|
|
268
269
|
);
|
|
269
|
-
}
|
|
270
|
+
};
|
|
270
271
|
|
|
271
272
|
// ── Pane A: tree ─────────────────────────────────────────────────────
|
|
272
273
|
|
|
@@ -291,7 +292,7 @@ const ParameterTreePane = (props: ParameterTreePaneProps) => {
|
|
|
291
292
|
const { tr } = useI18n();
|
|
292
293
|
return (
|
|
293
294
|
<div className="bg-card flex min-h-0 flex-col gap-2 rounded-l-lg border p-2">
|
|
294
|
-
<div className="text-muted-foreground flex items-center gap-1.5 px-2 py-1 text-xs font-medium
|
|
295
|
+
<div className="text-muted-foreground flex items-center gap-1.5 px-2 py-1 text-xs font-medium tracking-wide uppercase">
|
|
295
296
|
<Settings2 className="size-3.5" />
|
|
296
297
|
{tr("admin.parameters.treeTitle", { default: "Parameters" })}
|
|
297
298
|
</div>
|
|
@@ -451,7 +452,9 @@ const TreeNodeView = (props: TreeNodeViewProps) => {
|
|
|
451
452
|
// ── Pane B: editor ───────────────────────────────────────────────────
|
|
452
453
|
|
|
453
454
|
interface ParameterEditorPaneProps {
|
|
454
|
-
/**
|
|
455
|
+
/**
|
|
456
|
+
* Per-field overrides for this parameter's generated form.
|
|
457
|
+
*/
|
|
455
458
|
fields?: Record<string, Partial<Omit<ControlProps, "input">>>;
|
|
456
459
|
name: string | undefined;
|
|
457
460
|
reloadKey: number;
|
|
@@ -486,7 +489,7 @@ const ParameterEditorPane = (props: ParameterEditorPaneProps) => {
|
|
|
486
489
|
},
|
|
487
490
|
});
|
|
488
491
|
toast.success(
|
|
489
|
-
tr("admin.parameters.
|
|
492
|
+
tr("admin.parameters.factoryResetDone", {
|
|
490
493
|
default: "Parameter reset to defaults",
|
|
491
494
|
}),
|
|
492
495
|
);
|
|
@@ -528,7 +531,7 @@ const ParameterEditorPane = (props: ParameterEditorPaneProps) => {
|
|
|
528
531
|
if (!current) {
|
|
529
532
|
return (
|
|
530
533
|
<div className="bg-card flex min-h-0 flex-1 flex-col border-y">
|
|
531
|
-
<div className="flex items-center gap-3 border-b px-4
|
|
534
|
+
<div className="flex items-center gap-3 border-b px-4 pt-3 pb-3">
|
|
532
535
|
<Skeleton className="size-10 rounded-full" />
|
|
533
536
|
<div className="flex flex-col gap-1.5">
|
|
534
537
|
<Skeleton className="h-4 w-32" />
|
|
@@ -623,9 +626,13 @@ const ParameterEditorPane = (props: ParameterEditorPaneProps) => {
|
|
|
623
626
|
};
|
|
624
627
|
|
|
625
628
|
interface ParameterEditorFormProps {
|
|
626
|
-
/**
|
|
629
|
+
/**
|
|
630
|
+
* Per-field overrides forwarded to AutoForm (domain widgets).
|
|
631
|
+
*/
|
|
627
632
|
fields?: Record<string, Partial<Omit<ControlProps, "input">>>;
|
|
628
|
-
/**
|
|
633
|
+
/**
|
|
634
|
+
* `$parameter({ description })` as declared in code.
|
|
635
|
+
*/
|
|
629
636
|
declaredDescription?: string;
|
|
630
637
|
name: string;
|
|
631
638
|
schema: ZObject;
|
|
@@ -776,7 +783,7 @@ const ParameterHistoryPane = (props: ParameterHistoryPaneProps) => {
|
|
|
776
783
|
|
|
777
784
|
return (
|
|
778
785
|
<div className="bg-card flex min-h-0 flex-col overflow-hidden rounded-r-lg border">
|
|
779
|
-
<div className="text-muted-foreground flex items-center gap-1.5 px-3 py-2 text-xs font-medium
|
|
786
|
+
<div className="text-muted-foreground flex items-center gap-1.5 px-3 py-2 text-xs font-medium tracking-wide uppercase">
|
|
780
787
|
<HistoryIcon className="size-3.5" />
|
|
781
788
|
{tr("admin.parameters.historyTitle", { default: "History" })}
|
|
782
789
|
</div>
|
|
@@ -21,7 +21,7 @@ const formatAmount = (cents: number, currency = "USD") => {
|
|
|
21
21
|
}).format((cents ?? 0) / 100);
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
export
|
|
24
|
+
export const AdminPayments = () => {
|
|
25
25
|
const client = useClient<AdminPaymentController>();
|
|
26
26
|
const { l, tr } = useI18n();
|
|
27
27
|
|
|
@@ -87,6 +87,6 @@ export function AdminPayments() {
|
|
|
87
87
|
/>
|
|
88
88
|
</AdminPage>
|
|
89
89
|
);
|
|
90
|
-
}
|
|
90
|
+
};
|
|
91
91
|
|
|
92
92
|
export default AdminPayments;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { AdminDashboardCard } from "@alepha/ui/components/admin/admin-dashboard-card";
|
|
1
2
|
import type { NavGroup } from "@alepha/ui/components/app-shell/app-shell";
|
|
2
3
|
import { $atom, z } from "alepha";
|
|
3
4
|
import type { ReactNode } from "react";
|
|
5
|
+
|
|
4
6
|
import type { AdminParametersProps } from "./admin-parameters.tsx";
|
|
5
7
|
import type { AdminUserDetailProps } from "./admin-user-detail.tsx";
|
|
6
8
|
import type { AdminUsersProps } from "./admin-users.tsx";
|
|
@@ -83,22 +85,24 @@ export interface AdminRouterOptions {
|
|
|
83
85
|
extraNav?: NavGroup[];
|
|
84
86
|
|
|
85
87
|
/**
|
|
86
|
-
*
|
|
88
|
+
* Cards appended to the dashboard after the built-in ones.
|
|
87
89
|
*
|
|
88
|
-
*
|
|
90
|
+
* Each carries its own `can` gate, so a card is responsible for saying when
|
|
91
|
+
* it should not render — the dashboard never guesses on a card's behalf.
|
|
92
|
+
*
|
|
93
|
+
* There is exactly one built-in card (Users, at `order` 1000), so a card
|
|
94
|
+
* declaring no `order` leads and an application's dashboard is mostly its
|
|
95
|
+
* own — which is the intended shape. The framework ships the contract, not
|
|
96
|
+
* the content.
|
|
89
97
|
*/
|
|
90
|
-
|
|
98
|
+
dashboardCards?: AdminDashboardCard[];
|
|
91
99
|
|
|
92
100
|
/**
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* Defaults to the users list, which is the first entry of the built-in
|
|
96
|
-
* sidebar. An application whose back office is mostly its own pages will
|
|
97
|
-
* want one of those instead.
|
|
101
|
+
* Route name the shell's "leave admin" affordance pushes.
|
|
98
102
|
*
|
|
99
|
-
* @default "
|
|
103
|
+
* @default "home"
|
|
100
104
|
*/
|
|
101
|
-
|
|
105
|
+
homeRouteName?: string;
|
|
102
106
|
|
|
103
107
|
/**
|
|
104
108
|
* Route name the shell's sign-in affordance pushes.
|
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
TPropsDefault,
|
|
6
6
|
TPropsParentDefault,
|
|
7
7
|
} from "alepha/react/router";
|
|
8
|
+
|
|
8
9
|
import { $pageNav, type PageNavOptions } from "../nav-shell/nav-page.tsx";
|
|
9
10
|
import { AdminRouter } from "./admin-router.tsx";
|
|
10
11
|
|
|
@@ -25,17 +26,19 @@ import { AdminRouter } from "./admin-router.tsx";
|
|
|
25
26
|
* `nav`, the same as any other page hung off `AdminRouter.layout`.
|
|
26
27
|
*
|
|
27
28
|
* **Calling this registers `AdminRouter`.** Declaring even one page this way
|
|
28
|
-
* mounts the whole `/admin` shell, including its
|
|
29
|
+
* mounts the whole `/admin` shell, including its thirteen built-in pages (Users,
|
|
29
30
|
* Sessions, Jobs, …) — an admin page without the admin shell around it is
|
|
30
31
|
* not a thing. This is the intended reading, but it is a real side effect:
|
|
31
32
|
* an application that wants `/admin` to carry only its own pages, with none
|
|
32
33
|
* of the built-ins, must build its own layout page instead of reaching for
|
|
33
34
|
* this helper.
|
|
34
35
|
*
|
|
35
|
-
* **
|
|
36
|
-
* built-ins
|
|
37
|
-
*
|
|
38
|
-
*
|
|
36
|
+
* **Stay below `order: 1000`, or declare your own `nav.group`.** The
|
|
37
|
+
* built-ins are parked in a reserved high band — `Identity` (1000-1003) and
|
|
38
|
+
* `System` (1010-1016) — precisely so an application's own pages come first:
|
|
39
|
+
* the conventional `order: 100` sorts above them. `useNavEntries` sorts groups
|
|
40
|
+
* by their smallest member, so only an order of 1000 or more sinks a page in
|
|
41
|
+
* among the built-ins.
|
|
39
42
|
*
|
|
40
43
|
* **Gate with `can: () => this.someApi.someAction.can()`, not with
|
|
41
44
|
* `permission` alone.** A permission named by this page's own `$secure` is
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { AdminDashboardCard } from "@alepha/ui/components/admin/admin-dashboard-card";
|
|
2
|
+
import { AdminDashboardCountCard } from "@alepha/ui/components/admin/admin-dashboard-count-card";
|
|
1
3
|
import { $pageNav } from "@alepha/ui/components/nav-shell/nav-page";
|
|
2
4
|
import { $store, z } from "alepha";
|
|
3
5
|
import type { AdminAnalyticsController } from "alepha/api/analytics";
|
|
@@ -13,7 +15,7 @@ import type {
|
|
|
13
15
|
AdminUserController,
|
|
14
16
|
} from "alepha/api/users";
|
|
15
17
|
import type { AdminWorkflowController } from "alepha/api/workflows";
|
|
16
|
-
import { $page
|
|
18
|
+
import { $page } from "alepha/react/router";
|
|
17
19
|
import { $secure } from "alepha/security";
|
|
18
20
|
import { $client } from "alepha/server/links";
|
|
19
21
|
import {
|
|
@@ -22,6 +24,7 @@ import {
|
|
|
22
24
|
CreditCard,
|
|
23
25
|
Files,
|
|
24
26
|
KeyRound,
|
|
27
|
+
LayoutDashboard,
|
|
25
28
|
ShieldAlert,
|
|
26
29
|
ShieldCheck,
|
|
27
30
|
SlidersHorizontal,
|
|
@@ -30,6 +33,7 @@ import {
|
|
|
30
33
|
Workflow,
|
|
31
34
|
} from "lucide-react";
|
|
32
35
|
import { createElement } from "react";
|
|
36
|
+
|
|
33
37
|
import { adminRouterOptionsAtom } from "./admin-router-options.tsx";
|
|
34
38
|
|
|
35
39
|
/**
|
|
@@ -114,26 +118,28 @@ import { adminRouterOptionsAtom } from "./admin-router-options.tsx";
|
|
|
114
118
|
*
|
|
115
119
|
* ### Group order is a contract
|
|
116
120
|
*
|
|
117
|
-
* The built-in pages
|
|
118
|
-
* (
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
121
|
+
* The built-in pages are parked in a reserved high band: `Identity`
|
|
122
|
+
* (1000-1003) and `System` (1010-1016). Everything below 1000 belongs to the
|
|
123
|
+
* application, so a page declaring its own group at the conventional
|
|
124
|
+
* `order: 100` sorts **above** the built-ins without having to ask — an
|
|
125
|
+
* application's own domain outranks Users and Jobs. `useNavEntries` sorts
|
|
126
|
+
* groups by their smallest member, so only an `order` of 1000 or more sinks a
|
|
127
|
+
* page in among them.
|
|
122
128
|
*
|
|
123
|
-
* ### These
|
|
129
|
+
* ### These thirteen route names are claimed globally
|
|
124
130
|
*
|
|
125
|
-
* `users`, `userDetail`, `sessions`, `keys`, `jobs`,
|
|
126
|
-
* `audits`, `files`, `parameters`, `payments`, `analytics`
|
|
127
|
-
* each carry an
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
+
* `dashboard`, `users`, `userDetail`, `sessions`, `keys`, `jobs`,
|
|
132
|
+
* `notifications`, `audits`, `files`, `parameters`, `payments`, `analytics`
|
|
133
|
+
* and `workflows` each carry an explicit `name:` so a future rename of the
|
|
134
|
+
* field itself (done for readability, without touching the string) never
|
|
135
|
+
* silently changes the public route name — the same reason `AuthRouter`'s
|
|
136
|
+
* pages all carry one too.
|
|
131
137
|
*
|
|
132
138
|
* Route names live in one process-wide namespace, and a duplicate does not
|
|
133
139
|
* throw: `ReactPageProvider.page()` returns the first match. An adopter that
|
|
134
|
-
* registers its own page named `files` (or any of the other
|
|
140
|
+
* registers its own page named `files` (or any of the other twelve) either
|
|
135
141
|
* shadows this one or is shadowed by it, silently, depending on mount order.
|
|
136
|
-
* Treat these
|
|
142
|
+
* Treat these thirteen names as reserved when hanging pages off `layout`.
|
|
137
143
|
*/
|
|
138
144
|
export class AdminRouter {
|
|
139
145
|
protected readonly options = $store(adminRouterOptionsAtom);
|
|
@@ -156,21 +162,87 @@ export class AdminRouter {
|
|
|
156
162
|
*
|
|
157
163
|
* Named `admin` because `NavShell root="admin"` and `Spotlight root="admin"`
|
|
158
164
|
* both resolve the subtree by this name.
|
|
165
|
+
*
|
|
166
|
+
* No index redirect: {@link dashboard} sits at `path: "/"`, so a bare
|
|
167
|
+
* `/admin` resolves to it directly — the same arrangement `AccountRouter`
|
|
168
|
+
* uses for `/account`. This used to throw a `Redirection` to an
|
|
169
|
+
* `indexPath` option because the shell had no index child and something had
|
|
170
|
+
* to choose a first page; the dashboard is that page, so both the hop and
|
|
171
|
+
* the option are gone. An application that wants different content at
|
|
172
|
+
* `/admin` contributes `dashboardCards` rather than redirecting away from
|
|
173
|
+
* it.
|
|
159
174
|
*/
|
|
160
175
|
layout = $page({
|
|
161
176
|
name: "admin",
|
|
162
177
|
path: "/admin",
|
|
163
178
|
use: [$secure({ permissions: ["admin:ui"] })],
|
|
164
179
|
nav: { label: "Admin" },
|
|
165
|
-
loader: async ({ url }) => {
|
|
166
|
-
if (url.pathname === "/admin" || url.pathname === "/admin/") {
|
|
167
|
-
throw new Redirection(this.options.indexPath ?? "/admin/users");
|
|
168
|
-
}
|
|
169
|
-
return {};
|
|
170
|
-
},
|
|
171
180
|
lazy: () => import("./admin-layout.tsx"),
|
|
172
181
|
});
|
|
173
182
|
|
|
183
|
+
/**
|
|
184
|
+
* The landing page: `/admin` itself, and the only ungrouped entry.
|
|
185
|
+
*
|
|
186
|
+
* No `nav.group` plus `order: 0` puts it above every group without a
|
|
187
|
+
* special case: `useNavEntries` keys groups by `nav.group ?? ""` and sorts
|
|
188
|
+
* them by their smallest member, so the ungrouped bucket leads at 0 while
|
|
189
|
+
* the built-ins sit at 1000+ and an application's own group conventionally
|
|
190
|
+
* at 100.
|
|
191
|
+
*
|
|
192
|
+
* It declares no `permission` and no `can`. Reaching it already means
|
|
193
|
+
* passing the layout's `admin:ui`, and it renders only the cards that pass
|
|
194
|
+
* their own gate — so an administrator with nothing to see gets the empty
|
|
195
|
+
* state rather than a locked door.
|
|
196
|
+
*/
|
|
197
|
+
dashboard = $pageNav({
|
|
198
|
+
parent: this.layout,
|
|
199
|
+
path: "/",
|
|
200
|
+
name: "dashboard",
|
|
201
|
+
head: { title: "Dashboard" },
|
|
202
|
+
nav: {
|
|
203
|
+
label: "Dashboard",
|
|
204
|
+
icon: createElement(LayoutDashboard),
|
|
205
|
+
order: 0,
|
|
206
|
+
},
|
|
207
|
+
lazy: () => import("./admin-dashboard.tsx"),
|
|
208
|
+
props: () => ({ cards: this.dashboardCards() }),
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Exactly one built-in card, then the application's.
|
|
213
|
+
*
|
|
214
|
+
* One is deliberate. The framework's job here is the contract, not the
|
|
215
|
+
* content: `users` exists to show what a card looks like — gated on an
|
|
216
|
+
* action so it disappears with its module, parked in the reserved 1000
|
|
217
|
+
* band so an application's own cards lead — and nothing more. A dashboard
|
|
218
|
+
* of framework tiles would decide what every admin's landing page says,
|
|
219
|
+
* which is the application's call, and it would be the wrong call for most
|
|
220
|
+
* of them: Sessions and Jobs are plumbing, not headlines.
|
|
221
|
+
*
|
|
222
|
+
* An application says what matters by contributing
|
|
223
|
+
* `AdminRouterOptions.dashboardCards`; see `apps/examples/shop`, which adds
|
|
224
|
+
* its catalogue and orders and so leads with them.
|
|
225
|
+
*/
|
|
226
|
+
protected dashboardCards(): AdminDashboardCard[] {
|
|
227
|
+
return [
|
|
228
|
+
{
|
|
229
|
+
id: "users",
|
|
230
|
+
order: 1000,
|
|
231
|
+
can: () => this.userApi.findUsers.can(),
|
|
232
|
+
render: () =>
|
|
233
|
+
createElement(AdminDashboardCountCard, {
|
|
234
|
+
label: "Users",
|
|
235
|
+
href: "/admin/users",
|
|
236
|
+
icon: createElement(UsersIcon, { className: "size-4" }),
|
|
237
|
+
load: async () =>
|
|
238
|
+
(await this.userApi.findUsers({ query: { size: 1 } })).page
|
|
239
|
+
.totalElements ?? 0,
|
|
240
|
+
}),
|
|
241
|
+
},
|
|
242
|
+
...(this.options.dashboardCards ?? []),
|
|
243
|
+
];
|
|
244
|
+
}
|
|
245
|
+
|
|
174
246
|
users = $pageNav({
|
|
175
247
|
parent: this.layout,
|
|
176
248
|
path: "/users",
|
|
@@ -182,7 +254,7 @@ export class AdminRouter {
|
|
|
182
254
|
label: "Users",
|
|
183
255
|
icon: createElement(UsersIcon),
|
|
184
256
|
group: "Identity",
|
|
185
|
-
order:
|
|
257
|
+
order: 1000,
|
|
186
258
|
},
|
|
187
259
|
lazy: () => import("./admin-users.tsx"),
|
|
188
260
|
props: () => this.options.pages?.users ?? {},
|
|
@@ -219,7 +291,7 @@ export class AdminRouter {
|
|
|
219
291
|
label: "Sessions",
|
|
220
292
|
icon: createElement(ShieldCheck),
|
|
221
293
|
group: "Identity",
|
|
222
|
-
order:
|
|
294
|
+
order: 1001,
|
|
223
295
|
},
|
|
224
296
|
lazy: () => import("./admin-sessions.tsx"),
|
|
225
297
|
});
|
|
@@ -235,7 +307,7 @@ export class AdminRouter {
|
|
|
235
307
|
label: "API keys",
|
|
236
308
|
icon: createElement(KeyRound),
|
|
237
309
|
group: "Identity",
|
|
238
|
-
order:
|
|
310
|
+
order: 1003,
|
|
239
311
|
keywords: ["tokens", "credentials"],
|
|
240
312
|
},
|
|
241
313
|
lazy: () => import("./admin-keys.tsx"),
|
|
@@ -251,8 +323,8 @@ export class AdminRouter {
|
|
|
251
323
|
nav: {
|
|
252
324
|
label: "Jobs",
|
|
253
325
|
icon: createElement(Timer),
|
|
254
|
-
group: "
|
|
255
|
-
order:
|
|
326
|
+
group: "System",
|
|
327
|
+
order: 1010,
|
|
256
328
|
},
|
|
257
329
|
lazy: () => import("./admin-jobs.tsx"),
|
|
258
330
|
});
|
|
@@ -267,8 +339,8 @@ export class AdminRouter {
|
|
|
267
339
|
nav: {
|
|
268
340
|
label: "Notifications",
|
|
269
341
|
icon: createElement(Bell),
|
|
270
|
-
group: "
|
|
271
|
-
order:
|
|
342
|
+
group: "System",
|
|
343
|
+
order: 1011,
|
|
272
344
|
},
|
|
273
345
|
lazy: () => import("./admin-notifications.tsx"),
|
|
274
346
|
});
|
|
@@ -283,8 +355,8 @@ export class AdminRouter {
|
|
|
283
355
|
nav: {
|
|
284
356
|
label: "Audit log",
|
|
285
357
|
icon: createElement(ShieldAlert),
|
|
286
|
-
group: "
|
|
287
|
-
order:
|
|
358
|
+
group: "Identity",
|
|
359
|
+
order: 1002,
|
|
288
360
|
},
|
|
289
361
|
lazy: () => import("./admin-audits.tsx"),
|
|
290
362
|
});
|
|
@@ -299,8 +371,8 @@ export class AdminRouter {
|
|
|
299
371
|
nav: {
|
|
300
372
|
label: "Files",
|
|
301
373
|
icon: createElement(Files),
|
|
302
|
-
group: "
|
|
303
|
-
order:
|
|
374
|
+
group: "System",
|
|
375
|
+
order: 1012,
|
|
304
376
|
},
|
|
305
377
|
lazy: () => import("./admin-files.tsx"),
|
|
306
378
|
});
|
|
@@ -315,8 +387,8 @@ export class AdminRouter {
|
|
|
315
387
|
nav: {
|
|
316
388
|
label: "Parameters",
|
|
317
389
|
icon: createElement(SlidersHorizontal),
|
|
318
|
-
group: "
|
|
319
|
-
order:
|
|
390
|
+
group: "System",
|
|
391
|
+
order: 1015,
|
|
320
392
|
keywords: ["settings", "config", "configuration"],
|
|
321
393
|
},
|
|
322
394
|
lazy: () => import("./admin-parameters.tsx"),
|
|
@@ -338,8 +410,8 @@ export class AdminRouter {
|
|
|
338
410
|
nav: {
|
|
339
411
|
label: "Payments",
|
|
340
412
|
icon: createElement(CreditCard),
|
|
341
|
-
group: "
|
|
342
|
-
order:
|
|
413
|
+
group: "System",
|
|
414
|
+
order: 1013,
|
|
343
415
|
},
|
|
344
416
|
lazy: () => import("./admin-payments.tsx"),
|
|
345
417
|
});
|
|
@@ -354,8 +426,8 @@ export class AdminRouter {
|
|
|
354
426
|
nav: {
|
|
355
427
|
label: "Analytics",
|
|
356
428
|
icon: createElement(ChartLine),
|
|
357
|
-
group: "
|
|
358
|
-
order:
|
|
429
|
+
group: "System",
|
|
430
|
+
order: 1016,
|
|
359
431
|
},
|
|
360
432
|
lazy: () => import("./admin-analytics.tsx"),
|
|
361
433
|
});
|
|
@@ -370,8 +442,8 @@ export class AdminRouter {
|
|
|
370
442
|
nav: {
|
|
371
443
|
label: "Workflows",
|
|
372
444
|
icon: createElement(Workflow),
|
|
373
|
-
group: "
|
|
374
|
-
order:
|
|
445
|
+
group: "System",
|
|
446
|
+
order: 1014,
|
|
375
447
|
keywords: ["saga", "steps", "executions"],
|
|
376
448
|
},
|
|
377
449
|
lazy: () => import("./admin-workflows.tsx"),
|
|
@@ -14,7 +14,7 @@ import { useI18n } from "alepha/react/i18n";
|
|
|
14
14
|
import { LogOut } from "lucide-react";
|
|
15
15
|
import { useCallback } from "react";
|
|
16
16
|
|
|
17
|
-
export
|
|
17
|
+
export const AdminSessions = () => {
|
|
18
18
|
const client = useClient<AdminSessionController>();
|
|
19
19
|
const toast = useToast();
|
|
20
20
|
const dialog = useDialog();
|
|
@@ -135,6 +135,17 @@ export function AdminSessions() {
|
|
|
135
135
|
</span>
|
|
136
136
|
),
|
|
137
137
|
},
|
|
138
|
+
lastUsedAt: {
|
|
139
|
+
label: tr("admin.sessions.colLastUsed", { default: "Last used" }),
|
|
140
|
+
sortable: true,
|
|
141
|
+
cell: (s) => (
|
|
142
|
+
<span className="text-muted-foreground text-xs">
|
|
143
|
+
{s.lastUsedAt
|
|
144
|
+
? String(l(s.lastUsedAt, { date: "fromNow" }))
|
|
145
|
+
: tr("admin.sessions.lastUsedNever", { default: "Never" })}
|
|
146
|
+
</span>
|
|
147
|
+
),
|
|
148
|
+
},
|
|
138
149
|
expiresAt: {
|
|
139
150
|
label: tr("admin.sessions.colExpires", { default: "Expires" }),
|
|
140
151
|
cell: (s) => (
|
|
@@ -155,6 +166,6 @@ export function AdminSessions() {
|
|
|
155
166
|
/>
|
|
156
167
|
</AdminPage>
|
|
157
168
|
);
|
|
158
|
-
}
|
|
169
|
+
};
|
|
159
170
|
|
|
160
171
|
export default AdminSessions;
|
|
@@ -2,7 +2,10 @@ import * as React from "react";
|
|
|
2
2
|
|
|
3
3
|
void React;
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
AlephaTable,
|
|
7
|
+
type TableFetcher,
|
|
8
|
+
} from "@alepha/ui/components/alepha-table/alepha-table";
|
|
6
9
|
import { Badge } from "@alepha/ui/components/ui/badge";
|
|
7
10
|
import type { AuditEntity } from "alepha/api/audits";
|
|
8
11
|
import { useI18n } from "alepha/react/i18n";
|
|
@@ -12,7 +15,7 @@ export interface AdminUserDetailAuditsTabProps {
|
|
|
12
15
|
* Scopes the table's persisted column/sort state to this user.
|
|
13
16
|
*/
|
|
14
17
|
userId: string;
|
|
15
|
-
fetch:
|
|
18
|
+
fetch: TableFetcher<AuditEntity>;
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
/**
|