@alepha/ui 0.25.1 → 0.26.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/LICENSE +21 -0
- package/README.md +136 -2
- package/dist/components/account/account-connections.d.ts +16 -0
- package/dist/components/account/account-connections.d.ts.map +1 -0
- package/dist/components/account/account-connections.js +76 -0
- package/dist/components/account/account-connections.js.map +1 -0
- package/dist/components/account/account-delete-dialog.d.ts +44 -0
- package/dist/components/account/account-delete-dialog.d.ts.map +1 -0
- package/dist/components/account/account-delete-dialog.js +126 -0
- package/dist/components/account/account-delete-dialog.js.map +1 -0
- package/dist/components/account/account-header.d.ts +33 -0
- package/dist/components/account/account-header.d.ts.map +1 -0
- package/dist/components/account/account-header.js +41 -0
- package/dist/components/account/account-header.js.map +1 -0
- package/dist/components/account/account-keys.d.ts +23 -0
- package/dist/components/account/account-keys.d.ts.map +1 -0
- package/dist/components/account/account-keys.js +168 -0
- package/dist/components/account/account-keys.js.map +1 -0
- package/dist/components/account/account-layout.d.ts +32 -0
- package/dist/components/account/account-layout.d.ts.map +1 -0
- package/dist/components/account/account-layout.js +53 -0
- package/dist/components/account/account-layout.js.map +1 -0
- package/dist/components/account/account-password-dialog.d.ts +31 -0
- package/dist/components/account/account-password-dialog.d.ts.map +1 -0
- package/dist/components/account/account-password-dialog.js +120 -0
- package/dist/components/account/account-password-dialog.js.map +1 -0
- package/dist/components/account/account-profile.d.ts +27 -0
- package/dist/components/account/account-profile.d.ts.map +1 -0
- package/dist/components/account/account-profile.js +217 -0
- package/dist/components/account/account-profile.js.map +1 -0
- package/dist/components/account/account-router-options.d.ts +77 -0
- package/dist/components/account/account-router-options.d.ts.map +1 -0
- package/dist/components/account/account-router-options.js +22 -0
- package/dist/components/account/account-router-options.js.map +1 -0
- package/dist/components/account/account-router-page.d.ts +49 -0
- package/dist/components/account/account-router-page.d.ts.map +1 -0
- package/dist/components/account/account-router-page.js +61 -0
- package/dist/components/account/account-router-page.js.map +1 -0
- package/dist/components/account/account-router.d.ts +214 -0
- package/dist/components/account/account-router.d.ts.map +1 -0
- package/dist/components/account/account-router.js +216 -0
- package/dist/components/account/account-router.js.map +1 -0
- package/dist/components/account/account-security.d.ts +22 -0
- package/dist/components/account/account-security.d.ts.map +1 -0
- package/dist/components/account/account-security.js +107 -0
- package/dist/components/account/account-security.js.map +1 -0
- package/dist/components/account/account-sessions.d.ts +17 -0
- package/dist/components/account/account-sessions.d.ts.map +1 -0
- package/dist/components/account/account-sessions.js +108 -0
- package/dist/components/account/account-sessions.js.map +1 -0
- package/dist/components/action-error-toaster/action-error-toaster.d.ts +39 -0
- package/dist/components/action-error-toaster/action-error-toaster.d.ts.map +1 -0
- package/dist/components/action-error-toaster/action-error-toaster.js +40 -0
- package/dist/components/action-error-toaster/action-error-toaster.js.map +1 -0
- package/dist/components/admin/admin-analytics-query-panel.d.ts +16 -0
- package/dist/components/admin/admin-analytics-query-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics-query-panel.js +117 -0
- package/dist/components/admin/admin-analytics-query-panel.js.map +1 -0
- package/dist/components/admin/admin-analytics-results.d.ts +15 -0
- package/dist/components/admin/admin-analytics-results.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics-results.js +56 -0
- package/dist/components/admin/admin-analytics-results.js.map +1 -0
- package/dist/components/admin/admin-analytics.d.ts +9 -0
- package/dist/components/admin/admin-analytics.d.ts.map +1 -0
- package/dist/components/admin/admin-analytics.js +66 -0
- package/dist/components/admin/admin-analytics.js.map +1 -0
- package/dist/components/admin/admin-audits.d.ts +4 -0
- package/dist/components/admin/admin-audits.d.ts.map +1 -0
- package/dist/components/admin/admin-audits.js +173 -0
- package/dist/components/admin/admin-audits.js.map +1 -0
- package/dist/components/admin/admin-files.d.ts +4 -0
- package/dist/components/admin/admin-files.d.ts.map +1 -0
- package/dist/components/admin/admin-files.js +237 -0
- package/dist/components/admin/admin-files.js.map +1 -0
- package/dist/components/admin/admin-jobs-executions-panel.d.ts +11 -0
- package/dist/components/admin/admin-jobs-executions-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-executions-panel.js +200 -0
- package/dist/components/admin/admin-jobs-executions-panel.js.map +1 -0
- package/dist/components/admin/admin-jobs-status-badge.d.ts +9 -0
- package/dist/components/admin/admin-jobs-status-badge.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs-status-badge.js +26 -0
- package/dist/components/admin/admin-jobs-status-badge.js.map +1 -0
- package/dist/components/admin/admin-jobs.d.ts +4 -0
- package/dist/components/admin/admin-jobs.d.ts.map +1 -0
- package/dist/components/admin/admin-jobs.js +248 -0
- package/dist/components/admin/admin-jobs.js.map +1 -0
- package/dist/components/admin/admin-keys-token-dialog.d.ts +15 -0
- package/dist/components/admin/admin-keys-token-dialog.d.ts.map +1 -0
- package/dist/components/admin/admin-keys-token-dialog.js +66 -0
- package/dist/components/admin/admin-keys-token-dialog.js.map +1 -0
- package/dist/components/admin/admin-keys.d.ts +4 -0
- package/dist/components/admin/admin-keys.d.ts.map +1 -0
- package/dist/components/admin/admin-keys.js +161 -0
- package/dist/components/admin/admin-keys.js.map +1 -0
- package/dist/components/admin/admin-layout.d.ts +33 -0
- package/dist/components/admin/admin-layout.d.ts.map +1 -0
- package/dist/components/admin/admin-layout.js +101 -0
- package/dist/components/admin/admin-layout.js.map +1 -0
- package/dist/components/admin/admin-notifications.d.ts +4 -0
- package/dist/components/admin/admin-notifications.d.ts.map +1 -0
- package/dist/components/admin/admin-notifications.js +99 -0
- package/dist/components/admin/admin-notifications.js.map +1 -0
- package/dist/components/admin/admin-page.d.ts +16 -0
- package/dist/components/admin/admin-page.d.ts.map +1 -0
- package/dist/components/admin/admin-page.js +15 -0
- package/dist/components/admin/admin-page.js.map +1 -0
- package/dist/components/admin/admin-parameters.d.ts +26 -0
- package/dist/components/admin/admin-parameters.d.ts.map +1 -0
- package/dist/components/admin/admin-parameters.js +560 -0
- package/dist/components/admin/admin-parameters.js.map +1 -0
- package/dist/components/admin/admin-payments.d.ts +4 -0
- package/dist/components/admin/admin-payments.d.ts.map +1 -0
- package/dist/components/admin/admin-payments.js +72 -0
- package/dist/components/admin/admin-payments.js.map +1 -0
- package/dist/components/admin/admin-router-options.d.ts +135 -0
- package/dist/components/admin/admin-router-options.d.ts.map +1 -0
- package/dist/components/admin/admin-router-options.js +29 -0
- package/dist/components/admin/admin-router-options.js.map +1 -0
- package/dist/components/admin/admin-router-page.d.ts +54 -0
- package/dist/components/admin/admin-router-page.d.ts.map +1 -0
- package/dist/components/admin/admin-router-page.js +66 -0
- package/dist/components/admin/admin-router-page.js.map +1 -0
- package/dist/components/admin/admin-router.d.ts +169 -0
- package/dist/components/admin/admin-router.d.ts.map +1 -0
- package/dist/components/admin/admin-router.js +346 -0
- package/dist/components/admin/admin-router.js.map +1 -0
- package/dist/components/admin/admin-sessions.d.ts +4 -0
- package/dist/components/admin/admin-sessions.d.ts.map +1 -0
- package/dist/components/admin/admin-sessions.js +124 -0
- package/dist/components/admin/admin-sessions.js.map +1 -0
- package/dist/components/admin/admin-user-cell.d.ts +37 -0
- package/dist/components/admin/admin-user-cell.d.ts.map +1 -0
- package/dist/components/admin/admin-user-cell.js +35 -0
- package/dist/components/admin/admin-user-cell.js.map +1 -0
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts +15 -0
- package/dist/components/admin/admin-user-detail-audits-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-audits-tab.js +55 -0
- package/dist/components/admin/admin-user-detail-audits-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts +14 -0
- package/dist/components/admin/admin-user-detail-identity-aside.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-identity-aside.js +162 -0
- package/dist/components/admin/admin-user-detail-identity-aside.js.map +1 -0
- package/dist/components/admin/admin-user-detail-overview-tab.d.ts +26 -0
- package/dist/components/admin/admin-user-detail-overview-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-overview-tab.js +60 -0
- package/dist/components/admin/admin-user-detail-overview-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-password-dialog.d.ts +15 -0
- package/dist/components/admin/admin-user-detail-password-dialog.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-password-dialog.js +47 -0
- package/dist/components/admin/admin-user-detail-password-dialog.js.map +1 -0
- package/dist/components/admin/admin-user-detail-password-schema.d.ts +10 -0
- package/dist/components/admin/admin-user-detail-password-schema.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-password-schema.js +13 -0
- package/dist/components/admin/admin-user-detail-password-schema.js.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-policy.d.ts +56 -0
- package/dist/components/admin/admin-user-detail-profile-policy.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-policy.js +73 -0
- package/dist/components/admin/admin-user-detail-profile-policy.js.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-schema.d.ts +18 -0
- package/dist/components/admin/admin-user-detail-profile-schema.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-profile-schema.js +21 -0
- package/dist/components/admin/admin-user-detail-profile-schema.js.map +1 -0
- package/dist/components/admin/admin-user-detail-security-tab.d.ts +20 -0
- package/dist/components/admin/admin-user-detail-security-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-security-tab.js +70 -0
- package/dist/components/admin/admin-user-detail-security-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts +25 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.js +64 -0
- package/dist/components/admin/admin-user-detail-sessions-tab.js.map +1 -0
- package/dist/components/admin/admin-user-detail.d.ts +39 -0
- package/dist/components/admin/admin-user-detail.d.ts.map +1 -0
- package/dist/components/admin/admin-user-detail.js +386 -0
- package/dist/components/admin/admin-user-detail.js.map +1 -0
- package/dist/components/admin/admin-users-roles-picker.d.ts +23 -0
- package/dist/components/admin/admin-users-roles-picker.d.ts.map +1 -0
- package/dist/components/admin/admin-users-roles-picker.js +77 -0
- package/dist/components/admin/admin-users-roles-picker.js.map +1 -0
- package/dist/components/admin/admin-users-status-filter.d.ts +13 -0
- package/dist/components/admin/admin-users-status-filter.d.ts.map +1 -0
- package/dist/components/admin/admin-users-status-filter.js +41 -0
- package/dist/components/admin/admin-users-status-filter.js.map +1 -0
- package/dist/components/admin/admin-users.d.ts +16 -0
- package/dist/components/admin/admin-users.d.ts.map +1 -0
- package/dist/components/admin/admin-users.js +325 -0
- package/dist/components/admin/admin-users.js.map +1 -0
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts +11 -0
- package/dist/components/admin/admin-workflows-execution-sheet.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-execution-sheet.js +190 -0
- package/dist/components/admin/admin-workflows-execution-sheet.js.map +1 -0
- package/dist/components/admin/admin-workflows-executions-panel.d.ts +9 -0
- package/dist/components/admin/admin-workflows-executions-panel.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-executions-panel.js +153 -0
- package/dist/components/admin/admin-workflows-executions-panel.js.map +1 -0
- package/dist/components/admin/admin-workflows-status-badge.d.ts +12 -0
- package/dist/components/admin/admin-workflows-status-badge.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows-status-badge.js +30 -0
- package/dist/components/admin/admin-workflows-status-badge.js.map +1 -0
- package/dist/components/admin/admin-workflows.d.ts +4 -0
- package/dist/components/admin/admin-workflows.d.ts.map +1 -0
- package/dist/components/admin/admin-workflows.js +145 -0
- package/dist/components/admin/admin-workflows.js.map +1 -0
- package/dist/components/admin/diff-lines.d.ts +13 -0
- package/dist/components/admin/diff-lines.d.ts.map +1 -0
- package/dist/components/admin/diff-lines.js +57 -0
- package/dist/components/admin/diff-lines.js.map +1 -0
- package/dist/components/admin/parameter-diff-dialog.d.ts +36 -0
- package/dist/components/admin/parameter-diff-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-diff-dialog.js +58 -0
- package/dist/components/admin/parameter-diff-dialog.js.map +1 -0
- package/dist/components/admin/parameter-history-item.d.ts +17 -0
- package/dist/components/admin/parameter-history-item.d.ts.map +1 -0
- package/dist/components/admin/parameter-history-item.js +177 -0
- package/dist/components/admin/parameter-history-item.js.map +1 -0
- package/dist/components/admin/parameter-json-dialog.d.ts +13 -0
- package/dist/components/admin/parameter-json-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-json-dialog.js +63 -0
- package/dist/components/admin/parameter-json-dialog.js.map +1 -0
- package/dist/components/admin/parameter-save-dialog.d.ts +26 -0
- package/dist/components/admin/parameter-save-dialog.d.ts.map +1 -0
- package/dist/components/admin/parameter-save-dialog.js +74 -0
- package/dist/components/admin/parameter-save-dialog.js.map +1 -0
- package/dist/components/admin/use-confirmed-action.d.ts +53 -0
- package/dist/components/admin/use-confirmed-action.d.ts.map +1 -0
- package/dist/components/admin/use-confirmed-action.js +50 -0
- package/dist/components/admin/use-confirmed-action.js.map +1 -0
- package/dist/components/alepha-table/alepha-table.d.ts +218 -0
- package/dist/components/alepha-table/alepha-table.d.ts.map +1 -0
- package/dist/components/alepha-table/alepha-table.js +565 -0
- package/dist/components/alepha-table/alepha-table.js.map +1 -0
- package/dist/components/alepha-table/use-table-selection.d.ts +34 -0
- package/dist/components/alepha-table/use-table-selection.d.ts.map +1 -0
- package/dist/components/alepha-table/use-table-selection.js +45 -0
- package/dist/components/alepha-table/use-table-selection.js.map +1 -0
- package/dist/components/app-actions/app-actions.d.ts +74 -0
- package/dist/components/app-actions/app-actions.d.ts.map +1 -0
- package/dist/components/app-actions/app-actions.js +77 -0
- package/dist/components/app-actions/app-actions.js.map +1 -0
- package/dist/components/app-shell/app-shell.d.ts +135 -0
- package/dist/components/app-shell/app-shell.d.ts.map +1 -0
- package/dist/components/app-shell/app-shell.js +276 -0
- package/dist/components/app-shell/app-shell.js.map +1 -0
- package/dist/components/auth/auth-login.d.ts +40 -0
- package/dist/components/auth/auth-login.d.ts.map +1 -0
- package/dist/components/auth/auth-login.js +237 -0
- package/dist/components/auth/auth-login.js.map +1 -0
- package/dist/components/auth/auth-register.d.ts +35 -0
- package/dist/components/auth/auth-register.d.ts.map +1 -0
- package/dist/components/auth/auth-register.js +478 -0
- package/dist/components/auth/auth-register.js.map +1 -0
- package/dist/components/auth/auth-reset-password.d.ts +21 -0
- package/dist/components/auth/auth-reset-password.d.ts.map +1 -0
- package/dist/components/auth/auth-reset-password.js +283 -0
- package/dist/components/auth/auth-reset-password.js.map +1 -0
- package/dist/components/auth/auth-router.d.ts +245 -0
- package/dist/components/auth/auth-router.d.ts.map +1 -0
- package/dist/components/auth/auth-router.js +117 -0
- package/dist/components/auth/auth-router.js.map +1 -0
- package/dist/components/auth/auth-verify-email.d.ts +19 -0
- package/dist/components/auth/auth-verify-email.d.ts.map +1 -0
- package/dist/components/auth/auth-verify-email.js +124 -0
- package/dist/components/auth/auth-verify-email.js.map +1 -0
- package/dist/components/auth/provider-labels.d.ts +9 -0
- package/dist/components/auth/provider-labels.d.ts.map +1 -0
- package/dist/components/auth/provider-labels.js +20 -0
- package/dist/components/auth/provider-labels.js.map +1 -0
- package/dist/components/auto-form/auto-form.d.ts +219 -0
- package/dist/components/auto-form/auto-form.d.ts.map +1 -0
- package/dist/components/auto-form/auto-form.js +412 -0
- package/dist/components/auto-form/auto-form.js.map +1 -0
- package/dist/components/brand-icon/brand-icon.d.ts +18 -0
- package/dist/components/brand-icon/brand-icon.d.ts.map +1 -0
- package/dist/components/brand-icon/brand-icon.js +84 -0
- package/dist/components/brand-icon/brand-icon.js.map +1 -0
- package/dist/components/button-dark/button-dark.d.ts +25 -0
- package/dist/components/button-dark/button-dark.d.ts.map +1 -0
- package/dist/components/button-dark/button-dark.js +44 -0
- package/dist/components/button-dark/button-dark.js.map +1 -0
- package/dist/components/button-language/button-language.d.ts +24 -0
- package/dist/components/button-language/button-language.d.ts.map +1 -0
- package/dist/components/button-language/button-language.js +50 -0
- package/dist/components/button-language/button-language.js.map +1 -0
- package/dist/components/button-theme/button-theme.d.ts +33 -0
- package/dist/components/button-theme/button-theme.d.ts.map +1 -0
- package/dist/components/button-theme/button-theme.js +90 -0
- package/dist/components/button-theme/button-theme.js.map +1 -0
- package/dist/components/button-user/button-user.d.ts +147 -0
- package/dist/components/button-user/button-user.d.ts.map +1 -0
- package/dist/components/button-user/button-user.js +147 -0
- package/dist/components/button-user/button-user.js.map +1 -0
- package/dist/components/captcha/turnstile-widget.d.ts +59 -0
- package/dist/components/captcha/turnstile-widget.d.ts.map +1 -0
- package/dist/components/captcha/turnstile-widget.js +97 -0
- package/dist/components/captcha/turnstile-widget.js.map +1 -0
- package/dist/components/control/control.d.ts +200 -0
- package/dist/components/control/control.d.ts.map +1 -0
- package/dist/components/control/control.js +300 -0
- package/dist/components/control/control.js.map +1 -0
- package/dist/components/control-array/control-array.d.ts +77 -0
- package/dist/components/control-array/control-array.d.ts.map +1 -0
- package/dist/components/control-array/control-array.js +444 -0
- package/dist/components/control-array/control-array.js.map +1 -0
- package/dist/components/control-base/field-i18n.d.ts +30 -0
- package/dist/components/control-base/field-i18n.d.ts.map +1 -0
- package/dist/components/control-base/field-i18n.js +27 -0
- package/dist/components/control-base/field-i18n.js.map +1 -0
- package/dist/components/control-base/form-field.d.ts +128 -0
- package/dist/components/control-base/form-field.d.ts.map +1 -0
- package/dist/components/control-base/form-field.js +208 -0
- package/dist/components/control-base/form-field.js.map +1 -0
- package/dist/components/control-base/grid.d.ts +18 -0
- package/dist/components/control-base/grid.d.ts.map +1 -0
- package/dist/components/control-base/grid.js +46 -0
- package/dist/components/control-base/grid.js.map +1 -0
- package/dist/components/control-base/icon-hint.d.ts +9 -0
- package/dist/components/control-base/icon-hint.d.ts.map +1 -0
- package/dist/components/control-base/icon-hint.js +35 -0
- package/dist/components/control-base/icon-hint.js.map +1 -0
- package/dist/components/control-date/control-date.d.ts +34 -0
- package/dist/components/control-date/control-date.d.ts.map +1 -0
- package/dist/components/control-date/control-date.js +111 -0
- package/dist/components/control-date/control-date.js.map +1 -0
- package/dist/components/control-number/control-number.d.ts +38 -0
- package/dist/components/control-number/control-number.d.ts.map +1 -0
- package/dist/components/control-number/control-number.js +77 -0
- package/dist/components/control-number/control-number.js.map +1 -0
- package/dist/components/control-object/control-object.d.ts +45 -0
- package/dist/components/control-object/control-object.d.ts.map +1 -0
- package/dist/components/control-object/control-object.js +110 -0
- package/dist/components/control-object/control-object.js.map +1 -0
- package/dist/components/control-password/control-password.d.ts +28 -0
- package/dist/components/control-password/control-password.d.ts.map +1 -0
- package/dist/components/control-password/control-password.js +65 -0
- package/dist/components/control-password/control-password.js.map +1 -0
- package/dist/components/control-select/control-select.d.ts +128 -0
- package/dist/components/control-select/control-select.d.ts.map +1 -0
- package/dist/components/control-select/control-select.js +363 -0
- package/dist/components/control-select/control-select.js.map +1 -0
- package/dist/components/control-upload/control-upload.d.ts +67 -0
- package/dist/components/control-upload/control-upload.d.ts.map +1 -0
- package/dist/components/control-upload/control-upload.js +294 -0
- package/dist/components/control-upload/control-upload.js.map +1 -0
- package/dist/components/file-image/file-image.d.ts +31 -0
- package/dist/components/file-image/file-image.d.ts.map +1 -0
- package/dist/components/file-image/file-image.js +27 -0
- package/dist/components/file-image/file-image.js.map +1 -0
- package/dist/components/language-toggle/language-toggle.d.ts +8 -0
- package/dist/components/language-toggle/language-toggle.d.ts.map +1 -0
- package/dist/components/language-toggle/language-toggle.js +49 -0
- package/dist/components/language-toggle/language-toggle.js.map +1 -0
- package/dist/components/markdown-view/markdown-view.css +114 -0
- package/dist/components/markdown-view/markdown-view.d.ts +21 -0
- package/dist/components/markdown-view/markdown-view.d.ts.map +1 -0
- package/dist/components/markdown-view/markdown-view.js +104 -0
- package/dist/components/markdown-view/markdown-view.js.map +1 -0
- package/dist/components/nav-shell/nav-page.d.ts +24 -0
- package/dist/components/nav-shell/nav-page.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-page.js +28 -0
- package/dist/components/nav-shell/nav-page.js.map +1 -0
- package/dist/components/nav-shell/nav-shell.d.ts +26 -0
- package/dist/components/nav-shell/nav-shell.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-shell.js +53 -0
- package/dist/components/nav-shell/nav-shell.js.map +1 -0
- package/dist/components/nav-shell/nav-tree-util.d.ts +65 -0
- package/dist/components/nav-shell/nav-tree-util.d.ts.map +1 -0
- package/dist/components/nav-shell/nav-tree-util.js +87 -0
- package/dist/components/nav-shell/nav-tree-util.js.map +1 -0
- package/dist/components/nav-shell/spotlight.d.ts +37 -0
- package/dist/components/nav-shell/spotlight.d.ts.map +1 -0
- package/dist/components/nav-shell/spotlight.js +102 -0
- package/dist/components/nav-shell/spotlight.js.map +1 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts +24 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.js +36 -0
- package/dist/components/nav-shell/use-nav-breadcrumbs.js.map +1 -0
- package/dist/components/nav-shell/use-nav-entries.d.ts +45 -0
- package/dist/components/nav-shell/use-nav-entries.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-entries.js +60 -0
- package/dist/components/nav-shell/use-nav-entries.js.map +1 -0
- package/dist/components/nav-shell/use-nav-tree.d.ts +21 -0
- package/dist/components/nav-shell/use-nav-tree.d.ts.map +1 -0
- package/dist/components/nav-shell/use-nav-tree.js +48 -0
- package/dist/components/nav-shell/use-nav-tree.js.map +1 -0
- package/dist/components/settings/settings-danger-section.d.ts +35 -0
- package/dist/components/settings/settings-danger-section.d.ts.map +1 -0
- package/dist/components/settings/settings-danger-section.js +42 -0
- package/dist/components/settings/settings-danger-section.js.map +1 -0
- package/dist/components/settings/settings-heading.d.ts +36 -0
- package/dist/components/settings/settings-heading.d.ts.map +1 -0
- package/dist/components/settings/settings-heading.js +39 -0
- package/dist/components/settings/settings-heading.js.map +1 -0
- package/dist/components/settings/settings-layout.d.ts +81 -0
- package/dist/components/settings/settings-layout.d.ts.map +1 -0
- package/dist/components/settings/settings-layout.js +56 -0
- package/dist/components/settings/settings-layout.js.map +1 -0
- package/dist/components/settings/settings-nav.d.ts +85 -0
- package/dist/components/settings/settings-nav.d.ts.map +1 -0
- package/dist/components/settings/settings-nav.js +91 -0
- package/dist/components/settings/settings-nav.js.map +1 -0
- package/dist/components/settings/settings-row.d.ts +45 -0
- package/dist/components/settings/settings-row.d.ts.map +1 -0
- package/dist/components/settings/settings-row.js +44 -0
- package/dist/components/settings/settings-row.js.map +1 -0
- package/dist/components/settings/settings-section.d.ts +36 -0
- package/dist/components/settings/settings-section.d.ts.map +1 -0
- package/dist/components/settings/settings-section.js +36 -0
- package/dist/components/settings/settings-section.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +55 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +19 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +96 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +11 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +44 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +5 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +15 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +12 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +52 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +8 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +31 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +73 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button-group.js +43 -0
- package/dist/components/ui/button-group.js.map +1 -0
- package/dist/components/ui/button.d.ts +18 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +60 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +11 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +119 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +12 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +57 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/carousel.d.ts +29 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +134 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/chart.d.ts +45 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +151 -0
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +22 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +26 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +25 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +164 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command.d.ts +20 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +89 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +30 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +134 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +93 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/direction.d.ts +2 -0
- package/dist/components/ui/direction.d.ts.map +1 -0
- package/dist/components/ui/direction.js +3 -0
- package/dist/components/ui/drawer.d.ts +17 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +125 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +30 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +138 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty.d.ts +12 -0
- package/dist/components/ui/empty.d.ts.map +1 -0
- package/dist/components/ui/empty.js +61 -0
- package/dist/components/ui/empty.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +38 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/input-group.d.ts +19 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-group.js +80 -0
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +12 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp.js +49 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +16 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/item.d.ts +23 -0
- package/dist/components/ui/item.d.ts.map +1 -0
- package/dist/components/ui/item.js +122 -0
- package/dist/components/ui/item.js.map +1 -0
- package/dist/components/ui/kbd.d.ts +4 -0
- package/dist/components/ui/kbd.d.ts.map +1 -0
- package/dist/components/ui/kbd.js +21 -0
- package/dist/components/ui/kbd.js.map +1 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +15 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/menubar.d.ts +30 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +137 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +12 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +84 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +18 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +87 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +56 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +8 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +46 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +29 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +8 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +30 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +38 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/segmented.d.ts +46 -0
- package/dist/components/ui/segmented.d.ts.map +1 -0
- package/dist/components/ui/segmented.js +119 -0
- package/dist/components/ui/segmented.js.map +1 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +99 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +17 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +15 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +90 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +64 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +388 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +14 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +35 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/sonner.js +33 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +3 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +17 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +21 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +68 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +47 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +14 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +54 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +38 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +43 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/use-dialog/use-dialog.d.ts +61 -0
- package/dist/components/use-dialog/use-dialog.d.ts.map +1 -0
- package/dist/components/use-dialog/use-dialog.js +139 -0
- package/dist/components/use-dialog/use-dialog.js.map +1 -0
- package/dist/components/use-toast/use-toast.d.ts +37 -0
- package/dist/components/use-toast/use-toast.d.ts.map +1 -0
- package/dist/components/use-toast/use-toast.js +32 -0
- package/dist/components/use-toast/use-toast.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +20 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/lib/i18n-fr.d.ts +46 -0
- package/dist/lib/i18n-fr.d.ts.map +1 -0
- package/dist/lib/i18n-fr.js +505 -0
- package/dist/lib/i18n-fr.js.map +1 -0
- package/dist/lib/resize-image.d.ts +50 -0
- package/dist/lib/resize-image.d.ts.map +1 -0
- package/dist/lib/resize-image.js +68 -0
- package/dist/lib/resize-image.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +10 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles.css +254 -0
- package/package.json +46 -15
- package/src/components/account/__tests__/account-router.spec.ts +201 -0
- package/src/components/account/account-connections.tsx +111 -0
- package/src/components/account/account-delete-dialog.tsx +184 -0
- package/src/components/account/account-header.tsx +57 -0
- package/src/components/account/account-keys.tsx +221 -0
- package/src/components/account/account-layout.tsx +66 -0
- package/src/components/account/account-password-dialog.tsx +152 -0
- package/src/components/account/account-profile.tsx +342 -0
- package/src/components/account/account-router-options.tsx +88 -0
- package/src/components/account/account-router-page.tsx +69 -0
- package/src/components/account/account-router.tsx +233 -0
- package/src/components/account/account-security.tsx +150 -0
- package/src/components/account/account-sessions.tsx +140 -0
- package/src/components/admin/__tests__/admin-keys-token-dialog.browser.spec.tsx +62 -0
- package/src/components/admin/__tests__/admin-layout.browser.spec.tsx +82 -0
- package/src/components/admin/__tests__/admin-router-page.spec.ts +54 -0
- package/src/components/admin/__tests__/admin-router.spec.ts +208 -0
- package/src/components/admin/__tests__/admin-user-cell.browser.spec.tsx +99 -0
- package/src/components/admin/__tests__/admin-user-detail.spec.ts +29 -0
- package/src/components/admin/admin-analytics-query-panel.tsx +149 -0
- package/src/components/admin/admin-analytics-results.tsx +95 -0
- package/src/components/admin/admin-analytics.tsx +104 -0
- package/src/components/admin/admin-audits.tsx +12 -15
- package/src/components/admin/admin-files.tsx +10 -18
- package/src/components/admin/admin-jobs-executions-panel.tsx +2 -1
- package/src/components/admin/admin-jobs.tsx +3 -1
- package/src/components/admin/admin-keys-token-dialog.tsx +123 -0
- package/src/components/admin/admin-keys.tsx +54 -3
- package/src/components/admin/admin-layout.tsx +107 -0
- package/src/components/admin/admin-payments.tsx +4 -5
- package/src/components/admin/admin-router-options.tsx +150 -0
- package/src/components/admin/admin-router-page.tsx +74 -0
- package/src/components/admin/admin-router.tsx +379 -0
- package/src/components/admin/admin-sessions.tsx +2 -16
- package/src/components/admin/admin-user-cell.tsx +70 -0
- package/src/components/admin/admin-user-detail-overview-tab.tsx +28 -0
- package/src/components/admin/admin-user-detail-profile-policy.spec.ts +146 -0
- package/src/components/admin/admin-user-detail-profile-policy.ts +147 -0
- package/src/components/admin/admin-user-detail-security-tab.tsx +1 -1
- package/src/components/admin/admin-user-detail.tsx +76 -32
- package/src/components/admin/admin-users-status-filter.tsx +2 -0
- package/src/components/admin/admin-workflows-execution-sheet.tsx +277 -0
- package/src/components/admin/admin-workflows-executions-panel.tsx +170 -0
- package/src/components/admin/admin-workflows-status-badge.tsx +40 -0
- package/src/components/admin/admin-workflows.tsx +207 -0
- package/src/components/alepha-table/alepha-table.tsx +91 -19
- package/src/components/app-actions/__tests__/app-actions.browser.spec.tsx +79 -0
- package/src/components/app-actions/app-actions.tsx +118 -0
- package/src/components/app-shell/app-shell.tsx +122 -0
- package/src/components/auth/auth-register.tsx +55 -17
- package/src/components/auth/auth-reset-password.tsx +81 -8
- package/src/components/auto-form/__tests__/auto-form-settings-card.browser.spec.tsx +237 -0
- package/src/components/auto-form/auto-form.tsx +113 -27
- package/src/components/button-user/button-user.tsx +121 -5
- package/src/components/control/control.tsx +47 -79
- package/src/components/control-base/form-field.tsx +60 -3
- package/src/components/control-password/control-password.tsx +87 -0
- package/src/components/control-select/__tests__/control-select-clear-label.browser.spec.tsx +101 -0
- package/src/components/control-select/__tests__/control-select-searchable.browser.spec.tsx +142 -0
- package/src/components/control-select/control-select.tsx +78 -111
- package/src/components/control-upload/control-upload.tsx +27 -1
- package/src/components/markdown-view/__tests__/markdown-view-raw-html.browser.spec.tsx +48 -0
- package/src/components/markdown-view/markdown-view.tsx +14 -0
- package/src/components/nav-shell/__tests__/nav-tree-util.spec.ts +88 -0
- package/src/components/nav-shell/nav-page.tsx +3 -3
- package/src/components/nav-shell/nav-tree-util.ts +48 -0
- package/src/components/nav-shell/use-nav-entries.ts +11 -2
- package/src/components/settings/__tests__/settings-nav.browser.spec.tsx +123 -0
- package/src/components/settings/__tests__/settings-section.browser.spec.tsx +130 -0
- package/src/components/settings/settings-danger-section.tsx +59 -0
- package/src/components/settings/settings-heading.tsx +55 -0
- package/src/components/settings/settings-layout.tsx +115 -0
- package/src/components/settings/settings-nav.tsx +175 -0
- package/src/components/settings/settings-row.tsx +81 -0
- package/src/components/settings/settings-section.tsx +52 -0
- package/src/components/ui/dropdown-menu.tsx +9 -1
- package/src/components/ui/segmented.tsx +19 -2
- package/src/lib/i18n-fr.ts +68 -0
- package/src/lib/resize-image.ts +135 -0
- package/src/styles.css +126 -1
- /package/src/components/{admin/admin-user-detail-provider-labels.ts → auth/provider-labels.ts} +0 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { cn } from "@alepha/ui/lib/utils";
|
|
2
|
+
import { Link } from "alepha/react/router";
|
|
3
|
+
import { type ReactNode, useMemo } from "react";
|
|
4
|
+
|
|
5
|
+
export interface SettingsNavItem {
|
|
6
|
+
/**
|
|
7
|
+
* Stable key. The route name when these come from `useNavEntries`.
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Fully resolved href — every `:param` already substituted. See
|
|
13
|
+
* {@link SettingsNav} for why this component refuses to resolve them itself.
|
|
14
|
+
*/
|
|
15
|
+
href: string;
|
|
16
|
+
|
|
17
|
+
label: ReactNode;
|
|
18
|
+
icon?: ReactNode;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Heading this entry sits under. Entries with no group render first, in a
|
|
22
|
+
* block of their own, without a heading.
|
|
23
|
+
*/
|
|
24
|
+
group?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The current route is on or under this entry.
|
|
28
|
+
*/
|
|
29
|
+
active: boolean;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Visible but not reachable — rendered muted and inert rather than hidden,
|
|
33
|
+
* so the entry can explain a capability the viewer does not currently have.
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface SettingsNavProps {
|
|
39
|
+
/**
|
|
40
|
+
* Entries in final display order. Grouping preserves first appearance, so
|
|
41
|
+
* sort before passing — `useNavEntries` already returns them sorted by
|
|
42
|
+
* group order then item order.
|
|
43
|
+
*/
|
|
44
|
+
items: SettingsNavItem[];
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Entry height, matching `SidebarMenuButton`'s own sizes: `sm` is `h-7` with
|
|
48
|
+
* `text-xs`, `default` is `h-8` with `text-sm`.
|
|
49
|
+
*
|
|
50
|
+
* @default "sm"
|
|
51
|
+
*/
|
|
52
|
+
size?: "sm" | "default";
|
|
53
|
+
|
|
54
|
+
className?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The left-hand rail of a settings page: a sticky, grouped list of links.
|
|
59
|
+
*
|
|
60
|
+
* ⚠️ **It takes resolved `items`, not a `root` route name, and that is the
|
|
61
|
+
* whole design.** Deriving entries internally from `useNavEntries({ root })`
|
|
62
|
+
* would be a smaller API and works fine for a static subtree such as
|
|
63
|
+
* `/account/*` — but `NavEntry.href` is `page.match`, the raw route
|
|
64
|
+
* *pattern*. Point it at a parameterised subtree like
|
|
65
|
+
* `/:projectSlug/settings/...` and every href in the rail comes out
|
|
66
|
+
* containing a literal `:projectSlug`, which is a dead link that renders
|
|
67
|
+
* perfectly.
|
|
68
|
+
*
|
|
69
|
+
* So resolution is the caller's job and presentation is this component's. A
|
|
70
|
+
* static subtree passes `useNavEntries({ root: "account" })` straight through
|
|
71
|
+
* ({@link SettingsNavItem} is structurally a subset of `NavEntry`, so no
|
|
72
|
+
* mapping is needed); a parameterised one passes its own
|
|
73
|
+
* `router.path(name, { params })` list.
|
|
74
|
+
*
|
|
75
|
+
* ### Why this is not built out of `SidebarMenuButton`
|
|
76
|
+
*
|
|
77
|
+
* It reads like the obvious reuse — this rail is a small sidebar, and the
|
|
78
|
+
* sizes and metrics below are deliberately `SidebarMenuButton`'s, so the two
|
|
79
|
+
* look like one family. But the component itself cannot be mounted here:
|
|
80
|
+
*
|
|
81
|
+
* - `SidebarMenuButton` calls `useSidebar()`, which **throws** outside a
|
|
82
|
+
* `SidebarProvider`. Nothing about a static rail needs that provider — it
|
|
83
|
+
* exists to hold collapse state — and mounting one to get a button also
|
|
84
|
+
* registers a global ⌘B handler and starts writing the sidebar cookie. On a
|
|
85
|
+
* page that already sits inside `AppShell` that is a *second* provider, so
|
|
86
|
+
* ⌘B would toggle the wrong sidebar.
|
|
87
|
+
* - Making `useSidebar` tolerate a missing provider, or exporting the button's
|
|
88
|
+
* `cva` to share it, both mean editing `components/ui/sidebar.tsx` — which
|
|
89
|
+
* `yarn w @alepha/ui sync` overwrites wholesale from the upstream registry.
|
|
90
|
+
* The patch would vanish on the next refresh, silently.
|
|
91
|
+
*
|
|
92
|
+
* So the metrics are shared by being written the same, and the coupling is
|
|
93
|
+
* not. If the sizes below ever drift from `sidebarMenuButtonVariants`, that is
|
|
94
|
+
* the thing to re-align.
|
|
95
|
+
*/
|
|
96
|
+
export const SettingsNav = (props: SettingsNavProps) => {
|
|
97
|
+
const size = props.size ?? "sm";
|
|
98
|
+
|
|
99
|
+
/*
|
|
100
|
+
`[&_svg]:size-4` is load-bearing, not cosmetic: `useNavEntries` hands over
|
|
101
|
+
`createElement(Icon)` with no className, and a bare lucide icon defaults to
|
|
102
|
+
24px — half again the height of the text it sits next to.
|
|
103
|
+
*/
|
|
104
|
+
const entry = cn(
|
|
105
|
+
"flex items-center gap-2 whitespace-nowrap rounded-md px-2 text-left [&_svg]:size-4 [&_svg]:shrink-0",
|
|
106
|
+
size === "sm" ? "h-7 text-xs" : "h-8 text-sm",
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
const groups = useMemo(() => {
|
|
110
|
+
const ordered: Array<{ key: string; label?: string }> = [];
|
|
111
|
+
const byKey = new Map<string, SettingsNavItem[]>();
|
|
112
|
+
|
|
113
|
+
for (const item of props.items) {
|
|
114
|
+
const key = item.group ?? "";
|
|
115
|
+
let bucket = byKey.get(key);
|
|
116
|
+
if (!bucket) {
|
|
117
|
+
bucket = [];
|
|
118
|
+
byKey.set(key, bucket);
|
|
119
|
+
ordered.push({ key, label: item.group });
|
|
120
|
+
}
|
|
121
|
+
bucket.push(item);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return ordered.map((g) => ({ ...g, items: byKey.get(g.key) ?? [] }));
|
|
125
|
+
}, [props.items]);
|
|
126
|
+
|
|
127
|
+
return (
|
|
128
|
+
<nav
|
|
129
|
+
className={cn(
|
|
130
|
+
"flex shrink-0 flex-col gap-4 md:sticky md:top-0 md:w-48 md:self-start",
|
|
131
|
+
props.className,
|
|
132
|
+
)}
|
|
133
|
+
>
|
|
134
|
+
{groups.map((group) => (
|
|
135
|
+
<div key={group.key} className="flex flex-col gap-0.5">
|
|
136
|
+
{group.label ? (
|
|
137
|
+
// `px-2` matches the entries below, so the heading and the labels
|
|
138
|
+
// it heads share a left edge.
|
|
139
|
+
<span className="px-2 font-semibold text-[11px] text-muted-foreground uppercase tracking-wider">
|
|
140
|
+
{group.label}
|
|
141
|
+
</span>
|
|
142
|
+
) : null}
|
|
143
|
+
{group.items.map((item) =>
|
|
144
|
+
item.disabled ? (
|
|
145
|
+
<span
|
|
146
|
+
key={item.name}
|
|
147
|
+
aria-disabled="true"
|
|
148
|
+
className={cn(entry, "text-muted-foreground/50")}
|
|
149
|
+
>
|
|
150
|
+
{item.icon}
|
|
151
|
+
{item.label}
|
|
152
|
+
</span>
|
|
153
|
+
) : (
|
|
154
|
+
<Link
|
|
155
|
+
key={item.name}
|
|
156
|
+
href={item.href}
|
|
157
|
+
aria-current={item.active ? "page" : undefined}
|
|
158
|
+
className={cn(
|
|
159
|
+
entry,
|
|
160
|
+
"transition-colors",
|
|
161
|
+
item.active
|
|
162
|
+
? "bg-muted font-medium"
|
|
163
|
+
: "text-muted-foreground hover:bg-muted/60",
|
|
164
|
+
)}
|
|
165
|
+
>
|
|
166
|
+
{item.icon}
|
|
167
|
+
{item.label}
|
|
168
|
+
</Link>
|
|
169
|
+
),
|
|
170
|
+
)}
|
|
171
|
+
</div>
|
|
172
|
+
))}
|
|
173
|
+
</nav>
|
|
174
|
+
);
|
|
175
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { CardContent } from "@alepha/ui/components/ui/card";
|
|
2
|
+
import { cn } from "@alepha/ui/lib/utils";
|
|
3
|
+
import type { ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
export interface SettingsRowProps {
|
|
6
|
+
/**
|
|
7
|
+
* What the row is about. Rendered as the emphasised left-hand text.
|
|
8
|
+
*/
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* One line of explanation under the label. Omit when the label says it all
|
|
13
|
+
* — an empty helper line is worse than none.
|
|
14
|
+
*/
|
|
15
|
+
description?: ReactNode;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* `id` of the form control this row labels. Set it whenever `children` is an
|
|
19
|
+
* input: the label then renders as a real `<label htmlFor>` rather than a
|
|
20
|
+
* `<span>`, which is what gives the control an accessible name and makes
|
|
21
|
+
* clicking the label focus it.
|
|
22
|
+
*
|
|
23
|
+
* Without it the row is a `<span>` — correct for a row whose control is a
|
|
24
|
+
* button or a read-only value, where the button carries its own name and a
|
|
25
|
+
* `<label>` pointing at nothing would be worse than none.
|
|
26
|
+
*/
|
|
27
|
+
htmlFor?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The control this row exists for: a button, a switch, a badge, a value.
|
|
31
|
+
* Sits right of the label on `sm` and up, and underneath it below that.
|
|
32
|
+
*/
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* One line of a settings card: label and optional help on the left, a single
|
|
40
|
+
* control on the right.
|
|
41
|
+
*
|
|
42
|
+
* The grid is `minmax(0,1fr) auto`, not `justify-between`. The difference
|
|
43
|
+
* matters when the label is long: `minmax(0,…)` lets the text column shrink
|
|
44
|
+
* and wrap, where a flex row would let it push the control off the card. It
|
|
45
|
+
* collapses to a stacked `flex-col` below `sm`, because a button crushed into
|
|
46
|
+
* a 90px column is worse than a button on its own line.
|
|
47
|
+
*
|
|
48
|
+
* Rows carry all the vertical padding (`py-3`) and {@link SettingsSection}'s
|
|
49
|
+
* card carries none (`py-0`) — see that component for why the two must not
|
|
50
|
+
* both have it.
|
|
51
|
+
*/
|
|
52
|
+
export const SettingsRow = (props: SettingsRowProps) => {
|
|
53
|
+
return (
|
|
54
|
+
<CardContent
|
|
55
|
+
className={cn(
|
|
56
|
+
"flex flex-col gap-3 px-4 py-3 sm:grid sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center sm:gap-6",
|
|
57
|
+
props.className,
|
|
58
|
+
)}
|
|
59
|
+
>
|
|
60
|
+
<div className="flex flex-col gap-0.5">
|
|
61
|
+
{props.htmlFor ? (
|
|
62
|
+
<label htmlFor={props.htmlFor} className="font-medium text-sm">
|
|
63
|
+
{props.label}
|
|
64
|
+
</label>
|
|
65
|
+
) : (
|
|
66
|
+
<span className="font-medium text-sm">{props.label}</span>
|
|
67
|
+
)}
|
|
68
|
+
{props.description ? (
|
|
69
|
+
<span className="text-muted-foreground text-xs">
|
|
70
|
+
{props.description}
|
|
71
|
+
</span>
|
|
72
|
+
) : null}
|
|
73
|
+
</div>
|
|
74
|
+
{props.children ? (
|
|
75
|
+
<div className="flex justify-start sm:justify-end">
|
|
76
|
+
{props.children}
|
|
77
|
+
</div>
|
|
78
|
+
) : null}
|
|
79
|
+
</CardContent>
|
|
80
|
+
);
|
|
81
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { SettingsHeading } from "@alepha/ui/components/settings/settings-heading";
|
|
2
|
+
import { Card } from "@alepha/ui/components/ui/card";
|
|
3
|
+
import { cn } from "@alepha/ui/lib/utils";
|
|
4
|
+
import type { ReactNode } from "react";
|
|
5
|
+
|
|
6
|
+
export interface SettingsSectionProps {
|
|
7
|
+
/**
|
|
8
|
+
* Heading above the card. Optional — a page whose first section needs no
|
|
9
|
+
* heading (because the page title already says it) omits it.
|
|
10
|
+
*/
|
|
11
|
+
title?: ReactNode;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* One line under the title, for context the rows themselves should not
|
|
15
|
+
* each repeat.
|
|
16
|
+
*/
|
|
17
|
+
description?: ReactNode;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* {@link SettingsRow}s. Anything else works too, but the divider and the
|
|
21
|
+
* padding contract below assume rows.
|
|
22
|
+
*/
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* A titled group of settings rows in one bordered card — the GitHub-settings
|
|
30
|
+
* shape.
|
|
31
|
+
*
|
|
32
|
+
* ⚠️ **The card is `py-0` and that is deliberate.** `Card` ships its own
|
|
33
|
+
* vertical padding (`py-(--card-spacing)`), and every {@link SettingsRow}
|
|
34
|
+
* brings `py-3`. Leave both on and the two stack into a visibly thick blank
|
|
35
|
+
* band at the top and bottom of the card. `py-0` opts the card out so each
|
|
36
|
+
* row's own padding is the only vertical space, which is also what makes
|
|
37
|
+
* `divide-y` land flush between rows.
|
|
38
|
+
*
|
|
39
|
+
* The rule is one or the other, never both — so do **not** "fix" this to a
|
|
40
|
+
* numeric `py-4` / `py-3`. Several pages in `apps/lore`'s project settings did
|
|
41
|
+
* exactly that and they are the ones that look wrong next to these.
|
|
42
|
+
*/
|
|
43
|
+
export const SettingsSection = (props: SettingsSectionProps) => {
|
|
44
|
+
return (
|
|
45
|
+
<div className={cn("flex flex-col gap-2", props.className)}>
|
|
46
|
+
<SettingsHeading title={props.title} description={props.description} />
|
|
47
|
+
<Card className="gap-0 divide-y rounded-lg border bg-card py-0">
|
|
48
|
+
{props.children}
|
|
49
|
+
</Card>
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
};
|
|
@@ -41,7 +41,15 @@ function DropdownMenuContent({
|
|
|
41
41
|
<MenuPrimitive.Popup
|
|
42
42
|
data-slot="dropdown-menu-content"
|
|
43
43
|
className={cn(
|
|
44
|
-
|
|
44
|
+
// LOCAL PATCH — `w-(--anchor-width)` → `w-auto`. Upstream sizes a
|
|
45
|
+
// menu to its anchor, which is right for a select (the popup IS the
|
|
46
|
+
// field) and wrong for a menu, where the trigger is often a 32px
|
|
47
|
+
// icon button and the content is prose: every label past `min-w-32`
|
|
48
|
+
// wrapped. `min-w-32` stays as the floor so a lone "Edit" does not
|
|
49
|
+
// produce a sliver. Re-applied by `scripts/sync.mjs` — this file is
|
|
50
|
+
// overwritten wholesale on the next registry sync, so a comment
|
|
51
|
+
// alone would not survive.
|
|
52
|
+
"cn-menu-target cn-menu-translucent z-50 max-h-(--available-height) w-auto max-w-(--available-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
45
53
|
className,
|
|
46
54
|
)}
|
|
47
55
|
{...props}
|
|
@@ -115,9 +115,26 @@ export function Segmented(props: SegmentedProps) {
|
|
|
115
115
|
if (!el || !container) return;
|
|
116
116
|
const elRect = el.getBoundingClientRect();
|
|
117
117
|
const parentRect = container.getBoundingClientRect();
|
|
118
|
+
// ⚠️ Subtract the container's border, or it is counted twice and the thumb
|
|
119
|
+
// sits one border-width down and to the right of the segment it covers.
|
|
120
|
+
//
|
|
121
|
+
// `getBoundingClientRect()` measures the BORDER box, so this delta includes
|
|
122
|
+
// the border. The thumb is `position: absolute`, whose containing block is
|
|
123
|
+
// the padding box — an origin that already starts inside that same border.
|
|
124
|
+
// Applying a border-box delta from a padding-box origin adds it a second
|
|
125
|
+
// time.
|
|
126
|
+
//
|
|
127
|
+
// At the default 1px border it is a 1px drift on both axes, which reads as
|
|
128
|
+
// the active surface being off-centre: 4px of gap above it and 2px below.
|
|
129
|
+
// Visible, and easy to misdiagnose as missing padding — but padding cannot
|
|
130
|
+
// be the fix, because the drift is equal on the horizontal axis where the
|
|
131
|
+
// box is not symmetric to begin with.
|
|
132
|
+
const parentStyle = getComputedStyle(container);
|
|
133
|
+
const borderLeft = Number.parseFloat(parentStyle.borderLeftWidth) || 0;
|
|
134
|
+
const borderTop = Number.parseFloat(parentStyle.borderTopWidth) || 0;
|
|
118
135
|
setThumb({
|
|
119
|
-
left: elRect.left - parentRect.left,
|
|
120
|
-
top: elRect.top - parentRect.top,
|
|
136
|
+
left: elRect.left - parentRect.left - borderLeft,
|
|
137
|
+
top: elRect.top - parentRect.top - borderTop,
|
|
121
138
|
width: elRect.width,
|
|
122
139
|
height: elRect.height,
|
|
123
140
|
});
|
package/src/lib/i18n-fr.ts
CHANGED
|
@@ -193,6 +193,17 @@ export const uiFr: Record<string, string> = {
|
|
|
193
193
|
|
|
194
194
|
// The `@alepha/ui/admin` back office: users, sessions, API keys, files, jobs,
|
|
195
195
|
// audits, notifications, payments and parameters.
|
|
196
|
+
"admin.analytics.empty": "Aucune donnée pour cette requête.",
|
|
197
|
+
"admin.analytics.estimated": "Estimé (échantillonné ×$1)",
|
|
198
|
+
"admin.analytics.exactSample": "Exact (aucun échantillonnage sur la fenêtre)",
|
|
199
|
+
"admin.analytics.filters": "Filtres",
|
|
200
|
+
"admin.analytics.groupBy": "Grouper par",
|
|
201
|
+
"admin.analytics.noDatasets":
|
|
202
|
+
"Aucun jeu de données analytics n'est déclaré dans cette application.",
|
|
203
|
+
"admin.analytics.pickDataset": "Choisir un jeu de données",
|
|
204
|
+
"admin.analytics.rowCount": "$1 lignes",
|
|
205
|
+
"admin.analytics.run": "Lancer la requête",
|
|
206
|
+
"admin.analytics.since": "Depuis (jour UTC)",
|
|
196
207
|
"admin.audits.actionAll": "Toutes les actions",
|
|
197
208
|
"admin.audits.bulkDelete": "Supprimer la sélection",
|
|
198
209
|
"admin.audits.bulkDeleteConfirm":
|
|
@@ -275,12 +286,26 @@ export const uiFr: Record<string, string> = {
|
|
|
275
286
|
"admin.keys.colOwner": "Propriétaire",
|
|
276
287
|
"admin.keys.colPrefix": "Préfixe",
|
|
277
288
|
"admin.keys.colScopes": "Rôles",
|
|
289
|
+
"admin.keys.copy": "Copier",
|
|
290
|
+
"admin.keys.copyFailed": "Impossible de copier",
|
|
291
|
+
"admin.keys.create": "Ajouter une clé d'API",
|
|
292
|
+
"admin.keys.createConfirm": "Créer",
|
|
293
|
+
"admin.keys.createDescription":
|
|
294
|
+
"La clé est créée pour votre compte et porte vos rôles actuels.",
|
|
295
|
+
"admin.keys.createNameLabel": "Nom",
|
|
296
|
+
"admin.keys.createNamePlaceholder": "ex. pipeline CI",
|
|
297
|
+
"admin.keys.createNameRequired": "Le nom est requis",
|
|
298
|
+
"admin.keys.createTitle": "Ajouter une clé d'API",
|
|
278
299
|
"admin.keys.noneSelected": "Aucune clé active dans la sélection",
|
|
279
300
|
"admin.keys.revoke": "Révoquer",
|
|
280
301
|
"admin.keys.revokeConfirm":
|
|
281
302
|
"Révoquer « $1 » ? Les applications qui utilisent cette clé perdront l'accès.",
|
|
282
303
|
"admin.keys.revokeTitle": "Révoquer la clé d'API",
|
|
283
304
|
"admin.keys.revoked": "Clé d'API révoquée",
|
|
305
|
+
"admin.keys.tokenDescription":
|
|
306
|
+
"Copiez ce jeton maintenant — il n'est affiché qu'une seule fois et ne peut pas être récupéré.",
|
|
307
|
+
"admin.keys.tokenDone": "Terminé",
|
|
308
|
+
"admin.keys.tokenTitle": "Clé d'API créée",
|
|
284
309
|
"admin.notifications.bulkDelete": "Supprimer la sélection",
|
|
285
310
|
"admin.notifications.bulkDeleteConfirm":
|
|
286
311
|
"Supprimer $1 notification(s) ? L'opération est irréversible.",
|
|
@@ -398,6 +423,8 @@ export const uiFr: Record<string, string> = {
|
|
|
398
423
|
"admin.userDetail.disabled": "Utilisateur désactivé",
|
|
399
424
|
"admin.userDetail.disabledBadge": "Désactivé",
|
|
400
425
|
"admin.userDetail.email": "Adresse e-mail",
|
|
426
|
+
"admin.userDetail.emailCannotBeCleared":
|
|
427
|
+
"L'adresse e-mail ne peut pas être supprimée une fois renseignée",
|
|
401
428
|
"admin.userDetail.emailRequired": "L'adresse e-mail est requise",
|
|
402
429
|
"admin.userDetail.emailVerified": "Adresse vérifiée",
|
|
403
430
|
"admin.userDetail.enable": "Réactiver",
|
|
@@ -448,6 +475,8 @@ export const uiFr: Record<string, string> = {
|
|
|
448
475
|
"admin.userDetail.tabSessions": "Sessions",
|
|
449
476
|
"admin.userDetail.thisUser": "cet utilisateur",
|
|
450
477
|
"admin.userDetail.username": "Identifiant",
|
|
478
|
+
"admin.userDetail.usernameCannotBeCleared":
|
|
479
|
+
"L'identifiant ne peut pas être supprimé une fois renseigné",
|
|
451
480
|
"admin.userDetail.usernameRequired": "L'identifiant est requis",
|
|
452
481
|
"admin.userDetail.verified": "Vérifié",
|
|
453
482
|
"admin.users.active": "Actif",
|
|
@@ -497,4 +526,43 @@ export const uiFr: Record<string, string> = {
|
|
|
497
526
|
"admin.users.thisUser": "cet utilisateur",
|
|
498
527
|
"admin.users.verified": "Vérifié",
|
|
499
528
|
"admin.users.viewProfile": "Voir le profil",
|
|
529
|
+
"admin.workflows.cancel": "Annuler",
|
|
530
|
+
"admin.workflows.cancelConfirm":
|
|
531
|
+
"Arrêter cette exécution ? Les étapes restantes ne seront pas exécutées.",
|
|
532
|
+
"admin.workflows.cancelTitle": "Annuler le workflow",
|
|
533
|
+
"admin.workflows.cancelled": "Workflow annulé",
|
|
534
|
+
"admin.workflows.colCreated": "Créé le",
|
|
535
|
+
"admin.workflows.colDuration": "Durée",
|
|
536
|
+
"admin.workflows.colError": "Erreur",
|
|
537
|
+
"admin.workflows.colFailed": "Échecs",
|
|
538
|
+
"admin.workflows.colName": "Nom",
|
|
539
|
+
"admin.workflows.colOnError": "En cas d'erreur",
|
|
540
|
+
"admin.workflows.colPending": "En attente",
|
|
541
|
+
"admin.workflows.colPriority": "Priorité",
|
|
542
|
+
"admin.workflows.colRunning": "En cours",
|
|
543
|
+
"admin.workflows.colStatus": "Statut",
|
|
544
|
+
"admin.workflows.colStep": "Étape",
|
|
545
|
+
"admin.workflows.colSteps": "Étapes",
|
|
546
|
+
"admin.workflows.colTriggeredBy": "Déclenché par",
|
|
547
|
+
"admin.workflows.compensate": "Compenser",
|
|
548
|
+
"admin.workflows.compensateConfirm":
|
|
549
|
+
"Exécuter les fonctions de compensation de chaque étape terminée, en ordre inverse ?",
|
|
550
|
+
"admin.workflows.compensateTitle": "Compenser le workflow",
|
|
551
|
+
"admin.workflows.compensated": "Compensation lancée",
|
|
552
|
+
"admin.workflows.execsDescription": "Exécutions de ce workflow.",
|
|
553
|
+
"admin.workflows.noExecs": "Aucune exécution pour l'instant.",
|
|
554
|
+
"admin.workflows.none": "Aucun workflow enregistré.",
|
|
555
|
+
"admin.workflows.restart": "Redémarrer",
|
|
556
|
+
"admin.workflows.restartConfirm":
|
|
557
|
+
"Démarrer une nouvelle exécution avec la même charge utile ?",
|
|
558
|
+
"admin.workflows.restartTitle": "Redémarrer le workflow",
|
|
559
|
+
"admin.workflows.restarted": "Workflow redémarré",
|
|
560
|
+
"admin.workflows.retried": "Workflow relancé",
|
|
561
|
+
"admin.workflows.retry": "Relancer",
|
|
562
|
+
"admin.workflows.retryConfirm":
|
|
563
|
+
"Reprendre cette exécution à partir de l'étape en échec ?",
|
|
564
|
+
"admin.workflows.retryTitle": "Relancer le workflow",
|
|
565
|
+
"admin.workflows.searchPlaceholder": "Rechercher…",
|
|
566
|
+
"admin.workflows.statusAll": "Tous les statuts",
|
|
567
|
+
"admin.workflows.viewExecutions": "Voir les exécutions",
|
|
500
568
|
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bounds and encoding for a browser-side downscale.
|
|
3
|
+
*/
|
|
4
|
+
export interface ResizeImageOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Widest the result may be, in pixels.
|
|
7
|
+
*/
|
|
8
|
+
maxWidth: number;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Tallest the result may be. Defaults to `maxWidth`.
|
|
12
|
+
*/
|
|
13
|
+
maxHeight?: number;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Output MIME type. WebP by default: the browser's encoder is **lossy** and
|
|
17
|
+
* keeps the alpha channel, which no wasm build available to the server can
|
|
18
|
+
* do — a transparent logo at 128px is a few kilobytes here and roughly five
|
|
19
|
+
* times that server-side.
|
|
20
|
+
*
|
|
21
|
+
* @default "image/webp"
|
|
22
|
+
*/
|
|
23
|
+
type?: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Encoder quality, 0-1.
|
|
27
|
+
*
|
|
28
|
+
* @default 0.82
|
|
29
|
+
*/
|
|
30
|
+
quality?: number;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Downscales an image in the browser before it is uploaded.
|
|
35
|
+
*
|
|
36
|
+
* Worth doing even though the server enforces the same bounds: this is what
|
|
37
|
+
* stops the megabytes leaving the machine at all. Production project icons
|
|
38
|
+
* averaged 667 KB and reached the full 2 MB cap to fill a 32px box, so the
|
|
39
|
+
* upload itself was the slow part of setting one.
|
|
40
|
+
*
|
|
41
|
+
* **Returns the input untouched** when it is not a raster image, when it
|
|
42
|
+
* already fits, or when the browser lacks `OffscreenCanvas`/`createImageBitmap`
|
|
43
|
+
* — including SVG, which has no pixels to resample and would be rasterised into
|
|
44
|
+
* something worse than it started. So this is a best-effort downscale, not a
|
|
45
|
+
* gate: the storage's `maxSize` is what bounds the pathological case.
|
|
46
|
+
*
|
|
47
|
+
* The browser is also the *better* encoder here, which is why the work belongs
|
|
48
|
+
* on this side. `convertToBlob` produces lossy WebP with an alpha channel;
|
|
49
|
+
* the wasm codecs available to an edge runtime offer lossless WebP (roughly
|
|
50
|
+
* five times the bytes) or JPEG, which has no alpha at all and turns a
|
|
51
|
+
* transparent logo's background black.
|
|
52
|
+
*/
|
|
53
|
+
export const resizeImage = async (
|
|
54
|
+
file: File,
|
|
55
|
+
options: ResizeImageOptions,
|
|
56
|
+
): Promise<File> => {
|
|
57
|
+
if (!file.type.startsWith("image/") || file.type === "image/svg+xml") {
|
|
58
|
+
return file;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (
|
|
62
|
+
typeof createImageBitmap !== "function" ||
|
|
63
|
+
typeof OffscreenCanvas !== "function"
|
|
64
|
+
) {
|
|
65
|
+
return file;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const maxWidth = options.maxWidth;
|
|
69
|
+
const maxHeight = options.maxHeight ?? options.maxWidth;
|
|
70
|
+
const type = options.type ?? "image/webp";
|
|
71
|
+
|
|
72
|
+
let bitmap: ImageBitmap | undefined;
|
|
73
|
+
|
|
74
|
+
try {
|
|
75
|
+
bitmap = await createImageBitmap(file);
|
|
76
|
+
|
|
77
|
+
const scale = Math.min(
|
|
78
|
+
1,
|
|
79
|
+
maxWidth / bitmap.width,
|
|
80
|
+
maxHeight / bitmap.height,
|
|
81
|
+
);
|
|
82
|
+
if (scale === 1) {
|
|
83
|
+
return file;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// A dimension can round to 0 on an extreme aspect ratio, and a
|
|
87
|
+
// zero-pixel canvas throws.
|
|
88
|
+
const width = Math.max(1, Math.round(bitmap.width * scale));
|
|
89
|
+
const height = Math.max(1, Math.round(bitmap.height * scale));
|
|
90
|
+
|
|
91
|
+
const canvas = new OffscreenCanvas(width, height);
|
|
92
|
+
const context = canvas.getContext("2d");
|
|
93
|
+
if (!context) {
|
|
94
|
+
return file;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
context.imageSmoothingEnabled = true;
|
|
98
|
+
context.imageSmoothingQuality = "high";
|
|
99
|
+
context.drawImage(bitmap, 0, 0, width, height);
|
|
100
|
+
|
|
101
|
+
const blob = await canvas.convertToBlob({
|
|
102
|
+
type,
|
|
103
|
+
quality: options.quality ?? 0.82,
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
// A browser that does not support the requested encoder silently falls
|
|
107
|
+
// back to PNG, which on a photo is bigger than the JPEG it came from.
|
|
108
|
+
// Handing back the original is the honest outcome.
|
|
109
|
+
if (blob.type !== type || blob.size >= file.size) {
|
|
110
|
+
return file;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return new File([blob], renameFor(file.name, blob.type), {
|
|
114
|
+
type: blob.type,
|
|
115
|
+
lastModified: file.lastModified,
|
|
116
|
+
});
|
|
117
|
+
} catch {
|
|
118
|
+
// A corrupt or unsupported image must not cost the user their upload —
|
|
119
|
+
// let the server have its say about the original.
|
|
120
|
+
return file;
|
|
121
|
+
} finally {
|
|
122
|
+
bitmap?.close();
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Swaps the extension so the name matches the bytes. A file still called
|
|
128
|
+
* `.png` that is really WebP confuses everything downstream that trusts it.
|
|
129
|
+
*/
|
|
130
|
+
const renameFor = (name: string, type: string): string => {
|
|
131
|
+
const extension = type.split("/")[1]?.replace("jpeg", "jpg") ?? "bin";
|
|
132
|
+
const dot = name.lastIndexOf(".");
|
|
133
|
+
const stem = dot > 0 ? name.slice(0, dot) : name;
|
|
134
|
+
return `${stem}.${extension}`;
|
|
135
|
+
};
|