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,776 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Data table
|
|
3
|
+
Data first: rows on the raised surface, a sunken header in muted 13px,
|
|
4
|
+
hairlines between rows, a whole-row hover. Row height follows density.
|
|
5
|
+
========================================================================== */
|
|
6
|
+
|
|
7
|
+
.ha-table-wrapper {
|
|
8
|
+
background-color: var(--ha-surface-raised);
|
|
9
|
+
border: var(--ha-border-width) solid var(--ha-color-border-light);
|
|
10
|
+
border-radius: var(--ha-radius-lg);
|
|
11
|
+
margin: var(--ha-space-4) 0;
|
|
12
|
+
overflow-x: auto;
|
|
13
|
+
box-shadow: var(--ha-shadow-sm);
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Quiet scrollbars: a scroll area draws its bar only while hovered or focused.
|
|
18
|
+
It still scrolls (wheel, touch, keyboard) and shows the bar as soon as the
|
|
19
|
+
pointer or focus is on it, so nothing is lost for accessibility. */
|
|
20
|
+
.ha-table-wrapper,
|
|
21
|
+
.ha-sidebar-inner {
|
|
22
|
+
scrollbar-width: thin;
|
|
23
|
+
scrollbar-color: transparent transparent;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ha-table-wrapper:hover,
|
|
27
|
+
.ha-table-wrapper:focus-within,
|
|
28
|
+
.ha-sidebar-inner:hover,
|
|
29
|
+
.ha-sidebar-inner:focus-within {
|
|
30
|
+
scrollbar-color: var(--ha-color-border) transparent;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Scroll shadows (st-ux-erp-08): a wide table that scrolls sideways shows a soft
|
|
34
|
+
shadow on the edge that still hides columns. The "local" covers hide each
|
|
35
|
+
shadow once the table is scrolled to that end. Pure CSS; the covers are placed
|
|
36
|
+
at the ends of the content, so it works in both writing directions. */
|
|
37
|
+
@media (min-width: 768px) {
|
|
38
|
+
.ha-table-wrapper {
|
|
39
|
+
--ha-scroll-shadow: color-mix(in srgb, var(--ha-color-text) 22%, transparent);
|
|
40
|
+
background-image:
|
|
41
|
+
linear-gradient(to right, var(--ha-surface-raised) 30%, transparent),
|
|
42
|
+
linear-gradient(to left, var(--ha-surface-raised) 30%, transparent),
|
|
43
|
+
linear-gradient(to right, var(--ha-scroll-shadow), transparent),
|
|
44
|
+
linear-gradient(to left, var(--ha-scroll-shadow), transparent);
|
|
45
|
+
background-position: left center, right center, left center, right center;
|
|
46
|
+
background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
|
|
47
|
+
background-repeat: no-repeat;
|
|
48
|
+
background-attachment: local, local, scroll, scroll;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ha-table {
|
|
53
|
+
width: 100%;
|
|
54
|
+
min-width: 100%;
|
|
55
|
+
table-layout: auto;
|
|
56
|
+
border-collapse: separate;
|
|
57
|
+
border-spacing: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ha-table-th {
|
|
61
|
+
position: sticky;
|
|
62
|
+
top: 0;
|
|
63
|
+
z-index: var(--ha-z-sticky);
|
|
64
|
+
height: var(--ha-row-h);
|
|
65
|
+
padding: 0 var(--ha-cell-px);
|
|
66
|
+
text-align: start;
|
|
67
|
+
vertical-align: middle;
|
|
68
|
+
font-size: 0.8125rem;
|
|
69
|
+
font-weight: var(--ha-font-medium);
|
|
70
|
+
color: var(--ha-color-text-muted);
|
|
71
|
+
background-color: var(--ha-surface-sunken);
|
|
72
|
+
border-block-end: var(--ha-border-width) solid var(--ha-color-border-light);
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ha-table-th-center {
|
|
77
|
+
text-align: end;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ha-table-body {
|
|
81
|
+
font-size: var(--ha-font-size-sm);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ha-table-cell {
|
|
85
|
+
height: var(--ha-row-h);
|
|
86
|
+
padding: 0 var(--ha-cell-px);
|
|
87
|
+
text-align: start;
|
|
88
|
+
vertical-align: middle;
|
|
89
|
+
white-space: nowrap;
|
|
90
|
+
color: var(--ha-color-text);
|
|
91
|
+
border-block-end: var(--ha-border-width) solid var(--ha-color-border-light);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ha-table-row:last-child > .ha-table-cell {
|
|
95
|
+
border-block-end: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* The first column names the record. */
|
|
99
|
+
.ha-table-row > .ha-table-cell:first-child {
|
|
100
|
+
color: var(--ha-color-text-strong);
|
|
101
|
+
font-weight: var(--ha-font-medium);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.ha-table-row:hover > .ha-table-cell {
|
|
105
|
+
background-color: var(--ha-surface-hover);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.ha-table-cell-center {
|
|
109
|
+
text-align: end;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Numbers: tabular figures, end-aligned. */
|
|
113
|
+
.ha-num {
|
|
114
|
+
font-variant-numeric: tabular-nums;
|
|
115
|
+
text-align: end;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ha-table-sort-link {
|
|
119
|
+
display: inline-flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
gap: var(--ha-space-1);
|
|
122
|
+
min-height: var(--ha-target-min);
|
|
123
|
+
color: inherit;
|
|
124
|
+
text-decoration: none;
|
|
125
|
+
border-radius: var(--ha-radius-sm);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.ha-table-sort-link:hover {
|
|
129
|
+
color: var(--ha-color-text-strong);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ha-table-th[aria-sort] .ha-table-sort-link {
|
|
133
|
+
color: var(--ha-color-primary-text);
|
|
134
|
+
font-weight: var(--ha-font-semibold);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ha-table-sort-link .ha-icon {
|
|
138
|
+
width: 14px;
|
|
139
|
+
height: 14px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* ==========================================================================
|
|
143
|
+
Row actions: visible quiet buttons, never hover reveals
|
|
144
|
+
========================================================================== */
|
|
145
|
+
|
|
146
|
+
.ha-row-actions {
|
|
147
|
+
display: inline-flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
justify-content: flex-end;
|
|
150
|
+
gap: var(--ha-space-1);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.ha-action-link,
|
|
154
|
+
.ha-action-delete {
|
|
155
|
+
display: inline-flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
gap: var(--ha-space-1);
|
|
158
|
+
min-height: 28px;
|
|
159
|
+
padding: 0 var(--ha-space-2);
|
|
160
|
+
font: inherit;
|
|
161
|
+
font-size: 0.8125rem;
|
|
162
|
+
font-weight: var(--ha-font-medium);
|
|
163
|
+
text-decoration: none;
|
|
164
|
+
background: none;
|
|
165
|
+
border: var(--ha-border-width) solid transparent;
|
|
166
|
+
border-radius: var(--ha-radius-md);
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.ha-action-link {
|
|
171
|
+
color: var(--ha-color-primary-text);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ha-action-link:hover {
|
|
175
|
+
background-color: var(--ha-color-primary-soft);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.ha-action-delete {
|
|
179
|
+
color: var(--ha-color-danger-text);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.ha-action-delete:hover {
|
|
183
|
+
background-color: var(--ha-color-danger-soft);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.ha-action-link .ha-icon,
|
|
187
|
+
.ha-action-delete .ha-icon {
|
|
188
|
+
width: 16px;
|
|
189
|
+
height: 16px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* ==========================================================================
|
|
193
|
+
Clickable rows (st-v059-list-02)
|
|
194
|
+
|
|
195
|
+
The title cell (<th scope="row">) holds a real link to the record; its
|
|
196
|
+
::after stretches over the whole row, so a click anywhere opens it while
|
|
197
|
+
middle-click, "open in new tab" and screen readers keep working. Row
|
|
198
|
+
controls sit above the stretched link. The <tr> is the containing block:
|
|
199
|
+
no cell between it and the link may be positioned (except the controls).
|
|
200
|
+
========================================================================== */
|
|
201
|
+
|
|
202
|
+
.ha-table-row {
|
|
203
|
+
position: relative;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ha-table-row--link {
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.ha-table-title {
|
|
211
|
+
font-weight: var(--ha-font-medium);
|
|
212
|
+
color: var(--ha-color-text-strong);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.ha-row-link {
|
|
216
|
+
color: inherit;
|
|
217
|
+
text-decoration: none;
|
|
218
|
+
border-radius: var(--ha-radius-sm);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.ha-row-link::after {
|
|
222
|
+
content: "";
|
|
223
|
+
position: absolute;
|
|
224
|
+
inset: 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.ha-table-row--link:hover .ha-row-link,
|
|
228
|
+
.ha-row-link:focus-visible {
|
|
229
|
+
color: var(--ha-color-primary-text);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* Keyboard focus on the link highlights its row (j/k move between row links). */
|
|
233
|
+
.ha-table-row--link:has(.ha-row-link:focus-visible) > .ha-table-cell {
|
|
234
|
+
background-color: var(--ha-surface-hover);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/* Controls stay usable above the stretched link. */
|
|
238
|
+
.ha-table-row .ha-cell-editable,
|
|
239
|
+
.ha-table-row .ha-inline-editor,
|
|
240
|
+
.ha-table-row .ha-table-cell a:not(.ha-row-link),
|
|
241
|
+
.ha-table-row .ha-table-cell button,
|
|
242
|
+
.ha-table-row .ha-table-cell input,
|
|
243
|
+
.ha-table-row .ha-table-cell select,
|
|
244
|
+
.ha-table-row .ha-table-cell label,
|
|
245
|
+
.ha-table-row .ha-tip {
|
|
246
|
+
position: relative;
|
|
247
|
+
z-index: 1;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* A hovered or focused control's tooltip may overlap the sticky header. */
|
|
251
|
+
.ha-table-row .ha-tip:is(:hover, :focus-within) {
|
|
252
|
+
z-index: calc(var(--ha-z-sticky) + 1);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@media (min-width: 768px) {
|
|
256
|
+
.ha-table .ha-col-end {
|
|
257
|
+
width: 1%;
|
|
258
|
+
padding-inline: var(--ha-space-2);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* Every column editable: a narrow chevron cell opens the record. */
|
|
263
|
+
.ha-row-open {
|
|
264
|
+
display: inline-flex;
|
|
265
|
+
align-items: center;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
min-width: var(--ha-target-min);
|
|
268
|
+
min-height: var(--ha-target-min);
|
|
269
|
+
color: var(--ha-color-text-muted);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.ha-row-open:hover {
|
|
273
|
+
color: var(--ha-color-primary-text);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/* ==========================================================================
|
|
277
|
+
Mobile (< 768px): each row becomes a card
|
|
278
|
+
|
|
279
|
+
The header is visually hidden but stays in the accessibility tree; each
|
|
280
|
+
cell shows its data-label before the value; actions keep 44px targets.
|
|
281
|
+
========================================================================== */
|
|
282
|
+
|
|
283
|
+
@media (max-width: 767px) {
|
|
284
|
+
.ha-table-wrapper {
|
|
285
|
+
overflow-x: visible;
|
|
286
|
+
margin: var(--ha-space-4) 0;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.ha-table thead {
|
|
290
|
+
position: absolute;
|
|
291
|
+
width: 1px;
|
|
292
|
+
height: 1px;
|
|
293
|
+
overflow: hidden;
|
|
294
|
+
clip-path: inset(50%);
|
|
295
|
+
white-space: nowrap;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.ha-table,
|
|
299
|
+
.ha-table-body,
|
|
300
|
+
.ha-table-row,
|
|
301
|
+
.ha-table-cell {
|
|
302
|
+
display: block;
|
|
303
|
+
width: 100%;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.ha-table-row {
|
|
307
|
+
padding: var(--ha-space-3) var(--ha-space-4);
|
|
308
|
+
border-block-end: var(--ha-border-width) solid var(--ha-color-border-light);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.ha-table-row:hover {
|
|
312
|
+
background-color: var(--ha-surface-hover);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.ha-table-row:hover > .ha-table-cell {
|
|
316
|
+
background-color: transparent;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.ha-table-cell {
|
|
320
|
+
display: flex;
|
|
321
|
+
justify-content: space-between;
|
|
322
|
+
align-items: flex-start;
|
|
323
|
+
gap: var(--ha-space-4);
|
|
324
|
+
height: auto;
|
|
325
|
+
padding: var(--ha-space-1) 0;
|
|
326
|
+
border: 0;
|
|
327
|
+
white-space: normal;
|
|
328
|
+
text-align: end;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.ha-table-cell::before {
|
|
332
|
+
content: attr(data-label);
|
|
333
|
+
font-size: 0.8125rem;
|
|
334
|
+
font-weight: var(--ha-font-normal);
|
|
335
|
+
color: var(--ha-color-text-muted);
|
|
336
|
+
text-align: start;
|
|
337
|
+
flex-shrink: 0;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.ha-table-cell-center {
|
|
341
|
+
justify-content: flex-end;
|
|
342
|
+
padding-top: var(--ha-space-2);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.ha-table-cell-center::before {
|
|
346
|
+
content: none;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.ha-row-actions {
|
|
350
|
+
flex-wrap: wrap;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.ha-action-link,
|
|
354
|
+
.ha-action-delete {
|
|
355
|
+
min-height: 44px;
|
|
356
|
+
padding: 0 var(--ha-space-3);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* --------------------------------------------------------------------------
|
|
361
|
+
Bulk actions (v0.5.5): checkbox column, bulk bar and per-row result.
|
|
362
|
+
Ported from the design system's BulkActionFlow (components/bundle.css).
|
|
363
|
+
The proportion bar (.ha-progress__segments) is a shared primitive and is
|
|
364
|
+
styled where the other progress rules live; only its bulk-specific
|
|
365
|
+
"forbidden" segment is defined here.
|
|
366
|
+
-------------------------------------------------------------------------- */
|
|
367
|
+
|
|
368
|
+
.ha-table .ha-col-check {
|
|
369
|
+
width: 44px;
|
|
370
|
+
min-width: 44px;
|
|
371
|
+
max-width: 44px;
|
|
372
|
+
padding-inline: 0;
|
|
373
|
+
text-align: center;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.ha-table .ha-col-check .ha-check {
|
|
377
|
+
justify-content: center;
|
|
378
|
+
min-width: 44px;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.ha-table tbody tr:has(> .ha-col-check input:checked) > .ha-table-cell {
|
|
382
|
+
background-color: var(--ha-surface-selected);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/* Bar: selection count, action picker, Run, Clear selection, inline warning */
|
|
386
|
+
.ha-bulkbar {
|
|
387
|
+
display: flex;
|
|
388
|
+
flex-wrap: wrap;
|
|
389
|
+
align-items: center;
|
|
390
|
+
gap: var(--ha-space-3);
|
|
391
|
+
padding: var(--ha-space-2) var(--ha-space-3);
|
|
392
|
+
background-color: var(--ha-color-primary-soft);
|
|
393
|
+
color: var(--ha-color-primary-text);
|
|
394
|
+
font-weight: var(--ha-font-semibold);
|
|
395
|
+
border-block-end: var(--ha-border-width) solid var(--ha-color-border-light);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.ha-bulkbar[hidden] {
|
|
399
|
+
display: none;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.ha-bulkbar__count {
|
|
403
|
+
display: inline-flex;
|
|
404
|
+
align-items: center;
|
|
405
|
+
gap: var(--ha-space-2);
|
|
406
|
+
color: var(--ha-color-primary-text);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.ha-bulkbar__pick {
|
|
410
|
+
display: flex;
|
|
411
|
+
flex-wrap: wrap;
|
|
412
|
+
align-items: center;
|
|
413
|
+
gap: var(--ha-space-2);
|
|
414
|
+
flex: 1 1 18rem;
|
|
415
|
+
min-width: 0;
|
|
416
|
+
font-weight: var(--ha-font-normal);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.ha-bulkbar__pick .ha-select {
|
|
420
|
+
width: auto;
|
|
421
|
+
flex: 0 1 16rem;
|
|
422
|
+
min-width: 0;
|
|
423
|
+
min-height: var(--ha-control-height-compact);
|
|
424
|
+
font-size: var(--ha-font-size-sm);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.ha-bulkbar__end {
|
|
428
|
+
margin-inline-start: auto;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.ha-bulkbar--warn {
|
|
432
|
+
background-color: var(--ha-color-warning-soft);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.ha-bulkbar__warn {
|
|
436
|
+
display: inline-flex;
|
|
437
|
+
align-items: center;
|
|
438
|
+
gap: var(--ha-space-1);
|
|
439
|
+
flex-basis: 100%;
|
|
440
|
+
margin: 0;
|
|
441
|
+
font-size: var(--ha-font-size-sm);
|
|
442
|
+
font-weight: var(--ha-font-medium);
|
|
443
|
+
color: var(--ha-color-warning-text);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.ha-bulkbar__warn[hidden] {
|
|
447
|
+
display: none;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/* Result region inside the list: empty until a bulk run lands in it */
|
|
451
|
+
.ha-bulk-result-region:empty {
|
|
452
|
+
display: none;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.ha-bulk-result-region {
|
|
456
|
+
padding: var(--ha-space-4) var(--ha-cell-px);
|
|
457
|
+
border-block-end: var(--ha-border-width) solid var(--ha-color-border-light);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/* Per-row result */
|
|
461
|
+
.ha-bulk-result {
|
|
462
|
+
display: flex;
|
|
463
|
+
flex-direction: column;
|
|
464
|
+
gap: var(--ha-space-4);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.ha-bulk-result__title {
|
|
468
|
+
margin: 0;
|
|
469
|
+
font-size: 1.25rem;
|
|
470
|
+
line-height: 28px;
|
|
471
|
+
font-weight: var(--ha-font-semibold);
|
|
472
|
+
color: var(--ha-color-text-strong);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.ha-bulk-result__summary {
|
|
476
|
+
display: flex;
|
|
477
|
+
flex-wrap: wrap;
|
|
478
|
+
align-items: center;
|
|
479
|
+
gap: var(--ha-space-2) var(--ha-space-4);
|
|
480
|
+
padding: var(--ha-space-4);
|
|
481
|
+
border: var(--ha-border-width) solid var(--ha-color-border-light);
|
|
482
|
+
border-radius: var(--ha-radius-lg);
|
|
483
|
+
background-color: var(--ha-surface-raised);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.ha-bulk-result__headline {
|
|
487
|
+
display: flex;
|
|
488
|
+
align-items: flex-start;
|
|
489
|
+
gap: var(--ha-space-2);
|
|
490
|
+
flex: 1 1 20rem;
|
|
491
|
+
margin: 0;
|
|
492
|
+
font-weight: var(--ha-font-semibold);
|
|
493
|
+
color: var(--ha-color-text-strong);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.ha-bulk-result__headline .ha-icon {
|
|
497
|
+
flex-shrink: 0;
|
|
498
|
+
margin-block-start: 1px;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.ha-bulk-result--ok .ha-bulk-result__headline .ha-icon {
|
|
502
|
+
color: var(--ha-color-success-text);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.ha-bulk-result--mixed .ha-bulk-result__headline .ha-icon {
|
|
506
|
+
color: var(--ha-color-warning-text);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.ha-bulk-result--failed .ha-bulk-result__headline .ha-icon {
|
|
510
|
+
color: var(--ha-color-danger-text);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.ha-bulk-result__tally {
|
|
514
|
+
display: flex;
|
|
515
|
+
flex-wrap: wrap;
|
|
516
|
+
gap: var(--ha-space-1) var(--ha-space-3);
|
|
517
|
+
margin: 0;
|
|
518
|
+
padding: 0;
|
|
519
|
+
list-style: none;
|
|
520
|
+
font-size: var(--ha-font-size-sm);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.ha-bulk-result__tally li {
|
|
524
|
+
display: inline-flex;
|
|
525
|
+
align-items: center;
|
|
526
|
+
gap: var(--ha-space-1);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.ha-bulk-result__summary .ha-progress__segments {
|
|
530
|
+
flex-basis: 100%;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.ha-progress__segments > .is-forbidden {
|
|
534
|
+
background: repeating-linear-gradient(
|
|
535
|
+
135deg,
|
|
536
|
+
var(--ha-color-warning-text) 0 3px,
|
|
537
|
+
transparent 3px 6px
|
|
538
|
+
);
|
|
539
|
+
box-shadow: inset 0 0 0 1px var(--ha-color-warning-text);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.ha-bulk-result__table {
|
|
543
|
+
font-size: var(--ha-font-size-sm);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.ha-bulk-result__table .ha-table-cell:last-child {
|
|
547
|
+
white-space: normal;
|
|
548
|
+
min-width: 12rem;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.ha-bulk-result__table .ha-bulk-result__key {
|
|
552
|
+
font-weight: var(--ha-font-medium);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.ha-bulk-result__more > summary {
|
|
556
|
+
display: flex;
|
|
557
|
+
align-items: center;
|
|
558
|
+
gap: var(--ha-space-2);
|
|
559
|
+
min-height: 44px;
|
|
560
|
+
padding: 0 var(--ha-cell-px);
|
|
561
|
+
cursor: pointer;
|
|
562
|
+
font-weight: var(--ha-font-medium);
|
|
563
|
+
color: var(--ha-color-primary-text);
|
|
564
|
+
border-block-start: var(--ha-border-width) solid var(--ha-color-border-light);
|
|
565
|
+
list-style: none;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.ha-bulk-result__more > summary::-webkit-details-marker {
|
|
569
|
+
display: none;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.ha-bulk-result__more > summary .ha-icon {
|
|
573
|
+
transition: rotate 150ms;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.ha-bulk-result__more[open] > summary .ha-icon {
|
|
577
|
+
rotate: 90deg;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.ha-bulk-result__actions {
|
|
581
|
+
display: flex;
|
|
582
|
+
flex-wrap: wrap;
|
|
583
|
+
align-items: center;
|
|
584
|
+
gap: var(--ha-space-2);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.ha-bulk-result__actions form {
|
|
588
|
+
display: contents;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.ha-null {
|
|
592
|
+
color: var(--ha-color-text-muted);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/* Status pills: the word carries the meaning, the marker shape is a second cue.
|
|
596
|
+
.ha-bulk-status carries the pill base itself (the shared .ha-pill is ported
|
|
597
|
+
with the other primitives), so the result reads right on its own. */
|
|
598
|
+
.ha-bulk-status {
|
|
599
|
+
display: inline-flex;
|
|
600
|
+
align-items: center;
|
|
601
|
+
gap: var(--ha-space-1);
|
|
602
|
+
padding: var(--ha-space-0-5) var(--ha-space-2);
|
|
603
|
+
border-radius: var(--ha-radius-pill);
|
|
604
|
+
font-size: var(--ha-font-size-xs);
|
|
605
|
+
line-height: 18px;
|
|
606
|
+
font-weight: var(--ha-font-medium);
|
|
607
|
+
white-space: nowrap;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.ha-bulk-status::before {
|
|
611
|
+
content: "";
|
|
612
|
+
width: 6px;
|
|
613
|
+
height: 6px;
|
|
614
|
+
border-radius: var(--ha-radius-pill);
|
|
615
|
+
background: currentColor;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.ha-bulk-status--ok {
|
|
619
|
+
background-color: var(--ha-color-success-soft);
|
|
620
|
+
color: var(--ha-color-success-text);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.ha-bulk-status--failed {
|
|
624
|
+
background-color: var(--ha-color-danger-soft);
|
|
625
|
+
color: var(--ha-color-danger-text);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.ha-bulk-status--forbidden {
|
|
629
|
+
background-color: var(--ha-color-warning-soft);
|
|
630
|
+
color: var(--ha-color-warning-text);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.ha-bulk-status--forbidden::before {
|
|
634
|
+
border-radius: 1px;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.ha-bulk-status--failed::before {
|
|
638
|
+
border-radius: 1px;
|
|
639
|
+
rotate: 45deg;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
@media (max-width: 767px) {
|
|
643
|
+
.ha-table-cell.ha-col-check {
|
|
644
|
+
float: inline-end;
|
|
645
|
+
width: auto;
|
|
646
|
+
max-width: none;
|
|
647
|
+
padding: 0;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.ha-table-cell.ha-col-check::before {
|
|
651
|
+
content: none;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/* --------------------------------------------------------------------------
|
|
656
|
+
Phone cards with a hierarchy (st-ux-erp-14)
|
|
657
|
+
|
|
658
|
+
Line 1: the record name, then the cell after it ("number · customer").
|
|
659
|
+
Line 2: the key facts, a status pill and the amount, with the row actions
|
|
660
|
+
at the end. Line 3: everything else, small and muted, label inline.
|
|
661
|
+
-------------------------------------------------------------------------- */
|
|
662
|
+
@media (max-width: 767px) {
|
|
663
|
+
[data-testid="list-table"] .ha-table-row {
|
|
664
|
+
display: flex;
|
|
665
|
+
flex-wrap: wrap;
|
|
666
|
+
align-items: center;
|
|
667
|
+
column-gap: var(--ha-space-3);
|
|
668
|
+
padding-block: var(--ha-space-1);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/* Line breaks between the three lines. */
|
|
672
|
+
[data-testid="list-table"] .ha-table-row::before,
|
|
673
|
+
[data-testid="list-table"] .ha-table-row::after {
|
|
674
|
+
content: "";
|
|
675
|
+
flex: 0 0 100%;
|
|
676
|
+
height: 0;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
[data-testid="list-table"] .ha-table-row::before {
|
|
680
|
+
order: 2;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
[data-testid="list-table"] .ha-table-row::after {
|
|
684
|
+
order: 4;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
[data-testid="list-table"] .ha-table-row > .ha-table-cell {
|
|
688
|
+
order: 5;
|
|
689
|
+
flex: 0 1 auto;
|
|
690
|
+
width: auto;
|
|
691
|
+
justify-content: flex-start;
|
|
692
|
+
gap: var(--ha-space-1);
|
|
693
|
+
padding-block: 0;
|
|
694
|
+
line-height: 1.4;
|
|
695
|
+
font-size: 0.8125rem;
|
|
696
|
+
font-weight: var(--ha-font-normal);
|
|
697
|
+
color: var(--ha-color-text-muted);
|
|
698
|
+
text-align: start;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
[data-testid="list-table"] .ha-table-row > .ha-table-title {
|
|
702
|
+
order: 1;
|
|
703
|
+
max-width: 100%;
|
|
704
|
+
font-size: var(--ha-font-size-sm);
|
|
705
|
+
font-weight: var(--ha-font-semibold);
|
|
706
|
+
color: var(--ha-color-text-strong);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
[data-testid="list-table"] .ha-table-row > .ha-col-check {
|
|
710
|
+
order: 0;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
[data-testid="list-table"] .ha-table-row > .ha-table-title::before,
|
|
714
|
+
[data-testid="list-table"] .ha-table-row > .ha-cell-pill::before,
|
|
715
|
+
[data-testid="list-table"] .ha-table-row > .ha-num::before {
|
|
716
|
+
content: none;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
[data-testid="list-table"] .ha-table-row > .ha-table-title + .ha-table-cell:not(.ha-cell-pill, .ha-num) {
|
|
720
|
+
order: 1;
|
|
721
|
+
flex: 1 1 0;
|
|
722
|
+
min-width: 0;
|
|
723
|
+
overflow: hidden;
|
|
724
|
+
text-overflow: ellipsis;
|
|
725
|
+
white-space: nowrap;
|
|
726
|
+
font-size: var(--ha-font-size-sm);
|
|
727
|
+
color: var(--ha-color-text);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
[data-testid="list-table"] .ha-table-row > .ha-table-title + .ha-table-cell:not(.ha-cell-pill, .ha-num, :empty)::before {
|
|
731
|
+
content: "\00b7";
|
|
732
|
+
font-size: inherit;
|
|
733
|
+
color: var(--ha-color-text-muted);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
[data-testid="list-table"] .ha-table-row > .ha-cell-pill,
|
|
737
|
+
[data-testid="list-table"] .ha-table-row > .ha-num,
|
|
738
|
+
[data-testid="list-table"] .ha-table-row > .ha-col-end {
|
|
739
|
+
order: 3;
|
|
740
|
+
font-size: var(--ha-font-size-sm);
|
|
741
|
+
color: var(--ha-color-text);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
[data-testid="list-table"] .ha-table-row > .ha-num {
|
|
745
|
+
margin-inline-start: auto;
|
|
746
|
+
font-weight: var(--ha-font-semibold);
|
|
747
|
+
color: var(--ha-color-text-strong);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/* The 44px delete target overlaps the card padding instead of adding a line. */
|
|
751
|
+
[data-testid="list-table"] .ha-table-row > .ha-col-end {
|
|
752
|
+
margin-inline-start: auto;
|
|
753
|
+
margin-block: calc((44px - 28px) / -2);
|
|
754
|
+
padding: 0;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
[data-testid="list-table"] .ha-table-row > .ha-num ~ .ha-col-end {
|
|
758
|
+
margin-inline-start: 0;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/* A table of label/value pairs (a report's totals): one row per pair. */
|
|
762
|
+
.ha-table--pairs .ha-table-row {
|
|
763
|
+
display: flex;
|
|
764
|
+
align-items: baseline;
|
|
765
|
+
justify-content: space-between;
|
|
766
|
+
gap: var(--ha-space-3);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.ha-table--pairs .ha-table-row > .ha-table-cell {
|
|
770
|
+
width: auto;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.ha-table--pairs .ha-table-row > .ha-table-cell::before {
|
|
774
|
+
content: none;
|
|
775
|
+
}
|
|
776
|
+
}
|