hyper-admin 1.0.0__py3-none-any.whl
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.
- hyper_admin-1.0.0.dist-info/METADATA +366 -0
- hyper_admin-1.0.0.dist-info/RECORD +442 -0
- hyper_admin-1.0.0.dist-info/WHEEL +4 -0
- hyper_admin-1.0.0.dist-info/entry_points.txt +2 -0
- hyper_admin-1.0.0.dist-info/licenses/LICENSE +21 -0
- hyperadmin/__init__.py +52 -0
- hyperadmin/__main__.py +21 -0
- hyperadmin/adapters/__init__.py +28 -0
- hyperadmin/adapters/_estimate.py +33 -0
- hyperadmin/adapters/_filter_clause.py +9 -0
- hyperadmin/adapters/_occ.py +44 -0
- hyperadmin/adapters/_relation_loading.py +23 -0
- hyperadmin/adapters/_search.py +84 -0
- hyperadmin/adapters/filtering.py +86 -0
- hyperadmin/adapters/introspection.py +239 -0
- hyperadmin/adapters/registry.py +37 -0
- hyperadmin/adapters/schema.py +239 -0
- hyperadmin/adapters/sqlalchemy.py +423 -0
- hyperadmin/adapters/sqlmodel.py +650 -0
- hyperadmin/auth/__init__.py +156 -0
- hyperadmin/auth/_types.py +52 -0
- hyperadmin/auth/backend.py +37 -0
- hyperadmin/auth/bridge.py +351 -0
- hyperadmin/auth/exceptions.py +124 -0
- hyperadmin/auth/middleware.py +287 -0
- hyperadmin/auth/models.py +245 -0
- hyperadmin/auth/oauth/__init__.py +81 -0
- hyperadmin/auth/oauth/backend.py +611 -0
- hyperadmin/auth/oauth/providers.py +214 -0
- hyperadmin/auth/oauth/refresh.py +126 -0
- hyperadmin/auth/oauth/session.py +96 -0
- hyperadmin/auth/oauth/tokens.py +114 -0
- hyperadmin/auth/oauth/views.py +306 -0
- hyperadmin/auth/oauth/wiring.py +131 -0
- hyperadmin/auth/otp.py +189 -0
- hyperadmin/auth/permissions.py +232 -0
- hyperadmin/auth/session.py +81 -0
- hyperadmin/auth/session_middleware.py +164 -0
- hyperadmin/auth/token_handoff.py +452 -0
- hyperadmin/auth/user_cache.py +222 -0
- hyperadmin/auth/views.py +581 -0
- hyperadmin/core/__init__.py +76 -0
- hyperadmin/core/actions.py +151 -0
- hyperadmin/core/adapters.py +883 -0
- hyperadmin/core/app.py +1437 -0
- hyperadmin/core/auth.py +97 -0
- hyperadmin/core/bulk_results.py +28 -0
- hyperadmin/core/cache.py +68 -0
- hyperadmin/core/choices.py +38 -0
- hyperadmin/core/concurrency.py +107 -0
- hyperadmin/core/csrf.py +108 -0
- hyperadmin/core/discovery.py +161 -0
- hyperadmin/core/display.py +172 -0
- hyperadmin/core/fields.py +158 -0
- hyperadmin/core/fieldsets.py +22 -0
- hyperadmin/core/filtering.py +403 -0
- hyperadmin/core/filters_compat.py +78 -0
- hyperadmin/core/inlines.py +64 -0
- hyperadmin/core/introspection.py +280 -0
- hyperadmin/core/layouts.py +17 -0
- hyperadmin/core/lifecycle.py +278 -0
- hyperadmin/core/model.py +189 -0
- hyperadmin/core/navigation.py +354 -0
- hyperadmin/core/options.py +391 -0
- hyperadmin/core/palette.py +94 -0
- hyperadmin/core/panels.py +227 -0
- hyperadmin/core/plugin_wiring.py +205 -0
- hyperadmin/core/plugins.py +588 -0
- hyperadmin/core/primary_key.py +118 -0
- hyperadmin/core/rate_limit.py +90 -0
- hyperadmin/core/registry.py +129 -0
- hyperadmin/core/relation_loading.py +25 -0
- hyperadmin/core/schema.py +83 -0
- hyperadmin/core/sensitive.py +134 -0
- hyperadmin/core/settings.py +377 -0
- hyperadmin/core/storage_paths.py +54 -0
- hyperadmin/core/timezones.py +137 -0
- hyperadmin/core/uploads.py +16 -0
- hyperadmin/db.py +160 -0
- hyperadmin/discover.py +54 -0
- hyperadmin/filters/__init__.py +39 -0
- hyperadmin/filters/base.py +246 -0
- hyperadmin/filters/boolean.py +105 -0
- hyperadmin/filters/choice.py +74 -0
- hyperadmin/filters/date.py +265 -0
- hyperadmin/filters/relation.py +69 -0
- hyperadmin/filters/saved_views.py +203 -0
- hyperadmin/i18n/__init__.py +50 -0
- hyperadmin/i18n/loader.py +150 -0
- hyperadmin/i18n/middleware.py +159 -0
- hyperadmin/i18n/validation_messages.py +264 -0
- hyperadmin/loadtest/__init__.py +28 -0
- hyperadmin/loadtest/batch.py +263 -0
- hyperadmin/loadtest/checkpoint.py +168 -0
- hyperadmin/loadtest/generators/__init__.py +29 -0
- hyperadmin/loadtest/generators/auth.py +86 -0
- hyperadmin/loadtest/generators/erp.py +177 -0
- hyperadmin/loadtest/plan.py +189 -0
- hyperadmin/loadtest/pool.py +113 -0
- hyperadmin/loadtest/progress.py +150 -0
- hyperadmin/locale/ar/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ar/LC_MESSAGES/messages.po +2139 -0
- hyperadmin/locale/de/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/de/LC_MESSAGES/messages.po +2114 -0
- hyperadmin/locale/en/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/en/LC_MESSAGES/messages.po +1780 -0
- hyperadmin/locale/es/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/es/LC_MESSAGES/messages.po +2094 -0
- hyperadmin/locale/fr/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/fr/LC_MESSAGES/messages.po +2100 -0
- hyperadmin/locale/he/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/he/LC_MESSAGES/messages.po +2076 -0
- hyperadmin/locale/hi/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/hi/LC_MESSAGES/messages.po +2084 -0
- hyperadmin/locale/id/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/id/LC_MESSAGES/messages.po +2071 -0
- hyperadmin/locale/it/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/it/LC_MESSAGES/messages.po +2098 -0
- hyperadmin/locale/ja/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ja/LC_MESSAGES/messages.po +2049 -0
- hyperadmin/locale/ko/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ko/LC_MESSAGES/messages.po +2049 -0
- hyperadmin/locale/nl/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/nl/LC_MESSAGES/messages.po +2100 -0
- hyperadmin/locale/pl/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/pl/LC_MESSAGES/messages.po +2112 -0
- hyperadmin/locale/pt_BR/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/pt_BR/LC_MESSAGES/messages.po +2098 -0
- hyperadmin/locale/ru/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/ru/LC_MESSAGES/messages.po +2112 -0
- hyperadmin/locale/th/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/th/LC_MESSAGES/messages.po +2065 -0
- hyperadmin/locale/tr/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/tr/LC_MESSAGES/messages.po +2084 -0
- hyperadmin/locale/uk/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/uk/LC_MESSAGES/messages.po +1889 -0
- hyperadmin/locale/vi/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/vi/LC_MESSAGES/messages.po +2063 -0
- hyperadmin/locale/zh_CN/LC_MESSAGES/messages.mo +0 -0
- hyperadmin/locale/zh_CN/LC_MESSAGES/messages.po +2049 -0
- hyperadmin/main.py +3 -0
- hyperadmin/management/__init__.py +0 -0
- hyperadmin/management/commands/__init__.py +0 -0
- hyperadmin/management/commands/createsuperuser.py +114 -0
- hyperadmin/management/commands/initdb.py +76 -0
- hyperadmin/management/commands/plugins.py +31 -0
- hyperadmin/management/commands/seed.py +125 -0
- hyperadmin/navigation/__init__.py +9 -0
- hyperadmin/navigation/pins.py +153 -0
- hyperadmin/panels/__init__.py +10 -0
- hyperadmin/panels/pdf.py +151 -0
- hyperadmin/permissions/__init__.py +59 -0
- hyperadmin/permissions/audit.py +109 -0
- hyperadmin/permissions/matrix.py +343 -0
- hyperadmin/permissions/object_rules.py +143 -0
- hyperadmin/realtime/__init__.py +51 -0
- hyperadmin/realtime/_debug.py +77 -0
- hyperadmin/realtime/config.py +124 -0
- hyperadmin/realtime/emitting.py +143 -0
- hyperadmin/realtime/events.py +107 -0
- hyperadmin/realtime/presence.py +193 -0
- hyperadmin/realtime/presence_redis.py +142 -0
- hyperadmin/realtime/pubsub.py +129 -0
- hyperadmin/realtime/pubsub_redis.py +159 -0
- hyperadmin/realtime/registry.py +102 -0
- hyperadmin/realtime/sse.py +82 -0
- hyperadmin/realtime/ws.py +477 -0
- hyperadmin/routing.py +680 -0
- hyperadmin/static/css/_accessibility.css +149 -0
- hyperadmin/static/css/_alerts.css +147 -0
- hyperadmin/static/css/_autocomplete.css +39 -0
- hyperadmin/static/css/_banner.css +118 -0
- hyperadmin/static/css/_buttons.css +241 -0
- hyperadmin/static/css/_card.css +86 -0
- hyperadmin/static/css/_dark-mode.css +232 -0
- hyperadmin/static/css/_fieldsets.css +71 -0
- hyperadmin/static/css/_filter.css +203 -0
- hyperadmin/static/css/_fonts.css +25 -0
- hyperadmin/static/css/_forms.css +862 -0
- hyperadmin/static/css/_inline-cell.css +222 -0
- hyperadmin/static/css/_inlines.css +160 -0
- hyperadmin/static/css/_layout.css +62 -0
- hyperadmin/static/css/_login.css +112 -0
- hyperadmin/static/css/_menu.css +156 -0
- hyperadmin/static/css/_navbar.css +299 -0
- hyperadmin/static/css/_page-header.css +139 -0
- hyperadmin/static/css/_pagination.css +125 -0
- hyperadmin/static/css/_palette.css +304 -0
- hyperadmin/static/css/_panels.css +174 -0
- hyperadmin/static/css/_permissions.css +547 -0
- hyperadmin/static/css/_pill.css +123 -0
- hyperadmin/static/css/_popover.css +170 -0
- hyperadmin/static/css/_popup.css +65 -0
- hyperadmin/static/css/_progress.css +161 -0
- hyperadmin/static/css/_realtime.css +78 -0
- hyperadmin/static/css/_reset.css +48 -0
- hyperadmin/static/css/_responsive.css +51 -0
- hyperadmin/static/css/_rtl.css +23 -0
- hyperadmin/static/css/_search.css +67 -0
- hyperadmin/static/css/_seg.css +95 -0
- hyperadmin/static/css/_sidebar.css +446 -0
- hyperadmin/static/css/_sticky.css +54 -0
- hyperadmin/static/css/_table.css +776 -0
- hyperadmin/static/css/_theme-terminal-type.css +92 -0
- hyperadmin/static/css/_theme-terminal.css +330 -0
- hyperadmin/static/css/_theme-toggle.css +46 -0
- hyperadmin/static/css/_tokens.css +232 -0
- hyperadmin/static/css/_utilities.css +133 -0
- hyperadmin/static/css/hyperadmin.css +58 -0
- hyperadmin/static/fonts/Inter-OFL.txt +93 -0
- hyperadmin/static/fonts/InterVariable.woff2 +0 -0
- hyperadmin/static/fonts/JetBrainsMono-OFL.txt +93 -0
- hyperadmin/static/fonts/JetBrainsMonoVariable.woff2 +0 -0
- hyperadmin/static/icons/arrow-down.svg +1 -0
- hyperadmin/static/icons/arrow-up.svg +1 -0
- hyperadmin/static/icons/bar-chart-3.svg +1 -0
- hyperadmin/static/icons/bell.svg +1 -0
- hyperadmin/static/icons/bookmark.svg +1 -0
- hyperadmin/static/icons/briefcase.svg +1 -0
- hyperadmin/static/icons/building-2.svg +1 -0
- hyperadmin/static/icons/calendar.svg +1 -0
- hyperadmin/static/icons/check.svg +1 -0
- hyperadmin/static/icons/chevron-down.svg +1 -0
- hyperadmin/static/icons/chevron-left.svg +1 -0
- hyperadmin/static/icons/chevron-right.svg +1 -0
- hyperadmin/static/icons/circle-check.svg +1 -0
- hyperadmin/static/icons/circle-help.svg +1 -0
- hyperadmin/static/icons/circle-x.svg +1 -0
- hyperadmin/static/icons/clock.svg +1 -0
- hyperadmin/static/icons/columns-3.svg +1 -0
- hyperadmin/static/icons/command.svg +1 -0
- hyperadmin/static/icons/copy.svg +1 -0
- hyperadmin/static/icons/credit-card.svg +1 -0
- hyperadmin/static/icons/database.svg +1 -0
- hyperadmin/static/icons/download.svg +1 -0
- hyperadmin/static/icons/ellipsis.svg +1 -0
- hyperadmin/static/icons/external-link.svg +1 -0
- hyperadmin/static/icons/eye.svg +1 -0
- hyperadmin/static/icons/file-text.svg +1 -0
- hyperadmin/static/icons/filter.svg +1 -0
- hyperadmin/static/icons/folder.svg +1 -0
- hyperadmin/static/icons/globe.svg +1 -0
- hyperadmin/static/icons/history.svg +1 -0
- hyperadmin/static/icons/home.svg +1 -0
- hyperadmin/static/icons/image.svg +1 -0
- hyperadmin/static/icons/info.svg +1 -0
- hyperadmin/static/icons/key-round.svg +1 -0
- hyperadmin/static/icons/layers.svg +1 -0
- hyperadmin/static/icons/layout-grid.svg +1 -0
- hyperadmin/static/icons/list-checks.svg +1 -0
- hyperadmin/static/icons/lock.svg +1 -0
- hyperadmin/static/icons/log-out.svg +1 -0
- hyperadmin/static/icons/mail.svg +1 -0
- hyperadmin/static/icons/map-pin.svg +1 -0
- hyperadmin/static/icons/menu.svg +1 -0
- hyperadmin/static/icons/moon.svg +1 -0
- hyperadmin/static/icons/package.svg +1 -0
- hyperadmin/static/icons/panel-left-close.svg +1 -0
- hyperadmin/static/icons/panel-left-open.svg +1 -0
- hyperadmin/static/icons/pencil.svg +1 -0
- hyperadmin/static/icons/pin-off.svg +1 -0
- hyperadmin/static/icons/pin.svg +1 -0
- hyperadmin/static/icons/plus.svg +1 -0
- hyperadmin/static/icons/receipt.svg +1 -0
- hyperadmin/static/icons/refresh-cw.svg +1 -0
- hyperadmin/static/icons/rotate-ccw.svg +1 -0
- hyperadmin/static/icons/search.svg +1 -0
- hyperadmin/static/icons/settings.svg +1 -0
- hyperadmin/static/icons/shield-check.svg +1 -0
- hyperadmin/static/icons/shopping-cart.svg +1 -0
- hyperadmin/static/icons/sliders-horizontal.svg +1 -0
- hyperadmin/static/icons/sparkles.svg +1 -0
- hyperadmin/static/icons/store.svg +1 -0
- hyperadmin/static/icons/sun.svg +1 -0
- hyperadmin/static/icons/tag.svg +1 -0
- hyperadmin/static/icons/trash-2.svg +1 -0
- hyperadmin/static/icons/triangle-alert.svg +1 -0
- hyperadmin/static/icons/truck.svg +1 -0
- hyperadmin/static/icons/upload.svg +1 -0
- hyperadmin/static/icons/user.svg +1 -0
- hyperadmin/static/icons/users.svg +1 -0
- hyperadmin/static/icons/wallet.svg +1 -0
- hyperadmin/static/icons/x.svg +1 -0
- hyperadmin/static/img/hyperadmin-favicon.svg +1 -0
- hyperadmin/static/img/hyperadmin-mark-mono.svg +1 -0
- hyperadmin/static/img/hyperadmin-mark.svg +1 -0
- hyperadmin/static/img/hyperadmin-wordmark-dark.svg +1 -0
- hyperadmin/static/img/hyperadmin-wordmark.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-favicon-16.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-favicon.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-mark.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-wordmark-dark.svg +1 -0
- hyperadmin/static/img/terminal/hyperadmin-wordmark.svg +1 -0
- hyperadmin/static/js/autocomplete.js +475 -0
- hyperadmin/static/js/confirm_delete.js +113 -0
- hyperadmin/static/js/error_summary.js +37 -0
- hyperadmin/static/js/form_guard.js +77 -0
- hyperadmin/static/js/inline_edit.js +97 -0
- hyperadmin/static/js/palette.js +292 -0
- hyperadmin/static/js/primitives.js +205 -0
- hyperadmin/static/js/realtime-status.js +515 -0
- hyperadmin/static/js/request_errors.js +85 -0
- hyperadmin/static/js/shortcuts.js +175 -0
- hyperadmin/static/js/sidebar.js +83 -0
- hyperadmin/static/js/vendor/LICENSE-alpinejs.txt +21 -0
- hyperadmin/static/js/vendor/LICENSE-htmx.txt +25 -0
- hyperadmin/static/js/vendor/alpinejs-3.17.4.min.js +21 -0
- hyperadmin/static/js/vendor/alpinejs-focus-3.17.4.min.js +18 -0
- hyperadmin/static/js/vendor/htmx-1.9.10.min.js +1 -0
- hyperadmin/templates/_base.html +161 -0
- hyperadmin/templates/_messages.html +11 -0
- hyperadmin/templates/_navbar.html +126 -0
- hyperadmin/templates/_sidebar.html +80 -0
- hyperadmin/templates/auth/mfa_challenge.html +75 -0
- hyperadmin/templates/auth/mfa_settings.html +110 -0
- hyperadmin/templates/auth/oauth_link_required.html +24 -0
- hyperadmin/templates/auth/oauth_settings.html +55 -0
- hyperadmin/templates/base.html +16 -0
- hyperadmin/templates/bulk_form.html +18 -0
- hyperadmin/templates/bulk_result.html +20 -0
- hyperadmin/templates/components/_icons.html +86 -0
- hyperadmin/templates/components/_macros.html +27 -0
- hyperadmin/templates/components/_nav.html +55 -0
- hyperadmin/templates/components/_row_access.html +26 -0
- hyperadmin/templates/components/banner.html +77 -0
- hyperadmin/templates/components/bulk_form.html +81 -0
- hyperadmin/templates/components/bulk_result.html +133 -0
- hyperadmin/templates/components/bulk_toolbar.html +63 -0
- hyperadmin/templates/components/command_palette.html +59 -0
- hyperadmin/templates/components/confirm_delete_dialog.html +26 -0
- hyperadmin/templates/components/conflict_dialog.html +42 -0
- hyperadmin/templates/components/csrf_reload_banner.html +20 -0
- hyperadmin/templates/components/error_summary.html +39 -0
- hyperadmin/templates/components/error_toast.html +18 -0
- hyperadmin/templates/components/fieldset.html +38 -0
- hyperadmin/templates/components/filter_bar.html +50 -0
- hyperadmin/templates/components/filter_sidebar.html +31 -0
- hyperadmin/templates/components/filters/boolean.html +10 -0
- hyperadmin/templates/components/filters/current_period.html +8 -0
- hyperadmin/templates/components/filters/date_range.html +26 -0
- hyperadmin/templates/components/filters/is_owner.html +8 -0
- hyperadmin/templates/components/filters/multi_choice.html +10 -0
- hyperadmin/templates/components/filters/multi_relation.html +20 -0
- hyperadmin/templates/components/filters/select.html +11 -0
- hyperadmin/templates/components/inline_cell.html +23 -0
- hyperadmin/templates/components/inline_cell_error.html +51 -0
- hyperadmin/templates/components/inline_cell_stale.html +20 -0
- hyperadmin/templates/components/inline_editor.html +85 -0
- hyperadmin/templates/components/inline_formset.html +34 -0
- hyperadmin/templates/components/inline_row.html +49 -0
- hyperadmin/templates/components/list_error.html +12 -0
- hyperadmin/templates/components/menu.html +74 -0
- hyperadmin/templates/components/nav_pinned.html +24 -0
- hyperadmin/templates/components/pagination.html +87 -0
- hyperadmin/templates/components/panel_document.html +19 -0
- hyperadmin/templates/components/panel_states.html +35 -0
- hyperadmin/templates/components/panel_tab_strip.html +31 -0
- hyperadmin/templates/components/pill.html +15 -0
- hyperadmin/templates/components/popover.html +59 -0
- hyperadmin/templates/components/presence_banner.html +28 -0
- hyperadmin/templates/components/progress.html +72 -0
- hyperadmin/templates/components/saved_views.html +61 -0
- hyperadmin/templates/components/search_input.html +19 -0
- hyperadmin/templates/components/seg.html +38 -0
- hyperadmin/templates/components/shortcuts_overlay.html +45 -0
- hyperadmin/templates/components/sortable_header.html +23 -0
- hyperadmin/templates/components/table.html +45 -0
- hyperadmin/templates/components/table_body.html +86 -0
- hyperadmin/templates/components/thumbnail.html +8 -0
- hyperadmin/templates/components/toast.html +36 -0
- hyperadmin/templates/components/tooltip.html +20 -0
- hyperadmin/templates/create.html +43 -0
- hyperadmin/templates/dashboard.html +8 -0
- hyperadmin/templates/detail.html +120 -0
- hyperadmin/templates/detail_layout.html +15 -0
- hyperadmin/templates/error.html +24 -0
- hyperadmin/templates/form_layout.html +26 -0
- hyperadmin/templates/list.html +5 -0
- hyperadmin/templates/list_layout.html +105 -0
- hyperadmin/templates/login.html +79 -0
- hyperadmin/templates/permissions/_banner.html +55 -0
- hyperadmin/templates/permissions/_diff_row.html +6 -0
- hyperadmin/templates/permissions/_group_gone.html +16 -0
- hyperadmin/templates/permissions/_macros.html +22 -0
- hyperadmin/templates/permissions/matrix.html +408 -0
- hyperadmin/templates/permissions/object_popover.html +95 -0
- hyperadmin/templates/update.html +69 -0
- hyperadmin/templates/widgets/autocomplete.html +100 -0
- hyperadmin/templates/widgets/checkbox_input.html +20 -0
- hyperadmin/templates/widgets/choices_options.html +3 -0
- hyperadmin/templates/widgets/date_input.html +13 -0
- hyperadmin/templates/widgets/datetime_input.html +18 -0
- hyperadmin/templates/widgets/encoded_textarea.html +4 -0
- hyperadmin/templates/widgets/file_input.html +15 -0
- hyperadmin/templates/widgets/float_input.html +12 -0
- hyperadmin/templates/widgets/image_input.html +108 -0
- hyperadmin/templates/widgets/multiselect_input.html +13 -0
- hyperadmin/templates/widgets/number_input.html +11 -0
- hyperadmin/templates/widgets/popup_form.html +64 -0
- hyperadmin/templates/widgets/relation_multiselect_input.html +36 -0
- hyperadmin/templates/widgets/relation_select_input.html +38 -0
- hyperadmin/templates/widgets/select_input.html +17 -0
- hyperadmin/templates/widgets/text_input.html +13 -0
- hyperadmin/templates/widgets/textarea.html +4 -0
- hyperadmin/uploads/__init__.py +44 -0
- hyperadmin/uploads/images.py +272 -0
- hyperadmin/uploads/storage.py +265 -0
- hyperadmin/uploads/validation.py +37 -0
- hyperadmin/views/__init__.py +3 -0
- hyperadmin/views/csrf.py +316 -0
- hyperadmin/views/dynamic/__init__.py +35 -0
- hyperadmin/views/dynamic/actions.py +264 -0
- hyperadmin/views/dynamic/base.py +576 -0
- hyperadmin/views/dynamic/concurrency.py +138 -0
- hyperadmin/views/dynamic/core.py +33 -0
- hyperadmin/views/dynamic/create.py +189 -0
- hyperadmin/views/dynamic/detail.py +231 -0
- hyperadmin/views/dynamic/files.py +233 -0
- hyperadmin/views/dynamic/form_data.py +162 -0
- hyperadmin/views/dynamic/helpers.py +151 -0
- hyperadmin/views/dynamic/inline.py +348 -0
- hyperadmin/views/dynamic/list_view.py +612 -0
- hyperadmin/views/dynamic/model_view.py +17 -0
- hyperadmin/views/dynamic/palette_search.py +78 -0
- hyperadmin/views/dynamic/relations.py +544 -0
- hyperadmin/views/dynamic/saved_views.py +159 -0
- hyperadmin/views/dynamic/update.py +313 -0
- hyperadmin/views/error_pages.py +46 -0
- hyperadmin/views/forms.py +1294 -0
- hyperadmin/views/htmx.py +53 -0
- hyperadmin/views/locale.py +113 -0
- hyperadmin/views/nav_pins.py +149 -0
- hyperadmin/views/navigation.py +143 -0
- hyperadmin/views/palette_context.py +91 -0
- hyperadmin/views/palette_search.py +103 -0
- hyperadmin/views/permissions_matrix.py +490 -0
- hyperadmin/views/rate_limit.py +87 -0
- hyperadmin/views/route.py +316 -0
- hyperadmin/views/static.py +138 -0
- hyperadmin/views/template_filters.py +305 -0
- hyperadmin/views/uploads.py +92 -0
- hyperadmin/views/urls.py +180 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Theme preset "terminal": type and shape layer
|
|
3
|
+
|
|
4
|
+
Inter (--ha-font-family) for everything people read: body, cells, inputs,
|
|
5
|
+
help, alerts, menus. JetBrains Mono (--ha-font-mono) for the structure
|
|
6
|
+
around it: headings, brand, nav, breadcrumbs, column headers, labels,
|
|
7
|
+
buttons, tabs, pager, pills, counts, chips, numbers, IDs, keys.
|
|
8
|
+
|
|
9
|
+
:where() keeps the preset prefix at zero specificity, so these rules win
|
|
10
|
+
over the component partials only by coming later in the same layer, and a
|
|
11
|
+
modifier such as .ha-btn--sm still sets its own size.
|
|
12
|
+
========================================================================== */
|
|
13
|
+
|
|
14
|
+
:where(:root[data-ha-preset="terminal"]) :is(
|
|
15
|
+
.ha-page-title, .ha-h1, .ha-section-title, .ha-h2, .ha-login-title, .ha-h3, .ha-h4, .ha-card-title,
|
|
16
|
+
.ha-navbar-brand-text, .ha-nav-group__label, .ha-sidebar-link, .ha-crumbs,
|
|
17
|
+
.ha-table-th, .ha-label, .ha-btn, .ha-tab, .ha-pagination-btn, .ha-pagination-page,
|
|
18
|
+
.ha-pill, .ha-count, .ha-chip, .ha-num, .ha-mono, .ha-kbd
|
|
19
|
+
) {
|
|
20
|
+
font-family: var(--ha-font-mono);
|
|
21
|
+
/* The vendored mono carries 400–500: a 600 renders as the real 500, never faux bold */
|
|
22
|
+
font-synthesis-weight: none;
|
|
23
|
+
font-variant-ligatures: none; /* != >= -> stay as typed in data */
|
|
24
|
+
font-feature-settings: "zero" 1; /* slashed zero: 0 vs O in IDs */
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* A mono glyph is ~15% wider than Inter's: structure runs one step smaller */
|
|
28
|
+
:where(:root[data-ha-preset="terminal"]) :is(.ha-page-title, .ha-h1) {
|
|
29
|
+
font-size: 1.625rem;
|
|
30
|
+
line-height: 34px;
|
|
31
|
+
font-weight: var(--ha-font-medium);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where(:root[data-ha-preset="terminal"]) :is(.ha-section-title, .ha-h2, .ha-login-title) {
|
|
35
|
+
font-size: 1.375rem;
|
|
36
|
+
line-height: 30px;
|
|
37
|
+
font-weight: var(--ha-font-medium);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(:root[data-ha-preset="terminal"]) .ha-h3 {
|
|
41
|
+
font-size: 1.125rem;
|
|
42
|
+
line-height: 26px;
|
|
43
|
+
font-weight: var(--ha-font-medium);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where(:root[data-ha-preset="terminal"]) :is(.ha-h4, .ha-card-title) {
|
|
47
|
+
font-size: 0.9375rem;
|
|
48
|
+
line-height: 22px;
|
|
49
|
+
font-weight: var(--ha-font-medium);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where(:root[data-ha-preset="terminal"]) :is(.ha-table-th, .ha-label, .ha-crumbs) {
|
|
53
|
+
font-size: var(--ha-font-size-xs);
|
|
54
|
+
line-height: 18px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Status by shape as well as colour: success ● filled circle, warning ▲
|
|
58
|
+
triangle, info ○ hollow circle, danger ■ square. Status markers and the
|
|
59
|
+
live dot are the only round things in this preset. */
|
|
60
|
+
:where(:root[data-ha-preset="terminal"]) .ha-pill::before {
|
|
61
|
+
inline-size: 6px;
|
|
62
|
+
block-size: 6px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:where(:root[data-ha-preset="terminal"]) .ha-pill--success::before {
|
|
66
|
+
inline-size: 7px;
|
|
67
|
+
block-size: 7px;
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where(:root[data-ha-preset="terminal"]) .ha-pill--warning::before {
|
|
72
|
+
inline-size: 8px;
|
|
73
|
+
block-size: 7px;
|
|
74
|
+
clip-path: polygon(50% 0, 100% 100%, 0 100%);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:where(:root[data-ha-preset="terminal"]) .ha-pill--info::before {
|
|
78
|
+
inline-size: 7px;
|
|
79
|
+
block-size: 7px;
|
|
80
|
+
border-radius: 50%;
|
|
81
|
+
background-color: transparent;
|
|
82
|
+
box-shadow: inset 0 0 0 1.5px currentColor;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where(:root[data-ha-preset="terminal"]) .ha-pill--danger::before {
|
|
86
|
+
inline-size: 7px;
|
|
87
|
+
block-size: 7px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:where(:root[data-ha-preset="terminal"]) .ha-rt-dot {
|
|
91
|
+
border-radius: 50%;
|
|
92
|
+
}
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Theme preset "terminal" (HyperAdmin v2, the default preset)
|
|
3
|
+
|
|
4
|
+
Near-black ground, square corners, one acid-green signal. Applies when
|
|
5
|
+
<html data-ha-preset="terminal">, set from HyperAdminSettings(theme_preset=...).
|
|
6
|
+
Token names are the classic ones, so templates and host overrides keep
|
|
7
|
+
working; only values change. Dark is the primary theme of this preset.
|
|
8
|
+
|
|
9
|
+
Values mirror the "HyperAdmin v2" design system tokens.json. In light the
|
|
10
|
+
primary pair inverts (near-black fill, acid label) and acid as a colour on
|
|
11
|
+
a light ground drops to olive, because #b8f23e on white is 1.3:1.
|
|
12
|
+
Contrast: text tokens hold 4.5:1 on surface-base and surface-raised in both
|
|
13
|
+
themes; border-strong and brand hold 3:1.
|
|
14
|
+
========================================================================== */
|
|
15
|
+
|
|
16
|
+
/* Private palette, defined once and mapped into both dark selector blocks */
|
|
17
|
+
:root[data-ha-preset="terminal"] {
|
|
18
|
+
--_term-dark-surface-base: #0e100d;
|
|
19
|
+
--_term-dark-surface-raised: #161915;
|
|
20
|
+
--_term-dark-surface-sunken: #0a0b09;
|
|
21
|
+
--_term-dark-surface-overlay: #1c2018;
|
|
22
|
+
--_term-dark-surface-hover: #1e231b;
|
|
23
|
+
--_term-dark-surface-selected: #1f2a12;
|
|
24
|
+
--_term-dark-color-border-light: #2a2f27;
|
|
25
|
+
--_term-dark-color-border-strong: #6f786a;
|
|
26
|
+
--_term-dark-color-text-strong: #f1f3ec;
|
|
27
|
+
--_term-dark-color-text: #d3d8cc;
|
|
28
|
+
--_term-dark-color-text-muted: #9aa293;
|
|
29
|
+
--_term-dark-color-text-disabled: #5a6155;
|
|
30
|
+
--_term-dark-color-brand: #b8f23e;
|
|
31
|
+
--_term-dark-color-primary: #b8f23e;
|
|
32
|
+
--_term-dark-color-primary-hover: #cfff6b;
|
|
33
|
+
--_term-dark-color-on-primary: #0e100d;
|
|
34
|
+
--_term-dark-color-primary-text: #b8f23e;
|
|
35
|
+
--_term-dark-color-primary-light: #1e2914;
|
|
36
|
+
--_term-dark-color-accent: #5ce1e6;
|
|
37
|
+
--_term-dark-color-on-accent: #0e100d;
|
|
38
|
+
--_term-dark-color-accent-soft: #0f2a2b;
|
|
39
|
+
--_term-dark-color-danger: #ff6b5e;
|
|
40
|
+
--_term-dark-color-danger-hover: #ff8a7e;
|
|
41
|
+
--_term-dark-color-on-danger: #0e100d;
|
|
42
|
+
--_term-dark-color-danger-text: #ff8a7e;
|
|
43
|
+
--_term-dark-color-danger-light: #331512;
|
|
44
|
+
--_term-dark-color-success: #7fe0a0;
|
|
45
|
+
--_term-dark-color-success-text: #7fe0a0;
|
|
46
|
+
--_term-dark-color-success-light: #10291a;
|
|
47
|
+
--_term-dark-color-warning: #ffb547;
|
|
48
|
+
--_term-dark-color-warning-text: #ffb547;
|
|
49
|
+
--_term-dark-color-warning-light: #33240a;
|
|
50
|
+
--_term-dark-color-info: #8ec7ff;
|
|
51
|
+
--_term-dark-color-info-text: #8ec7ff;
|
|
52
|
+
--_term-dark-color-info-light: #0e2336;
|
|
53
|
+
--_term-dark-color-info-border: #8ec7ff;
|
|
54
|
+
--_term-dark-color-link: #b8f23e;
|
|
55
|
+
--_term-dark-color-link-hover: #cfff6b;
|
|
56
|
+
--_term-dark-color-bg-light: #161915;
|
|
57
|
+
--_term-dark-color-scrim: rgba(0, 0, 0, 0.72);
|
|
58
|
+
--_term-dark-chart-1: #b8f23e;
|
|
59
|
+
--_term-dark-chart-2: #3e8fd9;
|
|
60
|
+
--_term-dark-chart-3: #ffb547;
|
|
61
|
+
--_term-dark-chart-4: #b06fe0;
|
|
62
|
+
--_term-dark-chart-5: #5ce1e6;
|
|
63
|
+
--_term-dark-chart-6: #d9536a;
|
|
64
|
+
--_term-dark-chart-grid: #23281f;
|
|
65
|
+
--_term-dark-chart-axis: #9aa293;
|
|
66
|
+
--_term-dark-shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.6);
|
|
67
|
+
--_term-dark-shadow-lg: 0 24px 48px -8px rgba(0, 0, 0, 0.7);
|
|
68
|
+
--_term-dark-shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.7);
|
|
69
|
+
--_term-dark-shadow-focus: 0 0 0 4px rgba(184, 242, 62, 0.28);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Light values, plus everything that does not change with the colour scheme */
|
|
73
|
+
:root[data-ha-preset="terminal"] {
|
|
74
|
+
--ha-surface-base: #f3f4ef;
|
|
75
|
+
--ha-surface-raised: #ffffff;
|
|
76
|
+
--ha-surface-sunken: #e8eae3;
|
|
77
|
+
--ha-surface-overlay: #ffffff;
|
|
78
|
+
--ha-surface-hover: #eceee7;
|
|
79
|
+
--ha-surface-selected: #eaf3da;
|
|
80
|
+
--ha-color-border-light: #d3d7cc;
|
|
81
|
+
--ha-color-border-strong: #7a8274;
|
|
82
|
+
--ha-color-text-strong: #0e100d;
|
|
83
|
+
--ha-color-text: #2e332b;
|
|
84
|
+
--ha-color-text-muted: #565d51;
|
|
85
|
+
--ha-color-text-disabled: #9aa293;
|
|
86
|
+
--ha-color-brand: #4f7d00;
|
|
87
|
+
--ha-color-primary: #0e100d;
|
|
88
|
+
--ha-color-primary-hover: #2a2f27;
|
|
89
|
+
--ha-color-on-primary: #b8f23e;
|
|
90
|
+
--ha-color-primary-text: #3f6600;
|
|
91
|
+
--ha-color-primary-light: #eaf3da;
|
|
92
|
+
--ha-color-accent: #00666b;
|
|
93
|
+
--ha-color-on-accent: #ffffff;
|
|
94
|
+
--ha-color-accent-soft: #ddf1f1;
|
|
95
|
+
--ha-color-danger: #c42b1c;
|
|
96
|
+
--ha-color-danger-hover: #b42318;
|
|
97
|
+
--ha-color-on-danger: #ffffff;
|
|
98
|
+
--ha-color-danger-text: #b42318;
|
|
99
|
+
--ha-color-danger-light: #fcebe8;
|
|
100
|
+
--ha-color-success: #1e6b3a;
|
|
101
|
+
--ha-color-success-text: #1e6b3a;
|
|
102
|
+
--ha-color-success-light: #e3f1e7;
|
|
103
|
+
--ha-color-warning: #c77700;
|
|
104
|
+
--ha-color-warning-text: #8a4b00;
|
|
105
|
+
--ha-color-warning-light: #fbefd9;
|
|
106
|
+
--ha-color-info: #1f5fa8;
|
|
107
|
+
--ha-color-info-text: #1f5fa8;
|
|
108
|
+
--ha-color-info-light: #e4eef9;
|
|
109
|
+
--ha-color-info-border: #1f5fa8;
|
|
110
|
+
--ha-color-link: #3f6600;
|
|
111
|
+
--ha-color-link-hover: #0e100d;
|
|
112
|
+
--ha-color-bg-light: #ffffff;
|
|
113
|
+
--ha-color-scrim: rgba(14, 16, 13, 0.56);
|
|
114
|
+
--ha-chart-1: #6a9c10;
|
|
115
|
+
--ha-chart-2: #1f5fa8;
|
|
116
|
+
--ha-chart-3: #c77700;
|
|
117
|
+
--ha-chart-4: #6b3fa0;
|
|
118
|
+
--ha-chart-5: #00838a;
|
|
119
|
+
--ha-chart-6: #a3263a;
|
|
120
|
+
--ha-chart-grid: #e2e5dc;
|
|
121
|
+
--ha-chart-axis: #565d51;
|
|
122
|
+
--ha-shadow-md: 0 8px 16px -4px rgba(14, 16, 13, 0.14);
|
|
123
|
+
--ha-shadow-lg: 0 24px 48px -8px rgba(14, 16, 13, 0.18);
|
|
124
|
+
--ha-shadow-xl: 0 24px 48px -8px rgba(14, 16, 13, 0.18);
|
|
125
|
+
--ha-shadow-focus: 0 0 0 4px rgba(79, 125, 0, 0.28);
|
|
126
|
+
|
|
127
|
+
/* aliases re-declared so they resolve to this preset's values */
|
|
128
|
+
--ha-color-border: var(--ha-color-border-strong);
|
|
129
|
+
--ha-color-focus-ring: var(--ha-color-brand);
|
|
130
|
+
--ha-color-bg: var(--ha-surface-base);
|
|
131
|
+
--ha-color-surface: var(--ha-surface-raised);
|
|
132
|
+
--ha-color-primary-soft: var(--ha-color-primary-light);
|
|
133
|
+
--ha-color-success-soft: var(--ha-color-success-light);
|
|
134
|
+
--ha-color-warning-soft: var(--ha-color-warning-light);
|
|
135
|
+
--ha-color-danger-soft: var(--ha-color-danger-light);
|
|
136
|
+
--ha-color-info-soft: var(--ha-color-info-light);
|
|
137
|
+
--ha-color-bg-subtle: var(--ha-surface-sunken);
|
|
138
|
+
--ha-color-muted: var(--ha-color-text-muted);
|
|
139
|
+
--ha-color-fg-muted: var(--ha-color-text-muted);
|
|
140
|
+
--ha-color-success-bg: var(--ha-color-success-light);
|
|
141
|
+
--ha-color-danger-bg: var(--ha-color-danger-light);
|
|
142
|
+
--ha-color-danger-subtle: var(--ha-color-danger-light);
|
|
143
|
+
--ha-color-primary-50: var(--ha-color-primary-light);
|
|
144
|
+
--ha-color-primary-700: var(--ha-color-primary-text);
|
|
145
|
+
--ha-color-primary-800: var(--ha-color-link-hover);
|
|
146
|
+
|
|
147
|
+
/* Shape: every radius is 0; tokens stay so a host can round things back */
|
|
148
|
+
--ha-radius-sm: 0;
|
|
149
|
+
--ha-radius: 0;
|
|
150
|
+
--ha-radius-md: 0;
|
|
151
|
+
--ha-radius-lg: 0;
|
|
152
|
+
--ha-radius-xl: 0;
|
|
153
|
+
--ha-radius-2xl: 0;
|
|
154
|
+
--ha-radius-full: 0;
|
|
155
|
+
--ha-radius-pill: 0;
|
|
156
|
+
|
|
157
|
+
/* Elevation: cards and tables sit flat on a hairline; floating layers keep a shadow */
|
|
158
|
+
--ha-shadow-xs: none;
|
|
159
|
+
--ha-shadow-sm: none;
|
|
160
|
+
--ha-shadow: none;
|
|
161
|
+
|
|
162
|
+
/* Type: Inter reads, JetBrains Mono structures */
|
|
163
|
+
--ha-font-mono: "JetBrains Mono", "Noto Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
|
|
164
|
+
--font-sans: var(--ha-font-family);
|
|
165
|
+
--font-mono: var(--ha-font-mono);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
[data-ha-preset="terminal"] .ha-theme-dark,
|
|
169
|
+
:root[data-ha-preset="terminal"][data-theme="dark"] {
|
|
170
|
+
color-scheme: dark;
|
|
171
|
+
|
|
172
|
+
--ha-surface-base: var(--_term-dark-surface-base);
|
|
173
|
+
--ha-surface-raised: var(--_term-dark-surface-raised);
|
|
174
|
+
--ha-surface-sunken: var(--_term-dark-surface-sunken);
|
|
175
|
+
--ha-surface-overlay: var(--_term-dark-surface-overlay);
|
|
176
|
+
--ha-surface-hover: var(--_term-dark-surface-hover);
|
|
177
|
+
--ha-surface-selected: var(--_term-dark-surface-selected);
|
|
178
|
+
--ha-color-border-light: var(--_term-dark-color-border-light);
|
|
179
|
+
--ha-color-border-strong: var(--_term-dark-color-border-strong);
|
|
180
|
+
--ha-color-text-strong: var(--_term-dark-color-text-strong);
|
|
181
|
+
--ha-color-text: var(--_term-dark-color-text);
|
|
182
|
+
--ha-color-text-muted: var(--_term-dark-color-text-muted);
|
|
183
|
+
--ha-color-text-disabled: var(--_term-dark-color-text-disabled);
|
|
184
|
+
--ha-color-brand: var(--_term-dark-color-brand);
|
|
185
|
+
--ha-color-primary: var(--_term-dark-color-primary);
|
|
186
|
+
--ha-color-primary-hover: var(--_term-dark-color-primary-hover);
|
|
187
|
+
--ha-color-on-primary: var(--_term-dark-color-on-primary);
|
|
188
|
+
--ha-color-primary-text: var(--_term-dark-color-primary-text);
|
|
189
|
+
--ha-color-primary-light: var(--_term-dark-color-primary-light);
|
|
190
|
+
--ha-color-accent: var(--_term-dark-color-accent);
|
|
191
|
+
--ha-color-on-accent: var(--_term-dark-color-on-accent);
|
|
192
|
+
--ha-color-accent-soft: var(--_term-dark-color-accent-soft);
|
|
193
|
+
--ha-color-danger: var(--_term-dark-color-danger);
|
|
194
|
+
--ha-color-danger-hover: var(--_term-dark-color-danger-hover);
|
|
195
|
+
--ha-color-on-danger: var(--_term-dark-color-on-danger);
|
|
196
|
+
--ha-color-danger-text: var(--_term-dark-color-danger-text);
|
|
197
|
+
--ha-color-danger-light: var(--_term-dark-color-danger-light);
|
|
198
|
+
--ha-color-success: var(--_term-dark-color-success);
|
|
199
|
+
--ha-color-success-text: var(--_term-dark-color-success-text);
|
|
200
|
+
--ha-color-success-light: var(--_term-dark-color-success-light);
|
|
201
|
+
--ha-color-warning: var(--_term-dark-color-warning);
|
|
202
|
+
--ha-color-warning-text: var(--_term-dark-color-warning-text);
|
|
203
|
+
--ha-color-warning-light: var(--_term-dark-color-warning-light);
|
|
204
|
+
--ha-color-info: var(--_term-dark-color-info);
|
|
205
|
+
--ha-color-info-text: var(--_term-dark-color-info-text);
|
|
206
|
+
--ha-color-info-light: var(--_term-dark-color-info-light);
|
|
207
|
+
--ha-color-info-border: var(--_term-dark-color-info-border);
|
|
208
|
+
--ha-color-link: var(--_term-dark-color-link);
|
|
209
|
+
--ha-color-link-hover: var(--_term-dark-color-link-hover);
|
|
210
|
+
--ha-color-bg-light: var(--_term-dark-color-bg-light);
|
|
211
|
+
--ha-color-scrim: var(--_term-dark-color-scrim);
|
|
212
|
+
--ha-chart-1: var(--_term-dark-chart-1);
|
|
213
|
+
--ha-chart-2: var(--_term-dark-chart-2);
|
|
214
|
+
--ha-chart-3: var(--_term-dark-chart-3);
|
|
215
|
+
--ha-chart-4: var(--_term-dark-chart-4);
|
|
216
|
+
--ha-chart-5: var(--_term-dark-chart-5);
|
|
217
|
+
--ha-chart-6: var(--_term-dark-chart-6);
|
|
218
|
+
--ha-chart-grid: var(--_term-dark-chart-grid);
|
|
219
|
+
--ha-chart-axis: var(--_term-dark-chart-axis);
|
|
220
|
+
--ha-shadow-md: var(--_term-dark-shadow-md);
|
|
221
|
+
--ha-shadow-lg: var(--_term-dark-shadow-lg);
|
|
222
|
+
--ha-shadow-xl: var(--_term-dark-shadow-xl);
|
|
223
|
+
--ha-shadow-focus: var(--_term-dark-shadow-focus);
|
|
224
|
+
|
|
225
|
+
/* aliases re-declared so they resolve to this preset's values */
|
|
226
|
+
--ha-color-border: var(--_term-dark-color-border-strong);
|
|
227
|
+
--ha-color-focus-ring: var(--_term-dark-color-brand);
|
|
228
|
+
--ha-color-bg: var(--_term-dark-surface-base);
|
|
229
|
+
--ha-color-surface: var(--_term-dark-surface-raised);
|
|
230
|
+
--ha-color-primary-soft: var(--_term-dark-color-primary-light);
|
|
231
|
+
--ha-color-success-soft: var(--_term-dark-color-success-light);
|
|
232
|
+
--ha-color-warning-soft: var(--_term-dark-color-warning-light);
|
|
233
|
+
--ha-color-danger-soft: var(--_term-dark-color-danger-light);
|
|
234
|
+
--ha-color-info-soft: var(--_term-dark-color-info-light);
|
|
235
|
+
--ha-color-bg-subtle: var(--_term-dark-surface-sunken);
|
|
236
|
+
--ha-color-muted: var(--_term-dark-color-text-muted);
|
|
237
|
+
--ha-color-fg-muted: var(--_term-dark-color-text-muted);
|
|
238
|
+
--ha-color-success-bg: var(--_term-dark-color-success-light);
|
|
239
|
+
--ha-color-danger-bg: var(--_term-dark-color-danger-light);
|
|
240
|
+
--ha-color-danger-subtle: var(--_term-dark-color-danger-light);
|
|
241
|
+
--ha-color-primary-50: var(--_term-dark-color-primary-light);
|
|
242
|
+
--ha-color-primary-700: var(--_term-dark-color-primary-text);
|
|
243
|
+
--ha-color-primary-800: var(--_term-dark-color-link-hover);
|
|
244
|
+
--ha-shadow-xs: none;
|
|
245
|
+
--ha-shadow-sm: none;
|
|
246
|
+
--ha-shadow: none;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* Auto mode: follow the OS when no explicit theme is set */
|
|
250
|
+
@media (prefers-color-scheme: dark) {
|
|
251
|
+
:root[data-ha-preset="terminal"]:not(.ha-theme-light):not([data-theme="light"]) {
|
|
252
|
+
color-scheme: dark;
|
|
253
|
+
|
|
254
|
+
--ha-surface-base: var(--_term-dark-surface-base);
|
|
255
|
+
--ha-surface-raised: var(--_term-dark-surface-raised);
|
|
256
|
+
--ha-surface-sunken: var(--_term-dark-surface-sunken);
|
|
257
|
+
--ha-surface-overlay: var(--_term-dark-surface-overlay);
|
|
258
|
+
--ha-surface-hover: var(--_term-dark-surface-hover);
|
|
259
|
+
--ha-surface-selected: var(--_term-dark-surface-selected);
|
|
260
|
+
--ha-color-border-light: var(--_term-dark-color-border-light);
|
|
261
|
+
--ha-color-border-strong: var(--_term-dark-color-border-strong);
|
|
262
|
+
--ha-color-text-strong: var(--_term-dark-color-text-strong);
|
|
263
|
+
--ha-color-text: var(--_term-dark-color-text);
|
|
264
|
+
--ha-color-text-muted: var(--_term-dark-color-text-muted);
|
|
265
|
+
--ha-color-text-disabled: var(--_term-dark-color-text-disabled);
|
|
266
|
+
--ha-color-brand: var(--_term-dark-color-brand);
|
|
267
|
+
--ha-color-primary: var(--_term-dark-color-primary);
|
|
268
|
+
--ha-color-primary-hover: var(--_term-dark-color-primary-hover);
|
|
269
|
+
--ha-color-on-primary: var(--_term-dark-color-on-primary);
|
|
270
|
+
--ha-color-primary-text: var(--_term-dark-color-primary-text);
|
|
271
|
+
--ha-color-primary-light: var(--_term-dark-color-primary-light);
|
|
272
|
+
--ha-color-accent: var(--_term-dark-color-accent);
|
|
273
|
+
--ha-color-on-accent: var(--_term-dark-color-on-accent);
|
|
274
|
+
--ha-color-accent-soft: var(--_term-dark-color-accent-soft);
|
|
275
|
+
--ha-color-danger: var(--_term-dark-color-danger);
|
|
276
|
+
--ha-color-danger-hover: var(--_term-dark-color-danger-hover);
|
|
277
|
+
--ha-color-on-danger: var(--_term-dark-color-on-danger);
|
|
278
|
+
--ha-color-danger-text: var(--_term-dark-color-danger-text);
|
|
279
|
+
--ha-color-danger-light: var(--_term-dark-color-danger-light);
|
|
280
|
+
--ha-color-success: var(--_term-dark-color-success);
|
|
281
|
+
--ha-color-success-text: var(--_term-dark-color-success-text);
|
|
282
|
+
--ha-color-success-light: var(--_term-dark-color-success-light);
|
|
283
|
+
--ha-color-warning: var(--_term-dark-color-warning);
|
|
284
|
+
--ha-color-warning-text: var(--_term-dark-color-warning-text);
|
|
285
|
+
--ha-color-warning-light: var(--_term-dark-color-warning-light);
|
|
286
|
+
--ha-color-info: var(--_term-dark-color-info);
|
|
287
|
+
--ha-color-info-text: var(--_term-dark-color-info-text);
|
|
288
|
+
--ha-color-info-light: var(--_term-dark-color-info-light);
|
|
289
|
+
--ha-color-info-border: var(--_term-dark-color-info-border);
|
|
290
|
+
--ha-color-link: var(--_term-dark-color-link);
|
|
291
|
+
--ha-color-link-hover: var(--_term-dark-color-link-hover);
|
|
292
|
+
--ha-color-bg-light: var(--_term-dark-color-bg-light);
|
|
293
|
+
--ha-color-scrim: var(--_term-dark-color-scrim);
|
|
294
|
+
--ha-chart-1: var(--_term-dark-chart-1);
|
|
295
|
+
--ha-chart-2: var(--_term-dark-chart-2);
|
|
296
|
+
--ha-chart-3: var(--_term-dark-chart-3);
|
|
297
|
+
--ha-chart-4: var(--_term-dark-chart-4);
|
|
298
|
+
--ha-chart-5: var(--_term-dark-chart-5);
|
|
299
|
+
--ha-chart-6: var(--_term-dark-chart-6);
|
|
300
|
+
--ha-chart-grid: var(--_term-dark-chart-grid);
|
|
301
|
+
--ha-chart-axis: var(--_term-dark-chart-axis);
|
|
302
|
+
--ha-shadow-md: var(--_term-dark-shadow-md);
|
|
303
|
+
--ha-shadow-lg: var(--_term-dark-shadow-lg);
|
|
304
|
+
--ha-shadow-xl: var(--_term-dark-shadow-xl);
|
|
305
|
+
--ha-shadow-focus: var(--_term-dark-shadow-focus);
|
|
306
|
+
|
|
307
|
+
/* aliases re-declared so they resolve to this preset's values */
|
|
308
|
+
--ha-color-border: var(--_term-dark-color-border-strong);
|
|
309
|
+
--ha-color-focus-ring: var(--_term-dark-color-brand);
|
|
310
|
+
--ha-color-bg: var(--_term-dark-surface-base);
|
|
311
|
+
--ha-color-surface: var(--_term-dark-surface-raised);
|
|
312
|
+
--ha-color-primary-soft: var(--_term-dark-color-primary-light);
|
|
313
|
+
--ha-color-success-soft: var(--_term-dark-color-success-light);
|
|
314
|
+
--ha-color-warning-soft: var(--_term-dark-color-warning-light);
|
|
315
|
+
--ha-color-danger-soft: var(--_term-dark-color-danger-light);
|
|
316
|
+
--ha-color-info-soft: var(--_term-dark-color-info-light);
|
|
317
|
+
--ha-color-bg-subtle: var(--_term-dark-surface-sunken);
|
|
318
|
+
--ha-color-muted: var(--_term-dark-color-text-muted);
|
|
319
|
+
--ha-color-fg-muted: var(--_term-dark-color-text-muted);
|
|
320
|
+
--ha-color-success-bg: var(--_term-dark-color-success-light);
|
|
321
|
+
--ha-color-danger-bg: var(--_term-dark-color-danger-light);
|
|
322
|
+
--ha-color-danger-subtle: var(--_term-dark-color-danger-light);
|
|
323
|
+
--ha-color-primary-50: var(--_term-dark-color-primary-light);
|
|
324
|
+
--ha-color-primary-700: var(--_term-dark-color-primary-text);
|
|
325
|
+
--ha-color-primary-800: var(--_term-dark-color-link-hover);
|
|
326
|
+
--ha-shadow-xs: none;
|
|
327
|
+
--ha-shadow-sm: none;
|
|
328
|
+
--ha-shadow: none;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Theme toggle (ghost icon button)
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
.ha-theme-toggle {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
width: 44px;
|
|
10
|
+
height: 44px;
|
|
11
|
+
padding: 0;
|
|
12
|
+
background: none;
|
|
13
|
+
border: var(--ha-border-width) solid transparent;
|
|
14
|
+
border-radius: var(--ha-radius-md);
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
color: var(--ha-color-text-muted);
|
|
17
|
+
flex-shrink: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (min-width: 768px) {
|
|
21
|
+
.ha-theme-toggle {
|
|
22
|
+
width: var(--ha-ctl-h);
|
|
23
|
+
height: var(--ha-ctl-h);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ha-theme-toggle:hover {
|
|
28
|
+
color: var(--ha-color-text-strong);
|
|
29
|
+
background-color: var(--ha-surface-hover);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* In light mode: show the moon (click to go dark) */
|
|
33
|
+
.ha-theme-toggle .ha-icon-moon { display: block; }
|
|
34
|
+
.ha-theme-toggle .ha-icon-sun { display: none; }
|
|
35
|
+
|
|
36
|
+
/* In dark mode: show the sun (click to go light) */
|
|
37
|
+
.ha-theme-dark .ha-theme-toggle .ha-icon-moon,
|
|
38
|
+
html[data-theme="dark"] .ha-theme-toggle .ha-icon-moon { display: none; }
|
|
39
|
+
.ha-theme-dark .ha-theme-toggle .ha-icon-sun,
|
|
40
|
+
html[data-theme="dark"] .ha-theme-toggle .ha-icon-sun { display: block; }
|
|
41
|
+
|
|
42
|
+
/* Auto mode with an OS dark preference */
|
|
43
|
+
@media (prefers-color-scheme: dark) {
|
|
44
|
+
html:not(.ha-theme-light):not([data-theme="light"]) .ha-theme-toggle .ha-icon-moon { display: none; }
|
|
45
|
+
html:not(.ha-theme-light):not([data-theme="light"]) .ha-theme-toggle .ha-icon-sun { display: block; }
|
|
46
|
+
}
|